Sha256: b9ecb0909ce8e8f8927397f079443bb5434ee70705bf930ec8752eb2dd220e34

Contents?: true

Size: 264 Bytes

Versions: 14

Compression:

Stored size: 264 Bytes

Contents

@<%= plural_table_name %>.map do |<%= singular_table_name %>|
  {
<% attributes_names.each do |attr| -%>
    <%= attr %>: <%= singular_table_name %>.<%= attr %>,
<% end -%>
    url: <%= singular_table_name %>_url(<%= singular_table_name %>, format: :json)
  }
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
jb-0.8.2 lib/generators/rails/templates/index.json.jb
jb-0.8.1 lib/generators/rails/templates/index.json.jb
simple_json-0.0.0 lib/generators/rails/templates/index.simple_json.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/jb-0.8.0/lib/generators/rails/templates/index.json.jb
jb-0.8.0 lib/generators/rails/templates/index.json.jb
jb-0.7.1 lib/generators/rails/templates/index.json.jb
jb-0.7.0 lib/generators/rails/templates/index.json.jb
jb-0.6.1 lib/generators/rails/templates/index.json.jb
jb-0.6.0 lib/generators/rails/templates/index.json.jb
jb-0.5.0 lib/generators/rails/templates/index.json.jb
jb-0.4.1 lib/generators/rails/templates/index.json.jb
jb-0.4.0 lib/generators/rails/templates/index.json.jb
jb-0.3.0 lib/generators/rails/templates/index.json.jb
jb-0.2.0 lib/generators/rails/templates/index.json.jb