Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Iteration C3: Using a Helper to Format the Price

  • Loading branch information...
commit f912ea7e2c1672f4c397737f50b3d3564f31007a 1 parent 297abe2
@horacix authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/views/store/index.html.erb
View
2  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 %>
Please sign in to comment.
Something went wrong with that request. Please try again.