《Web開發(fā)敏捷之道》勘誤
轉(zhuǎn)載自:http://blog.csdn.net/bvbook/archive/2007/08/20/1751786.aspx
一、148 頁
英文: We check that the name is present and unique
原文:我們首先檢查用戶名與密碼都不為空 ?
二、148頁
?? ??? ??? ??? ??? ??? ?
英文:We check that the name is present and unique
原文:我們首先檢查用戶名與密碼都不為空
改為:我們首先檢查用戶名不為空
?? ??? ??? ??? ?
三、153頁
代碼中 flash[:notice] 應(yīng)為flash.now[:notice]
四、310頁
?? ??? ??? ??? ??? ??? ?
列表中第二個(gè)“使用save方法時(shí)”應(yīng)為“使用save!方法時(shí)“
?? ??? ??? ??? ??? ??? ?
五、407頁
?? ??? ??? ??? ??? ??? ?
英文:Instead, they provide a regular (and simple) interface to a set of resources.
原文:它們只要為一組資源提供一個(gè)普通(并且簡(jiǎn)單)的接口就行了
改為:它們只要為一組資源提供一個(gè)規(guī)則(并且簡(jiǎn)單)的接口就行了
?? ??? ??? ??? ?
六、408頁
兩處的 /article/1 應(yīng)為/articles/1
?? ??? ??? ??? ??? ??? ??? ??? ?
七、456頁
?? ??? ??? ??? ??? ??? ?
原文:默認(rèn)配置下,cache 只有在產(chǎn)品環(huán)境下才生效
改為:默認(rèn)配置下,cache 只有在生產(chǎn)環(huán)境下才生效
?? ??? ??? ??? ?
八、535頁
?? ??? ??? ??? ??? ??? ?
原文:這個(gè)輔助方法就是把 remote_function 一個(gè)remote_function
改為:這個(gè)輔助方法就是把一個(gè)remote_function
九、554頁
?? ??? ??? ??? ??? ??? ?
原文:表單可以這些方法交互以提交用戶輸入的內(nèi)容
改為:表單可以與這些方法交互以提交用戶輸入的內(nèi)容
?? ??? ??? ??? ?
十、106頁 代碼
?? ??? ??? ??? ?
@product = Product.find(params[:id])
應(yīng)為?? ??? ?
product = Product.find(params[:id])
110、117相應(yīng)的代碼也需要改正。
我自己還發(fā)現(xiàn)了:
P119
代碼
??? <%= form_remote_tag :url => { :action => :add_to_cart, :id => product } %> ?
???? <%= submit_tag "Add to Cart" %> ?
??? <% end %> ?
應(yīng)為:
代碼
?? <%= form_remote_tag :url => { :action => :add_to_cart, :id => product } %> ?
????? <%= submit_tag "Add to Cart" %> ?
?? <%= end_form_tag %> ?
106頁
代碼
@product = Product.find(params[:id])
應(yīng)該是
product = Product.find(params[:id])
?? ??? ??? ??? ??? ??? ?
?? ??? ??? ??? ??? ??? ?
?? ??? ??? ??? ?
posted on 2007-08-28 16:07 _Kai_ 閱讀(458) 評(píng)論(2) 編輯 收藏 所屬分類: 敏捷開發(fā) 、Rails