Where are you trying to execute the method? In the browser or in the
server? If in the browser then you will have to use javascript (in
which case it is not really a Rails question), if in the server then
put the select in a form and the selected value will be passed in
params when the form is submitted.
What I usually do is get things working without Ajax first. Assuming
you've done that, does onchange trigger anything in the logs? Using
firebug or the developer tools in chrome/safari could tell you a lot
too.
1-Using *link_to_remote* using :with clause, and passing as serialize
the id of the div that I had to create sourranding the select
2-In the controller, once taked the parm and maked all the operations,
use *respond_to* js and reloading the page.