NoMethodError caused by gettext


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’ %>

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

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


need you help .

Thank you.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs