Skip to content

Instantly share code, notes, and snippets.

@rocodev-tech
Created July 7, 2014 07:46
Show Gist options
  • Save rocodev-tech/c71ddd9f32837acf1997 to your computer and use it in GitHub Desktop.
Save rocodev-tech/c71ddd9f32837acf1997 to your computer and use it in GitHub Desktop.
artstore / app / views / layouts / application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Artstore</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<% if !current_user %>
<%= link_to("登入", new_user_session_path) %>
<% else %>
<%= link_to("登出", destroy_user_session_path, :method => :delete ) %>
<% end %>
<%= yield %>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment