class ListController

Abstract controller providing a basic list action. This action lists all entries of a certain model and provides functionality to search and sort this list. Furthermore, it remembers the last search and sort parameters. When the action is called with a param returning=true, these parameters are reused to present the user the same list as he left it.

Public Instance Methods

index(&block) click to toggle source

List all entries of this model.

GET /entries
GET /entries.json
# File lib/generators/dry_crud/templates/app/controllers/list_controller.rb, line 22
def index(&block)
  respond_with(entries, &block)
end