Thursday, April 12, 2012

[Rails] Strange console output: Rails 3.2.3 + Ruby 1.9.3-p125

I'm getting strange results in the rails console after updating to
ruby 1.9.3-p125.

1.9.3p125 :005 > y User.find(10)
User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id"
= ? LIMIT 1 [["id", 10]]
--- !ruby/object:User
attributes:
!binary "aWQ=": 10
!binary "Zmlyc3RfbmFtZQ==": Jane
!binary "bGFzdF9uYW1l": Doe
!binary "ZW1haWw=": jane.doe@somewhere.com
!binary "Y3JlYXRlZF9hdA==": 2012-04-13 03:07:46.259341000 Z
!binary "dXBkYXRlZF9hdA==": 2012-04-13 03:07:46.259341000 Z
=> nil
1.9.3p125 :006 >

Ruby was installed with RVM and I noticed it updated yaml-0.1.4 at
that time. Maybe an utf-8 encoding issue.

Expected? Known problem? Things to try? Ask the RoR Core group? Log an
issue in github?

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate