Things I love the bestest about Rails 2.1
These are the features I am most pleased with. Thanks to Carlos Brando, who created an excellent free PDF. Hey my name is in there too! [return-path bug fix]
- Named scope. I have been using scope on associations and it’s awesome.
- Static finder methods on models. Topic.find(:all) is now written Topic.all.
- The combination of 1 and 2 also works. post.comments.recent.first ftw!
- change_table migration looks a heckuva lot more solid than individual column changes.
- Partial updates. Anything that decreases DB load is awesome.
- New rake db:migrate:down task to migrate one step down. Muuuuch better than typing in the (now longer) migration numbers.
- Time#end_of_day seems useful to me.
- All Time Zone support is huge for www.l8r.nu and much better than using the server’s local time.
- The label Form Helper will clean up my forms a lot.
- I can see that the path_names option on resources can be quite handy.
- config.gem is the shit, I am already using it and can not imagine doing Rails without it. Much needed!
- Deprecated constants in favor of Rails.public_path, Rails.env, Rails.root. Much easier to remember.
- script/dbconsole is one of those things I can’t imaging living without already.
W00t!
No comments yet.