lib/formtastic/inputs/file_input.rb in formtastic-3.0.0 vs lib/formtastic/inputs/file_input.rb in formtastic-3.1.0.rc1

- old
+ new

@@ -18,19 +18,19 @@ # <% end %> # # <form...> # <fieldset> # <ol> - # <li class="email"> + # <li class="file"> # <label for="user_avatar">Avatar</label> # <input type="file" id="user_avatar" name="user[avatar]"> # </li> # </ol> # </fieldset> # </form> # # @see Formtastic::Helpers::InputsHelper#input InputsHelper#input for full documentation of all possible options. - class FileInput + class FileInput include Base def to_html input_wrapping do label_html << builder.file_field(method, input_html_options)