# HG changeset patch # User Edho Arief # Date 1349323258 -25200 # Node ID 48598fc65c20f9ae09d69aaba74d198898f7512b # Parent f480cdf5f3df47f0088cb8533fac6358dbc90219 Fixed comments on pastes_controller. diff -r f480cdf5f3df -r 48598fc65c20 app/controllers/pastes_controller.rb --- a/app/controllers/pastes_controller.rb Thu Oct 04 10:58:57 2012 +0700 +++ b/app/controllers/pastes_controller.rb Thu Oct 04 11:00:58 2012 +0700 @@ -1,8 +1,8 @@ class PastesController < ApplicationController caches_page :show - # GET /pastes/1 - # GET /pastes/1.json + # GET /1 + # GET /1.txt def show id = params[:id].to_i if id.to_s != params[:id] @@ -13,12 +13,11 @@ respond_to do |format| format.html # show.html.erb - format.txt # show.html.erb + format.txt # show.txt.erb end end - # GET /pastes/new - # GET /pastes/new.json + # GET / def new @paste = Paste.new begin @@ -32,8 +31,9 @@ end end - # POST /pastes + # POST / # POST /pastes.json + # POST /pastes.txt def create @paste = Paste.new if params[:paste] and not params[:paste][:paste].blank?