# Using HAML, form\_remote\_tag inside partial from layout dupli

**URL:** <https://www.ruby-forum.com/t/using-haml-form-remote-tag-inside-partial-from-layout-dupli/103508>\
**Category:** Rails\
**Created:** [May 7, 2007, 11:55am UTC](https://www.ruby-forum.com/t/using-haml-form-remote-tag-inside-partial-from-layout-dupli/103508 "2007-05-07T11:55:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clifford\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/49beb7/32.png) [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Post date:** [May 7, 2007, 11:55am UTC](https://www.ruby-forum.com/t/using-haml-form-remote-tag-inside-partial-from-layout-dupli/103508/1 "2007-05-07T11:55:53Z")

</div>

I have an application.haml that renders partials,  
and the partials use form\_remote\_tag. f\_r\_t returns  
the _whole partial again_, not just the form fragment.

This has to be a bug doesn’t it?

I diagnosed it by putting the form\_remote\_tag into  
a helper and printing the return value.

Clifford H…

---

<div class="post-metadata">

**Author:** ![Clifford\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/49beb7/32.png) [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Post date:** [May 7, 2007, 6:39pm UTC](https://www.ruby-forum.com/t/using-haml-form-remote-tag-inside-partial-from-layout-dupli/103508/2 "2007-05-07T18:39:34Z")

</div>

If you’re doing:

= form\_remote\_tag … do

then you will get odd results.

Do:

- form\_remote\_tag … do

BTW: This is completely consistent with rhtml behavior. User \<% %\> in  
rhtml, not \<%= %\> for the form\_tag and form\_remote\_tag helpers.
