Last Updated: February 25, 2016
·
750
· sameera207

rails 'squish'

%{ Multi-line
   string }.squish                   # => "Multi-line string"
" foo   bar    \n   \t   boo".squish # => "foo bar boo"

http://apidock.com/rails/String/squish