Re: uninitialized constant ApplicationController

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

Yes. Create a new directory "admin" under app/views and move
"posts"
directory into that one.


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

>
>
> On Tue, Jun 21, 2011 at 7:06 AM, Chirag Singhal
<chirag.singhal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:
>
>> 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
>>   thanks sir .Thats error is solved but another one came w hen i browse
to
>> "localhost:3000/admin/posts".
>>
>
>
> Template is missing
>
> Missing template admin/posts/index with {:handlers=>[:rhtml, :rxml,
:erb,
> :builder, :rjs], :formats=>[:html], :locale=>[:en, :en]} in view
paths
> "/home/amrit/check/app/views"
>
> The index.html.erb file exist already in /app/view/posts/index.html.erb.
>
> should i make a new directory in /app/views and  move the "posts"
directory
> inside it same as namespacing in controller??
>
> Thank you very much for support.
>
> amritpalpatakgne.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.
>



--
Chirag