search for: howtochangevalidationerrordisplay

Displaying 2 results from an estimated 2 matches for "howtochangevalidationerrordisplay".

2006 Jan 19
5
TIP: Using field_error_proc to add style attributes to form elements
.../<(input|textarea|select)/ first_whitespace = html_tag =~ /\s/ html_tag[first_whitespace] = " style=''#{error_style}'' " end html_tag end (wrapping fields in a div always seems to mess my layout up a bit) From: http://wiki.rubyonrails.com/rails/pages/ HowtoChangeValidationErrorDisplay Duane Johnson (canadaduane) http://blog.inquirylabs.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060119/d199ec14/attachment.html
2005 May 17
3
validates_associated / error_messages_for
When a validates_asssociated fails... I get something like Address is invalid is there a way, preferably on a per-association basis to have the error messaage include the actual error like Zipcode is too long (max is 10 characters) _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org