Create a gist now

Instantly share code, notes, and snippets.

anonymous /_user.html.erb
Created Dec 3, 2010

What would you like to do?
<% title "Events" %>
<table >
<th><%= sortable "Starts_at" %></th>
<th><%= sortable "Finishes" %></th>
<th><%= sortable "Event_name" %></th>
<th><%= sortable "Tracks" %></th>
<% do |event| %>
<td><%= event.starts_at %></td>
<td><%= event.finishes %></td>
<td><%= event.event_name %></td>
<td><%= event.tracks %></td>
<% end %>
<h1>Listing events</h1>
<%= render :partial => "user", :collection => @users %>
<br />
<%= link_to 'New Event', new_event_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment