Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rderoldan1 committed Aug 5, 2013
1 parent 38104c7 commit 3abb9a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ country(:alpha3s => "USA", :alpha2s => "US", :num => 840, :name => "United State
[840, "United States", "US", "USA"]
```

#### Usage in views

```html
Assuming that your User model store country cod.
```rails
<p>Country Cod: <%= country(:num => @user.country_num)[0] %><p>
<p>Country Name: <%= country(:num => @user.country_num)[1] %><p>
<p>Country Apha2s: <%= country(:num => @user.country_num)[2] %><p>
Expand Down

0 comments on commit 3abb9a8

Please sign in to comment.