rails #to_query method to generate url query string