jeremy*pinnix wrote:>
> On 6/16/06, Rick Olson
<technoweenie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> On 6/16/06, jeremy*pinnix
<jpinnix.alt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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)
>>
>>
>> --
>> Rick Olson
>
> 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?
>
I just had the same question/problem. This should do the trick...
:priority => %(TX CA)
--
View this message in context:
http://www.nabble.com/us_states-plugin-tf1798749.html#a6006268
Sent from the RubyOnRails Users forum at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---