We came up with a nice issue at work last week, we needed / to be a resource. Unfortunately, you can’t really do that easily, and when you use the :as option, well, it doesn’t really work Me and Alexis came up with the “Awesome patch” : # Awesome Patch # This enables the ‘/’ [...]
Posts Tagged ‘ruby on rails’
Snippet of the Day: 11/17/08
Posted in Snippet of the Day, tagged ruby, ruby on rails, work on November 17, 2008 | 1 Comment »
Snippet of the Day: 11/07/08
Posted in Snippet of the Day, tagged ruby, ruby on rails on November 8, 2008 | Leave a Comment »
Maybe you would like to exit your IRB elegantly once in a while. I’ve got the perfect solution: def elegant_quit eval(['e', 'x', 'i', 't'].join) end In a nice IRB, the result is perfect clabesse@barney:~ clabesse$ irb >> def elegant_quit >> eval(['e', 'x', 'i', 't'].join) >> end => nil >> elegant_quit clabesse@barney:~ clabesse$ Simply Brilliant.
Snippet of the Day: 11/06/08
Posted in Snippet of the Day, tagged ruby, ruby on rails on November 6, 2008 | 1 Comment »
I’ve been dreaming about this topic for ages and never made it. Well here it is, the Snippet of the Day ! Each day (or I hope), I’ll be giving out a bit of code just for fun, or for real interesting work stuff … I’m waiting for your comments Alexis ! We [...]