How do I run multiple lines of Ruby in html.erb file

前端 未结 0 1965
星月不相逢
星月不相逢 2021-02-11 21:26

I\'m using Ruby on Rails and need to run a block of Ruby code in one of my html.erb files. Do I do it like this:

<% def name %>
<% name = username %>         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题