« Back to channel list

#RubyOnRails - 20 November 2018

« Back 1 day Forward 1 day »
[00:00:40] OrangeManBad: has joined #RubyOnRails
[00:09:36] dviola: has joined #RubyOnRails
[01:01:30] Jervis_: has joined #RubyOnRails
[01:06:21] Liothen: has joined #RubyOnRails
[01:27:36] ss_much: has joined #RubyOnRails
[01:40:47] Dimik: has joined #RubyOnRails
[02:24:04] nertzy: has joined #RubyOnRails
[02:29:47] Saukk: has joined #RubyOnRails
[02:42:17] Exuma: has joined #RubyOnRails
[03:24:14] OrangeManBad: has joined #RubyOnRails
[03:26:00] hnanon: has joined #RubyOnRails
[03:47:14] Exuma: has joined #RubyOnRails
[04:00:21] ausmat: has joined #RubyOnRails
[04:08:58] braincrash: has joined #RubyOnRails
[04:15:03] MoritaShinobu: has joined #RubyOnRails
[04:33:44] jstrong: has joined #RubyOnRails
[04:33:58] jstrong: Q: Can Rails engines’ autoload classes that are outside of the engine module namespace?
[04:35:25] jstrong: I just answered my own question!
[04:39:28] timdotrb: has joined #RubyOnRails
[04:50:18] roshanavand1: has joined #RubyOnRails
[04:50:26] Exuma: has joined #RubyOnRails
[05:06:05] Exuma: has joined #RubyOnRails
[05:10:31] bambanx: has joined #RubyOnRails
[05:15:38] sheepman: has joined #RubyOnRails
[05:20:03] sevenseacat: has joined #RubyOnRails
[05:46:08] jetchisel: has joined #RubyOnRails
[06:02:15] reber: has joined #RubyOnRails
[06:12:38] srinidhi: has joined #RubyOnRails
[06:15:59] reber__: has joined #RubyOnRails
[06:17:00] ariedler: has joined #RubyOnRails
[06:32:56] LightStalker: has joined #RubyOnRails
[06:35:39] gambl0re: has joined #RubyOnRails
[06:36:43] conta: has joined #RubyOnRails
[06:40:37] srinidhi: has joined #RubyOnRails
[07:22:48] srinidhi: has joined #RubyOnRails
[07:42:27] planigan: has joined #RubyOnRails
[07:44:48] whysthatso: has joined #RubyOnRails
[08:33:34] OrangeManBad: has joined #RubyOnRails
[08:36:05] dionysus69: any tips on how to imrpove this snippet? http://paste.debian.net/1052424/
[08:49:43] Radar: dionysus69: SOME_ARRAY_CONSTANT || JSON.parse(ENV["SOME_ARRAY_STRING"])
[08:52:01] sevenseacat: has joined #RubyOnRails
[08:58:14] _aeris_: `SOME_ARRAY_CONSTANT ||= JSON.parse(ENV["SOME_ARRAY_STRING"])` is better to preserve the else assignment
[09:12:30] voolik: has joined #RubyOnRails
[09:16:27] srinidhi: has joined #RubyOnRails
[09:35:12] lomex: has joined #RubyOnRails
[09:37:35] crankhar1er: has joined #RubyOnRails
[09:51:59] lomex: has joined #RubyOnRails
[09:58:12] roshanavand: has joined #RubyOnRails
[10:00:38] Guest61808: has joined #RubyOnRails
[10:11:43] jetchisel: has joined #RubyOnRails
[10:18:03] ariedler: has joined #RubyOnRails
[10:18:47] gregf_: has joined #RubyOnRails
[11:33:32] adgtl: sylario for yesterdays' my question regarding error while running tests `ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_users_on_email"`
[11:33:40] adgtl: yes I use devise
[11:34:08] Sylario: Well, devise has a constraint on emails, they must be unique
[11:50:10] uks: has joined #RubyOnRails
[11:51:14] GodFather: has joined #RubyOnRails
[11:55:07] ariedler: has joined #RubyOnRails
[12:03:09] lankanmon: has joined #RubyOnRails
[12:26:09] voolik: has joined #RubyOnRails
[12:38:01] reber: has joined #RubyOnRails
[12:39:25] Moeh: has joined #RubyOnRails
[12:47:00] Arkantos: has joined #RubyOnRails
[12:48:37] Arkantos: has joined #RubyOnRails
[12:57:38] Terens: has joined #RubyOnRails
[13:06:24] madsj: has joined #RubyOnRails
[13:09:38] jottr: has joined #RubyOnRails
[13:29:36] sevenseacat: has joined #RubyOnRails
[13:35:25] Karpah: has joined #RubyOnRails
[13:36:39] JamieD: has joined #RubyOnRails
[13:37:16] Guest61808: has joined #RubyOnRails
[13:42:25] crankhar1er: has joined #RubyOnRails
[14:04:28] za1b1tsu: has joined #RubyOnRails
[14:15:10] hnanon: has joined #RubyOnRails
[14:16:24] alan_w: has joined #RubyOnRails
[14:24:58] eclm: has joined #RubyOnRails
[14:31:47] lomex: has joined #RubyOnRails
[14:32:55] roshanavand: has joined #RubyOnRails
[14:37:44] kapil____: has joined #RubyOnRails
[14:38:09] tycoon177: does anyone here know how I could "group" 2 table rows in the Prawn pdf gem? Basically, if one of the rows is going to spill over to the next page, I need both of them to do so
[14:57:06] jottr_: has joined #RubyOnRails
[15:05:00] jottr: has joined #RubyOnRails
[15:06:11] jstrong: has joined #RubyOnRails
[15:10:24] blackmesa: has joined #RubyOnRails
[15:10:39] roshanavand: has joined #RubyOnRails
[15:10:45] Arkantos: has joined #RubyOnRails
[15:19:50] Guest61808: has joined #RubyOnRails
[15:25:43] jstrong: has joined #RubyOnRails
[15:29:55] Arkantos: has joined #RubyOnRails
[15:30:15] Guest61808: has joined #RubyOnRails
[15:38:26] za1b1tsu: has joined #RubyOnRails
[15:38:38] timdotrb: has joined #RubyOnRails
[15:38:53] voolik: has joined #RubyOnRails
[15:44:10] roshanavand: has joined #RubyOnRails
[15:48:27] MoritaShinobu: has joined #RubyOnRails
[15:49:17] crankharder: has joined #RubyOnRails
[16:01:07] srinidhi: has joined #RubyOnRails
[16:13:00] KevinSjoberg: has joined #RubyOnRails
[16:15:07] za1b1tsu: has joined #RubyOnRails
[16:16:04] LunarDinosaur: has joined #RubyOnRails
[16:23:20] WickyNilliams: has joined #RubyOnRails
[16:27:16] WickyNilliams: has left #RubyOnRails: ()
[16:28:01] Arkantos: has joined #RubyOnRails
[16:34:44] za1b1tsu: has joined #RubyOnRails
[16:35:16] hnanon: has joined #RubyOnRails
[16:35:25] tweaks: has joined #RubyOnRails
[16:37:54] jstrong: has joined #RubyOnRails
[16:39:27] tweaks: i have an application (4.2.x) that forces ssl using the config.force_ssl = true environment setting. this uses a 307 status, i'd prefer a 301 - is there a way in production.rb to configure the status code?
[16:41:55] jottr: has joined #RubyOnRails
[16:50:19] gambl0re: has joined #RubyOnRails
[16:53:34] blackmesa: has joined #RubyOnRails
[17:11:01] tubbo: tweaks: doesn't seem so. https://github.com/rails/rails/blob/fc5dd0b85189811062c85520fd70de8389b55aeb/actionpack/lib/action_dispatch/middleware/ssl.rb#L132-L138
[17:11:26] tubbo: oh sorry, you're using 4.2.x...
[17:11:50] tubbo: seems like in the latest 4.2, that was https://github.com/rails/rails/blob/4-2-stable/actionpack/lib/action_dispatch/middleware/ssl.rb#L44
[17:12:00] tubbo: so you should be seeing 301 redirects all the time, yeah?
[17:14:20] SteenJobs: has joined #RubyOnRails
[17:15:51] tweaks: tubbo: hmm :/ you're right.. maybe this project has something else going on, time to dig. thanks
[17:15:57] tubbo: @CONTENTCLICKED
[17:21:34] ht85: has joined #RubyOnRails
[17:23:01] ht85: I have a rails app in development behind an http proxy. The proxy serves the traffic using HTTPS, but requests it from rails using HTTP. Rails generates http:// urls for assets, and form actions. Is there a way to override this for the whole app, to force generating https:// urls? (rails 4)
[17:23:45] ht85: I've managed to override it for assets by using asset_host but no luck for form[action]
[17:25:23] tweaks: tubbo: this project has an application_controller.rb method force_ssl if: :ssl_configured? which just checks Rails.configuration.force_ssl -- seem redundant since production.rb has it enabled, perhaps this is the cause of the 307.
[17:29:06] tubbo: tweaks: ah ok. the controller macro `force_ssl` is different from `Rails.configuration.force_ssl`. https://api.rubyonrails.org/classes/ActionController/ForceSSL/ClassMethods.html#method-i-force_ssl (which just does a `redirect_to` in https://api.rubyonrails.org/classes/ActionController/ForceSSL.html#method-i-force_ssl_redirect)
[17:30:50] ht85: nevermind solved it!
[17:32:44] Arkantos: has joined #RubyOnRails
[17:45:47] _aeris_: has joined #RubyOnRails
[17:46:21] Dbugger: has joined #RubyOnRails
[17:51:25] tweaks: tubbo: bingo. working now, thank you for the help
[17:55:28] beowuff: has joined #RubyOnRails
[17:56:04] krawchyk: has joined #RubyOnRails
[18:03:14] jaddison: has joined #RubyOnRails
[18:08:29] roshanavand: has joined #RubyOnRails
[18:19:33] crankhar1er: has joined #RubyOnRails
[18:28:59] Travis-42: has joined #RubyOnRails
[18:29:56] Travis-42: I'm playing around with a new rails 5.2 app and active job, and when I queue an activejob, it seems to work (I see the "Enqueued AJob to Async(default)" message). But it never seems to actually run. What may I have done wrong?
[18:37:44] LambdaSource: has joined #RubyOnRails
[18:46:05] Exuma: has joined #RubyOnRails
[18:48:43] dviola: has joined #RubyOnRails
[18:51:32] defsdoor: has joined #RubyOnRails
[18:51:43] OrangeManBad: has joined #RubyOnRails
[19:00:15] gambl0re: has joined #RubyOnRails
[19:04:35] rrichardsr3: has joined #RubyOnRails
[19:06:16] jottr: has joined #RubyOnRails
[19:07:45] ule: has joined #RubyOnRails
[19:15:39] Exuma: has joined #RubyOnRails
[19:25:02] LambdaSource: has joined #RubyOnRails
[19:28:39] lxsameer: has joined #RubyOnRails
[19:29:29] LunarDinosaur: has joined #RubyOnRails
[19:39:10] conta: has joined #RubyOnRails
[19:40:59] reber: has joined #RubyOnRails
[19:57:23] whysthatso_: has joined #RubyOnRails
[19:58:04] SteenJobs: has joined #RubyOnRails
[20:02:54] SteenJobs: has joined #RubyOnRails
[20:06:37] tubbo: Travis-42: how are you determining that the job has not run?
[20:08:15] bambanx: has joined #RubyOnRails
[20:09:09] bambanx: guys what is a b2b app?
[20:11:12] tubbo: bambanx: B2B can mean "business-to-business" in the eCommerce world, these are stores that sell to other businesses rather than consumers. wholesalers, white label printing (like for t-shirts, stickers, etc), and office supply delivery are good examples of B2B sales.
[20:13:27] rrichardsr3: has joined #RubyOnRails
[20:15:36] bambanx: thanks tubbo
[20:19:53] roshanavand: has joined #RubyOnRails
[20:24:30] tycoon177: for anyone wondering the answer to my prawn question earlier, i ended up going through and making those rows a subtable. it's not pretty, but it keeps them together on the same page.
[20:50:29] SteenJobs: has joined #RubyOnRails
[20:51:53] hnanon: has joined #RubyOnRails
[20:53:05] hnanon: has joined #RubyOnRails
[20:53:23] LambdaSource: has joined #RubyOnRails
[20:56:53] jstrong: has joined #RubyOnRails
[20:59:10] Exuma: has joined #RubyOnRails
[21:10:27] Radar: GOOD MORNING
[21:21:55] ellcs: has joined #RubyOnRails
[21:24:04] tubbo: ayyy lmao
[21:27:59] OrangeManBad: has joined #RubyOnRails
[21:28:17] lomex: has joined #RubyOnRails
[21:28:22] LambdaSource: has joined #RubyOnRails
[21:40:26] SteenJobs: has joined #RubyOnRails
[21:55:30] Exuma: has joined #RubyOnRails
[22:04:00] Exuma: has joined #RubyOnRails
[22:08:36] LambdaSource: has joined #RubyOnRails
[22:22:34] FLeiXiuS: has joined #RubyOnRails
[22:23:46] FLeiXiuS: I have a model Lesson and a model Progress. Progress is a has_many :through for Users. I want to be able to eager load a Progress with a constraint. Ex: Lesson.order(:order).includes(:progress, where(user_id: 1))
[22:32:59] hnanon: has joined #RubyOnRails
[22:40:17] SteenJobs: has joined #RubyOnRails
[22:50:27] jstrong: has joined #RubyOnRails
[23:00:45] FLeiXiuS: I have something close.
[23:01:06] FLeiXiuS: But it's only loading Lessons where the has_one condition is true.
[23:13:16] mochiyoda: has joined #RubyOnRails
[23:23:31] chris349: has joined #RubyOnRails
[23:24:07] chris349: I try to make a new db migration, but I get some strange error about the code thats never popped up before. How can I just manually make the migration so I dont have to deal with this unrelated problem right now?
[23:32:38] hnanon: Can I update nested attributes in an action before saving the parent?
[23:32:58] hnanon: Or, assign attributes, actually (not update).
[23:46:49] Arkantos: has joined #RubyOnRails
[23:57:18] bambanx: has joined #RubyOnRails