Sha256: 448c8cb258b830f0648361383cca04d225054e9e332df28f41b66fa64e72b6fe

Contents?: true

Size: 956 Bytes

Versions: 4

Compression:

Stored size: 956 Bytes

Contents

<p id="notice"><%= notice %></p>

<h1>Products</h1>

<form onsubmit="return false;" class="pure-form" style="border-top: 1px solid #eee;border-bottom:1px solid #eee;background:#fafafa;margin:30px 0;padding:20px 10px;text-align:center">
    <input id="hero-demo" autofocus type="text" name="q" placeholder="Programming languages ..." style="width:100%;max-width:600px;outline:0">
</form>

<table>
    <thead>
        <tr>
            <th>Name</th>
            <th colspan="3"></th>
        </tr>
    </thead>

    <tbody>
        <% @products.each do |product| %>
        <tr>
            <td><%= product.name %></td>
            <td><%= link_to 'Show', product %></td>
            <td><%= link_to 'Edit', edit_product_path(product) %></td>
            <td><%= link_to 'Destroy', product, method: :delete, data: { confirm: 'Are you sure?' } %></td>
        </tr>
        <% end %>
    </tbody>
</table>

<br>

<%= link_to 'New Product', new_product_path %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
autocompl-0.1.2 test/dummy/app/views/products/index.html.erb
autocompl-0.1.1 test/dummy/app/views/products/index.html.erb
autocompl-0.1.0 test/dummy/app/views/products/index.html.erb
autocompl-0.0.1 test/dummy/app/views/products/index.html.erb