Content-Length: 51296 | pFad | http://b.hatena.ne.jp/entry/139114350/comment/kei-s

"where(id: ...)のキー部分にActiveRecord::Relationを渡すと、IN ()を使ったサブクエリに展開されます。" .select の代わりに .pluck にすると配列になってしまってサブクエリになってくれないのを注意します - kei-s のブックマーク / はてなブックマーク

"where(id: ...)のキー部分にActiveRecord::Relationを渡すと、IN ()を使ったサブクエリに展開されます。" .select の代わりに .pluck にすると配列になってしまってサブクエリになってくれないのを注意します

kei-skei-s のブックマーク 2013/06/05 16:14

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Rails で、Controller に定義されている action を一度に取得する方法はありますか? - QA@IT

    平素よりQA@ITをご利用いただき、誠にありがとうございます。 QA@ITは「質問や回答を『共有』し『編集』していくことでベストなQAを蓄積できる、ITエンジニアのための問題解決コミュニティー」として約7年間運...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう








    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: http://b.hatena.ne.jp/entry/139114350/comment/kei-s

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy