Forum: Ruby on Rails NoMethodError caused by gettext

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
52d83a4ca564de7e67f06855c85ff1d4?d=identicon&s=25 duzuike (Guest)
on 2007-06-10 06:28
(Received via mailing list)

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

Extracted source (around line #1):

1: <%= error_messages_for 'order' %>
3: <!--[form:order]-->

Trace of template inclusion: /app/views/orders/new.rhtml

RAILS_ROOT: /var/www/qixiao/public/../config/..


need you help .

Thank you.
This topic is locked and can not be replied to.