Translates HTTP parameters to ActiveRecord queries.