Problems with forms and more models

class User < Core
has_and_belongs_to_many :regions

class Region < ActiveRecord::Base
has_and_belongs_to_many :users

I must to do a form with a multiple select to insert more regions for a
i do so:

Marche Veneto

in method called from action from i have this:

If i submit the form i receive an error.
How i can insert rows in table regions_users??

just a thought without testing:

try changing


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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs