Errors helper and field error proc
This commit is contained in:
@@ -43,5 +43,10 @@ module SubtleStorm
|
||||
g.system_tests nil
|
||||
g.template_engine :slim
|
||||
end
|
||||
|
||||
# Field error proc
|
||||
config.action_view.field_error_proc = proc do |html_tag, instance|
|
||||
field_error_helper(html_tag, instance)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user