我有一个Express/Postgres后端,具有以下路由,它根据过去X天累积的点数返回排行榜。例如,当我在下面的查询中将'points_horizon‘硬编码为7时,它会返回基于过去7天的排行榜。但是,我希望能够为每个组指定属性points_horizon,以便调整排行榜包含的天数。但是,以下插值不起作用,返回错误:ReferenceError: points_horizon is not defined // returns total number of acts per user over the last 'points_horizon' days
rout
当我运行autotest时,得到以下错误。奇怪的是,我没有文件夹/Library/Ruby/Gems/1.8/,而是文件夹/Library/Ruby/Gems/1.9.1/。
帮助?谢谢。
Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/heroku-2.8.6.gemspec]: invalid date format in specification: "2011-10-07 00:00:00.000000000Z"
loading autotest/rails_rspec2
-------------