01 Apr '13, 7am

just discovered the squish method on #rails strings: easily remove whitespaces, new lines, tabs and the like

removing all whitespace on both ends of the string, and then changing remaining consecutive whitespace groups into one space each.

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

Tweets

What’s New in Edge Rails #63: Week of March 25 ...

afreshcup.com 01 Apr '13, 12pm

is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the univer...

Rails date method distance_of_time_in_words

api.rubyonrails.org 31 Mar '13, 2pm

:use_month_numbers - Set to true if you want to use month numbers rather than month names (e.g. "2" instead of "February")...