<%= form_for quiz, url: action do |f| %>

Unit: <%= f.text_field :unit %>

Dept: <%= f.text_field :dept %>

<%= f.submit %> <% end %>