The list method shows the page.
list方法用于显示页面。
The RHTML for the list method is shown in Listing 2.
list方法的RHTML如清单2所示。
To get a list of the user-defined attribute names for this file, we call the list method on the view.
为获取用户为这一文件定义的属性名,我们在视图上调用list方法。
To see how it all hangs together, look at the list method within trails_controller.rb, shown in Listing 3.
要了解这些是如何组合在一起的,请参见trails_controller . rb中的list方法,如清单3所示?
Then, the controller can render the appropriate response. Change the list method in the PeopleController to look like Listing 5
然后,控制器可以呈现适当的响应。
To simplify the list method a little for the Web service, remove the pagination by making the list method in the controller look like Listing 3.
为了把Web服务的list方法简化一些,可以把控制器中的 list 方法变成像清单3 一样,清除分页。
This method uses the advertiser from the session to get all the ads owned by the advertiser, then renders this information with the "list" view.
该方法使用来自会话的广告客户以获得该广告客户拥有的所有广告,然后以 “列表”视图呈现这些信息。
The method might be an access control list for example.
这个方法可能是例子的访问控制清单。
The following method explains how to fetch this list.
接下来的方法解释了怎样获取该列表。
Lists have some other interesting properties to them, such as alternative ways to construct a list, using the: : method. Yes, method.
列表具有另外一些有趣的特性,例如构建列表的替代方法,使用:方法是的,这是一种方法。
Resources themselves are the targets for method calls, and the list of methods is the same for all resources.
资源本身都是方法调用的目标,方法列表对所有资源都是一样的。
The method return type appears after the argument list.
方法的返回类型在参数列表的最后出现。
The list is used to match the security method supported by the server and employed during subsequent system calls under this mount point.
这个列表用于匹配服务器支持的安全方法。 此外,随后在该装载点下发生系统调用时也用到该列表。
If the parameters are given as a list surrounded by parentheses, they must exactly match the method parameters.
如果所给的参数是圆括号括起的列表,它们必须精确匹配方法参数。
This method also blanks out the list of subcategories being displayed.
这个方法还会将正在显示的子类清单置空。
More frustrating is that the method list does not indicate which methods actually throw exceptions.
更郁闷的是,方法列表并没有显示出那个方法会真正地抛出异常。
“People are much happier with the list generated by the community method,” Olken says.
“人们更乐于看到社区方式产生的列表,”奥尔肯说。
This method returns the list of child model objects, such as the nodes in the diagram.
此方法将返回子模型对象(例如图中的节点)列表。
Recall that we mentioned the "cons" method for List, : :.
回忆一下我们提过的List的“cons”方法,:。
The requirePost method is passed a list of actions within the controller you want to protect.
向 requirePost方法传递一个需要保护的控制器操作列表。
Custom skeletons also allows you to change the method name and argument list for the generate method, so a sufficiently perverse developer can make very customized templates.
定制骨架也可以用来修改方法名和generate方法的参数列表,这样非常挑剔的开发人员就可以任意定制模板。
The last nub method ensures that no duplicates exist in the list.
最后的nub方法能确保该列表中不存在重复值。
The click method iterates through the list of callbacks and invokes each one.
方法click会遍历回调函数的列表,然后一个个地调用它们。
The Page Code method contains logic to retrieve the list of departments (see Listing 4).
PageCode方法包含了检索部门列表的逻辑(见于列表4)。
The filter() method first checks to see if the list is empty — the critically important exit condition for this method.
filter()方法首先检查列表是否为空,这是该方法的重要退出条件。
The satisfy() method accepts the input list and the filter list and performs all filtering in one step.
satisfy()方法接收输入列表和过滤器列表,并且在一步中执行所有的筛选操作。
So the ListValuesLoader class USES a single different method for each of the list types.
那么listvaluesloader类会为各列表类型分别使用一种不同的方法。
The add method adds a new item to the list, then returns the list in HTML.
add方法用于在列表中添加新的项目,然后再在HTML中返回列表。
Finally, we call the upper method on a list of strings, and print out the result with Console.println (...)
最后,我们对一个字符串列表调用upper方法,然后用Console .println(…)方法打印出来。
The add method adds a feed to the list and updates the feed.
add方法向列表中添加一个提要,并更新提要。
应用推荐