Home » Rails 3.1 Upgrade Notes
If you use conditional comments for browser specific stylesheets you need to add those file names to config.assets.precompile array in production.rb file like;
config.assets.precompile += ['admin.js', 'admin.css', 'ie7.css', 'ie.css']
To auto compile assets after deployment with Capistrano, add this to Capfile;
load 'deploy/assets'
Use model_instance.errors[:base] << “Msg” instead of deprecated model_instance.errors.add_to_base(“Msg”)
Other Snippets
- Force Passenger to Live in a Shared Host with Cron Job
- Serving Static Pages with Rails App on Passenger
- How to Resubmit Sitemap to Google with Daily Cron
- Rack Issue with Dreamhost's Passenger Installation
- Adjust Textmate's Line Height
- Rails Uygulamalarında iPhone için Özelleştirilmiş Arayüz
- Inline Resize and Crop with ImageMagick
- SPF record for Google Mail
- How to Call expire_fragment from a Rake Task