9 lines
228 B
Ruby
9 lines
228 B
Ruby
class DatatablesController < ApplicationController
|
|
respond_to :json
|
|
|
|
def transactions_for_user
|
|
user = User.find_by(name: params[:id])
|
|
datatable = DataTable.new(user, params)
|
|
render json: datatable.json
|
|
end
|
|
end
|