- content_for(:body_class) { "audits-show" } - content_for(:javascript) do javascript: var dataSet = #{raw(values)}; var databaseColumns = eval(#{raw(columns)}); var userConfiguredColumns = eval(#{raw(audit.display_configuration)})['columnDefs']; $("body").ready(function() { $("body.audits-show table#audit").DataTable( { data: dataSet, columns: userConfiguredColumns } ); }); = within_admin_layout(title: audit.name, breadcrumbs: audits_breadcrumb) do - if audit.description.present? .panel.radius.compact= audit.description / jQuery dataTables will build this table; for the columns it will use column definitions in / audit.display_configuration. Row data comes from a select on the audit view / specified by the audit row, inserted as a js var into the page above. table#audit.display.natural-width