you are correct...
I have app/controllers/admin folder with controllers in that admin
folder
trying your suggestion ... I changed
map.namespace :admin do |admin|
to
map.resources :admin, :controller => 'admin/admin' do |admin|
(even though using .namespace is the way it is identified in the
routes.rb file and in other documentation)
I still get
Processing AdminController#roles (for 67.187.255.21 at 2009-01-19
21:17:23) [POST]
instead of
Processing Admin::RolesController#list (for 127.0.0.1 at 2009-01-19
11:21:43) [POST]
as I get with mongrel on my mac...
any more things to try?
On Jan 19, 7:04 pm, "Cody Caughlan" <
tool...@gmail.com> wrote:
> It looks like you are using namespaced controllers, and it appears
> that you have an app/controllers/admin directory with your admin
> controllers, so you should fully specify the the controller in
> routes.rb
>
> map.resources :admin, :controller => 'admin/admin' do |admin|
> admin.resources :states, :collection => {:list => :get}
> ....
> end
>
> And then you should be using just named paths in your views:
>
> link_to("Remote", list_admin_roles_path() )
>
> I dont know why it works in Mongrel and not in Passenger
>
> /Cody
>