In your method that calls render:
render :partial => "my_partial", :locals => { :object1 =>
@object1, :object2 => object2 }
-christos
On 6 Nov 2006, at 14:49, John Kopanas wrote:
>
> 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 Kopanas
> john-Iau1QiYlxLpBDgjK7y7TUQ@public.gmane.org
>
> http://www.kopanas.com
> http://www.cusec.net
> http://www.soen.info
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---