show.rhtml
来自「A Hotel Management System based on Ruby 」· RHTML 代码 · 共 14 行
RHTML
14 行
<h1>Detailed customer information</h1>
<% for column in Customer.content_columns %>
<p>
<b><%= column.human_name %>:</b> <%=h @customer.send(column.name) %>
</p>
<% end %>
<%= link_to 'Edit', :action => 'edit', :id => @customer %> |
<%= link_to 'New Contract', :action => 'new', :controller => 'contract', :id => @customer %> |
<%= link_to 'List Contracts', :action => 'list', :controller => 'contract', :customer_id => @customer.id %> |
<%= link_to 'Add Note', :action => 'new', :controller => 'note', :customer_id => @customer.id %> |
<%= link_to 'List Notes', :action => 'list', :controller => 'note', :customer_id => @customer.id %>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?