# Params not available w form\_remote\_tag call

**URL:** <https://www.ruby-forum.com/t/params-not-available-w-form-remote-tag-call/135895>\
**Category:** Rails\
**Created:** [April 25, 2008, 11:22pm UTC](https://www.ruby-forum.com/t/params-not-available-w-form-remote-tag-call/135895 "2008-04-25T23:22:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nateleavitt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3bc359/32.png) [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Post date:** [April 25, 2008, 11:22pm UTC](https://www.ruby-forum.com/t/params-not-available-w-form-remote-tag-call/135895/1 "2008-04-25T23:22:04Z")

</div>

Hi guys…

I’m having an issue that seems so basic to me, but I can’t figure it  
out. I have a partial which is a form below:

```
<% form_remote_tag :url => { :action => :submit_free_report },
    :update => :results,
    :complete => visual_effect(:highlight, 'results') do %>

```

 \<% end %\> 

| First Name | \<%= text\_field\_tag :FirstName %\> | 

```
</td>

```

 |
| Last Name | \<%= text\_field\_tag :LastName %\> | 
 \<%= image\_submit\_tag '/images/form\_button.gif', :name =\> 'Send Report' %\> 
 |
| Email | \<%= text\_field\_tag :Email %\> | |

Pretty basic… but in the submit\_free\_report method of my controller  
when I try to access params[:Email] it is empty. This seems so simple  
to me, but I can’t figure out why the form isn’t setting the params  
object.

Please help.

---

<div class="post-metadata">

**Author:** ![nateleavitt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3bc359/32.png) [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Post date:** [April 25, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/params-not-available-w-form-remote-tag-call/135895/2 "2008-04-25T23:30:58Z")

</div>

What does the log file say? Does it show that the params are being  
passed to the method?

-S

---

<div class="post-metadata">

**Author:** ![nateleavitt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3bc359/32.png) [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Post date:** [April 26, 2008, 12:04am UTC](https://www.ruby-forum.com/t/params-not-available-w-form-remote-tag-call/135895/3 "2008-04-26T00:04:01Z")

</div>

Ok… I think I figured it out, and I’m posting the answer below for  
others.

I moved the form outside the table like so, and it works!:

\<% form\_remote\_tag :url =\> { :action =\> :submit\_free\_report },  
:update =\> :results,  
:complete =\> visual\_effect(:highlight, ‘results’) do %\>

| First Name | \<%= text\_field\_tag :FirstName %\> | 

```
</td>

```

 |
| Last Name | \<%= text\_field\_tag :LastName %\> | 
 \<%= image\_submit\_tag '/images/form\_button.gif', :name =\> 'Send Report' %\> 
 |
| Email | \<%= text\_field\_tag :Email %\> | |

 \<% end %\>

---

<div class="post-metadata">

**Author:** ![nateleavitt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/3bc359/32.png) [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Post date:** [April 25, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/params-not-available-w-form-remote-tag-call/135895/4 "2008-04-25T23:37:04Z")

</div>

Shandy N. wrote:

> What does the log file say? Does it show that the params are being  
> passed to the method?
> 
> -S

Thanks for the response…

Here are the parameters being passed:

“authenticity\_token”=\>“5625b8c5132afcbb131798ac6da41677572d1a2b”,  
“action”=\>“submit\_free\_report”, “controller”=\>“welcome”

also… not that this matters, but the form is being rendered from the  
index page like so:

\<%= render(:partial =\> “shared/free\_report”) %\>

i don’t get why the parameters aren’t being passed.
