Hoe heeft dit OOIT gewerkt?
This commit is contained in:
parent
1ef01ed4c7
commit
6a9651efbd
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ class DatatablesController < ApplicationController
|
|||
respond_to :json
|
||||
|
||||
def transactions_for_user
|
||||
user = User.find(params[:id])
|
||||
user = User.find_by(name: params[:id])
|
||||
datatable = DataTable.new(user, params)
|
||||
render json: datatable.json
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue