Skip to content

Commit

Permalink
#60 - Change button to link.
Browse files Browse the repository at this point in the history
Changing the Sign In button to a link so that a GET request is created as opposed to a POST.  This prevents an error on loading the sign in page for the first time.
  • Loading branch information
exegeteio committed Oct 4, 2021
1 parent c85223e commit d815a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/_navigation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</div>
<% else %>
<div class="navbar-item">
<%= button_to "Sign In", new_user_session_path, class: "button #{alert_color} is-inverted is-outlined" %>
<%= link_to "Sign In", new_user_session_path, class: "button #{alert_color} is-inverted is-outlined" %>
</div>
<% end %>
<% if notice || alert %>
Expand Down

0 comments on commit d815a42

Please sign in to comment.