Re: uninitialized constant ApplicationController

amritpal pathak
2011-06-21T13:34:35Z

On Tue, Jun 21, 2011 at 9:21 AM, Colin Law
<clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:

> On 21 June 2011 14:16, amritpal pathak
<amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> >
> > On Tue, Jun 21, 2011 at 9:09 AM, Chirag Singhal <
> chirag.singhal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> > wrote:
> >>
> >> Can you paste the code from your routes file here?
> >>
> >> Check::Application.routes.draw do
> >>  # get "gne/clg"
> >>   get "posts/index"
> >> #resources :posts, :module => "admin"
> >> namespace "admin" do
> >> resources :posts ,:collection =>{:click => :post}
> >> end
> >>  #working right
> >> #resources :posts do
> >> #end
> >> #working right
> >> root :to => "posts#click"
> >> root :to => "posts#work"
>
> Can you explain what these two routes are doing?

        These 2 routes were for "Great" and "click me"
buttton before using
namespacing.

 should the changes be in these 2 routes for namespacing rather than as:

 namespace "admin" do
resources :posts ,:collection =>{:click => :post}
end

thanks

amritpalpathakgne.wordpress.com