3-11標題超連結無內容

Published on:

錯誤 第二課3-11步驟2把標題變成超連結,標體點進去後沒有顯示內容
原因:少了 , topic

正確 app/views/topics/index.html.erb

<%= link_to topic.title, topic %>

我的錯誤版 app/views/topics/index.html.erb

<%= link_to topic.title %>

Comments

comments powered by Disqus