country_options_for_select(@selected_country, *@priority_countries)

Might work for you ... that's the splat operator -- *

Simon.

On Fri, Dec 16, 2011 at 01:05, Mark Brown <[email protected]> wrote:
> Hi,
>
> I can't find a way to pass a list of priority countries to the
> "country_options_for_select" function.
>
> The first argument is the selected country, then each argument after is a
> priority one
> country_options_for_select(@selected_country, 'AU', 'CN')
>
> How can I pass an array of values to it?
> @priority_countries = ['AU', 'CN']
>
>
> Thanks,
>
> --
> Mark Brown.
>
> www.yellowshoe.com.au
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to