Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图了解在添加索引的上下文中 :name 参数在 rails 中的含义。总是必须这样吗?如果是这样,这似乎非常多余,所以我想我遗漏了一些东西。导轨 3.2.13
add_index :sections, [:name, :page_id]
此行将复合索引添加到 table sections,由两列name和组成page_id。
sections
name
page_id
在这段代码中,
<p:galleria value="#{Bean.images}" var="image" panelWidth="500" panelHeight="313" showCaption="true" <p:graphicImage value="/images/galleria/#{image}" alt="Image Description for