From 24202fc9c212d3b43f2267d677e602bfaefb4e27 Mon Sep 17 00:00:00 2001 From: Nicholas Rutherford Date: Fri, 17 Oct 2014 16:54:28 +0100 Subject: [PATCH] doc how to get html 5 date / time inputs --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 4b9b4bb7..93b4b9b4 100644 --- a/README.md +++ b/README.md @@ -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: :datetime, html5: true %> +``` + ## Information ### Google Group