![]() |
1
42
可以使用“渲染”执行以下操作:
|
![]() |
2
15
见 Rendering section of the ActionController::Base documentation 对于可以控制渲染内容的不同方式。 您可以告诉Rails以如下方式渲染特定视图(模板):
|
![]() |
3
7
|
![]() |
4
5
如果方便的话,还可以传递:action或:controller。
|
![]() |
5
2
您可以修改内部设置
这
并使用第一个找到的视图。 |
![]() |
cluster1 · 采取独立的新行动的好处是什么? 5 月前 |
![]() |
Robert · 使用JSON或哈希时,将NULL替换为NIL 6 月前 |
![]() |
Fred Willmore · Rails控制器不呈现任何模板 1 年前 |
![]() |
Diogo Amaral · 实现API请求的正确方式 1 年前 |
![]() |
Meknassih · 在控制器方法中分配给模型没有任何作用 1 年前 |
![]() |
Michael Ding · Rails上的默认会话到期问题 1 年前 |
|
Flávio · 基于另外两个生成数组 1 年前 |