diff options
-rw-r--r-- | app/views/layouts/application.html.erb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 92fce3d..071c86b 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -20,7 +20,9 @@ <% end %> </div> <li> - <%= link_to "Sign out", signout_path, method: "delete" %> + <%= if signed_in? do %> + <%= link_to "Sign out", signout_path, method: "delete" %> + <% end; end %> </li> </header> </div> |