Sha256: 2f28ce7354e47d5a9af669d40a7b82dde730eebd808e720d30a9a1319c1efe79

Contents?: true

Size: 764 Bytes

Versions: 7

Compression:

Stored size: 764 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 />
create a new <%= model.s %>
<%=  "<%= render :partial => '#{model.p}/form', :object => @#{model.s} %%>" %>

<%= "<%= link_to 'New #{model.s}', #{model.rails_new_path} %%>" %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mattknox-goaloc-0.3.0 lib/goaloc/generators/rails/js-index.html.erb
mattknox-goaloc-0.4.0 lib/goaloc/generators/rails/js-index.html.erb
mattknox-goaloc-0.4.1 lib/goaloc/generators/rails/js-index.html.erb
mattknox-goaloc-0.4.2 lib/goaloc/generators/rails/js-index.html.erb
mattknox-goaloc-0.4.4 lib/goaloc/generators/rails/js-index.html.erb
mattknox-goaloc-0.4.5 lib/goaloc/generators/rails/js-index.html.erb
mattknox-goaloc-0.4.7 lib/goaloc/generators/rails/js-index.erb