Rails - Parameter with multiple values in the URL when consuming an API via Active Resource

前端 未结 3 1090
無奈伤痛
無奈伤痛 2021-02-07 08:09

I am consuming an API that expects me to do requests in the following format:

?filter=value1&filter=value2

However, I am using Active Resou

3条回答
  •  我寻月下人不归
    2021-02-07 08:42

    http://guides.rubyonrails.org/action_controller_overview.html#hash-and-array-parameters

    Try :filter[] => value, :filter[] => value2

提交回复
热议问题