Skip to content

Instantly share code, notes, and snippets.

@jdibiccari
Created July 1, 2014 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdibiccari/d9679453c96e39708931 to your computer and use it in GitHub Desktop.
Save jdibiccari/d9679453c96e39708931 to your computer and use it in GitHub Desktop.
blog_post
#Normal output
pond = Pond.last
#=> #<Pond id: 9, name: "Greenwood", water_type: "Murky", created_at: "2014-06-26 16:32:39", updated_at: "2014-06-26 16:32:39">
#To yaml!
y pond
--- !ruby/object:Pond
attributes:
id: 9
name: Greenwood
water_type: Murky
created_at: 2014-06-26 16:32:39.264121000 Z
updated_at: 2014-06-26 16:32:39.264121000 Z
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment