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:

/admin/controller/action/

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

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

thanks for your help
Marc

You can take a look at namespace Just for an example

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

Sijo