Mercurial > zeropaste
changeset 257:2d5c09a73958
Rely on implicit to_param.
author | edogawaconan <me@myconan.net> |
---|---|
date | Tue, 15 Oct 2013 18:02:25 +0900 |
parents | 0b5f83d99c54 |
children | ceb44fca8b4a |
files | app/views/pastes/show.html.erb |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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>