My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 31: [PATCH] Active Record validation messages not humanized
1 person starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by jcalas, Jun 04, 2008
Active Record validation messages are humanized sentences by default. For
example:

"Name can't be blank"
"Master price can't be blank"

for name and master_price attributes.

With globalite enabled this messages are:

"name can't be blank"
"master_price can't be blank"

Solution:

It's just to add humanize method to the localized attribute name. 

Here is a patch
globalite_localized_active_record_humanize_errors.patch
602 bytes   Download
Comment 1 by mattAimonetti, Jun 04, 2008
(No comment was entered for this change.)
Status: Accepted
Sign in to add a comment

Hosted by Google Code