comparison app/helpers/pastes_helper.rb @ 431:68eb23b52864

Rails 5 \o/
author nanaya <me@myconan.net>
date Fri, 13 May 2016 03:56:07 +0900
parents 45fef9116924
children d31fe32da7a0
comparison
equal deleted inserted replaced
430:6257da6e1aa1 431:68eb23b52864
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 = paste_path @paste, :only_path => false
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