edti dashboard
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
class BatchesController < ApplicationController
|
||||
def index
|
||||
@batches=Batch.all.page(params[:page]).per(2)
|
||||
@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
|
||||
Reference in New Issue
Block a user