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
Here's what using psql on a newly created db called library with the following SQL statement returns: | |
library=# SELECT * FROM books; | |
id | title | author | |
------+------------------------------------------+--------------------- | |
1259 | Eloquent Ruby | Russell A. Olson | |
1593 | JavaScript: The Good Parts | Douglas Crockford | |
8982 | Designing Object-Oriented Software | Rebecca Wirfs-Brock | |
7265 | Practical Object-Oriented Design in Ruby | Sandi Metz |
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" |