search for: payjunction_order

Displaying 1 result from an estimated 1 matches for "payjunction_order".

Did you mean: payjunction_orders
2006 Dec 07
2
Problem saving parent and children using belongs_to, class_name, and foreign_key
...ing done for the PayjunctionOrder, but the inserts for the children fail on this NOT NULL constraint. So for whatever reason, order_id isn''t being set in the children. What''s weird is that it will work just fine (as advertised) by renaming the column "order_id" to "payjunction_order_id" in the line_items table and doing this instead: ---- class LineItem < ActiveRecord::Base belongs_to :payjunction_order ... ------------------ However, this isn''t an optimal solution. So it seems like maybe Rails is ignoring the :class_name and :foreign_key options in be...