Sha256: e3e66d8bc4568759b54bae9fe44c3cc74927aac53fde7489c4a9679205c7ea58
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 Bytes
Contents
<h1>Listing <%= model.p %></h1> <table> <tr><%= model.fields.map { |k, v| "<th>#{k.capitalize}</th>"}.join("\n") %> </tr> <%= "<% for #{model.s} in @#{model.p} %" + ">" %> <tr> <%= model.fields.map { |k, v| "<td> <%=h #{model.s}.#{k} %" + "></td>"}.join("\n") %> <td><%= "<%= link_to 'Show', #{model.rails_object_path} %" +">" %></td> <td><%= "<%= link_to 'Edit', #{model.rails_edit_path} %" + ">" %></td> <td><%= "<%= link_to 'Destroy', #{model.rails_object_path}, :confirm => 'Are you sure?', :method => :delete %" + ">" %></td> </tr> <%= "<% end %" + ">" %> </table> <br /> <%= "<%= link_to 'New #{model.s}', #{model.rails_new_path} %" + ">" %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mattknox-goaloc-0.2.0 | lib/goaloc/generators/rails/index.html.erb |