Class: TubeRackStatusesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/tube_rack_statuses_controller.rb

Overview

Controller to display the status of a tube rack

Constant Summary

Constants included from FlashTruncation

FlashTruncation::STRING_OVERHEAD

Instance Method Summary collapse

Methods inherited from ApplicationController

#block_api_access, #evil_parameter_hack!, #extract_header_info, #set_cache_disabled!

Methods included from FlashTruncation

#max_flash_size, #truncate_flash, #truncate_flash_array

Instance Method Details

#indexObject



7
8
9
# File 'app/controllers/tube_rack_statuses_controller.rb', line 7

def index
  @tube_rack_statuses = TubeRackStatus.order(created_at: :desc).paginate(page: params[:page], per_page: 30)
end