Passing Two or More Objects to a Partial

Does anyone know how to pass two or more objects to a partial? If I
can’t do it with partial do you have any other suggestions? :slight_smile:


John K.
[email protected]

In your method that calls render:

render :partial => “my_partial”, :locals => { :object1 =>
@object1, :object2 => object2 }


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs