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

前端 未结 0 1719
Happy的楠姐
Happy的楠姐 2021-02-11 21:36

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 %>         


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