Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

:as => time, :labels => {:hour => false} result not html_safe #647

Closed
clouw opened this Issue Aug 8, 2011 · 1 comment

Comments

Projects
None yet
2 participants

clouw commented Aug 8, 2011

Adding: labels => {: hour => false} at input time, results not html safe, in rails 3.1formtastic 2.0.0.rc3

Owner

justinfrench commented Aug 9, 2011

I'm not going to be able to look at this for a few days, Any chance you can work up a patch? 99% sure it just needs some test coverage and a small change to line 150 of timeish.rb:

text.blank? ? "" : template.content_tag(:label, text, :for => fragment_id(fragment))

To

text.blank? ? "".html_safe : template.content_tag(:label, text, :for => fragment_id(fragment))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment