Sha256: b5125219d6617d6387f7f03c8dd99f98910873362b4a6bc0f953115f9d278f65

Contents?: true

Size: 535 Bytes

Versions: 3

Compression:

Stored size: 535 Bytes

Contents

json.set! :data do
  json.array! @<%= plural_table_name %> do |<%= singular_table_name %>|
    json.partial! '<%= plural_table_name %>/<%= singular_table_name %>', <%= singular_table_name %>: <%= singular_table_name %>
    json.url  "
              #{link_to 'Show', <%= model_resource_name %> }
              #{link_to 'Edit', edit_<%= singular_route_name %>_path(<%= singular_table_name %>)}
              #{link_to 'Destroy', <%= model_resource_name %>, method: :delete, data: { confirm: 'Are you sure?' }}
              "
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jquery-datatables-1.10.19 lib/generators/jquery/datatables/templates/views/index.json.jbuilder
jquery-datatables-1.10.18 lib/generators/jquery/datatables/templates/views/index.json.jbuilder
jquery-datatables-1.10.17 lib/generators/jquery/datatables/templates/views/index.json.jbuilder