Merge pull request #1290 from nicholasjhenry/fixes/readme-code-example

Fix invalid ActiveRecord query example in README
This commit is contained in:
Rafael Mendonça França 2015-07-31 16:32:19 -03:00
commit 4166012c05
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ The association helper just invokes `input` under the hood, so all options avail
the collection by hand, all together with the prompt:
```ruby
f.association :company, collection: Company.active.all(order: 'name'), prompt: "Choose a Company"
f.association :company, collection: Company.active.order(:name), prompt: "Choose a Company"
```
In case you want to declare different labels and values: