Sha256: 6dcc3483adf6380d385f9ed589a5966b3ea38d5ca880ad1d002a42206e8ced7f
Contents?: true
Size: 714 Bytes
Versions: 2
Compression:
Stored size: 714 Bytes
Contents
%h1 <%= name.pluralize.underscore.gsub("_", " ").camelize %> %table %tr <% attributes_worth_using_in_the_form.each do |att| -%> %th <%= att.humanize %> <% end -%> %th{:colspan => "2"} - @<%= cls.to_s.pluralize.underscore %>.each do |<%= cls.to_s.underscore %>| %tr <% attributes_worth_using_in_the_form.each do |att| -%> %td= <%= cls.to_s.underscore %>.<%= att %> <% end -%> %td= link_to "Edit", edit_<%= cls.to_s.underscore %>_path(<%= cls.to_s.underscore %>), {:title => 'Edit <%= name.underscore.gsub("_"," ") %>'} %td= link_to "Delete", <%= cls.to_s.underscore %>, {:title => 'Remove <%= name.underscore.gsub("_"," ") %>'}, {:confirm => 'Are you sure?', :method => :delete}
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
formgen-0.4.1 | lib/generators/skizmo/form/templates/index.html.haml |
formgen-0.4.0 | lib/generators/skizmo/form/templates/index.html.haml |