I am trying to localize my rails application (webservice). I installed the gem 'rails-i18n', which works fine.
Except that it does not translate ActiveRecord::RecordNotFound message. In rails code: https://github.com/rails/rails/blob/3-2-stable/activerecord/lib/active_record/relation/finder_methods.rb
raise RecordNotFound, "Couldn't find #{@klass.name} with #{conditions.to_a.collect {|p| p.join(' = ')}.join(', ')}"
It seems that the message is hard coded.
Is there any solution, apart not using the Model.find_by_'attribute' ?