Skip to content

Instantly share code, notes, and snippets.

@hank
Created August 27, 2010 03:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hank/552731 to your computer and use it in GitHub Desktop.
Save hank/552731 to your computer and use it in GitHub Desktop.
select(:id => 'num') do
option(@num.to_i == 10 ? {:selected => true} : {}){ "10" }
option(@num.to_i == 50 ? {:selected => true} : {}){ "50" }
option(@num.to_i == 100 ? {:selected => true} : {}){ "100" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment