ruby on rails - How to retrieve error messages when using Mongoid's #valid? -


this short , simple question. i'm validating mongoid documents in memory (without persisting them) using mongoid's #valid? method.

i want retrieve error messages when validation unsuccessful. how can retrieve them?, because @target.errors.full_messages throwing empty array.

thanks,

closed question

the @target.errors.full_messages indeed contains error messages. me making mistake.

best,


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -