Displaying 1 result from an estimated 1 matches for "activityreservation".
Did you mean:
activity_reservations
2009 Sep 09
0
Rails 2.3.4 ActiveRecord association problem
...:119:in `<<''
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/
associations/association_collection.rb:433:in
`add_record_to_target_with_callbacks''
My code (in snippets):
class Trip < ActiveRecord::Base
has_many :activity_reservations
end
class ActivityReservation < ActiveRecord::Base
belongs_to :trip
end
trip.activity_reservations << ActivityReservation.new
The has_many_associations code referenced:
def insert_record(record, force = false, validate = true)
set_belongs_to_association_for(record)
force ? record....