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:
@@ -4,7 +4,7 @@
|
||||
You do not have permission to visit this page.
|
||||
|
||||
<% if CurrentUser.is_anonymous? %>
|
||||
Try <%= link_to "logging in", new_session_path(url: request.fullpath) %> or
|
||||
Try <%= link_to "logging in", login_path(url: request.fullpath) %> or
|
||||
<%= link_to "signing up", new_user_path %>.
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
<ul>
|
||||
<li><h1>Profile</h1></li>
|
||||
<% if CurrentUser.is_anonymous? %>
|
||||
<li><%= link_to "Sign in", new_session_path %></li>
|
||||
<li><%= link_to "Login", login_path %></li>
|
||||
<li><%= link_to "Sign up", new_user_path %></li>
|
||||
<% else %>
|
||||
<li><%= link_to "Profile", profile_path %></li>
|
||||
|
||||
Reference in New Issue
Block a user