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:
evazion
2019-12-14 15:20:11 -06:00
parent 7f08300f56
commit 48e0569832
10 changed files with 15 additions and 13 deletions

View File

@@ -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>

View File

@@ -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>