Skip to content

Instantly share code, notes, and snippets.

@gkop
Created May 23, 2012 02:23
Show Gist options
  • Save gkop/2772879 to your computer and use it in GitHub Desktop.
Save gkop/2772879 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title><%= content_for?(:title) ? yield(:title) : "Untitled" %></title>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tag %>
<%= yield(:head) %>
</head>
<body>
<div id="container">
<% flash.each do |name, msg| %>
<%= content_tag :div, msg, :id => "flash_#{name}" %>
<% end %>
<%= content_tag :h1, yield(:title) if content_for(:title) %>
<%= yield %>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment