list.rhtml

来自「A Hotel Management System based on Ruby 」· RHTML 代码 · 共 29 行

RHTML
29
字号
<h1>Listing notes for <%= @customer.name %></h1><table>  <tr>  <% for column in Note.content_columns %>    <th><%= column.human_name %></th>  <% end %>  </tr>  <% for note in @notes %>  <tr>  <% for column in Note.content_columns %>    <td><%=h note.send(column.name) %></td>  <% end %>        <td><%= link_to 'Destroy', { :action => 'destroy', :id => note, :customer_id => @customer.id }, :confirm => 'Are you sure?' %>    </td>  </tr><% end %></table><%= link_to 'Previous page', { :page => @note_pages.current.previous } if @note_pages.current.previous %><%= link_to 'Next page', { :page => @note_pages.current.next } if @note_pages.current.next %> <br /><%= link_to 'New note', :action => 'new', :customer_id => @customer.id %> | <%= link_to 'Customer Details', :action => 'show', :controller => 'customer', :id => @customer.id %>

⌨️ 快捷键说明

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