Permalink
Browse files

Describe new functionality of :range and :numeric fields in readme.

  • Loading branch information...
1 parent cd55b01 commit 60c6b3f8511104ca0e08fc3898d9266898ace0a4 @farnoy farnoy committed Feb 1, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.textile
View
@@ -304,14 +304,15 @@ The Formtastic input types:
* @:time@ - a time select. Default for column types: @:time@.
* @:boolean@ - a checkbox. Default for column types: @:boolean@.
* @:string@ - a text field. Default for column types: @:string@.
-* @:numeric@ - a text field (just like string). Default for column types: @:integer@, @:float@, and @:decimal@.
+* @:numeric@ - a text field (just like string). Default for column types: @:integer@, @:float@, and @:decimal@. Handles range validations.
* @:file@ - a file field. Default for file-attachment attributes matching: "paperclip":http://github.com/thoughtbot/paperclip or "attachment_fu":http://github.com/technoweenie/attachment_fu.
* @:country@ - a select menu of country names. Default for column types: :string with name @"country"@ - requires a *country_select* plugin to be installed.
* @:email@ - a text field (just like string). Default for columns with name matching @"email"@. New in HTML5. Works on some mobile browsers already.
* @:url@ - a text field (just like string). Default for columns with name matching @"url"@. New in HTML5. Works on some mobile browsers already.
* @:phone@ - a text field (just like string). Default for columns with name matching @"phone"@ or @"fax"@. New in HTML5.
* @:search@ - a text field (just like string). Default for columns with name matching @"search"@. New in HTML5. Works on Safari.
* @:hidden@ - a hidden field. Creates a hidden field (added for compatibility).
+* @:range@ - a slider field. Handles range validations.
The comments in the code are pretty good for each of these (what it does, what the output is, what the options are, etc.) so go check it out.

0 comments on commit 60c6b3f

Please sign in to comment.