Prevent rails from adding error div in form helpers

This commit is contained in:
Thibault Jouan 2015-05-04 20:51:35 +00:00
parent e647aa257f
commit 61d1548b59

View File

@ -36,6 +36,10 @@ module Scube
# config.assets.precompile += %w[]
config.action_view.field_error_proc = proc do |html_tag, instance|
html_tag.html_safe
end
config.sounds_path = Rails.env.test? ?
File.join('data', Rails.env, 'sounds') :
File.join('data', 'sounds')