Merge pull request #1150 from nruth/patch-1

doc how to get html 5 date / time inputs
This commit is contained in:
Carlos Antonio da Silva 2014-10-18 15:35:29 -03:00
commit 9152fee2c8
1 changed files with 6 additions and 0 deletions

View File

@ -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