Created
December 3, 2010 12:26
-
-
Save anonymous/726898 to your computer and use it in GitHub Desktop.
users/index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% title "Events" %> | |
<table > | |
<tr> | |
<th><%= sortable "Starts_at" %></th> | |
<th><%= sortable "Finishes" %></th> | |
<th><%= sortable "Event_name" %></th> | |
<th><%= sortable "Tracks" %></th> | |
</tr> | |
<td> | |
<% @user.events.each do |event| %> | |
<tr> | |
<td><%= event.starts_at %></td> | |
<td><%= event.finishes %></td> | |
<td><%= event.event_name %></td> | |
<td><%= event.tracks %></td> | |
</tr> | |
<% end %> | |
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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