Skip to content

Instantly share code, notes, and snippets.

@diegoachury
Created February 11, 2016 00:16
Show Gist options
  • Save diegoachury/da48eec82680cda3c66c to your computer and use it in GitHub Desktop.
Save diegoachury/da48eec82680cda3c66c to your computer and use it in GitHub Desktop.
polymer con RoR
<p id="notice"><%= notice %></p>
<paper-toolbar>
<paper-icon-button icon="menu" on-tap="menuAction"></paper-icon-button>
<div class="title">Listing Ligas</div>
<paper-icon-button icon="more-vert" on-tap="moreAction"></paper-icon-button>
</paper-toolbar>
<table>
<thead>
<tr>
<th>Equipo</th>
<th>Title</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @ligas.each do |liga| %>
<tr>
<td><%= liga.equipo %></td>
<td><%= liga.title %></td>
<td>
<!-- ideas sobre como pasar el webcomponent -->
<%= content_tag("paper-button raised") do %>
<%= link_to 'Show', liga %>
<% end %>
</td>
<td><%= link_to 'Edit', edit_liga_path(liga) %></td>
<td><%= link_to 'Destroy', liga, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Liga', new_liga_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment