comparison app/helpers/pastes_helper.rb @ 437:d31fe32da7a0

Finish updating to rails 5
author nanaya <me@myconan.net>
date Sat, 02 Jul 2016 17:04:25 +0900
parents 68eb23b52864
children e8f159807413
comparison
equal deleted inserted replaced
436:72557a5310d9 437:d31fe32da7a0
1 module PastesHelper 1 module PastesHelper
2 def print_txt_create_result 2 def print_txt_create_result
3 if @paste.errors.any? 3 if @paste.errors.any?
4 "Failed" 4 "Failed"
5 else 5 else
6 url = paste_path @paste, :only_path => false 6 url = with_url paste_path(@paste)
7 if @fresh 7 if @fresh
8 "#{url} (key: #{@paste.key})" 8 "#{url} (key: #{@paste.key})"
9 else 9 else
10 url 10 url
11 end 11 end