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.

This project is archived and is in readonly mode.

Fix render :partial to not attempt to render collections that are nil

#853

Attempting the following

render :partial => "foo", :collection => @foos

when @foos is nil and the _foo.html.erb partial does something like foo.name will result in a method_missing because it's trying to call #name on nil. Fixed render :partial to skip rendering the collection when it's nil, just like when it's an empty array.

Reported by Josh Susser · August 18th, 2008 @ 07:27 PM

State: resolved
Milestone: none
Assigned to: josh josh
Importance: none

Activity

  1. Ryan Bates
  2. josh
    josh
    • Milestone cleared.
    • State changed from new to open
    • Assigned user set to josh

    August 19th, 2008 @ 05:42 AM

  3. josh
    josh
    • State changed from open to resolved

    August 20th, 2008 @ 01:05 AM