Created
March 16, 2012 17:19
-
-
Save jlebrech/2051236 to your computer and use it in GitHub Desktop.
Form just displays blank
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
<% 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 %> |
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
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