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.
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