Permalink
Browse files

Updated documentation.

  • Loading branch information...
1 parent d3a0712 commit be644f7dc188df83b728492ea1b665a38a295630 @josevalim josevalim committed May 9, 2009
Showing with 3 additions and 1 deletion.
  1. +1 −0 README.textile
  2. +2 −1 lib/formtastic.rb
View
1 README.textile
@@ -227,6 +227,7 @@ Customize the HTML attributes for the @<li>@ wrapper around every input with the
h2. The Available Inputs
* :select (a select menu) - default for ActiveRecord associations (belongs_to, has_many, has_and_belongs_to_many)
+* :check_boxes (a set of check_box inputs) - alternative to :select has_many and has_and_belongs_to_many associations
* :radio (a set of radio inputs) - alternative to :select for ActiveRecord belongs_to associations
* :time_zone (a select input) - default for :string column types with 'time_zone' in the method name
* :password (a password input) - default for :string column types with 'password' in the method name
View
3 lib/formtastic.rb
@@ -55,8 +55,9 @@ class SemanticFormBuilder < ActionView::Helpers::FormBuilder
# columns all map to a single numeric_input, for example).
#
# * :select (a select menu for associations) - default to association names
+ # * :check_boxes (a set of check_box inputs for associations) - alternative to :select has_many and has_and_belongs_to_many associations
+ # * :radio (a set of radio inputs for associations) - alternative to :select belongs_to associations
# * :time_zone (a select menu with time zones)
- # * :radio (a set of radio inputs for associations) - default to association names
# * :password (a password input) - default for :string column types with 'password' in the method name
# * :text (a textarea) - default for :text column types
# * :date (a date select) - default for :date column types

0 comments on commit be644f7

Please sign in to comment.