README.md in pubdraft-0.0.1 vs README.md in pubdraft-0.0.2
- old
+ new
@@ -39,9 +39,24 @@
MyModel.published #=> [published records]
MyModel.drafted #=> [drafted records]
```
+## View Helpers
+
+The gem provides a view helper to easily populate select boxes
+```erb
+<!-- Standard Form Helpers -->
+<%= form_for @record do |f| %>
+ <%= f.select :state, pubdraft_state_options %>
+<% end %>
+
+<!-- Formtastic -->
+<%= semantic_form_for @record do |f| %>
+ <%= f.input :state, :collection => pubdraft_states_for_select, :as => :select %>
+<% end %>
+```
+
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)