When I use f.select onchange does not work for me, here is the code
<%= f.select :media, Model::MEDIA_TYPES, :include_blank => true, {}, { :onchange => "function(this);"} %>
A lot of functionality get messed up if I use this:
<%= select_tag "media_type", options_for_select(Model::MEDIA_TYPES),:include_blank => true, :onchange => "function(this);" %>
I think, it should be: