title: Skip JSON format in rails generate scaffold
body: <p>When you generate a rails scaffold using a command like <code>rails g scaffold Thing</code> is there any way to avoid getting that annoying</p>
  
  <pre><code>respond_to do |format|
    format.html # index.html.erb
    format.json { render json: @things }
  end
  </code></pre>
  
  <p>stuff in your controller?</p>
  
  <p>I'm trying to teach a class on Rails and I'd like to start by having them generate a scaffold, but with all the json formatting it's much more complicated than it needs to be. I'd be much happier if they could generate a scaffold that created a controller like this:</p>
  
  <pre><code>class ThingsController &lt; ApplicationController
  
    def index
      @things = Thing.all
    end
  
    def show
      @thing = Thing.find(params[:id])
    end
  
    def new
      @thing = Thing.new
    end
  
    def edit
      @thing = Thing.find(params[:id])
    end
  
    def create
      @thing = Thing.new(params[:thing])
        if @thing.save
          redirect_to @thing, notice: 'Thing was successfully created.'
        else
          render: "new" 
        end
      end
    end
  
    def update
      @thing = Thing.find(params[:id])
        if @thing.update_attributes(params[:thing])
          redirect_to @thing, notice: 'Thing was successfully updated.'
        else
          render: "edit" 
        end
      end
    end
  
    def destroy
      @thing = Thing.find(params[:id])
      @thing.destroy
      redirect_to things_url
    end
  end
  </code></pre>