Modify the getMsg controller action to take a string parameter and return a string value.
修改getMsg控制器动作以获取字符串参数并返回字符串值。
The controller action goes in app/controllers/browsers_controller and is pretty straightforward.
控制器操作在app/controllers/browsers_controller 中进行,并且很简单。
I prefer not to have my models automatically validated when they're passed into a controller action.
我不喜欢在把模型传入控制器的时候总是要经过自动验证。
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.
对于每个被缓存的元素,只需指定想要缓存的内容、可生成动态内容的任何控制器动作以及超时。
Notice that the controller action does not take any parameters.
注意,控制器动作不取任何参数。
Represents a result that does nothing, such as a controller action method that returns nothing.
表示一个不执行任何操作的结果,如不返回任何内容的控制器操作方法。
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.
动作筛选条件是自订属性,提供宣告式方法将动作前和动作后的行为加入控制器动作方法中。
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响应。在此情况下,不会调用控制器动作。
This tag accepts dir and file attributes instead of logical controller, action, and id attributes. Listing 4 shows link and createLinkTo in action
这个标记接受dir和file属性而不是controller、action 和id 属性。
This tag accepts dir and file attributes instead of logical controller, action, and id attributes. Listing 4 shows link and createLinkTo in action
这个标记接受dir和file属性而不是controller、action 和id 属性。
应用推荐