ウェブでは、両方の例を見てきました
<% if @showIt -%>
some html content
<% end -%>
となし
<% if @showIt %>
some html content
<% end %>
ダッシュ。どちらのバージョンも非常にうまく機能します。それで、それはどのような違いをもたらしますか?
ありがとう!
ウェブでは、両方の例を見てきました
<% if @showIt -%>
some html content
<% end -%>
となし
<% if @showIt %>
some html content
<% end %>
ダッシュ。どちらのバージョンも非常にうまく機能します。それで、それはどのような違いをもたらしますか?
ありがとう!