RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: alexeymuranov
It should be mentioned that for the custom validation to work, the lib directory must be loaded with config.autoload_paths += %W[#{config.root}/lib/] in application.rb.
config.autoload_paths += %W[#{config.root}/lib/]
It should be mentioned that for the custom validation to work, the lib directory must be loaded with
config.autoload_paths += %W[#{config.root}/lib/]
in application.rb.