Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (23 sloc) 769 Bytes
From, updated
to run under rails 2.2.
To select "priority" states that show up at the top of the list, call
like so:
<%= us_state_select 'child', 'state', :priority => %w(TX CA) %>
To select the way states display option and value:
this (default):
<%= us_state_select 'child', 'state'%>
will yield this:
<option value="AK">Alaska</option>
<%= us_state_select 'child', 'state', :show => :full %>
will yield this:
<option value="Alaska">Alaska</option>
Options are:
:full = <option value="Alaska">Alaska</option>
:full_abb = <option value="AK">Alaska</option>
:abbreviations = <option value="AK">AK</option>
::abb_full_abb = <option value="AK">AK - Alaska</option>