This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...
Our gem Mail Magnet allows you to override e-mail recipients in ActionMailer so all mails go to a given...
This might eventually be fixed by Rails itself.\ Right now this is the way to have the rails_xss plugin...
One option is to use partials. Or you can set the @template field to the name of another action:
When working with times and dates in Rails applications, you need to deal with the following problem: In Rails, Time...
Spreewald has steps that let you test that e-mails have been sent, using arbitrary conditions in any combination.
popthis is awesome when used with inaction_mailer. Setup inaction_mailer Install the gem: sudo gem install popthis
YARD 0.6 adds the ability to serve documentation for gems as well as the current project with yard server. Just...
An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...
This will tunnel HTTP requests to one given domain and port through an intermediary SSH server: ssh -L 8080:targethost...
Ubuntu lets you mount an SSH shell into Nautilus from Places -> Connect to server (select "SSH" as server type).
In a nutshell: to avoid your shell character set from messing with imports, use -r to export and SOURCE when...
When a Cucumber feature leaves your page through an external Link, Webrat has problems like "Could not find field: "E...
This may be awkward to set up, but will work once you're done. Fun facts:
Unless all MySQL server defaults are set to UTF-8, mysqldump encodes UTF-8 characters incorrectly and only outputs correct...
Create a branch: svn copy https://dev.makandra.de/svn/filepanic/trunk https://dev.makandra.de/svn/filepanic/branches/$ticketnumber_shortdesc Don't just copy the folder into your working...
Some browsers render PNG images with color profiles and other shenanigans, some don't. The cleanest way to have consistent...
When you need to patch an existing gem, one way is to "vendor" the gem by copying it into the...
This is for people recovering from Subversion. Get an existing from the server for the first time git clone git@example.com...
You are getting when connecting via SSH or deploying with Capistrano (which uses SSH): Too many authentication failures for username...
Maybe I haven’t been paying close enough attention, but over the past few years an interesting variation of CSS...
Web 2.0 sites have lots of tiny javascript/css files, which causes one extra round trip per file to the server...
I’m working on a problem for a client which involves connecting to a Microsoft SQL Server 2005 database from...