On Jan 27, 2011, at 8:28 PM, bob wrote: > It seems to me like you ought to be able to call .to_yaml on a > activerecord object and then use YAML.load to reconstitute it. > > I'm trying to figure out if something is wrong with my ruby / rails > installation or if this is something that everyone experiences. > > Can anyone else verify that after creating a simple new rails project > and model, an instance of the model cannot make a round trip to_yaml > and back?
Confirmed. Rails 3.0.3. Same error you get. > > > On Jan 27, 9:11 pm, Marnen Laibow-Koser <li...@ruby-forum.com> wrote: >> Frederick Cheung wrote in post #978021: >> [...] >> >>> I seem to recall that >>> historically, although method_missing etc was overriden to add dynamic >>> methods, respond_to wasn't, which didn't make AR a very good citizen, >>> which may be why this works with projects using old versions of rails >> >> How is that possible? respond_to? shouldn't need to be overridden to >> take method_missing into account, should it? >> >> >> >>> Fred >> >> Best, >> -- >> Marnen Laibow-Koserhttp://www.marnen.org >> mar...@marnen.org >> >> Sent from my iPhone >> >> -- >> Posted viahttp://www.ruby-forum.com/. > > -- > 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 rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.