projects
/
depot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Redid up to end of Chapter 6 under Rails2.2.2 and Gems 1.3.1, with Product.date_available
[depot.git]
/
app
/
views
/
products
/
new.html.erb
diff --git
a/app/views/products/new.html.erb
b/app/views/products/new.html.erb
index f93593799e4963301c96ddaf4aa8f6e73d1956fa..9eac9ae2ef1ed723c9c91d4c7f6a29c480e3f68a 100644
(file)
--- a/
app/views/products/new.html.erb
+++ b/
app/views/products/new.html.erb
@@
-15,6
+15,14
@@
<%= f.label :image_url %><br />
<%= f.text_field :image_url %>
</p>
<%= f.label :image_url %><br />
<%= f.text_field :image_url %>
</p>
+ <p>
+ <%= f.label :price %><br />
+ <%= f.text_field :price %>
+ </p>
+ <p>
+ <%= f.label :date_available %><br />
+ <%= f.date_select :date_available, :order => [:day, :month, :year] %>
+ </p>
<p>
<%= f.submit "Create" %>
</p>
<p>
<%= f.submit "Create" %>
</p>