No action responded to search
Posted
by gazza58
on Stack Overflow
See other posts from Stack Overflow
or by gazza58
Published on 2010-03-17T04:05:23Z
Indexed on
2010/03/17
4:11 UTC
Read the original article
Hit count: 187
i have defined a method called 'search' in my RecipesController which is not private. in routes.rb i have the following:
map.connect 'recipes/search', :controller => :recipes, :action => :search
i get the following error:
No action responded to search. Actions: ...
where my method 'search' does not appear in the actions list. if i change the method name from 'search' to 'searchthings' and the action in routes to 'searchthings' then this seems to work. what am i missing here?
© Stack Overflow or respective owner