diff app/views/pastes/show.html.erb @ 257:2d5c09a73958

Rely on implicit to_param.
author edogawaconan <me@myconan.net>
date Tue, 15 Oct 2013 18:02:25 +0900
parents e413246bb589
children f057e8c78e50
line wrap: on
line diff
--- a/app/views/pastes/show.html.erb	Mon Oct 14 17:51:27 2013 +0000
+++ b/app/views/pastes/show.html.erb	Tue Oct 15 18:02:25 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.to_param) %></li>
+    <li><%= link_to 'New paste based on this', root_path(:base => @paste) %></li>
     <li><%= link_to 'More Paste', root_path %></li>
   </ul>
 </div>