Я пытаюсь получить текущее значение раскрывающегося списка с помощью Prototype и передать его с помощью:
<%= link_to_remote "today", :update => "choices",
:url => { :action => "check_availability" } ,
:with => "'practitioner='+$F('practitioner')&'clinic='+$F('clinic')&'when=today'",
:loading => "spinner.show(); $('submit').disable();",
:complete => "spinner.hide(); $('submit').enable();" %>
Однако это работает не так, как ожидалось. Я не могу получить доступ к параметрам в контроллере, так как помощник link_to_remote отправляет такие параметры:
Parameters: {"succ"=>"function () {\n return this + 1;\n}", "action"=>"check_availability", "round"=>"function () {\n return __method.apply(null, [this].concat($A(arguments)));\n}", "ceil"=>"function () {\n return __method.apply(null, [this].concat($A(arguments)));\n}", "floor"=>"function () {\n return __method.apply(null, [this].concat($A(arguments)));\n}", "times"=>"function (iterator, context) {\n $R(0, this, true).each(iterator, context);\n return this;\n}", "toPaddedString"=>"function (length, radix) {\n var string = this.toString(radix || 10);\n return \"0\".times(length - string.length) + string;\n}", "toColorPart"=>"function () {\n return this.toPaddedString(2, 16);\n}", "abs"=>"function () {\n return __method.apply(null, [this].concat($A(arguments)));\n}", "controller"=>"main"}
Куда я иду не так? Есть ли лучший способ сделать это?