Skip to content

Commit

Permalink
Merge pull request #1150 from nruth/patch-1
Browse files Browse the repository at this point in the history
doc how to get html 5 date / time inputs
  • Loading branch information
carlosantoniodasilva committed Oct 18, 2014
2 parents b5eccd6 + f5401a0 commit 9152fee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,12 @@ and if they aren't, any plugin you use would take of using the placeholder attri
However, you can disable it if you want, by removing the placeholder component from the components
list in **Simple Form** configuration file.

HTML 5 date / time inputs are off by default and will produce select-boxes even if you have HTML 5 turned on in your config file. To force them on in a per-input fashion do:

```erb
<%= f.input :expires_at, as: :date, html5: true %>
```

## Information

### Google Group
Expand Down

0 comments on commit 9152fee

Please sign in to comment.