link_to :with functionality

I'm trying to pass the argument from a select box with a link_to call. This works with link_to_remote, but i absolutely cannot use ajax in this situation. What is the correct way to pass my select_tag argument as a parameter in my link_to?

<%= link_to "C", :action => 'a_z', :ltr => "C", :with => "'a_z_language ='+$('selectbox').value" %>|

<%= select_tag(:selectbox,options_for_select(["Chinese", "Dutch", "English", "French","German","Greek", "Italian", "Japanese", "Korean", "Portuguese", "Russian","Spanish"], @default)) %>

with: "'a_z_language ='+$('selectbox').value"

INSTEAD OF> with: "English"

I'm trying to pass the argument from a select box with a link_to call. This works with link_to_remote, but i absolutely cannot use ajax in this situation. What is the correct way to pass my select_tag argument as a parameter in my link_to?

A form would be the easiest way (if you have to have a link you could have the link's onclick be someForm.submit()).

Fred.

Frederick Cheung wrote:

I suppose you could do something really fugly where in the link's onclick you modify this.href (ie what the link points at) and then return true (so that the event processing continues). I'd be very surprised if you couldn't coerce a form to do what you need.

Fred