Skip to content

Commit

Permalink
date_field docs for action view
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishnu Atrai committed Jun 15, 2013
1 parent 7ca82da commit 975080d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions guides/source/action_view_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 975080d

Please sign in to comment.