I would like to create link for method edit which has to have link like that: /presentation/:id/edit.
<% @presentations.each do |p| %>
<a > <%= p.id %>
<a href="<%= presentation_path(p) %>" target="_blank" class="action"> Show </a>
<%= link_to "Delete", p, method: :delete %>
<%= link_to "Edit", '/presentation/:id/edit', {target: "preview" } %>
</a>
<% end %>
my link above is giving me error: RuntimeError in PresentationController#edit
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id