Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: steve odom
validation howto [ reply ]  
2006-03-18 19:58
I've got acts_as_taggable working no problem. But what I haven't not been able to do is return validation error messages. For example, what if a tag exceeds the 20 character limit mark and violates validates_length_of in my tag model? How do I get it to return the error message? My other models correctly return my validation errors, but, I think, since, I am creating a tag through through @object.tag("mytag), the error_messages_for :tag never get triggered. Does anyone have an example of a succesful implementation they could share?