Topic: Cool Snippets

The more I work with Rails, the more I find myself appreciating little gold nuggets of code I find on random websites and blogs. In particular I am loving all the metaprogramming you can do in Ruby to DRY up your code considerably.

Why, just today I discovered a way to DRY up my before_filters, which were getting kind of messy and tedious … #comment-2


I also discovered some cool snippets here:

You guys got any buried treasure to share? Post em here!

Last edited by pimpmaster (2007-03-14 18:57:56)