class User < Core
has_and_belongs_to_many :regions
end
class Region < ActiveRecord::Base
has_and_belongs_to_many :users
end
I must to do a form with a multiple select to insert more regions for a
user.
i do so:
in method called from action from i have this:
@user=User.create(params[:user])
If i submit the form i receive an error.
How i can insert rows in table regions_users??
Thanks