Rails 视图在双花括号中显示格式输入,例如 {{parameter}} 而不是实际值 [英] Rails views showing formatting input in double curly braces like {{parameter}} instead of actual values

查看:34
本文介绍了Rails 视图在双花括号中显示格式输入,例如 {{parameter}} 而不是实际值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 Rails 2.3.8 时遇到此错误

I am getting this error while using Rails 2.3.8 for following fundtions

distance_of_time_in_words

distance_of_time_in_words

节目

{{count}} 天剩余

{{count}} days remaining

和表单错误

Restful 认证登录显示无效表单如下错误

Restful authentication login shows errors like following for invalid form

{{count}} 个错误禁止保存此 {{model}}以下字段存在问题:{{属性}} {{消息}}{{属性}} {{消息}}{{属性}} {{消息}}{{attribute}} {{message}}

{{count}} errors prohibited this {{model}} from being saved There were problems with the following fields: {{attribute}} {{message}} {{attribute}} {{message}} {{attribute}} {{message}} {{attribute}} {{message}}

我怀疑没有正确应用格式.有没有人遇到过类似的问题.

I suspect that formatting is not getting applied correctly. Has anyone faced similar problem.

推荐答案

我最近看到了很多.您可能安装了不兼容的 i18n gem 版本.0.5 版本破坏了一些应用程序.尝试降级到 v. 0.4.2 或更低版本.(0.3.7 为我做的)

I've seen that a lot recently. You probably have an incompatible version of the i18n gem installed. Version 0.5 broke some applications. Try downgrading to v. 0.4.2 or below. (0.3.7 did it for me)

这篇关于Rails 视图在双花括号中显示格式输入,例如 {{parameter}} 而不是实际值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆