<%= stylesheet_link_tag "application", :media => "all" %> <%= javascript_include_tag "application", '//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js', 'https://raw.github.com/rails/jquery-ujs/master/src/rails.js' %> <%= csrf_meta_tags %>
<% if logged_in? %> Hi <%= current_user.name %>. <%= button_to 'Log out', main_app.session_path, method: 'delete' %> <% else %> <%= link_to "Log in", main_app.new_session_path %> <% end %>
<%= yield %>