Hi,
My application has been working very good befor I use gettext.
After I install the gettext gem and run ‘rake updatepo’, the
‘error_messages_for’ helper can’t works.
When rails needs to show some database fields errors, I got the
following error messages:
========================
NoMethodError in Orders#create
Showing app/views/orders/_form.rhtml where line #1 raised:
undefined method `human_attribute_table_name_for_error’ for
ActiveRecord::Base:Class
Extracted source (around line #1):
1: <%= error_messages_for ‘order’ %>
2:
3:
4:
Trace of template inclusion: /app/views/orders/new.rhtml
RAILS_ROOT: /var/www/qixiao/public/…/config/…
==============================
need you help .
Thank you.