Big Nerd Ranch, Day 2
May 6th, 2008 | Published in Rails
Goodies from today:
- Using partials with
bject and not :locals (no need to put the instance variable in every controller that will make use of a partial). Plus, collection in partials to display tables of data, for example. And partial _counter, too. (ie, widget_counter). Dang, I had no idea. - Ok, I’m finally clear on setting up HABTM associations. Finally.
- Route names: another thing that you don’t really realize are more valuable than they appear.
- Beginning to understand how Rails handles resources as well.