Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

field_with_errors output with DIV, not SPAN #2057

Closed
andriytyurnikov opened this Issue · 2 comments

2 participants

@andriytyurnikov

ActionView::Base.field_error_proc
returns div as a container for field with errors:

@@field_error_proc = Proc.new{ |html_tag, instance| "

#{html_tag}
".html_safe }

Which is evil in some cases (output inside of paragraph).

It would be pleasant to hear reason behind keeping DIV output there :)

@pixeltrix
Owner

This was debated at length under ticket 1626 on the old Lighthouse tracker. The ticket was marked as wontfix because the scaffold outputs div tags and not p tags so it isn't an issue.

@pixeltrix pixeltrix closed this
@andriytyurnikov

Thanks, but that URL is not public, any chance to re-raise the question?

Some people do not use scaffold at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.