edit ticket controller

This commit is contained in:
Sunandar
2017-02-03 13:46:59 +06:30
parent 721fd282ca
commit b4c9e8cc8e
8 changed files with 67 additions and 55 deletions

View File

@@ -1,4 +1,6 @@
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])