Then create a script like this...
function JumpToIt(list){
var selection = list.options[list.selectedIndex].value;
location.href = "/controller/action/" + selection; // here
selection acts as params
}
where you have to call the function in onChange
.... :onChange => ''Jumpto(this);''
Regards.
On Nov 25, 2:00 am, flaubert
<aflaube...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hello,
>
> it´s simple,
>
> i have an collection_select that work well and im trying to fire some
> action in the controller passing the value that the user has selected.
> obs: without ajax request...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---