I always use the command '_', it returns the latest object from the console.
For instance sometime I might tweak an ActiveRecord query until i gets the result i am looking for then iwould just store it in a variable by doing test = _
Users.joins(:posts).where(post_id: XXX)
users = _
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I always use the command '_', it returns the latest object from the console.
For instance sometime I might tweak an ActiveRecord query until i gets the result i am looking for then iwould just store it in a variable by doing test = _
Users.joins(:posts).where(post_id: XXX)
users = _