Steven Bristol
Not a member
Steven Bristol's latest activity
Friday, October 10 2008
1199
Helper test generator
was updated
in Ruby on Rails
Thursday, August 14 2008
791
Add empty_template option when rendering a collection
was updated
in Ruby on Rails
-
Steven Bristol commented at 1:09 PMI like this concept a lot, but I am wondering if it might not be better to have render take a block that is used if the collection is empty? I'm not sure that m...
Monday, June 30 2008
509
:variable_name option added to render :partial .. :collection
was updated
in Ruby on Rails
-
Steven Bristol commented at 3:47 PMFor anyone who can read ruby and knows the rails api, this is not really noise. IMO.
Doing it your way means you would have to add that variable everywhere yo...
-
Steven Bristol commented at 3:07 PMIf your partial is called _item, why not just do:
blah ||= item
at the top of your partial?