# A question about submitting parameters using Ajax.Updater

**URL:** <https://www.ruby-forum.com/t/a-question-about-submitting-parameters-using-ajax-updater/177299>\
**Category:** Rails\
**Created:** [October 14, 2009, 5:08pm UTC](https://www.ruby-forum.com/t/a-question-about-submitting-parameters-using-ajax-updater/177299 "2009-10-14T17:08:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![C\_K\_Kashyap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c37758/32.png) [@C\_K\_Kashyap](https://www.ruby-forum.com/u/C_K_Kashyap)\
**Post date:** [October 14, 2009, 5:08pm UTC](https://www.ruby-forum.com/t/a-question-about-submitting-parameters-using-ajax-updater/177299/1 "2009-10-14T17:08:35Z")

</div>

Hi,  
How can I use Ajax.Updater to send parameters from HTML - param1 and  
param2 the values of which are not in a form as such using  
Ajax.Updater in a manner such that on the server side, I use the  
model’s update\_attributes method.

new Ajax.Updater(  
‘#{options[:update\_html\_id]}’,  
‘#{options[:update\_url]}’+id,  
{asynchronous:true, evalScripts:true,  
parameters:‘authenticity\_token=’ +  
encodeURIComponent(‘Hl7TS7DG2dM0zmGAO09HMU8rKTNJwto37APahAPK9vA=’) }  
)

How can I modify the Updater above to generate the data below so that  
I can use model.udate\_attributes(params[:some\_model])

{ “authenticity\_token”=\>“Hl7TS7DG2dM0zmGAO09HMU8rKTNJwto37APahAPK9vA=”,  
“some\_model”=\>{“param1”=\>“value1”,  
“param2”=\>“value2”},  
“id”=\>“100”}

–  
Regards,  
Kashyap
