Skip to content

Instantly share code, notes, and snippets.

@baileylo
Created October 6, 2010 08:33
Show Gist options
  • Save baileylo/613021 to your computer and use it in GitHub Desktop.
Save baileylo/613021 to your computer and use it in GitHub Desktop.
<h1>Listing users</h1>
<p id="notice"><%= notice %></p>
<table>
<tr>
<th>Username</th>
<th>Email</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @users.each do |user| %>
<tr>
<td><%= user.username %></td>
<td><%= user.email %></td>
<td><%= link_to 'Show', user %></td>
<td><%= link_to 'Edit', edit_user_path(user) %></td>
<td><%= link_to 'Destroy', user, :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New User', new_user_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment