# 레일즈 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 %}


---

# 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-7/where.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.
