- if policy(@table).update? .owner-controls = link_to 'Edit', edit_table_path(@table) = link_to 'Destroy', game, :method => :delete, :data => { :confirm => 'Are you sure?' } #table-component-container-container= react_component 'Table', props = {url: "#{table_path @table}"}, html_options = {id: "table-component-container"}