Skip to content

Instantly share code, notes, and snippets.

View aizkhaj's full-sized avatar

Aizaz Khaja aizkhaj

View GitHub Profile
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
@aizkhaj
aizkhaj / bloccit-rails-console-assignment
Created March 17, 2017 07:36
bloccit rails console assignment
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"