Here’s the geekiest thing I’ve seen this week (and I love it!) A Rails vs. Java ad, Mac/PC style!
Category > Software development
smart_params: unified id params across your controllers
I am in a situation where I need a single method to perform miscellaneous operations from different controllers. I am using RESTful routes and I ran into the problem where the last ID in the URL has to be accessed by params[:id] instead of params[:controller_id] like the other IDs of the same URL.
In a [...]
Properly colored test results in TextMate
I’ve been using this technique to color my Rails test results for quite some time and I absolutely love it. It really makes it easy to see if a test failed. However, when I ran my tests in TextMate (CMD-R) with colors enabled, I got garbage similar to this: ‘[1m [37m3 [0m [0m [...]

