开发者

I18n gem update causing error message crazyness in rails 2.3.8

开发者 https://www.devze.com 2023-01-31 08:22 出处:网络
This question is already here: Why doesn't Rails' "errors.full_messages" replace attribute and message variables?

This question is already here:

Why doesn't Rails' "errors.full_messages" replace attribute and message variables?

... but it hasn't been answered yet and I am sure it's because of the gem I18n -version "0.5.0".

This error suddenly appeared for me and I'm just assuming it is because heroku is now using the latest gem version.

How can I get the whole application to use the previous version '开发者_运维知识库0.4.1' or fix how the error messages without having to change the .yml or if I have to how would I setup the en.yml.

This is what is happening:

I18n gem update causing error message crazyness in rails 2.3.8

All error messages are now appearing like this with {{attribute}} {{message}} instead of the default which I would rather have.


See my answer to original question, Why doesn't Rails' "errors.full_messages" replace attribute and message variables?

0

精彩评论

暂无评论...
验证码 换一张
取 消