Displaying 1 result from an estimated 1 matches for "activity_reserv".
2009 Sep 09
0
Rails 2.3.4 ActiveRecord association problem
...ssociations/association_collection.rb: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_associat...