Hello,
I am trying to figure out how to use the options available with the
us_states plugin. What is the proper syntax for using the :priority
and :with_abbreviation options?
Thanks,
jeremy
Hello,
I am trying to figure out how to use the options available with the
us_states plugin. What is the proper syntax for using the :priority
and :with_abbreviation options?
Thanks,
jeremy
On 6/16/06, jeremy*pinnix [email protected] wrote:
Hello,
I am trying to figure out how to use the options available with the
us_states plugin. What is the proper syntax for using the :priority
and :with_abbreviation options?Thanks,
jeremy
:with_abbreviation => true
:priority matches the usage in country_select, which is basically an
array of priority states.
http://rails.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html#M000406
:priority => %w(Texas California)
On 6/16/06, Rick O. [email protected] wrote:
:with_abbreviation => true
:priority matches the usage in country_select, which is basically an
array of priority states.
http://rails.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html#M000406:priority => %w(Texas California)
–
Rick O.
Thanks Rick. :with_abbreviation worked just as described. However, the
:priority example isn’t functioning for me.
<%= us_state_select ‘child’, ‘state’, :priority => %w(Texas California)
%>
It generates the “–” option, but doesn’t generate the Texas and
California options above it…
Is there something else I’m missing?
jeremy*pinnix wrote:
jeremy
Rick O.
View this message in context:
http://www.nabble.com/us_states-plugin-tf1798749.html#a6006268
Sent from the RubyOnRails Users forum at Nabble.com.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs