Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9030335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:27:53+00:00 2026-06-16T07:27:53+00:00

In simple_form.rb how do I set time_zone_priority and country_priority. The following does not work.

  • 0

In simple_form.rb how do I set time_zone_priority and country_priority. The following does not work.

config.time_zone_priority = ["IN", "US", "CA", "UK"]

config.country_priority = ['India', 'United States']

In the view file, however, the following works:

= f.country_select :country_code, priority: %w(IN US CA UK)

Please assist

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T07:27:54+00:00Added an answer on June 16, 2026 at 7:27 am

    I had this problem too just now. Then, in the initializer, when I tried the country codes instead of the full country names, it worked.

    config.country_priority = ['IN', 'US', 'CA', 'UK']
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Simple_form with Rails 3.2.1 All fine, except that I need to set
Here's my problem: I'm trying to set up a simple mobile contact form with
I'm using simple_form for a form and passing in some URL parameters to prepopulate
Can anyone guide me as to how to set a form to be enabled
I have the following 3 simple pages in a JSF app. index.html start.html confirmSuccess.thml
For a Console app, I need to know how to wait at set amount
I've set up a simple progress bar in a VB6 form using the Microsoft
I'm trying to set up a simple login using AuthLogic into my User table.
If I put a form control on the page with a value already set,
have a really annoying time developing some code for a set of UserControls that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.