Skip to content

Instantly share code, notes, and snippets.

@andrewhl
Created November 1, 2011 20:54
Show Gist options
  • Save andrewhl/1331871 to your computer and use it in GitHub Desktop.
Save andrewhl/1331871 to your computer and use it in GitHub Desktop.
<li>
<%= gravatar_for user, :size => 30 %>
<%= link_to user.name, user %>
<% if current_user.admin? %>
|
<%= button_to "delete", { :action => "destroy", :id => user.id },
:confirm => "Are you sure?", :method => :delete %>
<% end %>
</li>
<!DOCTYPE html>
<html>
<head>
<title><%= title %></title>
<%= render 'layouts/stylesheets' %>
<%= javascript_include_tag :defaults %>
<%= csrf_meta_tag %>
</head>
<body>
<div class="container">
<%= render 'layouts/header' %>
<section class="round">
<% flash.each do |key, value| %>
<%= content_tag(:div, value, :class => "flash #{key}") %>
<% end %>
<%= yield %>
</section>
<%= 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