看到一篇关于rails中是否还继续推荐使用scope的文章
http://www.railway.at/2010/03/09/named-scopes-are-dead/
另一个讨论
Named Scopes Are Dead
http://www.rubyflow.com/items/3566
其中在arel上有一个bug反馈
arel methods in scope cause issues with non-existent tables
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4142-arel-methods-in-scope-cause-issues-with-non-existent-tables
其它:
What’s going to be deprecated in Rails 3.1 ?
http://m.onkey.org/active-record-query-interface
Named scope with has many
http://www.ruby-forum.com/topic/310404
本文探讨了Rails框架中Scope的使用情况及未来趋势,包括其在Arel上的问题反馈、在Rails 3.1版本中可能被废弃的情况,以及与其他查询方法的对比。
320

被折叠的 条评论
为什么被折叠?



