Skip to content

Instantly share code, notes, and snippets.

@mdobson
Created April 7, 2012 02:35
Show Gist options
  • Save mdobson/2324608 to your computer and use it in GitHub Desktop.
Save mdobson/2324608 to your computer and use it in GitHub Desktop.
Before delegates
<% @subjs.each do |subj| %>
<tr>
<th><%= subj.id %></th>
<th><%= subj.identifier %></th>
<th><%= subj.user.email %></th>
<th><%= link_to "Edit Subject", edit_study_example_subject_path(@study,subj) %></th>
<th>
<%= form_for [@study, subj] , :html => {:method => :delete} do |f| %>
<%= f.submit "Delete", :class => "btn btn-info" %>
<% end %>
</th>
<th><%= subj.created_at %></th>
</tr>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment