Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%= table_for @games do |table| %>
- <% table.column :icon, class: 'small' do |game| %>
- <%= link_to game_path(game) do %>
- <%= attachment_image_tag game.icon, height: 50 %>
- <% end %>
- <% end %>
- <% table.column :name do |game| %>
- <%= link_to game.name, game_path(game) %>
- <% end %>
- <% table.number 'API keys' do |game| %>
- <%= game.api_keys_count %>
- <% end %>
- <% table.number :consumables_count %>
- <% table.number :transferables_count %>
- <% table.number :players_count %>
- <% table.actions do |game| %>
- <%= action_link 'Players', players_path(game_id: game.id) %>
- <%= action_edit game %>
- <%= action_delete game %>
- <% end %>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement