I think this would need to_sym particularly so can pass in string "datetime-local"? Or am I missing something.