Hoe heeft dit OOIT gewerkt?

This commit is contained in:
Rien Maertens 2018-08-07 20:13:23 +02:00
parent 1ef01ed4c7
commit 6a9651efbd
No known key found for this signature in database
GPG key ID: 943CAB70C511D23C

View file

@ -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