Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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
    Steven Bristol commented at 1:09 PM

    I 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
    Steven Bristol commented at 3:47 PM

    For 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
    Steven Bristol commented at 3:07 PM

    If your partial is called _item, why not just do:

    blah ||= item

    at the top of your partial?