Array Documentation is Missing
narutoo9x opened this issue · 2 comments
narutoo9x commented
how to pass an array of value to type: array
? I assume it will be like this:
has_scope :by_color, type: :array, as: :color
/labels?color=blue,green,yellow
karimalmur commented
This is how you pass array parameters in rails:
/labels?color[]=blue&color[]=green&color[]=yellow
narutoo9x commented
/labels?color[]=blue&color[]=green&color[]=yellow
It look so ugly, messy