on every page i have a button in the upper right that is either log in
or log out. this button is pulled into my application.html.erb file by
a partial ( _TopNav).
I have tried a number of different ways to get this button to update
when the session is destroyed, most simply.
<% if session[:user_id]%>
<%= my_logout_button %>
<% else %>
<%= my_login_button %>
<% end %>
the problem here is that i can’t get this part (the partial) to refresh.
i am not to familiar with AJAX, but it seems like i could force this
part of the page (the _TopNav) to refresh from my login or logout