新手问题 link_to 方法,跳转后没有请求数据,

sensi · June 14, 2014 · Last by Martin91 replied at June 15, 2014 · 1627 hits

<%= link_to "Enter", controller: "pictures", action: "show", id: "1" %>

跳转后

标签的内容没有请求回来!!! 请问这个哪里出错了!!!

为什么不能写

<%= link_to "Enter", picture_path(picture) #picture has an id of 1 %>
You need to Sign in before reply, if you don't have an account, please Sign up first.