Forum: Ruby on Rails validations using acts_as_taggable

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E98de78bb42013c488fe8aa9d77d2cb1?d=identicon&s=25 Steve Odom (Guest)
on 2006-03-17 17:40
(Received via mailing list)
Can anyone provide me an example of how they are displaying validation
errors when saving a tag using Demetrius's (not DHH's) act_as_taggable
plugin?

For example, the tag model has a

:validates_length_of :name, :in => 1..30, :too_long => "Tag name too
long -
max 30 characters", :too_short => "Tag must have a name"

If a user inputs a tag longer than 30 characters, how are you displaying
the
error_messages_on :tag messages?

Thanks,

Steve
http://www.smarkets.net
This topic is locked and can not be replied to.