|
|
1
106
@George Schreiber的方法在Rails 3.1中不起作用;代码发生了重大变化。
这将 prevent ApplicationController from loading all of the helpers (对于任何感兴趣的人, here's the pull request where the feature was created .) |
|
|
2
98
答案取决于Rails版本。 钢轨>=3.1
如果错误,它将 skip the inclusion Rails<3.1
从中删除以下行
|
|
|
3
27
在Rails 3中,
是的,如果你从
要解决这个问题,请打电话
例如。:
|
|
|
4
5
轨道2 ,ActionController::Base的默认功能是包含所有助手。 Changeset 6222 on 02/24/07 20:33:47 (3 years ago) by dhh : 让它成为一个默认的假设,你需要所有的助手,所有的时间(是的,是的) 更改:
从Rails 3 beta 1开始,这不再是变更日志中提到的情况: |
|
cluster1 · 采取独立的新行动的好处是什么? 1 年前 |
|
|
Robert · 使用JSON或哈希时,将NULL替换为NIL 1 年前 |
|
|
Fred Willmore · Rails控制器不呈现任何模板 2 年前 |
|
|
Diogo Amaral · 实现API请求的正确方式 2 年前 |
|
|
Meknassih · 在控制器方法中分配给模型没有任何作用 2 年前 |
|
|
Michael Ding · Rails上的默认会话到期问题 2 年前 |
|
|
Flávio · 基于另外两个生成数组 2 年前 |