diff app/views/pastes/show.html.erb @ 241:e413246bb589

Use `.to_param` instead of `.id`.
author edogawaconan <me@myconan.net>
date Mon, 07 Oct 2013 13:15:37 +0900
parents 22c4b5f90e24
children 2d5c09a73958
line wrap: on
line diff
--- a/app/views/pastes/show.html.erb	Mon Oct 07 13:14:37 2013 +0900
+++ b/app/views/pastes/show.html.erb	Mon Oct 07 13:15:37 2013 +0900
@@ -53,7 +53,7 @@
 <div>
   <ul class="nav nav-pills">
     <li><%= link_to 'Raw', paste_path(@paste, :txt) %></li>
-    <li><%= link_to 'New paste based on this', root_path(:base => @paste.id) %></li>
+    <li><%= link_to 'New paste based on this', root_path(:base => @paste.to_param) %></li>
     <li><%= link_to 'More Paste', root_path %></li>
   </ul>
 </div>