Last active
September 8, 2016 15:58
-
-
Save jdgarrido/76d4c24506b2a5dab7a302a1c0d7d1f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% @datos_sedes.each do |r| %> | |
<%= r['region'] %> #aca solo imprime el nombre de la region | |
<% r['sedes'].each do |s| %> #por cada region, imprime los datos de una sede | |
<%= s['comuna'] %>, <%= s['direccion'] %>, <%= s['contacto'] %> | |
<% end %> | |
<% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h3>Domicilios y Sedes de contacto</h3> | |
<div class="table-responsive"> | |
<table class="table"> | |
<thead> | |
<tr> | |
<th>Comuna</th> | |
<th>Direccion</th> | |
<th>Contacto</th> | |
</tr> | |
</thead> | |
<tbody> | |
<% @datos_sedes.each do |r| %> | |
<% if r['sedes'].any? %> | |
<% r['sedes'].each do |s| %> | |
<tr> | |
<td><%= s['comuna'] %></td> | |
<td><%= r['region'] %></td> | |
<td><%= s['direccion'] %></td> | |
<td><%= s['contacto'] %></td> | |
</tr> | |
<% end %> | |
<% end %> | |
<% end %> | |
</tbody> | |
</table> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment