Could not find table ‘groups_users’
<% for group in @groups %>
<%= check_box_tag "user[group_ids][]", group.id, @user.groups.include?(group) %>
<%= group.description %>
<% end %>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When using a habtm relationship, you need to create the join table. This is a simple table which stores the relationship by referring to each table via foreign key.
Note that the above is for rails 3.1, as it uses the change method. Change to down and up respectively when using rails 3 or lower.
After running the migration, it should work.