Admin rounting

Hello everyone,

I’ve recently switched from CakePHP to rails. In CakePHP there is a
feature called admin routing where your route would look like:


which would map to a method admin_action() in the specified

Is something like this available in Rails as well or would I always
have to create a separate controller?

thanks for your help

You can take a look at namespace Just for an example

map.namespace(:admin) do |admin|
admin.resources :accounts


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs