Permalink
Browse files

Iteration C3: Using a Helper to Format the Price

  • Loading branch information...
horacix committed May 9, 2011
1 parent 297abe2 commit f912ea7e2c1672f4c397737f50b3d3564f31007a
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/store/index.html.erb
@@ -10,7 +10,7 @@
<h3><%= product.title %></h3>
<%= sanitize(product.description) %>
<div class="price_line" >
- <span class="price" ><%= product.price %></span>
+ <span class="price" ><%= number_to_currency product.price %></span>
</div>
</div>
<% end %>

0 comments on commit f912ea7

Please sign in to comment.