Module: Undercarriage::Controllers::Restful::Actions::IndexConcern

Extended by:
ActiveSupport::Concern
Defined in:
lib/undercarriage/controllers/restful/actions/index_concern.rb

Overview

Index restful action

Examples:

Controller

class ExamplesController < ApplicationController
  include Undercarriage::Controllers::Restful::Actions::IndexConcern
end

Instance Method Summary collapse

Instance Method Details

#indexObject

Index action

Examples:

Controller

class ExamplesController < ApplicationController
  include Undercarriage::Controllers::RestfulConcern

  ##
  # This method is only needed if you want to override the action entirely. Otherwise, it is not needed.
  # Database resources can be accessed as `@index_resources` or `@examples`
  #
  # def index
  #   ...
  # end
end


41
# File 'lib/undercarriage/controllers/restful/actions/index_concern.rb', line 41

def index; end