Skip to content
Browse files

fix broken users in group form

  • Loading branch information...
1 parent 4c3afb3 commit 94ea94338ab0ea84c03baad7dfa308b2eb1aa19b @blahed committed
Showing with 2 additions and 4 deletions.
  1. +2 −3 app/views/admin/groups/_form.html.erb
  2. +0 −1 app/views/admin/users/_form.html.erb
View
5 app/views/admin/groups/_form.html.erb
@@ -5,11 +5,10 @@
<fieldset>
<legend>Users <small>&mdash; <%= link_to 'new user', new_admin_user_path %></small></legend>
- <br />
- <%= hidden_field_tag "user[user_ids][]", nil%>
+ <%= hidden_field_tag "group[user_ids][]", nil%>
<% @users.each do |user| %>
<label class="checkbox inline">
- <%= check_box_tag 'user[user_ids][]', user.id, @group.users.include?(user) %>
+ <%= check_box_tag 'group[user_ids][]', user.id, @group.users.include?(user) %>
<%= user.username %>
</label>
<% end %>
View
1 app/views/admin/users/_form.html.erb
@@ -12,7 +12,6 @@
<fieldset>
<legend>Groups <small>&mdash; <%= link_to 'new group', new_admin_group_path %></small></legend>
- <br />
<%= hidden_field_tag "user[group_ids][]", nil%>
<% @groups.each do |group| %>
<label class="checkbox inline">

0 comments on commit 94ea943

Please sign in to comment.
Something went wrong with that request. Please try again.