RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: jvnill
Site: jvnill.wordpress.com
I think Ryan just wanted to demonstrate a basic helper so he didn't do it the way you described. Of course, yours is much more flexible than Ryan's version.
I think Ryan just wanted to demonstrate a basic helper so he didn't do it the way you described. Of course, yours is much more flexible than Ryan's version.