如何在使用Ruby on Rails中高效地设置视图部分的范围?
- 内容介绍
- 文章标签
- 相关推荐
本文共计311个文字,预计阅读时间需要2分钟。
我一直在使用示波器来展示一些信息,已完成的任务有24项。查询条件:scope: completed, joins(:user).where(:todos=> { :complete=> true }), scope: logged, completed.where(todos.updated_at=?, 1.day.ago)。使用常用语法。
本文共计311个文字,预计阅读时间需要2分钟。
我一直在使用示波器来展示一些信息,已完成的任务有24项。查询条件:scope: completed, joins(:user).where(:todos=> { :complete=> true }), scope: logged, completed.where(todos.updated_at=?, 1.day.ago)。使用常用语法。

