Ruby on rails 设计AbstractController::ActionNotFound
我对这个设计有意见。我的应用程序是新的,仅在以下位置找到标准代码: 一切都是完全相同的,但在我的设计启动后,它将我发送到:ocalhost:3000/users.user,并显示此错误 编辑:Ruby on rails 设计AbstractController::ActionNotFound,ruby-on-rails,devise,Ruby On Rails,Devise,我对这个设计有意见。我的应用程序是新的,仅在以下位置找到标准代码: 一切都是完全相同的,但在我的设计启动后,它将我发送到:ocalhost:3000/users.user,并显示此错误 编辑: 我没有搞乱任何功能。以下是我的rake路线: new_user_session GET /users/sign_in(.:format) {:action=>"new", :controller=>"devise/sessions"} user_sessio
我没有搞乱任何功能。以下是我的rake路线:
new_user_session GET /users/sign_in(.:format) {:action=>"new", :controller=>"devise/sessions"}
user_session POST /users/sign_in(.:format) {:action=>"create", :controller=>"devise/sessions"}
destroy_user_session GET /users/sign_out(.:format) {:action=>"destroy", :controller=>"devise/sessions"}
password POST /users/password(.:format) {:action=>"create", :controller=>"devise/passwords"}
new_password GET /users/password/new(.:format) {:action=>"new", :controller=>"devise/passwords"}
edit_password GET /users/password/edit(.:format) {:action=>"edit", :controller=>"devise/passwords"}
PUT /users/password(.:format) {:action=>"update", :controller=>"devise/passwords"}
registration POST /users(.:format) {:action=>"create", :controller=>"devise/registrations"}
new_registration GET /users/sign_up(.:format) {:action=>"new", :controller=>"devise/registrations"}
edit_registration GET /users/edit(.:format) {:action=>"edit", :controller=>"devise/registrations"}
PUT /users(.:format) {:action=>"update", :controller=>"devise/registrations"}
DELETE /users(.:format) {:action=>"destroy", :controller=>"devise/registrations"}
confirmation POST /users/confirmation(.:format) {:action=>"create", :controller=>"devise/confirmations"}
new_confirmation GET /users/confirmation/new(.:format) {:action=>"new", :controller=>"devise/confirmations"}
GET /users/confirmation(.:format) {:action=>"show",:controller=>"devise/confirmations"}
root / {:controller=>"home", :action=>"index"}
这实际上是Desive gem版本中的问题。因为我使用的是rails 3.1.12,所以我不得不安装几个版本的Desive。运行正常的是1.4.7。未知操作AbstractController::ActionNotFound听起来您有一些路径问题。您是否覆盖了(资源)方法的after\u sign\u path\u?你修改过设计视图了吗?您能否在终端中执行
rake routes
,并向我们展示特定于design的路径对于使用designe的简单Rails应用程序的最新示例,这里是RailsApps项目中的示例应用程序。我还写了一篇可能会有帮助的文章。我没有搞乱任何函数。这是我的耙子路线:@DanielKehoe谢谢你,但我更愿意正面处理这个问题,这样我就可以找到问题的根源。