Skip to content

Instantly share code, notes, and snippets.

@jlebrech
Created March 16, 2012 17:19
Show Gist options
  • Save jlebrech/2051236 to your computer and use it in GitHub Desktop.
Save jlebrech/2051236 to your computer and use it in GitHub Desktop.
Form just displays blank
<% form_for edit_multiple_game_flags_path(params[:game_id],@flags) do %>
<table class="accordion">
<thead>
<tr>
<th>Select</th>
<th>Player</th>
</tr>
</thead>
<tbody>
<% @flags.each do |f| %>
<tr>
<td>td><%= check_box_tag "reportee_ids[]", f.player_id %></td>
<td><%= f.player_id %></td>
</tr>
<% end %>
</tbody>
</table><!-- accordion -->
<% end %>
resources :flags, :member do # don't think i need :member
post :add
get :remove
get :index
get :edit_multiple, :on => :collection
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment