hi, i have a event model that has_and_belongs_to_many artists
class Event < ActiveRecord::Base
has_and_belongs_to_many :humans, :foreign_key => 'event_id', :association_foreign_key => 'human_id'
end
in the form for the event inserting, i put an hidden field for the artists ids:
<%= event_form.text_field :artist_ids %>
If i inserted manually the value "8,9,10" (ids associated to 2 rows of humans) and i submit the form, in the controller i obtain only 8.
Why?
How can i do?
thanks