Using RJS templates with observe_form


#1

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


#2

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?


#3

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.