Sha256: 1b05e7b57868e87244e22d2b4ec535dedd7196e1a612e6cf6fde6769a7cd0057

Contents?: true

Size: 580 Bytes

Versions: 2

Compression:

Stored size: 580 Bytes

Contents

<h1>Custom accounts</h1>
<h2>Current site: <%= current_site.name %></h2>

<%= table_for Site, @sites do |table| %>
  <%= table.head :show, :edit, :delete %>
  <%= table.body do |row| %>
    <%= row.cell link_to(row.record.name, account_path(row.record)) %>
    <%= row.cell link_to("Edit '#{row.record.name}'", edit_custom_account_path(row.record)) %>
    <%= row.cell button_to("Delete '#{row.record.name}'", custom_account_path(row.record), :method => :delete) %>
  <% end %>
  <%= table.foot do %>
    <%= link_to "Add account", new_custom_account_path %>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bento-0.0.3 spec/rails_app/app/views/custom_accounts/index.html.erb
bento-0.0.2 spec/rails_app/app/views/custom_accounts/index.html.erb