diff --git a/README.md b/README.md index aa16fc9..9bcbc15 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Users are strongly advised to evaluate the suitability of this list given their As of version 1.0.5 a runtime error will be raised if any of the user-supplied priority countries do not correlate with those in the main country list. -*Note:* this may cause existing applications using *country-select* to fail, but such failures will highlight incorrect usage, enabling the implementation to be corrected so that correct and accurate data may be gathered. +**Note:** this may cause existing applications using country-select to fail, but such failures will highlight incorrect usage, enabling the implementation to be corrected so that correct and accurate data may be gathered. Thanks to Steve Purcell (http://github.com/purcell) for this addition. @@ -24,13 +24,19 @@ Or put the following in your Gemfile ## Example +Simple use supplying model and attribute as parameters: + country_select("user", "country_name") +Supplying priority countries to be placed at the top of the list: + + country_select("user", "country_name", [ "United Kingdom", "France", "Germany" ]) + ## Changelist -*1.0.5* - runtime error raised if any priority countries do not match those in the main country list -*1.0.4* - updated the country list to match the latest ISO 3166 specification -*1.0.3* - changed gem name from 'iso-3166-country-select' to just 'country-select' -*1.0.2* - forked the plugin and made it into a gem + - **1.0.5** - runtime error raised if any priority countries do not match those in the main country list + - **1.0.4** - updated the country list to match the latest ISO 3166 specification + - **1.0.3** - changed gem name from 'iso-3166-country-select' to just 'country-select' + - **1.0.2** - forked the plugin and made it into a gem Copyright (c) 2008 Michael Koziarski, released under the MIT license