Routes for namespace'd controller

hi all,

I have error while trying access to /admin/management/db_management

Unknown action

The action ‘show’ could not be found for Admin::ManagementController

here is configuration which i have

management_controller.rb
class Admin::ManagementController < ApplicationController
def index
redirect_to :action => :db_management
end

def db_management
# …
end
end

routes.rb
namespace :admin do
resources :management
end

routes
admin_management_index GET /admin/management(.:format)
{:action=>“index”, :controller=>“admin/management”}
POST /admin/management(.:format)
{:action=>“create”, :controller=>“admin/management”}
new_admin_management GET /admin/management/new(.:format)
{:action=>“new”, :controller=>“admin/management”}
edit_admin_management GET /admin/management/:id/edit(.:format)
{:action=>“edit”, :controller=>“admin/management”}
admin_management GET /admin/management/:id(.:format)
{:action=>“show”, :controller=>“admin/management”}
PUT /admin/management/:id(.:format)
{:action=>“update”, :controller=>“admin/management”}
DELETE /admin/management/:id(.:format)
{:action=>“destroy”, :controller=>“admin/management”}

i think i have to have match, but i could not figure this out.

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