Sha256: 56103cbbb797450194e008ce1b32a42cad9c9fd5896152dcc1c0c1cf8d08b86a

Contents?: true

Size: 463 Bytes

Versions: 4

Compression:

Stored size: 463 Bytes

Contents

<h1>Listing buttons</h1>

<table>
  <tr>
    <th>State</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @buttons.each do |button| %>
  <tr>
    <td><%= button.state %></td>
    <td><%= link_to 'Show', button %></td>
    <td><%= link_to 'Edit', edit_button_path(button) %></td>
    <td><%= link_to 'Destroy', button, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Button', new_button_path %>

Version data entries

4 entries across 3 versions & 1 rubygems

Version Path
state_pattern-2.0.2 ./examples/rails_3_button_example/app/views/buttons/index.html.erb
state_pattern-2.0.2 ./examples/rails_4_button_example/app/views/buttons/index.html.erb
state_pattern-2.0.1 ./examples/rails_3_button_example/app/views/buttons/index.html.erb
state_pattern-2.0.0 ./examples/rails_3_button_example/app/views/buttons/index.html.erb