# Using RJS templates with observe\_form

**URL:** <https://www.ruby-forum.com/t/using-rjs-templates-with-observe-form/51932>\
**Category:** Rails\
**Created:** [January 9, 2006, 12:56pm UTC](https://www.ruby-forum.com/t/using-rjs-templates-with-observe-form/51932 "2006-01-09T12:56:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RiceS\_David\_SLIT](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a5b964/32.png) [@RiceS\_David\_SLIT](https://www.ruby-forum.com/u/RiceS_David_SLIT)\
**Post date:** [January 9, 2006, 12:56pm UTC](https://www.ruby-forum.com/t/using-rjs-templates-with-observe-form/51932/1 "2006-01-09T12:56:30Z")

</div>

Hi there,

I’ve been checking out RJS templates, and have been trying to use them  
with the observe\_form helper.

However, the form values are no longer being passed in the params (as  
soon as I point the action to the non-rjs and add the ‘update’ clause  
everything is working again). Is this expected?

Cheers,

Dave

---

<div class="post-metadata">

**Author:** ![RiceS\_David\_SLIT](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a5b964/32.png) [@RiceS\_David\_SLIT](https://www.ruby-forum.com/u/RiceS_David_SLIT)\
**Post date:** [February 4, 2006, 8:00pm UTC](https://www.ruby-forum.com/t/using-rjs-templates-with-observe-form/51932/2 "2006-02-04T20:00:28Z")

</div>

Rice, David (LIT) wrote:

> I’ve been checking out RJS templates, and have been trying to use them  
> with the observe\_form helper.
> 
> However, the form values are no longer being passed in the params (as  
> soon as I point the action to the non-rjs and add the ‘update’ clause  
> everything is working again). Is this expected?

i’ve been having similar trouble with observe\_field and rjs  
templates…if I include the :update part, the raw javascript commands  
are displayed, but also executed… if i leave out the :update, nothing  
works. is there any way around this?

---

<div class="post-metadata">

**Author:** ![RiceS\_David\_SLIT](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a5b964/32.png) [@RiceS\_David\_SLIT](https://www.ruby-forum.com/u/RiceS_David_SLIT)\
**Post date:** [February 4, 2006, 9:43pm UTC](https://www.ruby-forum.com/t/using-rjs-templates-with-observe-form/51932/3 "2006-02-04T21:43:49Z")

</div>

toby sterrett wrote:

> i’ve been having similar trouble with observe\_field and rjs  
> templates…if I include the :update part, the raw javascript commands  
> are displayed, but also executed… if i leave out the :update, nothing  
> works. is there any way around this?

figured it out after some searching. turns out I had to remove the  
:update and add

:with =\> “value”

and now it’s working.
