- Published
- Author
- Soniya Rayabagi
The underscore ( _ ) in Rails ,
simply gives you the return value of the last evaluation made in the console.
simply gives you the return value of the last evaluation made in the console.
irb(main):015> movie.title=> "Avengers: Endgame"irb(main):016> _=> "Avengers: Endgame"