A popular ruby idiom I keep stumbling upon is def do_some_thing_for(values) values = Array(values)
When submitting textareas, browsers sometimes include carriage returns (\r) instead of just line feeds (\n) at the end of each...
This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...
You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...
This may be awkward to set up, but will work once you're done. Fun facts:
sudo gem install gettext --no-ri --no-rdoc sudo gem install fast_gettext --no-ri --no-rdoc script/plugin install git://...
To run a single test file: rake test:units TEST=test/unit/post_test.rb rake test:functionals TEST=test/functional/posts_controller_test.rb rake test:integration TEST...
In order to find out whether I'm having a problem with link rot, I wrote a script that goes...
We didn’t want to leave front-end developers in the dark when their Javascript throws errors, so we’ve...