No commit activity in last 3 years
No release in over 3 years
Rails Helper to get an HTML select list of countries. Uses country data from the braintree gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

braintree_country_select

Provides a simple Rails form helper to generate an HTML select list of countries.

The country list is sourced from the braintree gem. This helper is intended for use in payment forms that submit to the Braintree payment processing gateway.

Installation

Install as a gem using

gem install braintree_country_select

Or put the following in your Gemfile

gem 'braintree_country_select'

Example

Simple use supplying model and attribute as parameters:

braintree_country_select(:billing, :country_code_alpha3)

Supplying priority countries to be placed at the top of the list:

braintree_country_select(:billing, :country_code_alpha3, ["United States", "United Kingdom", "France", "Germany"])

Copyright

Original country_select plugin by:

Copyright (c) 2008 Michael Koziarski, released under the MIT license.

Braintree-based fork by:

Copyright (c) 2012 Lukas Fittl, released under the MIT license.