Skip to content

Instantly share code, notes, and snippets.

@keeperofthenecklace
Created August 18, 2012 18:19
Show Gist options
  • Select an option

  • Save keeperofthenecklace/3388820 to your computer and use it in GitHub Desktop.

Select an option

Save keeperofthenecklace/3388820 to your computer and use it in GitHub Desktop.
app/views/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title><%= full_title(yield(:title)) %> - Work In Progress</title>
<%= stylesheet_link_tag "application", media: "all" %>
<%= javascript_include_tag "application"%>
<%= csrf_meta_tags %>
<%= render 'layouts/shim' %>
</head>
<body>
<%= render 'layouts/header' %>
<div class="container">
<% flash.each do |key, value| %>
<%= content_tag(:div, value, class: "alert alert-#{key}") %>
<% end %>
<%= yield %>
<%= render 'layouts/footer' %>
<%= debug(params) if Rails.env.development? %>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment