rails s
tail -f log/development.log
rails c
rails dbconsole # starts the DB console
_ represents the last value returned from rails console and you can assign it to a variable for further usage:
var = _
- The command ls returns the list of methods from the variable
- Note that this is availabe only from the gem pry
ls var
- Returns all methods of var less the methods of 1 (object methods)
- 1 is an object and it represents the common methods of all objects
- So removing it will enable us to examine the additional methods of
<var>.methods.sort - 1.methods