Mercurial > zeropaste
changeset 241:e413246bb589
Use `.to_param` instead of `.id`.
author | edogawaconan <me@myconan.net> |
---|---|
date | Mon, 07 Oct 2013 13:15:37 +0900 |
parents | 16251b94eb6c |
children | 8ab17063419f |
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 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>