Rails: NameError (uninitialized constant ActiveRecord::RecordNotUnique)
I have a problem with my rails app. I get the following Error:
NameError (uninitialized constant ActiveRecord::RecordNotUnique)
Im not sure w开发者_运维技巧hy this is as it works on my development environment. The exception gets tested by:
begin ... rescue ActiveRecord::RecordNotUnique next end
Lg Markus
When are you seeing this problem i.e. test, production?
What version of ActiveRecord do you have on this environment?
Update:
As far as I am aware ActiveRecord::RecordNotUnique became available in version 3.0.0 onwards apidock.com/rails/ActiveRecord/RecordNotUnique You need to have this version or greater to use this database exception.
精彩评论