LOTS of stuff

This commit is contained in:
jomo
2014-04-04 01:08:17 +02:00
parent 0604bbce63
commit f290258f26
62 changed files with 1457 additions and 655 deletions

View File

@@ -0,0 +1,8 @@
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
if html_tag =~ /\<label/
html_tag
else
errors = Array(instance.error_message).join(',')
%(<span class="field_with_errors">#{html_tag}<span class="validation-error">#{errors}</span></span>).html_safe
end
end