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@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > 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 =============================================================================== -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.