comparison app/controllers/pastes_controller.rb @ 246:8ab17063419f

Forgot to push production's updates.
author edogawaconan <me@myconan.net>
date Mon, 07 Oct 2013 04:18:17 +0000
parents 16251b94eb6c
children 6cca1ab53337
comparison
equal deleted inserted replaced
245:8dfbf854fad3 246:8ab17063419f
16 16
17 # GET / 17 # GET /
18 def new 18 def new
19 @paste = Paste.new 19 @paste = Paste.new
20 @paste.set_paste_key 20 @paste.set_paste_key
21 begin 21 @paste.paste = Paste.safe_find(params[:base]).try(:paste)
22 @paste.paste = Paste.find(params[:base]).paste
23 rescue
24 end
25 22
26 respond_to do |format| 23 respond_to do |format|
27 format.html # new.html.erb 24 format.html # new.html.erb
28 end 25 end
29 end 26 end