Rails ActiveRecord Query Date Range

后端 未结 2 1974
Happy的楠姐
Happy的楠姐 2021-02-05 00:58

I\'m trying to use the following line in my controller to capture all tasks due less than a week from the current date:

@due_this_week = current_user.tasks.where         


        
2条回答
提交回复
热议问题