<%= link_to 'Main app', main_app.root_path %>
<%= link_to 'Signup', new_user_path %>
<%= link_to 'Login', new_session_path %>
<% if user_signed_in? %>
<%= link_to 'Logout', session_path(current_user), data: {confirm: "Are you sure?" }, method: :delete %>
You're logged in as <%=current_user.name %>
<% end %>