changeset 9: | 5cf82beef889 |
author: | moriq@moriq.com |
date: | Mon Mar 10 03:22:11 2008 +0900 (16 years ago) |
permissions: | -rw-r--r-- |
description: | add scaffold product. |
1<h1>Editing product</h1>23<%= error_messages_for :product %>45<% form_for(@product) do |f| %>6 <p>7 <b>Name</b><br />8 <%= f.text_field :name %>9 </p>1011 <p>12 <b>Price</b><br />13 <%= f.text_field :price %>14 </p>1516 <p>17 <%= f.submit "Update" %>18 </p>19<% end %>2021<%= link_to 'Show', @product %> |22<%= link_to 'Back', products_path %>