Browse Source

Louis | Add sign in / sign out link to header

master
Loos 10 years ago
parent
commit
0c581e775f
  1. 6
      app/views/layouts/_navbar.html.erb

6
app/views/layouts/_navbar.html.erb

@ -13,6 +13,12 @@
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
<li><%= link_to "Bikes", bikes_path %></li> <li><%= link_to "Bikes", bikes_path %></li>
<li><%= link_to "Clients", clients_path %></li> <li><%= link_to "Clients", clients_path %></li>
<li><%= if current_user
link_to "Sign Out", destroy_user_session_path, method: :delete
else
link_to "Sign In", new_user_session_path
end %></li>
</ul> </ul>
</div> </div>
</nav> </nav>

Loading…
Cancel
Save