Skip to content

Instantly share code, notes, and snippets.

@alvin2ye
Created September 10, 2009 02:47
Show Gist options
  • Save alvin2ye/184262 to your computer and use it in GitHub Desktop.
Save alvin2ye/184262 to your computer and use it in GitHub Desktop.
select_tag :status, options_for_select([["全部", -1]] + Milestone.status_options, (params[:status] || Milestone::STATUS_ACTIVE).to_i),
:onchange => "window.location = '#{project_path(@project)}?status=' + this.value; "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment