Active Record Errors

Dear Friends,

I am using rails 2.3.8 version and I unknowingly removed

activerecord gem. I installed activerecord 2.3.8 version into my
machine. I started my application. When I give invalid input for any of
the form, errors will be thrown based on validation specifiers defined
in the model. To check this, I given invalid input. At the time, it
thrown error not with defined message, instead it displayed
{{attribute}} {{message}}. I also checked this with console. In console
also, I got the same behavior. I used inspect of Model.errors.inspect.
At the time, it contains field name with error messages correctly. But,
Model.error.full_messages isn’t working. Kindly give solution for it.
Thanks in advance.

Regards,
Vivek.

Dear All,

I solved this issue. I got the above error because of i18n gem

version 0.5. I uninstalled it and I used 0.4.1. Then, it displayed
message correctly. If we don’t need it, we can also specify the version
in config/preinitializer.rb as follows,

require ‘rubygems’
begin
gem ‘i18n’, “~> 0.4.0”
rescue LoadError
end

Regards,
Vivek