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…
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…
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs