select(“main_filter”, nil, Tag.find_ordered_parents.select{|t| t.products.size > 0}.map{|t| [t.name, t.id]}, { :include_blank => blank_text, :selected => @old_global_filter },
{
nchange => remote_function(:loading => “new Effect.Fade($(‘main_filter_’));”, :url => {:action => :change_global_filter}, :with => “‘id=’ + $(‘main_filter_’).value”, :success => “window.location.reload();”),
})
ref: http://apidock.com/rails/ActionView/Helpers/PrototypeHelper/link_to_remote