Sha256: 9398b0c6c898754e38ee5b5c5ab343a8531d2eb1a266576a6b8277088549825f

Contents?: true

Size: 221 Bytes

Versions: 4

Compression:

Stored size: 221 Bytes

Contents

# Configure a nicer display of validation errors in model forms.
# origin: RM
ActionView::Base.field_error_proc = proc do |inner_html, instance|
  "<span class='field_with_errors'>#{inner_html}</span>".html_safe
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serum-rails-0.2.1 spec/test_apps/rails-2-3/config/initializers/saner_field_with_errors.rb
serum-rails-0.2.0 spec/test_apps/rails-2-3/config/initializers/saner_field_with_errors.rb
serum-rails-0.1.1 spec/test_app/config/initializers/saner_field_with_errors.rb
serum-rails-0.1.0 spec/test_app/config/initializers/saner_field_with_errors.rb