projects
/
depot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finished chapter 9
[depot.git]
/
app
/
views
/
products
/
index.html.erb
diff --git
a/app/views/products/index.html.erb
b/app/views/products/index.html.erb
index ef89bd927117f73562e3811e38a1fa5e7205230e..3e068e6697479b9aa50cf8223096c4bb23567a05 100644
(file)
--- a/
app/views/products/index.html.erb
+++ b/
app/views/products/index.html.erb
@@
-12,7
+12,7
@@
<dt><%=h product.title %></dt>
<dd><%=h truncate(product.description.gsub(/<.*?>/, '|'),
:length => 80) %></dd>
<dt><%=h product.title %></dt>
<dd><%=h truncate(product.description.gsub(/<.*?>/, '|'),
:length => 80) %></dd>
- <dd><%=number_to_currency product.price, :unit => "
£
" %>
+ <dd><%=number_to_currency product.price, :unit => "
£
" %>
<% if product.date_available.past? %>
<dd>Available since <%= product.date_available %></dd>
<% else %>
<% if product.date_available.past? %>
<dd>Available since <%= product.date_available %></dd>
<% else %>