这次没有再次fork, 而是直接切换到master, 重开新的分支开始重做. 真是神清气爽快速有效, 就是别忘记了数据库会有冲突, 不过三兄弟一下就搞定了.
Section 5.3 Step2
一. 生成错误的controller, 应该是复数, 不能是单数.


二. show页面的代码 各种疏漏


三. index页面代码也各种问题

先改两处问题...

这是个table...要each do啊喂!!! 你这样写只有一行而已啊!!!

"加@"跟"没加@"的区别, 会不会是..."是否展示原有内容"? 比如, 直接显示"title"本人的内容就不加"@", 显示"自定义文本"内容就用"link_to"...然而并不是, 立马被教程打脸...( ̄ε(# ̄)☆╰╮( ̄▽ ̄///)

还有一个问题, 就是删除的"文本提醒" 我之前那样写无效, 要有这个"confirm"才行

删掉各种多余的, 还能看到多处改动后的样子, 我之前写的简直...犯错教程来的哈哈哈.

四. "不能为空"代码的错误


五. new页面的代码错误



网友评论