Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Rony 1.9.3-p0 on Rails 2.3.x: the helpers "require" problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
gmile  
View profile  
 More options Nov 9 2011, 7:53 am
From: gmile <iamex...@gmail.com>
Date: Wed, 9 Nov 2011 04:53:12 -0800 (PST)
Local: Wed, Nov 9 2011 7:53 am
Subject: Rony 1.9.3-p0 on Rails 2.3.x: the helpers "require" problem

Yes, I know that Rails *2.3.x* is no longer fully supported (this is why
I'm posting it to rails/issues). Still, I would like to post the topic so
that everyone who experience the same problem could quickly google for it
(no, afaik no solution for this yet).

I'm trying to migrate a 1.5 years *2.3.x* app from Ruby version *1.8.7* to *
1.9.3-p0*.

The strange problem I encountered is that all controllers in my app *have
to have* a corresponding helper class in /helpers folder. What made me
think so is the following trace (and the steps I made after):

gmile@gmile-K52Jr:~/intrview$ *rake spec*

After I added an empty admin/chargify_exports_helper file to /helpers folder,
I passes but starts to complain about another one missing helper file. I
wish I knew Rails internals well to fix this by myself.

So, anyone know a workaround on this?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Irongaze  
View profile  
 More options Nov 18 2011, 1:50 pm
From: Irongaze <zaph...@gmail.com>
Date: Fri, 18 Nov 2011 10:50:34 -0800 (PST)
Local: Fri, Nov 18 2011 1:50 pm
Subject: Re: Rony 1.9.3-p0 on Rails 2.3.x: the helpers "require" problem

I'm seeing the same problem.  With a server full of legacy Rails 2.3.5
apps, attempting to run using Ruby 1.9.3p0 gives multiple LoadErrors for
non-existent helper files.  Does not seem to occur with latest Ruby 1.9.2.  
Vexing.

Will post to this thread if I find a workaround.  Going to update my local
dev box's RVM installation to 1.9.3p0 to see if I can find a solution.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Irongaze  
View profile  
 More options Nov 18 2011, 2:18 pm
From: Irongaze <zaph...@gmail.com>
Date: Fri, 18 Nov 2011 11:18:40 -0800 (PST)
Local: Fri, Nov 18 2011 2:18 pm
Subject: Re: Rony 1.9.3-p0 on Rails 2.3.x: the helpers "require" problem

I'm seeing the same issue.  Rails 2.3.5, Ruby 1.9.3p0, LoadError's for
"missing" helpers all over the place.  For the moment, am downgrading to
Ruby 1.9.2p290 until I can sort this out.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JoeLoui  
View profile  
 More options Nov 24 2011, 11:27 am
From: JoeLoui <joe.escala...@gmail.com>
Date: Thu, 24 Nov 2011 08:27:10 -0800 (PST)
Local: Thurs, Nov 24 2011 11:27 am
Subject: Re: Rony 1.9.3-p0 on Rails 2.3.x: the helpers "require" problem
I found the problem! I forked rails and request a pull (https://
github.com/rails/rails/pull/3745), but they rejected it because 2.3 is
no longer mantained... :-/

However if you want, you can fork my repo https://github.com/jescalante/rails/tree/patch-1
or watch the fix (it's just a line! :-P)

Greetings!

On Nov 18, 4:18 pm, Irongaze <zaph...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Prem Sichanugrist  
View profile  
 More options Nov 24 2011, 11:35 pm
From: Prem Sichanugrist <sikand...@gmail.com>
Date: Thu, 24 Nov 2011 23:35:30 -0500
Local: Thurs, Nov 24 2011 11:35 pm
Subject: Re: [Rails-core] Re: Rony 1.9.3-p0 on Rails 2.3.x: the helpers "require" problem
I was actually thinking it would be nice if you will be able to make
it as a gem or plugin, but I don't know if gem/plugin can override
that setting just in time before the exception ever came up or not.

- Prem

Sent from my iPhone

On Nov 24, 2011, at 8:56 PM, JoeLoui <joe.escala...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wael Nasreddine  
View profile  
 More options Nov 25 2011, 12:37 am
From: Wael Nasreddine <wael.nasredd...@gmail.com>
Date: Fri, 25 Nov 2011 06:37:36 +0100
Local: Fri, Nov 25 2011 12:37 am
Subject: Re: [Rails-core] Re: Rony 1.9.3-p0 on Rails 2.3.x: the helpers "require" problem
Maybe MonkeyPatch in an initializer? or in config/application.rb just
after loading rails?

--
Wael Nasreddine
Sent from my iPhone

On Nov 25, 2011, at 5:35, Prem Sichanugrist <sikand...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JoeLoui  
View profile  
 More options Nov 25 2011, 7:33 am
From: JoeLoui <joe.escala...@gmail.com>
Date: Fri, 25 Nov 2011 04:33:18 -0800 (PST)
Local: Fri, Nov 25 2011 7:33 am
Subject: Re: Rony 1.9.3-p0 on Rails 2.3.x: the helpers "require" problem
That is a good idea, it doesn't seems too complicated. Like Prem says,
I too don't know if a gem/plugin could go that deep, I'll try the
initializer idea...

On Nov 25, 2:37 am, Wael Nasreddine <wael.nasredd...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gmile  
View profile  
 More options Nov 25 2011, 8:16 am
From: gmile <iamex...@gmail.com>
Date: Fri, 25 Nov 2011 05:16:44 -0800 (PST)
Local: Fri, Nov 25 2011 8:16 am
Subject: Re: [Rails-core] Re: Rony 1.9.3-p0 on Rails 2.3.x: the helpers "require" problem

Any idea of what to put in *config/application.rb*?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wael M. Nasreddine  
View profile  
 More options Nov 25 2011, 8:21 am
From: "Wael M. Nasreddine" <wael.nasredd...@gmail.com>
Date: Fri, 25 Nov 2011 14:21:25 +0100
Local: Fri, Nov 25 2011 8:21 am
Subject: Re: [Rails-core] Re: Rony 1.9.3-p0 on Rails 2.3.x: the helpers "require" problem

What about:

MissingSourceFile::REGEXPS.push([/^cannot load such file -- (.+)$/i, 1])

Just after loading rails!

On Fri, Nov 25, 2011 at 14:16, gmile <iamex...@gmail.com> wrote:
> Any idea of what to put in *config/application.rb*?

> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-core/-/3NCQ45YBRVcJ.

> To post to this group, send email to rubyonrails-core@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-core+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-core?hl=en.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Waźl Nasreddine
TechnoGate www.technogate.fr
mobile :  06.41.68.38.35
agence : 09.70.444.236
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JoeLoui  
View profile  
 More options Nov 25 2011, 8:36 am
From: JoeLoui <joe.escala...@gmail.com>
Date: Fri, 25 Nov 2011 05:36:10 -0800 (PST)
Local: Fri, Nov 25 2011 8:36 am
Subject: Re: Rony 1.9.3-p0 on Rails 2.3.x: the helpers "require" problem
As Wael, I put a initializer (config/initializers) with a single line:
MissingSourceFile::REGEXPS << [/^cannot load such file -- (.+)$/i, 1]
and that's it!

On Nov 25, 10:21 am, "Wael M. Nasreddine" <wael.nasredd...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Edward Anderson  
View profile  
 More options Sep 20 2012, 2:47 pm
From: Edward Anderson <edward.ander...@scimedsolutions.com>
Date: Thu, 20 Sep 2012 11:47:01 -0700 (PDT)
Local: Thurs, Sep 20 2012 2:47 pm
Subject: Re: Rony 1.9.3-p0 on Rails 2.3.x: the helpers "require" problem

Thanks guys, that initializer definitely does the trick. Much appreciated!

Edward


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Geoffrey Raymond  
View profile  
 More options Sep 29 2012, 6:22 am
From: Geoffrey Raymond <grraymond...@gmail.com>
Date: Sat, 29 Sep 2012 03:22:23 -0700 (PDT)
Local: Sat, Sep 29 2012 6:22 am
Subject: Re: Rony 1.9.3-p0 on Rails 2.3.x: the helpers "require" problem

When I run:
rails s

I get this error:
/usr/lib/ruby/gems/1.9.1/gems/activesupport-3.2.7/lib/active_support/depend encies.rb:251:in
`block in require': iconv will be deprecated in the future, use
String#encode instead.
/usr/lib/ruby/gems/1.9.1/gems/activerecord-3.2.7/lib/active_record/dynamic_ matchers.rb:50:in
`method_missing': undefined method `write_inheritable_array' for
#<Class:0x00000003c2c380> (NoMethodError)

I tried your solution I made a file in config/initializers/ with:
MissingSourceFile::REGEXPS.push([/^cannot load such file -- (.+)$/i, 1])

Any help would be very appreciated. I am fairly new so could you explain
steps, please.
Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »