Sha256: 564a2873cf1a6a7638e3653ea9d17d5ea8acf96ac21f3c9969e785902cdea89c
Contents?: true
Size: 627 Bytes
Versions: 5
Compression:
Stored size: 627 Bytes
Contents
module Naf class MachineRunnersController < Naf::ApplicationController before_filter :set_rows_per_page def index respond_to do |format| format.html format.json do set_page @total_records = ::Naf::MachineRunner.count(:all) @rows = ::Logical::Naf::MachineRunner.to_array(params['iSortCol_0'].to_i, params['sSortDir_0']). paginate(page: @page, per_page: @rows_per_page) render layout: 'naf/layouts/jquery_datatables' end end end def show @machine_runner = Naf::MachineRunner.find(params[:id]) end end end
Version data entries
5 entries across 5 versions & 1 rubygems