Skip to content

Instantly share code, notes, and snippets.

@jonmanes
jonmanes / bloccit-rails-console-assignment
Created October 24, 2016 01:44
bloccit-rails-console-assignment
[3] pry(main)> post = Post.first
Post Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC LIMIT 1
=> #<Post:0x007fadd3e56c98
id: 1,
title: "First Post",
body: "This is the first post in our system",
created_at: Mon, 24 Oct 2016 01:17:15 UTC +00:00,
updated_at: Mon, 24 Oct 2016 01:17:15 UTC +00:00>
[4] pry(main)> p post
#<Post id: 1, title: "First Post", body: "This is the first post in our system", created_at: "2016-10-24 01:17:15", updated_at: "2016-10-24 01:17:15">