comparison 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
comparison
equal deleted inserted replaced
240:16251b94eb6c 241:e413246bb589
51 </div> 51 </div>
52 52
53 <div> 53 <div>
54 <ul class="nav nav-pills"> 54 <ul class="nav nav-pills">
55 <li><%= link_to 'Raw', paste_path(@paste, :txt) %></li> 55 <li><%= link_to 'Raw', paste_path(@paste, :txt) %></li>
56 <li><%= link_to 'New paste based on this', root_path(:base => @paste.id) %></li> 56 <li><%= link_to 'New paste based on this', root_path(:base => @paste.to_param) %></li>
57 <li><%= link_to 'More Paste', root_path %></li> 57 <li><%= link_to 'More Paste', root_path %></li>
58 </ul> 58 </ul>
59 </div> 59 </div>