%= select_tag "group_by[name]", options_for_select(@query.group_by_columns_for_select, @query.group_by["name"]), :class => "select-small", :onchange => "group_by_changed();" %> <%= select_tag "group_by[granulatrity]", options_for_select(@query.time_options, @query.group_by["granulatrity"]), :class => "select-small", :onload => "group_by_changed();" %>