app/views/items/edit.html.erb in wontomedia-0.0.2 vs app/views/items/edit.html.erb in wontomedia-0.1.0
- old
+ new
@@ -41,10 +41,10 @@
<%= render :partial => "form_fields", :locals => { :f => f } %>
<p><%= f.submit "Update", :tabindex => "10" %></p>
<% end %>
<div class="horizontal-link-list"><ul>
- <li><%= link_to 'Cancel, show item', item_path(@item),
+ <li><%= link_to 'Cancel, show item', item_by_name_path(@item.name),
:rel => 'nofollow' -%></li>
<li><%= link_to 'Cancel, show item list', items_path,
:rel => 'nofollow' -%></li>
</ul></div>