welcome.rhtml

来自「本书源码对于学习RUBY网络编程语言非常有帮助。」· RHTML 代码 · 共 40 行

RHTML
40
字号
<% if @c %>  <h3>Welcome, <%= @c.first_name %>.</h3><% end %><h2 class="info">Browse works by...</h2><table>  <tr>    <th>...Period</th>    <th>...Composer</th>    <th>...Instrument</th>  </tr>  <tr>    <td>      <%= render :partial => "period_list" %>    </td>    <td>      <%= render :partial => "composer/list" %>    </td>    <td>      <%= render :partial => "instrument/list" %>    </td>  </tr></table><% if @c %>  <%= render :partial => "favorites" %><% else %>  <h2 class="info">Log in or create an account</h2>  <table border="1">    <tr>      <th>Log in to your account</th>      <th>Sign up for an account</th>    </tr>    <tr>      <td><%= render :partial => "customer/login" %></td>      <td><%= render :partial => "customer/signup" %></td>    </tr>  </table><% end %>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?