Created
March 31, 2018 22:33
-
-
Save LuisPinedaJR/6462b6995c04f17871827603aa9e270d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[4] pry(#<Post>):1> nesting | |
Nesting status: | |
-- | |
0. main (Pry top level) | |
1. #<Post> | |
[5] pry(#<Post>):1> self.title = "my new title" | |
=> "my new title" | |
[6] pry(#<Post>):1> self. body = "My new body" | |
=> "My new body" | |
[7] pry(#<Post>):1> save! | |
(0.1ms) begin transaction | |
SQL (0.6ms) UPDATE "posts" SET "title" = ?, "body" = ?, "updated_at" = ? WHERE "posts"."id" = ? [["title", "my new title"], ["body", "My new body"], ["updated_at", "2018-03-31 22:31:19.494538"], ["id", 1]] | |
(1.7ms) commit transaction | |
=> true | |
[8] pry(#<Post>):1> self | |
=> #<Post:0x007fafb1d2da80 | |
id: 1, | |
title: "my new title", | |
body: "My new body", | |
created_at: Sat, 31 Mar 2018 21:51:02 UTC +00:00, | |
updated_at: Sat, 31 Mar 2018 22:31:19 UTC +00:00> | |
[9] pry(#<Post>):1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment