【发布时间】:2014-10-01 19:48:50
【问题描述】:
我想呈现部分但不显示我的一页按钮。我的局部是这样的;
.reward
%h4== #{number_to_currency(reward.price, precision:0)} Per Month
%h5= test.test
%h6 foo
%p= foo.description
%a.button.button-green{:href => foo(bar)} foo
我这样称呼它
= render partial: 'foo', collection: bar.rewards
如何在不显示按钮的情况下渲染此部分:这一行:
%a.button.button-green{:href => foo(bar)} foo
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-4 haml