【发布时间】:2014-07-22 15:16:38
【问题描述】:
我无法在视图中显示布尔值的结果
我想显示启用和禁用但显示真假
我在 index.html.slim 中的代码
th Active?
td = plan.enable
我在 show.html.slim 中的代码
p
strong Active ?:
= @plan.enable
我该如何解决这个问题?
【问题讨论】:
标签: html ruby-on-rails view internationalization boolean