Listing products

<% for product in @products %> <% end %>
Name Description Rate Min amount to borrow Max amount to borrow
<%=h product.name %> <%=h product.description %> <%=h number_to_percentage(product.rate) %> <%=h number_to_currency(product.min_amount) %> <%=h number_to_currency(product.max_amount) %> <%= link_to 'Show', product %> <%= link_to 'Edit', edit_product_path(product) %> <%= link_to 'Destroy', product, :confirm => 'Are you sure?', :method => :delete %>

<%= link_to 'New product', new_product_path %>