#RubyOnRails - 17 June 2018
« Back 1 day Forward 1 day »
[06:40:50] yottanami: How can I change this query to works? `Bet.joins(:game).where(game.expire_date > :created_at)`
[06:51:10] yottanami: Radar, Game and Bet are two different tables, Bet belongs_to Game and Game has_many Bets. Game has a field named expire_date. I need find Bets that created_at after expire_date of game
[08:22:01] dminuoso: Bet.joins(:game).where(Game.arel_table[:expire_date].gt(Bet.arel_table[:created_at]))
[15:16:01] SexiestManAlive: may I guess that Ruby on Rails folks has been making Web API before MSFT folks were doing it with ASP.NET MVC + WebAPI?
[15:16:25] SexiestManAlive: if so, is there a fairly recent book or screencast or video tutorial or series of blogs on the topic?
[15:16:42] SexiestManAlive: I just want to produce something that's production-ready, really expert level stuff
[20:42:36] TvL2386: hello everybody! I am using the redis store for my rails 5.1.6 project. Now I want to use that same redis server to cache some api calls. I was wondering if I can get the existing redis connection in some way