Fix invalid ActiveRecord query example in README

This commit is contained in:
Nicholas Henry 2015-07-31 15:25:07 -04:00
parent cdc1718b6a
commit dadd496f26
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: