-
rails console --sandbox
enter console in sandbox mode -
_
for the value of last expression -
app
access to routes and http methods -
helper
access to view helpers -
reload!
to reload changes made in console -
Post.instance_method(:destroy).source_location
to find where is defined