设计AbstractController :: ActionNotFound

时间:2014-06-28 14:11:44

标签: ruby-on-rails devise

我对Devise有疑问。我的应用程序是新的,只有标准代码:http://railscasts.com/episodes/209-introducing-devise?view=asciicast

一切都完全一样,但在我的设计完成之后,它会将我发送到:ocalhost:3000 / users.user,显示此错误。

编辑:

我没有乱用任何功能。这是我的佣金路线:

   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"}

1 个答案:

答案 0 :(得分:0)

这在设计宝石版本中确实存在问题。由于我使用rails 3.1.12,我不得不安装几个版本的devise。工作的是1.4.7。