1. Sandbox in console
$ rails c --sandbox
All changes in your db will be reverted after end of the session
2. Retrieving the previous execution value
>> Server.all.pluck(:id)
it return array of Ids
>> ids = _
Define ids like previous result
3. Display method in console
'Luis Vasconcellos'.method(:inquiry).source.display
Comments
Post a Comment