Sha256: f2d8ad69ac4a7cb528fed1102df504c3970aad15973e1d05220ac2cf62e21786
Contents?: true
Size: 383 Bytes
Versions: 22
Compression:
Stored size: 383 Bytes
Contents
class <%= plural_name.camelize %>::Index < Mustache::Rails def new_path new_<%= singular_name %>_path() end def listing <%= plural_name %>.collect do |record| { <% for attribute in attributes -%> :<%= attribute.name %> => record.<%= attribute.name %>, <% end -%> :show_path => <%= singular_name %>_path(record) } end end end
Version data entries
22 entries across 22 versions & 2 rubygems