diff options
author | Vishnu Atrai <me@vishnuatrai.com> | 2013-06-15 05:55:10 -0700 |
---|---|---|
committer | Vishnu Atrai <me@vishnuatrai.com> | 2013-06-15 05:55:10 -0700 |
commit | fc8c4e60d8f119d685be75b19a65ae425b83ebeb (patch) | |
tree | 95370804b7d067679b57f2a8741cebe46f2aa8a6 /guides | |
parent | ecd48f71af4af1dcf49fd9cea42eeaf9fa1d9495 (diff) | |
parent | 975080d1e1126d3489e603d89286150b321a9292 (diff) | |
download | rails-fc8c4e60d8f119d685be75b19a65ae425b83ebeb.tar.gz rails-fc8c4e60d8f119d685be75b19a65ae425b83ebeb.tar.bz2 rails-fc8c4e60d8f119d685be75b19a65ae425b83ebeb.zip |
Merge pull request #151 from vatrai/action_view_basic
date_field docs for action view
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/action_view_overview.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md index dea1ddef71..57a157389d 100644 --- a/guides/source/action_view_overview.md +++ b/guides/source/action_view_overview.md @@ -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. + +```ruby +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. + +```ruby +date_field_tag "dob" +# => <input id="dob" name="dob" type="date" /> +``` + ### JavaScriptHelper Provides functionality for working with JavaScript in your views. |