返回顶部

收藏

Mix Ruby Code and HTML

更多
<html>
  <head>
    <title>Using Views</title>
  </head>
  <body>
    <h1>Working With Views</h1>
    This is an active view in a Ruby on Rails application.
    <br>
    <br>
    2 + 3 = <%= 2 + 3 %>
    <br>
    <br>
    Do loops work?
    <br>
    <% 3.times do %>
    Yes! <br>
    <% end %>
    <br>
    This page executes Ruby code on-the-fly.
  </body>
</html>

标签:Ruby,Rails

收藏

0人收藏

支持

0

反对

0