At the point

If I stop in the debugger at
  self.buyer_id = self.buyer.id # Won't work without this line, seems
un-DRY or worse

Then...
  self.buyer has a valid :id
  self.buyer_id is nil

On Jan 7, 12:34 pm, Frederick Cheung <[email protected]>
wrote:
> On Jan 7, 4:04 pm, IAmNan <[email protected]> wrote:
>
> > ordered_by is the email address on the order#form. You'll notice buyer
> > shares the table with user. To head off questions about
> > find_or_create_by, I have other things do to the new user where you
> > see snip, and it also results in the user being created but the
> > buyer_id is not set.
>
> What's the value of self.buyer_id before you force it ?
>
> Fred

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to