# Why page.replace\_html can send only one collections?

**URL:** <https://www.ruby-forum.com/t/why-page-replace-html-can-send-only-one-collections/172412>\
**Category:** Rails\
**Created:** [July 21, 2009, 4:18am UTC](https://www.ruby-forum.com/t/why-page-replace-html-can-send-only-one-collections/172412 "2009-07-21T04:18:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thriving](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ecae2f/32.png) [@thriving](https://www.ruby-forum.com/u/thriving)\
**Post date:** [July 21, 2009, 4:18am UTC](https://www.ruby-forum.com/t/why-page-replace-html-can-send-only-one-collections/172412/1 "2009-07-21T04:18:21Z")

</div>

I just want to understand why we can send only one paramater in  
collections , and how to solve the problem if we want to send more than  
one collection ?

render :update do |page|  
page.replace\_html :todoItems, :partial =\>  
‘todos’,:collections=\>@next\_responsiblenesses

end

---

<div class="post-metadata">

**Author:** ![thriving](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ecae2f/32.png) [@thriving](https://www.ruby-forum.com/u/thriving)\
**Post date:** [July 21, 2009, 4:45am UTC](https://www.ruby-forum.com/t/why-page-replace-html-can-send-only-one-collections/172412/2 "2009-07-21T04:45:29Z")

</div>

bill walton wrote:

> On Tue, 2009-07-21 at 04:18 +0200, Thriving K. wrote:
> 
> > I just want to understand why we can send only one paramater in  
> > collections , and how to solve the problem if we want to send more than  
> > one collection ?
> > 
> > render :update do |page|  
> > page.replace\_html :todoItems, :partial =\>  
> > ‘todos’,:collections=\>@next\_responsiblenesses
> > 
> > end
> 
> Check out :locals
> 
> HTH,  
> Bill

Thank you

---

<div class="post-metadata">

**Author:** ![thriving](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ecae2f/32.png) [@thriving](https://www.ruby-forum.com/u/thriving)\
**Post date:** [July 21, 2009, 4:29am UTC](https://www.ruby-forum.com/t/why-page-replace-html-can-send-only-one-collections/172412/3 "2009-07-21T04:29:57Z")

</div>

On Tue, 2009-07-21 at 04:18 +0200, Thriving K. wrote:

> I just want to understand why we can send only one paramater in  
> collections , and how to solve the problem if we want to send more than  
> one collection ?
> 
> render :update do |page|  
> page.replace\_html :todoItems, :partial =\>  
> ‘todos’,:collections=\>@next\_responsiblenesses
> 
> end

Check out :locals

HTH,  
Bill
