Sha256: 2f96a39e781865d73e486b25488e6c5849121a5aace0b17619d1e66d76153fd8
Contents?: true
Size: 343 Bytes
Versions: 2
Compression:
Stored size: 343 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tiny-rails-0.1.1 | lib/tiny-rails/app/initializers/client_side_validations.rb |
tiny-rails-0.1.0 | lib/tiny-rails/app/initializers/client_side_validations.rb |