Skip to content

Instantly share code, notes, and snippets.

@johan--
Created February 8, 2009 06:33
Show Gist options
  • Save johan--/60266 to your computer and use it in GitHub Desktop.
Save johan--/60266 to your computer and use it in GitHub Desktop.
%label= 'Method'
%dd
%select{:method=>"test",:id=>"test_case_method",:name=>"test_case[method]"}
%optgroup{:label=>"Non-modifying"}
%option{:value =>"GET",:selected=>@test_case.method=="GET"?"selected":nil} GET
%optgroup{:label=>"Modifying"}
%option{:value =>"PUT",:selected=>@test_case.method=="PUT"?"selected":nil} PUT
%option{:value =>"POST",:selected=>@test_case.method=="POST"?"selected":nil} POST
%option{:value =>"DELETE",:selected=>@test_case.method=="DELETE"?"selected":nil} DELETE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment