Giter Site home page Giter Site logo

Comments (6)

scudco avatar scudco commented on July 20, 2024

@auzroz you are right about this. The ISO spec uses uppercase and so should this gem. This would be a breaking change for anyone who currently has lowercase values persisted in a database so it'll probably take adding option to the view helper to allow uppercase support. Does that sound reasonable to you? In the next major release I think we're moving to iso codes on by default and it sounds like uppercase should be on by default as well.

from country_select.

stefanpenner avatar stefanpenner commented on July 20, 2024

@scudco 👍

from country_select.

auzroz avatar auzroz commented on July 20, 2024

As a non-breaking option, I think so.
I was thinking closer integration with https://github.com/hexorx/countries would provide options for greater flexibility with the generated control. I.E. My use case is for phone number country code selection, so including the international prefix in the display value would be beneficial to my users. May be to tangential for this project, but just an idea.

from country_select.

stefanpenner avatar stefanpenner commented on July 20, 2024

@auzroz integrating with the countries gem may be good idea, typically I try to restrict the number of dependencies, but in this case I believe it is a clear win.

from country_select.

stefanpenner avatar stefanpenner commented on July 20, 2024

fixed by: 4948b6e

I am still interested in integrating with the countries gem, if someone has some time a PR would be welcomed.

from country_select.

auzroz avatar auzroz commented on July 20, 2024

Completed a basic integration (COUNTRIES list is generated by the countries gem). Pull Request - #33

from country_select.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.