Displaying 1 result from an estimated 1 matches for "senator_committee".
2007 Jul 17
5
habtm confusion
...e
validates_presence_of :name
has_and_belongs_to_many :senators #, :dependent => :nullify
#has_one :head, :class_name => "Senator" #, :dependent => :nullify
end
--
Same as before on the comments.
Also, for my view I am trying the following:
--
<p><label for="senator_committee">Committee</label><br/>
<%= select(:senator, :committees,
Committee.find(:all).map {|c| [c.name, c.id]},
{:include_blank => true}, {:multiple => true}) %>
</p>
--
On the view I get the following error:
ActiveRecord::StatementInvalid
and the trace:...