#RubyOnRails - 25 March 2018
« Back 1 day Forward 1 day »
[03:15:54] spohnz: I am making a bug tracking page and wanting to save the current_user.username as a report_owner in my db. im not sure how I do this. any advice?
[07:36:58] Diabolik: if I have a group of records that have duplicates, what's the fastest way of deleting all bar the most recent?
[07:37:39] Diabolik: Spree::Promotion.select(:name, :code).group(:name, :code).having("count(*) > 1")
[10:05:12] MrCrackPotBuilde: ive googled it but cant find much and ive tried phussion_passenger and just passenger
[19:09:40] ule: I'm almost giving up. I'm wondering if configuring my Nginx with Puma would be less painfull
[19:31:03] ewilliam: hi, i'm dealing with weird dependent: destroy behavior. Scheme::Step is a polymorphic model that can be either Screen or Screen::Group. a Scheme can have many Scheme::Steps. however when i delete a Screen, the Scheme's Screen::Steps are still intact, and errors out because of a nonexistent Screen record.
[19:31:53] ewilliam: i dont think `belongs_to :steppable, polymorphic: true, dependent: destroy` is a thing or is it?
[19:33:17] ewilliam: how can i ensure that when a Screen is deleted, all of its polymorphic instances are also deleted
[23:41:31] MonicleLewinsky: I'm having trouble require'ing a gem that I installed. I installed 'rest-client' and am trying to use it on a controller, but it keeps saying "cannot load such file -- rest-client".