# Remote\_form\_for issue

**URL:** <https://www.ruby-forum.com/t/remote-form-for-issue/105863>\
**Category:** Rails\
**Created:** [June 4, 2007, 1:43am UTC](https://www.ruby-forum.com/t/remote-form-for-issue/105863 "2007-06-04T01:43:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre-Alexandre\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c4cdca/32.png) [@Pierre-Alexandre\_M](https://www.ruby-forum.com/u/Pierre-Alexandre_M)\
**Post date:** [June 4, 2007, 1:43am UTC](https://www.ruby-forum.com/t/remote-form-for-issue/105863/1 "2007-06-04T01:43:18Z")

</div>

Hi everybody,

I’m trying to change my current forms in my app to remote\_forms. It was  
my understanding that remote\_form\_for and form\_for work in the same way,  
so I just wanted to change the methods. My code looks like:

\<% form\_remote\_for :post, :url =\> posts\_url do |f| %\>  
\<%= render :partial =\> ‘form\_posts’, :locals =\> {:f =\> f} %\>  
\<%= table\_submit\_tag “Chercher” %\>  
\<% end %\>

The problem of this code is that it generates an empty form:

params[:post] is empty (Form.serialize(this) serializes an emtpy  
form…). Anyone has an idea what I am missing? I thought it was because  
the partial wasn’t passed to the block, but I have the same proble  
when I past it. Moreover @post does exist and I have the same problem  
without using block, but using form\_remote\_tag.

The partial is dummy: f.text\_field :body

Thanks,

–  
,========================.  
| Pierre-Alexandre M. |  
| email : removed\_email\_address@domain.invalid |  
`========================’

---

<div class="post-metadata">

**Author:** ![Pierre-Alexandre\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c4cdca/32.png) [@Pierre-Alexandre\_M](https://www.ruby-forum.com/u/Pierre-Alexandre_M)\
**Post date:** [June 4, 2007, 7:30am UTC](https://www.ruby-forum.com/t/remote-form-for-issue/105863/2 "2007-06-04T07:30:11Z")

</div>

what version of rails?  
There where some problems with this that helper method in 1.1.6.  
However, it should work as is in 1.2.x

---

<div class="post-metadata">

**Author:** ![Pierre-Alexandre\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c4cdca/32.png) [@Pierre-Alexandre\_M](https://www.ruby-forum.com/u/Pierre-Alexandre_M)\
**Post date:** [June 4, 2007, 9:06am UTC](https://www.ruby-forum.com/t/remote-form-for-issue/105863/3 "2007-06-04T09:06:46Z")

</div>

On Mon, Jun 04, 2007 at 07:30:11AM +0200, Keynan P. wrote :

> what version of rails?  
> There where some problems with this that helper method in 1.1.6.  
> However, it should work as is in 1.2.x

Rails 1.2.3

That’s really weird…

–  
,========================.  
| Pierre-Alexandre M. |  
| email : removed\_email\_address@domain.invalid |  
`========================’

---

<div class="post-metadata">

**Author:** ![Pierre-Alexandre\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c4cdca/32.png) [@Pierre-Alexandre\_M](https://www.ruby-forum.com/u/Pierre-Alexandre_M)\
**Post date:** [June 4, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/remote-form-for-issue/105863/4 "2007-06-04T19:58:38Z")

</div>

On Mon, Jun 04, 2007 at 09:05:43AM +0200, Pierre-Alexandre M. wrote :

> That’s really weird…

Extracted from [http://www.cs.tut.fi/~jkorpela/forms/tables.html#example:](http://www.cs.tut.fi/~jkorpela/forms/tables.html#example:)  
Tables and forms can be nested either way. But if you put forms into  
tables, each form must be completely included into a single table cell  
(one TD element in practice). Thereby the forms are each completely  
independent. See my document on choices in HTML forms for some simple  
examples.

It was an HTML problem. Sorry.

–  
,========================.  
| Pierre-Alexandre M. |  
| email : removed\_email\_address@domain.invalid |  
`========================’
