Problems with forms and more models

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:

Marche Veneto

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

just a thought without testing:

try changing

to

On Dec 24, 10:54 am, Luca R. [email protected]