I have this in my view:
<% if user_signed_in? %> <%= current_user.email %> <% else %> <%= link_to \"Sign in\", new_user_session_path %&g
Make sure that you are using the right model. For example if your model is member then you should use member_sign_in instead of user_sign_in.
member_sign_in
user_sign_in