Hello,
I am a new user in Phoenix world, and apologies for my naive question.
I am trying to generate links to Routes from HTML template like below and create issues while sending parameters. Could anyone suggest to me a suitable way for it?
<h2>Products</h2>
<table class="table" >
<thead>
<tr>
<th>Product Name </th>
<th>Quantity </th>
<th># of Votes </th>
<th>Average Rate</th>
<th> Link to Rate </th>
</tr>
</thead>
<tbody>
<%= for product <- @products do %>
<tr>
<td><%= product.name %></td>
<td><%= product.quantity %></td>
<td><%= product.votes %></td>
<td><%= product.avgrating %></td>
<td><%= link "link", to: Routes.product_path(@conn, :create, product) %>
</tr>
<% end %>
</tbody>
</table>