SHARE
TWEET

Untitled

a guest Jun 25th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <%= table_for @games do |table| %>
  2.   <% table.column :icon, class: 'small' do |game| %>
  3.     <%= link_to game_path(game) do %>
  4.       <%= attachment_image_tag game.icon, height: 50 %>
  5.     <% end %>
  6.   <% end %>
  7.   <% table.column :name do |game| %>
  8.     <%= link_to game.name, game_path(game) %>
  9.   <% end %>
  10.   <% table.number 'API keys' do |game| %>
  11.     <%= game.api_keys_count %>
  12.   <% end %>
  13.   <% table.number :consumables_count %>
  14.   <% table.number :transferables_count %>
  15.   <% table.number :players_count %>
  16.   <% table.actions do |game| %>
  17.     <%= action_link 'Players', players_path(game_id: game.id) %>
  18.     <%= action_edit game %>
  19.     <%= action_delete game %>
  20.   <% end %>
  21. <% end %>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top