jacques
2008-Nov-18 02:46 UTC
Rails 2.2rc2: ArgumentError - Anonymous modules have no name to be referenced by...
If you convert your Rails 2.1 app to Rails 2.2RC2, you''ll see this fancy error message as soon as you start script server: --- ArgumentError "Anonymous modules have no name to be referenced by" --- Stack trace will lead you to dependencies.rb:572 Solution: Rename your application.rb to application_controller.rb All will be well after that. Though a friendlier error message would be very nice. I imagine a majority of Rails developers will run into this problem. Hope this helps... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Pratik
2008-Nov-18 04:38 UTC
Re: Rails 2.2rc2: ArgumentError - Anonymous modules have no name to be referenced by...
This SHOULD not happen for 2.2 RC2 because 2.2 already has a separate branch. And renaming application.rb -> application_controller.rb is an edge only change. On Tue, Nov 18, 2008 at 8:16 AM, jacques <jcnetdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > If you convert your Rails 2.1 app to Rails 2.2RC2, you''ll see this > fancy error message as soon as you start script server: > > --- > ArgumentError "Anonymous modules have no name to be referenced by" > --- > > Stack trace will lead you to dependencies.rb:572 > > > Solution: > Rename your application.rb to application_controller.rb > > All will be well after that. Though a friendlier error message would > be very nice. I imagine a majority of Rails developers will run into > this problem. > > Hope this helps... > > >-- Cheers! - Pratik http://m.onkey.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
jacques
2008-Nov-18 05:35 UTC
Re: Rails 2.2rc2: ArgumentError - Anonymous modules have no name to be referenced by...
Ah, ok. My bad. I grabbed trunk instead of RC2 On Nov 17, 8:38 pm, Pratik <pratikn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> This SHOULD not happen for 2.2 RC2 because 2.2 already has a separate > branch. And renaming application.rb -> application_controller.rb is an > edge only change. > > > > On Tue, Nov 18, 2008 at 8:16 AM, jacques <jcnet...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > If you convert your Rails 2.1 app to Rails 2.2RC2, you''ll see this > > fancy error message as soon as you start script server: > > > --- > > ArgumentError "Anonymous modules have no name to be referenced by" > > --- > > > Stack trace will lead you to dependencies.rb:572 > > > Solution: > > Rename your application.rb to application_controller.rb > > > All will be well after that. Though a friendlier error message would > > be very nice. I imagine a majority of Rails developers will run into > > this problem. > > > Hope this helps... > > -- > Cheers! > - Pratikhttp://m.onkey.org--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---