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.
该方法使用来自会话的广告客户以获得该广告客户拥有的所有广告,然后以 “列表”视图呈现这些信息。
Lists have some other interesting properties to them, such as alternative ways to construct a list, using the: : method. Yes, method.
列表具有另外一些有趣的特性,例如构建列表的替代方法,使用:方法是的,这是一种方法。
The only trick here is that I need to output the list of parameters to each constructor or method.
这里惟一的诀窍是,我需要将参数列表输出到每个构造函数或方法中。
If validation fails, the error message associated with the failing validation method for the object is added to an error list.
如果检验失败,那么把与失败的对象检验方法相关联的错误消息添加到错误列表。
Resources themselves are the targets for method calls, and the list of methods is the same for all resources.
资源本身都是方法调用的目标,方法列表对所有资源都是一样的。
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.
如果所给的参数是圆括号括起的列表,它们必须精确匹配方法参数。
The list is "live," so I can make changes to the list directly rather than needing to call a method on the parent element.
这张列表是“活的”,所以我能直接对它进行更改,而不必调用父元素上的方法。
The last line of the method is the method's return value, which is the list of factors in this case.
此方法的最后一行是方法的返回值,它是本例子中的因子列表。
“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.
此方法将返回子模型对象(例如图中的节点)列表。
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 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()方法接收输入列表和过滤器列表,并且在一步中执行所有的筛选操作。
E_closure is a helper method that computes the list of nodes in followpos .
e_closure是一个助手方法,它计算followpos中的节点列表。
The add method adds a new item to the list, then returns the list in HTML.
add方法用于在列表中添加新的项目,然后再在HTML中返回列表。
You can also query the list of conflicted documents with the getConflictDocuments method to help you decide whether to overrwrite with or discard your updates.
您还可以用getConflictDocuments方法查询冲突文档列表,以此来帮助您决定是用您的更新覆盖其他的并发更新还是丢弃您的更新。
Finally, we call the upper method on a list of strings, and print out the result with Console.println (...)
最后,我们对一个字符串列表调用upper方法,然后用Console .println(…)方法打印出来。
A lot of code is repeated (for instance, the many calls to the list append method), which creates room for error.
许多代码是重复的(例如,有许多对列表的append方法的调用),这为错误创造了空间。
This option generates an options file containing a list of the method signatures corresponding to the methods the JIT compiler compiled while the application ran.
该选项生成一个选项文件,其中包含一个方法签名列表,对应于JIT编译器在应用程序运行的时候编译的那些方法。
Decide whether you want to use a navigation bar (see below) or to simply edit the bulleted list that was used with the frame method.
决定您是否想要使用导航栏(参见下面),或者仅仅编辑框架方法使用的项目列表。
Note: the argument in a method list has to be specified by name in the comment, while the return value does not.
注:方法列表中的参数只能由注释中的名称指定,而返回值则不是。
This method parses the returned JSON for the list of friends.
该方法解析返回的好友列表JSON。
应用推荐