Skip to content

Instantly share code, notes, and snippets.

@svenfuchs
Created August 28, 2008 20:40
Show Gist options
  • Save svenfuchs/7818 to your computer and use it in GitHub Desktop.
Save svenfuchs/7818 to your computer and use it in GitHub Desktop.
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