Last Updated: February 25, 2016
·
195
· iamnan

Put that into a var, please....

Has this ever happened? You type a long query into the rails console and then realize, "Damn, I wish I assigned that to something."

Here ya go:

x=_

The underscore is the result of the last command, so even after you hit enter, you still have a chance to assign it to something.