Re: uninitialized constant ApplicationController

Chirag Singhal
2011-06-21T11:06:00Z

That''s the problem. Don''t move application_controller.rb file
It should always be under app/controllers folder not in the namespaced
folder.
Move it back and your error should go away


On Tue, Jun 21, 2011 at 4:28 PM, amritpal pathak
<amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:

>
>
> On Tue, Jun 21, 2011 at 4:26 AM, Chirag Singhal
<chirag.singhal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:
>
>> Hi Amrit,
>>
>> Are you by any chance migrating this project from Rails 2.x to 3.x?
>> If yes, you may have the application controller in old format.
>>
>> Can you check and verify if you have a file
>> app/controllers/application_controller.rb?
>> If you don''t have that, then you might have
>> app/controllers/application.rb, in that case you will need to rename it
to
>> application_controller.rb
>>
>> sir this file was in app/controller/application_controller.rb before
using
>> namespacing.Now i hadcopied it to app/view/admin  along with
>> posts_controller.rb
>>
>
>     i am unable to guess reason for error..:)
>
>    thanks
>    amritpalpathakgne.wordpress.com
>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.