Skip to content
Browse files

fix example

  • Loading branch information...
1 parent ac1824d commit da7285cce2480cfa553a990424337d45637ad9b7 @tsechingho committed Mar 23, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -48,11 +48,11 @@ And this file must be included in `application.js`
Also add the class to your form field
- <%= f.text_field :author, class: 'chzn-select' %>
+ <%= f.select :author, User.all.map { |u| [u.name, u.id] }, { include_blank: true }, { class: 'chzn-select' } %>
If you use simple form as form builder
- <%= f.input :author, input_html: { class: 'chzn-select' } %>
+ <%= f.association :author, collection: User.all, include_blank: true, input_html: { class: 'chzn-select' } %>
## Gem maintenance

0 comments on commit da7285c

Please sign in to comment.
Something went wrong with that request. Please try again.