Mercurial > zeropaste
comparison app/controllers/pastes_controller.rb @ 75:8f6a0204b2a7
Disabled responding to pastes#new format json.
Nothing can normally reach that right now.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 04 Oct 2012 11:01:38 +0700 |
parents | 48598fc65c20 |
children | 2fb80ca710e0 |
comparison
equal
deleted
inserted
replaced
74:48598fc65c20 | 75:8f6a0204b2a7 |
---|---|
25 rescue | 25 rescue |
26 end | 26 end |
27 | 27 |
28 respond_to do |format| | 28 respond_to do |format| |
29 format.html # new.html.erb | 29 format.html # new.html.erb |
30 format.json { render :json => @paste } | |
31 end | 30 end |
32 end | 31 end |
33 | 32 |
34 # POST / | 33 # POST / |
35 # POST /pastes.json | 34 # POST /pastes.json |