One of my favorite Rails sites is Railscasts.com. They’re running a contest right now and below is my entry. They said I didn’t have to mention them, but I like them, so there you go. Now for some Rails tips.

Instead of hacking plugin code directly use the evil twin method.

Nesting resources more than 1 level deep can cause headaches.

Test methods must start with “test”, but making them start with “test_should” is even better.

If your tests are failing for what seems like no good reason, drop your test database and recreate it.

Hyper-sensitive about security? Stop putting your production password in your database.yml file. Instead generate the file during deployment.