Skip to content

Instantly share code, notes, and snippets.

@bryan-ash
Created March 27, 2009 00:59
Show Gist options
  • Save bryan-ash/86479 to your computer and use it in GitHub Desktop.
Save bryan-ash/86479 to your computer and use it in GitHub Desktop.
Basic layout for use with restfull authentication Rails app
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>Test</title>
<%= javascript_include_tag :defaults %>
<%= stylesheet_link_tag 'site' %>
</head>
<body>
<div id="user_bar">
<%= render :partial => "users/user_bar" -%>
</div>
<div id="content">
<% if flash[:error] -%>
<div class="error"><%= flash[:error] -%></div>
<% end -%>
<% if flash[:notice] -%>
<div class="notice"><%= flash[:notice] -%></div>
<% end -%>
<%= yield :layout -%>
<div style="clear: both;">&nbsp;</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment