Rails views showing formatting input in double curly braces, such as {{parameter}} instead of actual values

I get this error when using Rails 2.3.8 for the following funds

distance_of_time_in_words

shows

{{count}} days left

and errors for forms

Re-login authentication shows errors, such as the following for an invalid form

Mistakes

{{count}} prevented this from {{model}} saving There were problems with the following fields: {{attribute}} {{message}} {{attribute}} {{message}} {{attribute}} {{message}} { {attribute}} {{message}}

I suspect formatting is not applied correctly. Has anyone encountered a similar problem.

+4
source share
1 answer

I saw this recently. You probably have an incompatible version of i18n gem installed. Version 0.5 broke some applications. Try downgrading to version 0.4.2 or lower. (0.3.7 did it for me)

+4
source

Source: https://habr.com/ru/post/1332508/


All Articles