Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

About this user

Aaron http://www.stocad.com

« Newer Snippets
Older Snippets »
1 total  XML / RSS feed 

Adding an error to the model

// description of your code here
How to manually add errors to the model
Should probably be done as part of the validate callback

self.errors.add :field_name, "isn't as it should be"
« Newer Snippets
Older Snippets »
1 total  XML / RSS feed