Sha256: 1f3a1d64189378e6b8947d86b23d230a6e248a1cbb51689c584df0a3e8c1a1af
Contents?: true
Size: 357 Bytes
Versions: 14
Compression:
Stored size: 357 Bytes
Contents
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| unless html_tag =~ /^<label/ %{<div class="field_with_errors">#{html_tag}<label for="#{ instance.send(:tag_id)}" class="message">#{ instance.error_message.first}</label></div>}.html_safe else %{<div class="field_with_errors">#{html_tag}</div>}.html_safe end end
Version data entries
14 entries across 12 versions & 4 rubygems