querying
Subquery or a double query?
For a client I have built a travelagency website. Now they asked me to optimize and automize some things. One of these things is that the accommodations shown in the searchlist must be bookable.[详细]
2023-01-12 18:51 分类:问答Querying a polymorphic association
I have a polymorphic association like this - class Image < ActiveRecord::Base has_one :approval, :as => :approvable[详细]
2023-01-08 08:12 分类:问答