Files
nemo_encoder/app/controllers/batches_controller.rb
2017-02-03 13:46:59 +06:30

9 lines
343 B
Ruby

class BatchesController < ApplicationController
skip_before_filter :verify_authenticity_token
before_action :authenticate_member!
def index
@batches=Batch.joins('inner join users on users.id=batches.user_id')
.select('batches.*,users.name as user_name').order('batches.id desc').page(params[:page])
end
end