Create an input which generates a datalist tag

Create an input which supports http://www.w3schools.com/tags/tag_datalist.asp
Used as follows
f.input :fieldname, as: datalist, collection: ["list", "of", "items"]
collection option accepts all formats supported by rails' options_for_select