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:

Thanks


John K.
[email protected]

http://www.kopanas.com
http://www.cusec.net
http://www.soen.info

In your method that calls render:

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

-christos

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