app/views/fields/number/_form.html.erb in administrate-0.0.12 vs app/views/fields/number/_form.html.erb in administrate-0.1.0

- old
+ new

@@ -1,16 +1,33 @@ +<%# +# Number Form Partial + +This partial renders an input element for number attributes. +By default, the input is a text field. + +## Local variables: + +- `f`: + A Rails form generator, used to help create the appropriate input fields. +- `field`: + An instance of [Administrate::Field::Number][1]. + A wrapper around the number pulled from the database. + +[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Number +%> + <%= f.label field.attribute %> <%= f.text_field field.attribute %>