Html parameters in ruby

I want to allow the user to ‘filter’ his query on a DB.

So, I allow them to select checked boxes for the infor they want. I
then format a string and pass it to a function. My function looks like

This is probably a simple task. Thanks in advance!