> For the complete documentation index, see [llms.txt](https://simian114.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://simian114.gitbook.io/blog/undefined/rubyonrails/undefined-3/strongparameter.md).

# StrongParameter 쿼리 배열 받기

```ruby
# controller...
def service_params
  params.permit(:id, :name, status: [])
end
```

* **permit** 에서 배열로 받을 속성을 `[ ]` 로 만들어 준다.
* **명심할 건, 배열로 받을 속성은 마지막에 있어야한다!!**

## 아래 두 페이지와 연관되서 유용하게 사용된다.

{% content-ref url="/pages/-MSYJ6HmQY5QgOwrny92" %}
[백본 컬렉션 URL에 쿼리 붙이기](/blog/undefined/backbonejs/url.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MSYLE0vTul-auxsv\_rw" %}
[레일즈 where 사용법](/blog/undefined/rubyonrails/undefined-7/where.md)
{% endcontent-ref %}
