<table cellspacing="0" cellpadding="0">
  <tr>
    <th>Sort</th>
    <th>Question</th>
    <th>Type</th>
    <th>Category</th>
    <th>Active</th>
    <th></th>
  </tr>

  <% questions.each do |question| %>
    <tr>
      <td><%= question.sort %></td>
      <td><%= question.question %></td>
      <td><%= question.input_type %></td>
      <td><%= question.category %></td>
      <td><%= question.active unless question.active? %></td>
      <td><%= link_to 'Edit', admin_edit_question_path(question.to_i), { class: "" } %></td>
    </tr>
  <% end %>
</table>
