Last Updated: February 25, 2016
·
753
· 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