# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://simian114.gitbook.io/blog/undefined/rubyonrails/undefined-3/strongparameter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
