Forum: Ruby on Rails YAML fails when has_one is null

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
53a1f0aba6f0489d49f5e6fc3df323fa?d=identicon&s=25 Robert James (robertjames)
on 2007-05-29 03:24
(Received via mailing list)
My model has_one :association

If I call model.to_yaml (or y model) in the console, and the
association is nil, I get a yaml error.  Anyone else get this?  Is
this a confirmed bug?
813f535246722b7bf02aacc9ce818de8?d=identicon&s=25 Bob Showalter (Guest)
on 2007-05-29 20:23
(Received via mailing list)
On 5/28/07, S. Robert James <srobertjames@gmail.com> wrote:
>
> My model has_one :association
>
> If I call model.to_yaml (or y model) in the console, and the
> association is nil, I get a yaml error.  Anyone else get this?  Is
> this a confirmed bug?

Yes, looks like a known problem:

http://dev.rubyonrails.org/ticket/8016
This topic is locked and can not be replied to.