Sha256: e369391833806c968cd740b047445ad3e76fc0dd802e41e147a2e31fecd5747a

Contents?: true

Size: 256 Bytes

Versions: 23

Compression:

Stored size: 256 Bytes

Contents

json.id @<%= resource.underscore %>.id.to_s
json.extract! @<%= resource.underscore %><%= fields_as_params %>
<% fields.each do |name, type| %><% if type == "has_many" %>json.<%= name %> @<%= resource.underscore %>.<%= name %>, :id, :name<% end %><% end %>

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
faalis-2.2.0.pre.rc1 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.2.1 lib/generators/faalis/templates/views/create.json.jbuilder.erb
underworld-1.0.0 lib/generators/underworld/templates/views/create.json.jbuilder.erb
faalis-2.2.0 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.1.1 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.1.0 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.0.8 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.0.7 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.0.5 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.0.4 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.0.3 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.0.1 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.0.0 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.0.0.rc6 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.0.0.rc5 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.0.0.rc4 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.0.0.rc3 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-2.0.0.rc2 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-1.0.0 lib/generators/faalis/templates/views/create.json.jbuilder.erb
faalis-1.0.0.alpha4 lib/generators/faalis/templates/views/create.json.jbuilder.erb