Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
activerecord.errors.models.content.attributes.topic.invalid
activerecord.errors.models.content.invalid
activerecord.errors.messages.invalid
# with STI
activerecord.errors.models.post.attributes.topic.invalid # Topic is invalid for post
activerecord.errors.models.post.invalid # Post is invalid
activerecord.errors.models.content.attributes.topic.invalid # Topic is invalid for content
activerecord.errors.models.content.invalid # Content is invalid
activerecord.errors.messages.invalid # This is invalid
# with custom message
activerecord.errors.models.content.attributes.topic.custom_invalid
activerecord.errors.models.content.custom_invalid
activerecord.errors.messages.custom_invalid
activerecord.errors.messages.invalid
# with custom message with STI
activerecord.errors.models.post.attributes.topic.custom_invalid
activerecord.errors.models.post.custom_invalid
activerecord.errors.models.content.attributes.topic.custom_invalid
activerecord.errors.models.content.custom_invalid
activerecord.errors.messages.custom_invalid
activerecord.errors.messages.invalid
# with custom message with STI and default_key
activerecord.errors.models.post.attributes.topic.custom_invalid
activerecord.errors.models.post.custom_invalid
activerecord.errors.models.content.attributes.topic.custom_invalid
activerecord.errors.models.content.custom_invalid
activerecord.errors.messages.custom_invalid
activerecord.errors.messages.default_key
activerecord.errors.messages.invalid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment