method

telephone_field

telephone_field(object_name, method, options = {})
public

Returns a text_field of type “tel”.

telephone_field("user", "phone")
# => <input id="user_phone" name="user[phone]" type="tel" />