Form
<%= form_tag request.fullpath, method: 'get', id: 'report-form', autocomplete: 'off' do %>
<%= Repor::Serializers::FormFieldSerializer.new(@report).html_fields %>
<%= submit_tag 'Run report', class: 'pure-button pure-button-primary' %>
<% end %>
CSV
<%= link_to 'Download CSV', request.query_parameters.merge(format: 'csv'), class: 'pure-button pure-button-primary' %>
<% table = Repor::Serializers::TableSerializer.new(@report) %>