GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
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
= input.input :start_time, :label => false
would render non html_safe string
Used technique used on stringish labels
render_label? ? builder.label(input_name, label_text, label_html_options) : "".html_safe
make blank label for timish fragment html safe
Could you add a test case too?
spec for timeish fragment label
I'm guessing eventually there'll be a feature request for each of the fragment labels to be removable. Passing label => false only removes the label off the full fragment set.
For now, that's a feature not a bug - right?
Merge pull request #641 from nathanscott/master
label => false on timish not html_safe > fixed
What you mean with 'each fragment'?
Currently fields are displayed like this:
Published at [year] [month] [day]
Passing false to label option you will get something like this:
[year] [month] [day]
Maybe I misunderstood the question.
@sobrinho the year, month and day (fragments) have their own labels, which formtastic.css hides.
@nathanscott correct, feature request, not a bug. Thanks for this patch.