![]() |
1
2
为此,我将使用
对于90%的控制器,我使用 inherited resources 插件。它减少了您需要为CRUD控制器编写的控制器代码的数量,这也意味着您可以减少您需要编写的测试的数量。 |
![]() |
2
0
为了我: What's the rails way to load other models collections for new, edit update and create actions? 这对我的处境来说不是个好办法。如果在“.save”之后使用,我会将重定向发送到另一个操作,如果在“filter”和“.save”之前使用,则返回“true”,则会将fetch“all”用户称为“unnecessary”。 |
![]() |
cluster1 · 采取独立的新行动的好处是什么? 5 月前 |
![]() |
Robert · 使用JSON或哈希时,将NULL替换为NIL 5 月前 |
![]() |
Fred Willmore · Rails控制器不呈现任何模板 12 月前 |
![]() |
Diogo Amaral · 实现API请求的正确方式 1 年前 |
![]() |
Meknassih · 在控制器方法中分配给模型没有任何作用 1 年前 |
![]() |
Michael Ding · Rails上的默认会话到期问题 1 年前 |
|
Flávio · 基于另外两个生成数组 1 年前 |