Difference between <% … %> and <%= .. %> in rails 3

前端 未结 5 723
别那么骄傲
别那么骄傲 2020-12-09 13:59

I have test method in helpers/application_helper.rb file:

def test
  concat(\"Hello world\")
end

Then, in index.html.erb I call as:

5条回答
提交回复
热议问题