Skip to content

Instantly share code, notes, and snippets.

@jonpaul
Created May 23, 2011 19:37
Show Gist options
  • Save jonpaul/987392 to your computer and use it in GitHub Desktop.
Save jonpaul/987392 to your computer and use it in GitHub Desktop.
# price range select
<%= f.select :price_gteq, (100000..900000).step(100000).collect { |num| [ number_to_currency(num, :precision => 0), num ] },
{ :include_blank => 'Price Range' }, { :class => 'short' } %>
<!-- This select actually, now needs to include:
Any
10,000
20,000
30,000
40,000
50,000
60,000
70,000
80,000
90,000
100,000
200,000
300,000
400,000
500,000
600,000
700,000
800,000
900,000
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment