My ActiveRecord might be rusty, but wouldn't the following more appropriate?
@trip = Trip.find(params[:trip_id]) @participant = @trip.participants.build(params[:participant]) or @trip = Trip.find(params[:trip_id]) @participant = @trip.participants.create(params[:participant]) ? - Matt On Wed, Jan 2, 2013 at 4:28 PM, Chris Radcliff <[email protected]>wrote: > @trip = Trip.find(params[:trip_id]) > @participant = @trip.participants.new(params[:participant]) > -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby
