Sha256: 16181247669cc2f7d4570666a322fbb2114bce6d60c1296e02682d4fd5841c17

Contents?: true

Size: 667 Bytes

Versions: 7

Compression:

Stored size: 667 Bytes

Contents

module <%= namespace.classify %>
  class <%= class_name.pluralize %>Controller < <%= namespace.classify %>::ApplicationController
    # To customize the behavior of this controller,
    # you can overwrite any of the RESTful actions. For example:
    #
    # def index
    #   super
    #   @resources = <%= class_name %>.
    #     page(params[:page]).
    #     per(10)
    # end

    # Define a custom finder by overriding the `find_resource` method:
    # def find_resource(param)
    #   <%= class_name %>.find_by!(slug: param)
    # end

    # See https://administrate-prototype.herokuapp.com/customizing_controller_actions
    # for more information
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
administrate-0.11.0 lib/generators/administrate/dashboard/templates/controller.rb.erb
semantic-administrate-0.10.1 lib/generators/administrate/dashboard/templates/controller.rb.erb
semantic-administrate-0.10.0 lib/generators/administrate/dashboard/templates/controller.rb.erb
administrate-0.10.0 lib/generators/administrate/dashboard/templates/controller.rb.erb
semantic-administrate-0.1.1 lib/generators/administrate/dashboard/templates/controller.rb.erb
administrate-0.9.0 lib/generators/administrate/dashboard/templates/controller.rb.erb
semantic-administrate-0.1.0 lib/generators/administrate/dashboard/templates/controller.rb.erb