comparison app/controllers/pastes_controller.rb @ 12:f3adcff48173

Whoops, forgot to hide the ip etc in json. Removed for now.
author Edho Arief <edho@myconan.net>
date Sun, 26 Aug 2012 12:04:48 -0700
parents 56c17679105b
children 59ef6698fa0d
comparison
equal deleted inserted replaced
11:c7bdd65f1a1d 12:f3adcff48173
5 @paste = Paste.find(params[:id]) 5 @paste = Paste.find(params[:id])
6 6
7 respond_to do |format| 7 respond_to do |format|
8 format.html # show.html.erb 8 format.html # show.html.erb
9 format.txt # show.html.erb 9 format.txt # show.html.erb
10 format.json { render :json => @paste }
11 end 10 end
12 end 11 end
13 12
14 # GET /pastes/new 13 # GET /pastes/new
15 # GET /pastes/new.json 14 # GET /pastes/new.json