Selection List query II

In a view I have the following select() method call:

<%= select(:picklist, :pick, %w{ address number collection })

I have this code between a start_/end_form_tag and use the selected
value in an action.

I’d also like to be able to pass the ‘selected’ value as a parameter in
a link_to on the same page. Is this possible and if so, how should I
refer to the picklist parameter in my link_to call?

Thanks!

If it’s a link_to_remote, you could look at the :with parameter and use
$F()
function in prototype to get away with this. link_to would require more
hackery I guess.

Vish

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