Closed NuclearMachine closed 7 years ago
The wiki is outdated. I tried doing
respond_to do |format| format.html format.json { render json: PaymentDatatable.new(view_context) } end
but to no avail because it only goes to format.html
and yes I have <table id="users-table", data-source="<%= users_path(format: :json) %>" > and the js file in my application.js
<table id="users-table", data-source="<%= users_path(format: :json) %>" >
The wiki is outdated. I tried doing
but to no avail because it only goes to format.html
and yes I have
<table id="users-table", data-source="<%= users_path(format: :json) %>" >
and the js file in my application.js