Skip to content

Instantly share code, notes, and snippets.

@thomasv314
Created June 23, 2011 14:56
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 thomasv314/1042682 to your computer and use it in GitHub Desktop.
Save thomasv314/1042682 to your computer and use it in GitHub Desktop.
Description of a Rails 3 View file
<!DOCTYPE html>
<html>
<head>
<title><%= title %></title>
<%= stylesheet_link_tag :all %>
<link href="http://fonts.googleapis.com/css?family=Cantarell:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css" >
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<%= javascript_include_tag :defaults %>
<%= csrf_meta_tag %>
</head>
<body>
<div id="wrapper">
<div class="header">
<h1>Arthur Murray Promotions</h1>
<ul class="tabs">
<% if user_signed_in? %>
<li><%= link_to "My Studios", studios_path %></li>
<li><%= link_to "My Leads", leads_path %></li>
<li><%= link_to "My Profile", edit_user_registration_path %></li>
<li><%= link_to "Sign Out", destroy_user_session_path %></li>
<% else %>
<li><%= link_to "Sign Up", new_user_registration_path %></li>
<li><%= link_to "Log In", new_user_session_path %></li>
<% end %>
</ul>
</div>
<div class="header-sub">
<h1><%= sub_header %> </h1>
</div>
<div class="body">
<% if flash[:notice] %>
<div class="notification"><%= flash[:notice] %></div>
<% end %>
<% if flash[:error] %>
<div class="error"><%= flash[:error] %></div>
<% end %>
<%= yield %>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment