Two very nice additions in Edge Rails

Posted on July 07, 2008

Though we still haven’t upgraded to Rails 2.1 on our main project (CrunchBase) — yes, I know, it’s lame — two nice additions have come along in Edge Rails that will make my life easier.

The first is from the fine blog of Ryan (I wish it was updated more often): Collection Partial Variable naming. Ryan says that this is from the “little-but-useful department” — I think it’s totally sweet. I’ll actually use the @collection trick more often now.

Second is a trick for ActiveRecord — you can now easily stay ruby-fied when you execute a join. Scroll down. It’s pretty sweet.

Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

Comments