How do I create an ActiveRecord query without using a SQL string in Rails to get something like:
books = Book.where(author: 1, **from_day: [1,5] or to_day: [1,5]**)
How do I create an ActiveRecord query without using a SQL string in Rails to get something like:
books = Book.where(author: 1, **from_day: [1,5] or to_day: [1,5]**)