Skip to content

Instantly share code, notes, and snippets.

@rociopaez
Last active August 29, 2015 14:06
Show Gist options
  • Save rociopaez/26725f06fb9ed0b93c21 to your computer and use it in GitHub Desktop.
Save rociopaez/26725f06fb9ed0b93c21 to your computer and use it in GitHub Desktop.
% inputs = params[:inputs]
<h2><a href="/inputs/new">New Input</a></h2>
<h2>Your Input Types record</h2>
<table>
<thead>
<tr>
<th>Date</th>
<th>Category</th>
<th>Name</th>
</tr>
</thead>
<tbody>
% inputs.each do |input|
<tr>
<td>{{input.date}}</td>
<td>{{input.type.category}}</td>
<td>{{input.type.name}}</td>
</tr>
% end
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment