comparison app/controllers/pastes_controller.rb @ 7:3a1f6c2e195d

Added raw paste view.
author Edho Arief <edho@myconan.net>
date Sun, 26 Aug 2012 11:39:07 -0700
parents 23178d3de796
children 56c17679105b
comparison
equal deleted inserted replaced
6:5e54b5ff78d0 7:3a1f6c2e195d
4 def show 4 def show
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.json { render :json => @paste } 10 format.json { render :json => @paste }
10 end 11 end
11 end 12 end
12 13
13 # GET /pastes/new 14 # GET /pastes/new