A lot of people are on Rails Edge nowadays. Besides all the nifty new features they also encounter bugs. There are two ways to work around these bugs:
- Lock your Rails external to an older revision or freeze it to vendor
- Find a patch on Trac or write one of your own and apply it
If you decide to apply patches, you’re going to need some help. Our solution is to put all the patches that need to be applied in vendor/patches and put the following Rake task in lib/tasks/patches.rake:
Assuming you’re using Capistrano 2, you can add the following to your deployment recipe to automatically run the patches for each deployment.
Now all you have to do is make sure that all the patches apply cleanly and remove them when they’re accepted into Rails.