#i am trying to display a particular product by clicking on it from the list
#i am trying this
<ul>
<% products.each do |product| %>
<tr>
<a href="<%= products_path(@product) %>"><%= product.title %> . </a>
<br/>
</tr>
<% end %>
</ul>
expected results should be poducts/1 but th result is products.1 and displays a list of products
Aucun commentaire:
Enregistrer un commentaire