Hello All,
Can anybody suggest me in rails how to keep admin code seperate from
front end…?
Hello All,
Can anybody suggest me in rails how to keep admin code seperate from
front end…?
On Oct 9, 12:10 pm, cyrusdev08 [email protected] 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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs