Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #151 from vatrai/action_view_basic

date_field docs for action view
  • Loading branch information...
commit fc8c4e60d8f119d685be75b19a65ae425b83ebeb 2 parents ecd48f7 + 975080d
@vatrai vatrai authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 guides/source/
17 guides/source/
@@ -1230,6 +1230,14 @@ Return select and option tags for the given object and method, using `time_zone_
time_zone_select( "user", "time_zone")
+#### date_field
+Returns an input tag of the "date" type tailored for accessing a specified attribute.
+date_field("user", "dob")
### FormTagHelper
Provides a number of methods for creating form tags that doesn't rely on an Active Record object assigned to the template like FormHelper does. Instead, you provide the names and values manually.
@@ -1364,6 +1372,15 @@ text_field_tag 'name'
# => <input id="name" name="name" type="text" />
+#### date_field_tag
+Creates a standard input field of date type.
+date_field_tag "dob"
+# => <input id="dob" name="dob" type="date" />
### JavaScriptHelper
Provides functionality for working with JavaScript in your views.
Please sign in to comment.
Something went wrong with that request. Please try again.