Skip to content

Instantly share code, notes, and snippets.

@slava-vishnyakov
Created February 16, 2013 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slava-vishnyakov/4966944 to your computer and use it in GitHub Desktop.
Save slava-vishnyakov/4966944 to your computer and use it in GitHub Desktop.
Nicer foundation.css layout for Rails 3.2
<!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7 ]><html class="ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title><%= content_for?(:title) ? yield(:title) : "Untitled" %></title>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
<body>
<div class="container">
<div class="row">
<div class="twelve columns">
<% if flash[:error] %>
<div class="alert-box error"><%= flash[:error] %><a class="close">x</a></div>
<% end %>
<%if flash[:notice] %>
<div class="alert-box success"><%= flash[:notice] %><a class="close">x</a></div>
<% end %>
<%if flash[:alert] %>
<div class="alert-box"><%= flash[:alert] %><a class="close">x</a></div>
<% end %>
</div>
<div class="twelve columns">
<%= yield %>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment