Shall we keep controller action declaration if nothing inside?
我们保持控制器动作声明如果没有在吗?。
Notice that the controller action does not take any parameters.
注意,控制器动作不取任何参数。
Assert_template 'list' : the controller action rendered the list template.
assert _ template'list':控制器动作呈现list模板。
In practice, the hash map has only an element for the controller action: : time.
在实际中,该哈希映射表只有一个针对控制器动作的元素:time。
How can you have both PUT and POST routing attributes on a controller action?
你怎么都把和后对控制器的操作路径属性?
Modify the getMsg controller action to take a string parameter and return a string value.
修改getMsg控制器动作以获取字符串参数并返回字符串值。
Represents a result that does nothing, such as a controller action method that returns nothing.
表示一个不执行任何操作的结果,如不返回任何内容的控制器操作方法。
The controller action goes in app/controllers/browsers_controller and is pretty straightforward.
控制器操作在app/controllers/browsers_controller 中进行,并且很简单。
As you can see, you first invoke the controller action as if it were a method call on the controller.
可以看到,您首先调用控制器操作,就像它是另一个控制器上的方法一样。
I prefer not to have my models automatically validated when they're passed into a controller action.
我不喜欢在把模型传入控制器的时候总是要经过自动验证。
Obtain the xml data from the builder. ( The builder uses the data from the controller action to build the xml)
从生成器中获取xml数据.(生成器的数据来源是控制器)
The model objects that are returned from an API controller action method are encoded as JSON and sent to the client.
API控制器的动作方法所返回的模型对象被编码成JSON,并发送给客户端。
Action filters are custom attributes that provide a declarative means to add pre-action and post-action behavior to controller action methods.
动作筛选条件是自订属性,提供宣告式方法将动作前和动作后的行为加入控制器动作方法中。
For each cached element, you need only specify the content you want to cache, any controller action that produces your dynamic content, and a timeout.
对于每个被缓存的元素,只需指定想要缓存的内容、可生成动态内容的任何控制器动作以及超时。
If model validation fails, this filter returns an HTTP response that contains the validation errors. In that case, the controller action is not invoked.
如果模型验证失败,此过滤器会返回一个含有验证错误的HTTP响应。在此情况下,不会调用控制器动作。
You can now type Ctrl-M, Ctrl-V within a Controller action method, or right-click within an action method and choose the "Add view" context menu item to create new view templates.
你现在可以在一个控制器的action方法中键入Ctrl - M, Ctrl - V,或者在一个action方法中右击,选择“添加视图”上下文菜单项来生成新的视图模板。
The first thing we’re going to do is create an ASP.NET MVC (Preview 4) Project. Create a new view and controller action under your Home controller and add the following line to the view.
首先要做的就是创建一个ASP.NETMVC(Preview4)工程,在Homecontroller下面创建一个新的view和一个controller action,然后把下面几行字加到view中。
Every action in a controller pairs up with a view based on the name.
控制器中的每个动作也是根据名称与一个视图配对。
Instead of creating a controller or action class, you create a page, place components on it, and define how each component reacts to user input.
与构建控制器或动作类相反,您创建的是一个页面,在这个页面上放置组件,然后定义每个组件如何响应用户输入。
This is key to your design because every view action performed by the user is sent to this controller to handle.
这对设计非常关键,原因是用户执行的每个视图操作都被发送到该控制器进行处理。
Let's consider the user controller and the login action to be tested on extreme loads.
我们来考虑如何测试用户控制器和登录动作在极端负载下的表现。
Each view controller receives the action every time the user performs an action on the view.
每当用户在视图上执行一个操作时,每一个视图控制器就会接收到这个操作。
The events triggered by any user action are intercepted by the controller.
控制器截获任何由用户操作出发的事件;
Now URIs that begin with /blog will be redirected to the entry controller and the list action.
现在,以 /blog开头的那些 URI 都将会被重新定向到条目控制器和列表动作。
The Action is, however, still part of the controller.
然而,Action仍然是控制器层的一部分。
For every list action in a controller, there's a corresponding list.gsp.
对于控制器中的每个list动作,都有一个相应的list . gsp文件。
Clicking this menu option will invoke a new action in our controller named search.
点击这个菜单项将调用控制器中名为Search的新动作。
In Listing 7, you send a request from console, in two forms, to invoke the list action on the trails controller.
在清单7中,从控制台以两种形式发送请求,调用trails控制器的list动作。
Rails will actually invoke the controller before rendering the action.
Rails 在呈现动作前会实际调用控制器。
The hello_message action in the controller class is available to clients for method invocation.
控制器类中的 hello_message 操作可用于客户机进行方法调用。
应用推荐