Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JomaMinoza committed May 2, 2017
1 parent dbcf41c commit 1192397
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Data in this gem was taken from Github GIST and the following repos:

Add this line to your application's Gemfile:

gem 'nationality', '~> 0.0.2'
gem 'nationality', '~> 1.0.3'

And then execute:

Expand All @@ -27,6 +27,14 @@ This gem provides the following constant arrays:

* `Nationality::NATIONALITY`

## New! Options for Select Helper

Customize `options_for_select` with default nationality for your Rails application.

```ruby
= f.select :nationality, options_for_select(Nationality::Nationality.default_option("filipino"), :selected => f.object.nationality), {include_blank: "What's your nationality?"}, {:class => 'form-control' }
```

## Contributing

1. Fork it
Expand Down

0 comments on commit 1192397

Please sign in to comment.