close
最近將Rails升級到1.2的版本
在開發一個案子時看到Log寫的一些不被建議的寫法
現在一一記下:
=====分隔線=====
原本:has_many :line_items, :dependent => true
建議:has_many :line_items, :dependent => :destroy
原本:start_form_tag()
建議:form_tag()
原本:end_form_tag()
建議:
===============
參考資訊
http://www.rubyonrails.org/deprecation
http://leethal.stikipad.com/rails/show/1.2.1+Deprecations
在開發一個案子時看到Log寫的一些不被建議的寫法
現在一一記下:
=====分隔線=====
原本:has_many :line_items, :dependent => true
建議:has_many :line_items, :dependent => :destroy
原本:start_form_tag()
建議:form_tag()
原本:end_form_tag()
建議:
===============
參考資訊
http://www.rubyonrails.org/deprecation
http://leethal.stikipad.com/rails/show/1.2.1+Deprecations
全站熱搜
留言列表