![]() |
1
1
为了清晰起见,您需要在routes.rb文件中明确列出每个操作;或者需要一个通配符模式来匹配控制器和操作。 |
![]() |
2
1
你的routes.rb文件里有什么? 更好的是,你需要这样的东西 match“/dog/blah”,:to=>“dog blah”,:as=>:dog blah 这会告诉你的Rails应用程序url/dog/blah映射到dogcontroller中的blah操作,而:as选项会给你一个命名的路由,在这种情况下,dog-blah-u路径可以在你的视图中使用。 |
![]() |
cluster1 · 采取独立的新行动的好处是什么? 7 月前 |
|
Robert · 使用JSON或哈希时,将NULL替换为NIL 8 月前 |
![]() |
Fred Willmore · Rails控制器不呈现任何模板 1 年前 |
![]() |
Diogo Amaral · 实现API请求的正确方式 1 年前 |
![]() |
Meknassih · 在控制器方法中分配给模型没有任何作用 1 年前 |
![]() |
Michael Ding · Rails上的默认会话到期问题 1 年前 |
|
Flávio · 基于另外两个生成数组 1 年前 |