This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Jesús García Sáez (author)
Fri Sep 05 03:02:12 -0700 2008
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Thu Jul 24 08:26:51 -0700 2008 | [koke] |
| |
README | Fri Sep 05 03:02:12 -0700 2008 | [Jesús García Sáez] |
| |
Rakefile | Thu Aug 14 17:04:42 -0700 2008 | [koke] |
| |
init.rb | Thu Jul 24 08:26:51 -0700 2008 | [koke] |
| |
lib/ | Fri Sep 05 03:02:12 -0700 2008 | [Jesús García Sáez] |
| |
locale/ | Thu Aug 14 17:04:42 -0700 2008 | [koke] |
| |
po/ | Thu Aug 14 17:04:42 -0700 2008 | [koke] |
| |
tasks/ | Thu Jul 24 08:26:51 -0700 2008 | [koke] |
| |
test/ | Tue Aug 19 09:03:53 -0700 2008 | [koke] |
README
= iso_countries - Store countries using ISO 3166 codes
This rails plugin enables you to store country info only with the country's ISO-3166 code
== Example
class Company < ActiveRecord::Base
iso_country :country
end
c = Company.new :country => "es"
c.country # => "es"
c.country_name # => "Spain"
c.country_name = "France"
c.country # => "fr"
ISO::Countries.set_language "es"
c.country_name # => "Francia"
<% form_for @company do |f| %>
<%= f.iso_country_select :country, [:es, :en] %>
<% end %>
== Acknowledgements
Translations are provided by the iso-codes package
http://pkg-isocodes.alioth.debian.org/
== License
Copyright (c) 2008 Jorge Bernal <jbernal@warp.es>, released under the MIT license





