[Locomotive-users] Re: Error with Rails 1.2

Nathan Herald myobie at mac.com
Tue Jan 23 04:56:49 GMT 2007


On 2007-01-19 16:47:55 -0500, Richard Sandilands 
<richard at infoarts.info> said:

> Hi there I've just upgraded to the new Standard Rails 1.2 Bundle and  
> have changed environment.rb to RAILS_GEM_VERSION = '1.2.1' .
> 
> But when I run script/console for my app, I get this error in the  console:
> 
> /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/ 
> i386/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/ 
> dependencies.rb:377:in `new_constants_in':NoMethodError: You have a  
> nil object when you didn't expect it!
> You might have expected an instance of Array.
> The error occurred while evaluating nil.empty?
> 
> So, this is referring to a line in the Rails code, not my app. I'm  
> clueless as to how to proceed. Any clues would be appreciated.

I have the same error and have narrowed it down to my ActsAsAttachment plugin.

I just tried installing the newest version and it seems to have fixed 
the errors. I am not sure immediately what the reprecussions for this 
change is. I do know that there were some differnces with the 1.1 and 
1.2 versions of the AAA plugin.

I hope this helps.



Nathan Herald





More information about the Locomotive-users mailing list