> 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-7/where.md).

# 레일즈 where 사용법

[링크를 보자!](https://bigbinary.com/blog/rails-5-adds-or-support-in-active-record)

### Post.where(:id => \[2, 3]) 이 된다는 거에 주목하자

* 이 옵션은 `OR` 를 수행한다.

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

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

{% content-ref url="/pages/-MSYJNS7xi2iyZh8mDY0" %}
[StrongParameter 쿼리 배열 받기](/blog/undefined/rubyonrails/undefined-3/strongparameter.md)
{% endcontent-ref %}
