select with onChange

the format for the select helper is the following:

select(object, method, choices, options = {}, html_options = {})

so you should use something like:

<%= select(object, method, choices, { :prompt => "Select the Type"}, {
:onchange => "alert('test');"}) %>

Adam