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.
source
share