Posted by Hallelujah in Uncategorized, metaprogramming, rails, ruby on October 8, 2009
Rails 2.3.4 broke gettext_activerecord 2.0.4 Well I did not test other gems of the mutoh gettext set of libraries but here is the gulty code that breaks rails. Since Activerecord::Errors changed its implementation a bit, an error like this is raised : NoMethodError: undefined method `gsub’ for #<ActiveRecord::Error:0×00000002919738> from /home/hallelujah/Jail/lib/ruby/gems/1.9.1/gems/gettext_activerecord-2.0.4/lib/gettext_activerecord/validations.rb:165:in `localize_error_message’ from /home/hallelujah/Jail/lib/ruby/gems/1.9.1/gems/gettext_activerecord-2.0.4/lib/gettext_activerecord/validations.rb:112:in `block (2 [...]
2.0.4, 2.3.4, activerecord, active_record, gettext, I18n, internationalisation, internationalization, L10n, localization, rails, ruby
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^