Skip to content

Instantly share code, notes, and snippets.

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