link_to_remote parameters - help

You need to serialize the fields that you’d like to send to your controller. The serialized fields are sent using :with. Note the method ‘get’ - this won’t work with post.

link_to_remote(‘Search’,
{ :url => {:controller => ‘controller’, :action => ‘action’},

            :method => 'get',
            :with   => 'serialize_fields()',
            :update => 'id of element to update',
            :complete => "..." })

Hammed