You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this today. An unpersisted model was set with an invalid state to prove that the validations would not allow it and I later added an :if => :my_state? validation conditional and then validating the invalid model raised an exception.
Given
The error isn't immediately obvious to the user/developer.
Possible solutions:
current_state
specifically informing the user of the invalid stateLet me know what direction you want to go with this and I'll submit a patch.
The text was updated successfully, but these errors were encountered: