Sha256: b7d6f24d534a030eb951882d4a9ccdb82259b38db93b05613658e53788f2eed0

Contents?: true

Size: 543 Bytes

Versions: 3

Compression:

Stored size: 543 Bytes

Contents

class <%= class_name %>Controller < ApplicationController

  # index
  #   GET /articles
  #   GET /articles.xml
  #
  # show
  #   GET /articles/1
  #   GET /articles/1.xml
  #
  # new
  #   GET /articles/new
  #   GET /articles/new.xml
  #
  # edit
  #   GET /articles/1/edit
  #
  # create
  #   POST /articles
  #   POST /articles.xml
  #
  # put
  #   PUT /articles/1
  #   PUT /articles/1.xml
  #
  # delete
  #   DELETE /articles/1
  #   DELETE /articles/1.xml
  

<% for action in actions -%>
  def <%= action %>
  end

<% end -%>
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
PeterCoulton-rotten-generators-0.5.1 rails_generators/rotten_controller/templates/controller.rb
PeterCoulton-rotten-generators-0.6.0 rails_generators/rotten_controller/templates/controller.rb
PeterCoulton-rotten-generators-0.7.0 rails_generators/rotten_controller/templates/controller.rb