Skip to navigation
How to take out the wrap div from the error messag for page?
07.12.13
copy this to the env in config: ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| if html_tag.include?("class=") html_tag.sub(%r{(class=["'])}, '\1invalid ') else html_tag.sub(%r{(<[^ ]+ )}, '\1class="invalid" ') end end
Reply
Anonymous
how to take out the wrap div from the error messag for page?
copy this to the env in config: ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| if html_tag.include?("class=") html_tag.sub(%r{(class=["'])}, '\1invalid ') else html_tag.sub(%r{(<[^ ]+ )}, '\1class="invalid" ') end end
07.12.13
Reply
Anonymous
Information Epoch 1732375043
Separate policy from mechanism, separate interfaces from engines.
Home
Notebook
Contact us