rails – Devise – Handling – devise_error_messages

I’m trying to figure this out myself. I just found this issue logged on Github https://github.com/plataformatec/devise/issues/issue/504/#comment_574788 Jose is saying that devise_error_messsages! method is just a stub (though it contains implementation) and that we’re supposed to override/replace it. It would have been nice if this was pointed out somewhere in the wiki, which is why i … Read more

No route matches “/users/sign_out” devise rails 3

I think the route for signing out is a DELETE method. This means that your sign out link needs to look like this: <%= link_to “Sign out”, destroy_user_session_path, :method => :delete %> Yours doesn’t include the :method => :delete part. Also, please note that for this to work you must also include <%= javascript_include_tag :defaults … Read more

Override devise registrations controller

In your form are you passing in any other attributes, via mass assignment that don’t belong to your user model, or any of the nested models? If so, I believe the ActiveRecord::UnknownAttributeError is triggered in this instance. Otherwise, I think you can just create your own controller, by generating something like this: # app/controllers/registrations_controller.rb class … Read more