login: add /login & /logout routes, rename 'sign in' to 'login'.
* Replace /session/new with /login and /session/sign_out with /logout. * Rename 'sign in' to 'login'. This changes are to make urls cleaner and terminology more consistent.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<menu id="main-menu" class="main">
|
||||
<% if CurrentUser.is_anonymous? %>
|
||||
<%= nav_link_to("Sign in", new_session_path) %>
|
||||
<%= nav_link_to("Login", login_path) %>
|
||||
<% else %>
|
||||
<%= nav_link_to("My Account #{CurrentUser.dmail_count}", profile_path) %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user