Learn About Rails Errors Full Messages In Brief.

Asked By 30 points N/A Posted on -
qa-featured

Hello everyone,

I want to query about the rails errors full messages in detail. If anyone knows about it, please tell me.

Thank you.

SHARE
Answered By 0 points N/A #299455

Learn About Rails Errors Full Messages In Brief.

qa-featured

Rails contain a feature which permits for returning the type of a validator which is in use on an invalid attribute.

It would be very useful in API apps, where you don’t wish to return error messages, but rather symbols which are in use by API clients to form proper notifications.

You also have an option to pass additional options to offer a context for an object:

All the built-in validators create details hash by default.

Related Questions