diff app/controllers/pastes_controller.rb @ 74:48598fc65c20

Fixed comments on pastes_controller.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 11:00:58 +0700
parents f480cdf5f3df
children 8f6a0204b2a7
line wrap: on
line diff
--- 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?