I am developing a Rails 2.3.8 app and I stumbled upon a strange form error:
in all errors messages in any input forms, the variable count is not expanded.
As instance if I fill in the following form with a too long string (> 300 chars, I’ve set max=300), the form will display the message:
“is too long (maximum is {{count}} characters)” instead of:
“is too long (maximum is 300 characters)”
- form_for(@event) do |f|
= f.label :description
%br
= f.text_area :description
= f.error_message_on :description
Do you have any ideas why this happens ?
many thanks
Redmine had this issue and they fixed it in 1.0.5.
See here for the changes:
http://www.redmine.org/news/49
in the message they say something along these lines:
so i assume you need to install the 0.4.2 i18n gem 🙂