Re: uninitialized constant ApplicationController

Tom Meinlschmidt
2011-06-20T16:48:53Z

show us the source of one controller at least

there should be in app/controllers/admin/posts_controller.rb

class Admin::PostController < ApplicationController
end

tom

On Jun 20, 2011, at 18:41 , amritpal pathak wrote:

> i am following the routing guides (2.6) on rails 3.According to it, i
combined the 2 controller under namespace "admin"  but
couldn''t success to make it work.Before doing so everything was working
at "localhost:3000/posts".
> I just made a new directory "admin" in  /app/controller/admin and
then added 2 controller name "posts_controller.rb" and
"gne_controller.rb" inside it.
>  but when i browsed to "localhost:3000/admin/posts" ,it gave
error
>
> uninitialized constant ApplicationController
> please help to solve it and understand..:)
> 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.

--
==============================================================================Tomas
Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache

www.meinlschmidt.com  www.maxwellrender.cz  www.lightgems.cz
==============================================================================