I would try the following:
First, you may need to remove hardcoded :format => :pdf from the form tag (since it can override this parameter below).
Then make sure the select tag passes the correct values. There is an assistant that you can use:
select_tag :format, options_for_select([["HTML", "html"], ["PDF", "pdf"]], "html")
which returns something like the following HTML:
<select id='format' name='format'> <option value='html' selected='selected'>HTML</option> <option value='pdf'>PDF</option> </select>
source share