michael.hasenstein@googlemail.com
2010-Apr-26 10:45 UTC
I18N and model/attribute names in error messages
Hi, By adding a logger statement to i18n''s translate method I just found that the scope of lookups for error messages in validations is activerecord. Wasn''t this supposed to be "activemodel"? Also... This is an example for a key used in a lookup: activerecord.attributes.order.ordered_items.width As you can see "ordered_items" is under "order",which is very inconvenient - it really should be activerecord.attributes.ordered_items.width Now I''m not QUITE sure but I think that stuff worked a week or two ago, did anything change? Okay, if I misunderstand the concept my post doesn''t really belong on this list... oh well. Feel free to ignore then, but pointers are welcome. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.