# Form\_remote\_tag not posting data

**URL:** <https://www.ruby-forum.com/t/form-remote-tag-not-posting-data/59807>\
**Category:** Rails\
**Created:** [May 6, 2006, 10:38pm UTC](https://www.ruby-forum.com/t/form-remote-tag-not-posting-data/59807 "2006-05-06T22:38:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [May 6, 2006, 10:38pm UTC](https://www.ruby-forum.com/t/form-remote-tag-not-posting-data/59807/1 "2006-05-06T22:38:18Z")

</div>

I’m trying to use the form\_remote\_tag for the first time…

Here is my code:

\<%= form\_remote\_tag(:url =\> { :action =\> ‘add’ } ) %\>

\<%= text\_field\_tag ‘name’ %\>  
\<%= text\_field\_tag ‘email’ %\>  
\<%= submit\_tag ‘icon\_additem.gif’ %\>  
\<%= end\_form\_tag %\>

For whatever reason this is not submitting any of my params… The log  
shows no params being sent.

Env is OSX 10.4 + Lighttpd + Safari/Firefox/Camino.

Any clue what is wrong?? I’m trying to do a demo in 30min without any  
luck.

Thanks.

Josh

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [May 6, 2006, 11:26pm UTC](https://www.ruby-forum.com/t/form-remote-tag-not-posting-data/59807/2 "2006-05-06T23:26:46Z")

</div>

Josh K. wrote:

> \<%= form\_remote\_tag(:url =\> { :action =\> ‘add’ } ) %\>
> 
> \<%= text\_field\_tag 'name' %\> \<%= text\_field\_tag 'email' %\> \<%= submit\_tag 'icon\_additem.gif' %\> \<%= end\_form\_tag %\>
> 
> For whatever reason this is not submitting any of my params… The log  
> shows no params being sent.

Make sure your form\_remote\_tag/end\_form\_tag pair is placed  
outside any

 tags.

–  
We develop, watch us RoR, in numbers too big to ignore.

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [May 7, 2006, 5:08am UTC](https://www.ruby-forum.com/t/form-remote-tag-not-posting-data/59807/3 "2006-05-07T05:08:19Z")

</div>

On 5/7/06, Mark Reginald J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Make sure your form\_remote\_tag/end\_form\_tag pair is placed  
> outside any
> 
> tags.
> 
> Mark, thanks for your reply. This makes no sense why these tags would  
> have  
> to be outside the table tag. Also, I was unable to insert a row into  
> the  
> table using RJS. Is this just a fact of life with tables? I know that  
> I  
> should be using div/css but are these problems documented anywhere? I’m  
> assuming its not just a Rails thing and I’d like to know more about what  
> causes this problem.
> 
> Thanks.

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [May 7, 2006, 6:36am UTC](https://www.ruby-forum.com/t/form-remote-tag-not-posting-data/59807/4 "2006-05-07T06:36:24Z")

</div>

Josh K. wrote:

> Mark, thanks for your reply. This makes no sense why these tags would  
> have to be outside the table tag. Also, I was unable to insert a row  
> into the table using RJS. Is this just a fact of life with tables? I  
> know that I should be using div/css but are these problems documented  
> anywhere? I’m assuming its not just a Rails thing and I’d like to know  
> more about what causes this problem.

Forms inside tables is a HTML issue. You can’t place a form tag at a  
position at which only a thead, tbody, th, tr, or td tag is allowed. You  
can however place a form inside a td, possibly followed by a nested  
table.

Your inability to insert a row using RJS is probably an Internet  
Explorer  
issue. I’ve read that people have had success when using the Taconite  
extension for Prototype: [http://taconite.sourceforge.net/](http://taconite.sourceforge.net/)

–  
We develop, watch us RoR, in numbers too big to ignore.

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [August 28, 2006, 5:43pm UTC](https://www.ruby-forum.com/t/form-remote-tag-not-posting-data/59807/5 "2006-08-28T17:43:45Z")

</div>

Mark Reginald J. wrote:

> Forms inside tables is a HTML issue. You can’t place a form tag at a  
> position at which only a thead, tbody, th, tr, or td tag is allowed. You  
> can however place a form inside a td, possibly followed by a nested  
> table.
> 
> Your inability to insert a row using RJS is probably an Internet  
> Explorer  
> issue. I’ve read that people have had success when using the Taconite  
> extension for Prototype: [http://taconite.sourceforge.net/](http://taconite.sourceforge.net/)
> 
> –  
> We develop, watch us RoR, in numbers too big to ignore.

Thanks, I too was having this problem. But I too am confused about the  
cause of the problem. My code was very similar to Josh’s, but I then  
went back and replaced my form\_remote\_tag with an equivalent form\_tag  
(removing the AJAX), and the params were posted properly. So it doesn’t  
seem to be solely a HTML issue with forms. It seems like it is an issue  
with AJAX, HTML and forms.

Any thoughts on why it works with a regular form\_tag?

-Ryan

---

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [August 30, 2006, 4:15am UTC](https://www.ruby-forum.com/t/form-remote-tag-not-posting-data/59807/6 "2006-08-30T04:15:06Z")

</div>

Ryan,

I had a problem that seems similar to yours. After hacking at it for  
**way** too much time, I figured it out. If it’s at all helpful, here’s  
the posting:

[http://www.ruby-forum.com/topic/79293#new](http://www.ruby-forum.com/topic/79293#new)

- David
