On Mon, Jun 20, 2011 at 10:06 PM, amritpal pathak <[email protected]
> wrote:

>
>
> On Mon, Jun 20, 2011 at 1:23 PM, Tom Meinlschmidt 
> <[email protected]>wrote:
>
>> I said...
>>
>> if you have posts_controller in /app/controllers/admin/posts_controller.rb
>>
>> then you MUST have this namespace in your class name
>>
>> class PostsController < ApplicationController <- WRONG
>>
>      ok
>
>>
>> class Admin::PostsController < ApplicationController <- RIGHT
>>   done..:)
>>
>> and in your routes.rb (for rails3) have
>>
>> namespace :admin do
>>        resources :posts
>> end
>>
>       done.....:)
>          still "localhost:3000/admin/posts" gives the error
>          Routing Error
>
>
           awaiting   your reply sir
     thanks

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

Reply via email to