由于某种原因,这两个url都在路由到相同的文件,而它们不应该是这样的,这是我在输入一个无效的url(如localhost)时注意到的另一件事:3000/ such /inexjojvnsjg--它只是停留在同一个页面上下面是我的rails控制台在尝试访问url localhost:3000/topics/index时告诉我的内容
Started GET "/
由于某种原因,我无法将局部变量传递给show视图...在我的控制器中,我有简单的: render template: "books/show", :resource => "Some text"在我看来,我打印以下内容:undefined local variable or method `resource' for #<#<Cla