Created
March 17, 2017 07:36
-
-
Save aizkhaj/f3a7668fd2df5e3d7ad81581412fccb2 to your computer and use it in GitHub Desktop.
bloccit rails console assignment
This file contains hidden or 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
Nesting status: | |
-- | |
0. main (Pry top level) | |
1. #<Post> | |
pry(#<Post>):1> self.to_s | |
=> "#<Post:0x007fa4a27b05b8>" | |
pry(#<Post>):1> self.title = 'some new title' | |
=> "some new title" | |
pry(#<Post>):1> self.body = 'some new body' | |
=> "some new body" | |
pry(#<Post>):1> self.changes | |
=> {"title"=>["First Post", "some new title"], "body"=>["This is the first post in our system.", "some new body"]} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment