参见英文答案 >
Difference between -%> and %> in rails 4个
> What is the difference between <%,<%=,<%# and -%> in ERB in Rails?7个
我一直使用<%= some_code%>在使用Ruby on Rails时将Ruby插入HTML.我刚刚注意到其他项目有时使用<%= some_code - %>.
> What is the difference between <%,<%=,<%# and -%> in ERB in Rails?7个
我一直使用<%= some_code%>在使用Ruby on Rails时将Ruby插入HTML.我刚刚注意到其他项目有时使用<%= some_code - %>.