0
我在我的RecipesController中定义了一个名为'search'的方法,它不是私有的。在routes.rb中,我有以下几点:对搜索没有任何反应
map.connect 'recipes/search', :controller => :recipes, :action => :search
我得到以下错误:
No action responded to search. Actions: ...
在我的方法“搜索”不会出现在操作列表中。如果我将方法名称从'search'更改为'searchthings',并将路由中的动作更改为'searchthings',那么这似乎工作。我在这里错过了什么?