# Render partial but content is hidden

**URL:** <https://www.ruby-forum.com/t/render-partial-but-content-is-hidden/170849>\
**Category:** Rails\
**Created:** [June 23, 2009, 2:52pm UTC](https://www.ruby-forum.com/t/render-partial-but-content-is-hidden/170849 "2009-06-23T14:52:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![malkifel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ac91a4/32.png) [@malkifel](https://www.ruby-forum.com/u/malkifel)\
**Post date:** [June 23, 2009, 2:52pm UTC](https://www.ruby-forum.com/t/render-partial-but-content-is-hidden/170849/1 "2009-06-23T14:52:05Z")

</div>

Hi,  
I have a strange problem:

I try to use replace\_html (rjs) for replace object fields with partial  
contains remote\_form\_for to edit the object  
It works well but the inserted form is coming hidden.  
(I also tried to toggle it, or show but - nothing . it stays hide)  
when I try to replace the object with regular element like p, div etc.  
everything is shown.  
or if I try to insert the partial in another place in the page I see  
it. the problem is just when I replace the object columns with partial  
of remote\_form\_for.

Do you have a suggestion what can cause it?

---

<div class="post-metadata">

**Author:** ![malkifel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ac91a4/32.png) [@malkifel](https://www.ruby-forum.com/u/malkifel)\
**Post date:** [June 23, 2009, 3:09pm UTC](https://www.ruby-forum.com/t/render-partial-but-content-is-hidden/170849/2 "2009-06-23T15:09:05Z")

</div>

On Jun 23, 1:08 pm, malkifel [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> it. the problem is just when I replace the object columns with partial  
> of remote\_form\_for.
> 
> Do you have a suggestion what can cause it?

could you be creating invalid html (eg a form nested in another form  
or something like that) by inserting your partial in the precise  
location that you are ?

Fred

---

<div class="post-metadata">

**Author:** ![malkifel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ac91a4/32.png) [@malkifel](https://www.ruby-forum.com/u/malkifel)\
**Post date:** [June 24, 2009, 7:35am UTC](https://www.ruby-forum.com/t/render-partial-but-content-is-hidden/170849/3 "2009-06-24T07:35:59Z")

</div>

> could you be creating invalid html (eg a form nested in another form  
> or something like that) by inserting yourpartialin the precise  
> location that you are ?
> 
> Fred

no, It’s a plain table , each row is an object.  
And I try to replace the fields of the object with little remote\_form  
with structure like the object row(the numbers of the columns, etc.)

---

<div class="post-metadata">

**Author:** ![malkifel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ac91a4/32.png) [@malkifel](https://www.ruby-forum.com/u/malkifel)\
**Post date:** [June 24, 2009, 9:31am UTC](https://www.ruby-forum.com/t/render-partial-but-content-is-hidden/170849/4 "2009-06-24T09:31:25Z")

</div>

2009/6/24 malkifel [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > could you be creating invalid html (eg a form nested in another form  
> > or something like that) by inserting yourpartialin the precise  
> > location that you are ?
> > 
> > Fred
> 
> no, It’s a plain table , each row is an object.  
> And Â I try to replace the fields of the object with little remote\_form  
> with structure like the object row(the numbers of the columns, etc.)

Does your div encompass a row or a number of cells in a table? In  
either case this is unfortunately not valid html. A div can encompass  
a whole table or sit inside one cell but the div must not just  
encompasses part of the table. Some browsers accept it but some do  
not.

Colin
