mjbellantoni/formtastic-bootstrap — pull request #3 by oneiros (2011-11-30 17:06:21+00:00)
Title: Date/time inputs do not work

Thanks a lot for this awesome plugin! It helps a lot with using formtastic alongside bootstrap.

However, I encountered a problem with datetime inputs. To me, it looks like a search and replace error: You might have simply changed formtastic's select to text_field. But formtastic dynamically decides whether to use select_date, select_time or select_datetime, while in your use case, only a simple text_field is needed.

Formtastic simply appends the appropriate postfix to "select". Appending the same thing to "text_field" results in NoMethodErrors.

I made a quick fix that you might or might not want to pull. In any case, I would love to see this issue resolved.

Sorry for not including test cases. I got dozens of error messages running the specs (probably an incompatibility with the version of formtastic I checked out) and I gave up on fixing this. Maybe adjusting the Gemfile to not point to a local path for formtastic could help.

Keep up the good work!