Sha256: f2d27a9d44f2d852da3a3193f67a43e425e7ef6267ac76025b9925cb5aa7cd8f

Contents?: true

Size: 226 Bytes

Versions: 9

Compression:

Stored size: 226 Bytes

Contents

json.array!(@<%= plural_table_name %>) do |<%= singular_table_name %>|
  json.extract! <%= singular_table_name %>, <%= attributes_list %>
  json.url <%= singular_table_name %>_url(<%= singular_table_name %>, format: :json)
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
material_admin-0.0.2 lib/generators/admin/scaffold_controller/templates/views/jbuilder/index.json.jbuilder.erb
material_admin-0.0.1 lib/generators/admin/scaffold_controller/templates/views/jbuilder/index.json.jbuilder.erb
rails-admin-scaffold-0.1.0 lib/generators/admin/scaffold_controller/templates/views/jbuilder/index.json.jbuilder.erb
rails-admin-scaffold-0.0.5 lib/generators/admin/scaffold_controller/templates/views/jbuilder/index.json.jbuilder.erb
rails-admin-scaffold-0.0.4 lib/generators/admin/scaffold_controller/templates/views/jbuilder/index.json.jbuilder.erb
rails-admin-scaffold-0.0.3 lib/generators/admin/scaffold_controller/templates/views/jbuilder/index.json.jbuilder.erb
rails-admin-scaffold-0.0.2 lib/generators/admin/scaffold_controller/templates/views/jbuilder/index.json.jbuilder.erb
jbuilder-1.0.2 ./lib/generators/rails/templates/index.json.jbuilder
jbuilder-1.0.1 ./lib/generators/rails/templates/index.json.jbuilder