lib/formtastic/inputs/phone_input.rb in formtastic-2.0.2 vs lib/formtastic/inputs/phone_input.rb in formtastic-2.1.0.beta1

- old
+ new

@@ -16,19 +16,20 @@ # <form...> # <fieldset> # <ol> # <li class="phone"> # <label for="user_mobile">Mobile</label> - # <input type="phone" id="user_mobile" name="user[mobile]"> + # <input type="tel" id="user_mobile" name="user[mobile]"> # </li> # </ol> # </fieldset> # </form> # - # @see Formtastic::Helpers::InputsHelper#input InputsHelper#input for full documetation of all possible options. + # @see Formtastic::Helpers::InputsHelper#input InputsHelper#input for full documentation of all possible options. class PhoneInput include Base include Base::Stringish + include Base::Placeholder def to_html input_wrapping do label_html << builder.phone_field(method, input_html_options) \ No newline at end of file