ruby
1Event.where(user_id: user.id) 2Event.where(user_id: user.followings.ids)
この二つのwhere文の結果を足して取得したいんですが、
ruby
1Event.where("user_id =?" or "user_id =?" user.id, user.followings.ids)
のように書いたのですが、うまくいきません。初歩的ですが、教えていただけると幸甚です。
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/08/29 07:42