diff options
author | DavisLWebb <davislwebb@ymail.com> | 2014-03-03 12:22:57 -0500 |
---|---|---|
committer | DavisLWebb <davislwebb@ymail.com> | 2014-03-03 12:22:57 -0500 |
commit | d6cd8be7b4b5453e93faf11858c3e888f23a8ed9 (patch) | |
tree | 031b3216d2be62e36d143e822a387998f7b038e6 /app/views | |
parent | 399543c7ad0577afa2c840b1e39e368acfcb0076 (diff) |
I HAVE THE WEBSITE RENDER THE USER'S USER NAME
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/application.html.erb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 8a81c0a..469f024 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -18,9 +18,16 @@ <%= submit_tag("Go", {:class => "btn btn-warning"}) %> <% end %> </div> + <li> + <%= link_to "Sign out", signout_path, method: "delete" %> + </li> </header> </div> + <% if signed_in? %> + <li> <%= current_user.user_name %> </li> + <% end %> + <div class="container"> <%= yield %> </div> |