Come up with: NoMethod Error & user_signed_in

Am I trying to use user_signed_in? to add a login area to my rails 3 application using utility 1.1.3 and I get NoMethodErrorin Rules # index

<% if user_signed_in? -%>
<div id="user_login_box" style="float:right">
  <%= current_user.email %> |
  <%= link_to 'My info', edit_user_registration_path %> |
  <%= link_to 'Sign out', destroy_user_session_path %>
</div>
<% end -%>

I am not sure what is wrong, but it is clear that the development method is not used. I am also a pretty (read: really) newbie on rails and haven't used it before.

+1
source share
4 answers

It seems that you are missing a call devise :database_authenticatablein your model User.

Also, a good way to get started with development is to look at the great RailsCasts by Ryan Bates: Design Presentation .

+1
source

.   undefined local variable or method 'edit_user_registration_path'

devise :database_authenticatable, :registerable. :registerable !

+3

, , , main_app.edit_user_registration_path.

+1