On Oct 9, 12:10 pm, cyrusdev08
<cyrusde...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hello All,
>
> Can anybody suggest me in rails how to keep admin code seperate from
> front end...?
One way is to use namespaced controllers. For example:
script/generate controller Admin::Users
Will automatically give you a route of /admin/users (if you''re using
the default routes) or allow you to specify a route of:
map.namespace :admin do |admin|
admin.resources :users
end
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---