It concludes by showing you a technique for accessing data elements from a Relational Record List that consists of two related tables.
文中结尾向您展示了访问来自包含两个关系表的Relational Record List中的数据元素的技术。
A DB2 record definition (staff) to use when accessing the staff table.
一个在访问staff表时要用的DB 2记录定义(staff)。
view accessing the Active Record Trail model and looping through each trail in @trails with the <% for trail in @trails %> command.
您可以看到访问活动记录 Trail 模型并用 <% for trail in @trails %> 命令在 @trails 中的每条路线上循环的 list.rhtml 视图。
应用推荐