Observe field sending 2 fields back to controller

Trying to send the text_field values from 2 fields back and I keep
getting syntax errors no matter how I try to configure this…

<%= observe_field(:right_controller,
:update => “show_controller”,
:with => [:right_controller, :right_name],
:url => {:action => ‘show_controller’} ) %>

this results in…
Syntax Error…
Request

Parameters: {“right_controllerright_name”=>“case_managers”}

How can I pass 2 values back?

Thanks

Craig

<%= link_to_remote(“Get Update”,
:update => “show_controller”,
:with => “Form.Element.serialize($(‘right_controller’))
+’;’+Form.Element.serialize($(‘right_name’))”,
:url => {:action => ‘show_controller’ } ) %>

gets me this back to controller, which is making me crazy…

Parameters: {“action”=>“show_controller”, “controller”=>“preferences”,
“right”=>{“controller”=>“case_managers;right[name]”}}

I need some way to pass 2 values back to controller, preferably with
observe_field but I’m accept ‘link_to_remote’

Craig

On Mar 27, 12:45 am, Craig W. [email protected] wrote:

<%= link_to_remote(“Get Update”,
:update => “show_controller”,
:with => “Form.Element.serialize($(‘right_controller’))
+’;’+Form.Element.serialize($(‘right_name’))”,
:url => {:action => ‘show_controller’ } ) %>

Try :with => “{right_controller: $F(‘right_controller’), right_name:
$F(‘right_name’)}”

Fred

On Thu, 2008-03-27 at 01:18 -0700, Frederick C. wrote:

Try :with => “{right_controller: $F(‘right_controller’), right_name:
$F(‘right_name’)}”


that worked perfectly for both observe and for link_to_remote…many
thanks.

Craig

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs