On May 24, 11:08 pm, Alexander <info.stanko...@gmail.com> wrote:
> In the view form of user > > - for user in User.all > = check_box_tag 'role[user_ids][]', user.id, @role.users.include? > (user) > =h user.name > > When I create a new user, nothing happens, the array of user_ids is > empty Those checkboxes will result in params['role[user_ids]'] being set to an array of user ids - What does your controller code look like? If it's just a classic User.create params[:user] that clearly isn't being used at all Fred > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.