Skip to content

Commit 130f6db

Browse files
committed
Fixes validation to show Logout button just if the user is signed in.
1 parent bd4cc7e commit 130f6db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/views/layouts/application.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222
<%= link_to('New Achievement', new_achievement_path, :class => 'nav-link') %>
2323
</li>
2424
</ul>
25-
25+
<% if user_signed_in? %>
2626
<ul class="nav navbar-nav navbar-right">
2727
<li class="nav-item">
2828
<%= link_to('Logout', destroy_user_session_path, :method => 'delete', :class => 'nav-link') %>
2929
</li>
3030
</ul>
31+
<% end %>
3132
</div>
3233
</nav>
3334

0 commit comments

Comments
 (0)