Hi there,

I'm working on a project which uses an admin subdirectory.
So I created an admin controller and every controller in my admin
subdirectory looks like this :
class Admin::FooController << AdminController

I added to my route.rb :

map.namespace :admin do |admin|
    admin.resources :foos
end

and

map.connect 'admin/:controller/:action/:id'

So when I go to the index/show/edit pages it works well, but I have a
form which goes to the search method, but when I press submit, I have
this :

Processing AdminController#foo (for 127.0.0.1 at 2009-08-04 12:30:38)
[POST]

instead of this FooController#search

and I get this error:

Unknown action

No action responded to observations. Actions:

Do you have any idea?
Thank you by advance.

-Yoann
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to