Fork me on GitHub

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]

  1. Named scope. I have been using scope on associations and it’s awesome.
  2. Static finder methods on models. Topic.find(:all) is now written Topic.all.
  3. The combination of 1 and 2 also works. post.comments.recent.first ftw!
  4. change_table migration looks a heckuva lot more solid than individual column changes.
  5. Partial updates. Anything that decreases DB load is awesome.
  6. New rake db:migrate:down task to migrate one step down. Muuuuch better than typing in the (now longer) migration numbers.
  7. Time#end_of_day seems useful to me.
  8. All Time Zone support is huge for www.l8r.nu and much better than using the server’s local time.
  9. The label Form Helper will clean up my forms a lot.
  10. I can see that the path_names option on resources can be quite handy.
  11. config.gem is the shit, I am already using it and can not imagine doing Rails without it. Much needed!
  12. Deprecated constants in favor of Rails.public_path, Rails.env, Rails.root. Much easier to remember.
  13. script/dbconsole is one of those things I can’t imaging living without already.

W00t!

  1. No comments yet.

  1. No trackbacks yet.