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?
Thanks
–
John K.
[email protected]
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?
Thanks
–
John K.
[email protected]
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.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs