« Back to channel list

#RubyOnRails - 02 May 2019

« Back 1 day Forward 1 day »
[00:06:56] skryking__: has joined #RubyOnRails
[00:34:36] ramfjord: has joined #RubyOnRails
[00:45:43] Technodrome: has joined #RubyOnRails
[00:50:33] cnsvc: has joined #RubyOnRails
[01:02:07] OneNeptune: has joined #RubyOnRails
[01:17:53] zacts: has joined #RubyOnRails
[01:20:23] tiboclan: has joined #RubyOnRails
[01:23:34] weteamsteve: has joined #RubyOnRails
[01:23:45] orbyt_: has joined #RubyOnRails
[01:35:32] uranoss: has joined #RubyOnRails
[01:39:28] uranoss: has joined #RubyOnRails
[01:47:46] Kamuela: has joined #RubyOnRails
[01:48:00] KevinSjoberg: has joined #RubyOnRails
[01:50:42] JJonah: has joined #RubyOnRails
[01:51:56] jhill: has joined #RubyOnRails
[01:52:42] wallace_mu: has joined #RubyOnRails
[02:20:53] tdy: has joined #RubyOnRails
[02:27:58] duderonomy: has joined #RubyOnRails
[02:29:05] s00pcan_: has joined #RubyOnRails
[02:33:25] gambl0re: has joined #RubyOnRails
[03:13:14] braincrash: has joined #RubyOnRails
[03:24:02] orbyt_: has joined #RubyOnRails
[03:24:43] JJonah_: has joined #RubyOnRails
[03:25:12] jhill: has joined #RubyOnRails
[03:34:56] altigraph: has joined #RubyOnRails
[03:39:22] al-damiri: has joined #RubyOnRails
[03:39:41] bambanx: has joined #RubyOnRails
[04:44:07] gambl0r3: has joined #RubyOnRails
[04:55:53] gambl0re: has joined #RubyOnRails
[05:02:00] xco: has joined #RubyOnRails
[05:03:15] orbyt_: has joined #RubyOnRails
[05:16:50] bambanxx: has joined #RubyOnRails
[05:20:43] kapil____: has joined #RubyOnRails
[05:23:30] conta: has joined #RubyOnRails
[05:23:36] MrCrackPotBuilde: has joined #RubyOnRails
[05:58:40] s00pcan: has joined #RubyOnRails
[06:06:13] crankharder: has joined #RubyOnRails
[06:25:09] ramfjord: has joined #RubyOnRails
[06:40:22] crankharder: has joined #RubyOnRails
[06:41:28] Technodrome: has joined #RubyOnRails
[06:45:33] tdy: has joined #RubyOnRails
[06:59:50] jhill: has joined #RubyOnRails
[07:03:48] Dbugger: has joined #RubyOnRails
[07:13:59] srinidhi: has joined #RubyOnRails
[07:18:15] lxsameer: has joined #RubyOnRails
[07:53:43] jefffrails35: has joined #RubyOnRails
[08:03:42] tdy: has joined #RubyOnRails
[08:15:56] mikecmpbll: has joined #RubyOnRails
[08:25:21] ramfjord: has joined #RubyOnRails
[09:30:41] m_antis: has joined #RubyOnRails
[09:35:53] casdr: has joined #RubyOnRails
[09:40:09] conta: has joined #RubyOnRails
[09:50:08] Raven737: has joined #RubyOnRails
[09:50:18] Raven737: Hi, question, i'm trying to get a git project to run correctly but it sometimes forwards to https (i don't have it set up), for that it is using the "domain" variable. Where is that defined? Where does the s in https come from in that variable?
[09:50:26] tbuehlmann: hahuang65: you're looking for hooks and filters: https://relishapp.com/rspec/rspec-core/v/3-8/docs/hooks/filters
[09:51:27] tbuehlmann: Raven737: what is this "domain" variable?
[09:52:07] Raven737: I only find it defined in /app/models/plugin.rb but after i changed it, it still does the same (seems the plugin domain has nothing to do with it?).
[09:53:03] tbuehlmann: okay. can you search your project for "force_ssl"?
[09:53:26] Raven737: tbuehlmann: for example, in after_sign_in_path_for(resource) i returns "#{domain}home"
[09:54:02] Raven737: tbuehlmann: force_ssl is not found.
[09:54:30] Raven737: The project is https://github.com/iobridge/thingspeak
[09:56:33] tbuehlmann: https://github.com/iobridge/thingspeak/blob/9d4b74d3daea413f37f3b92f09a5c14621a6fc9b/app/controllers/application_controller.rb#L186-L196
[09:57:04] tbuehlmann: looks like it converts the protocol to https in the production environment
[09:57:12] Raven737: that's it, thank you so much
[09:57:16] Raven737: sorry I am new at this
[09:57:53] tbuehlmann: no problem, you're welcome!
[10:09:48] conta: has joined #RubyOnRails
[10:13:36] lunarkitty7: has joined #RubyOnRails
[10:17:57] pro777_: has joined #RubyOnRails
[10:18:57] fowlduck_: has joined #RubyOnRails
[10:21:30] nemesit|znc: has joined #RubyOnRails
[10:22:40] w0rd-driven: has joined #RubyOnRails
[10:25:38] ramfjord: has joined #RubyOnRails
[10:46:48] crankharder: has joined #RubyOnRails
[10:54:43] lankanmon: has joined #RubyOnRails
[11:04:21] uksio: has joined #RubyOnRails
[11:17:27] phaul: has joined #RubyOnRails
[11:19:41] jefffrails35: has joined #RubyOnRails
[11:21:38] GodFather: has joined #RubyOnRails
[11:32:06] Technodrome: has joined #RubyOnRails
[11:44:41] tdy: has joined #RubyOnRails
[11:48:34] crankharder: has joined #RubyOnRails
[12:19:55] Technodrome: has joined #RubyOnRails
[12:25:46] ramfjord: has joined #RubyOnRails
[12:32:10] DTZUZO: has joined #RubyOnRails
[12:37:14] FastJack: has joined #RubyOnRails
[12:45:58] tdy1: has joined #RubyOnRails
[12:46:34] arielserafini: has joined #RubyOnRails
[13:02:37] wallace_mu: has joined #RubyOnRails
[13:05:05] CBebop: has joined #RubyOnRails
[13:12:53] raz: has joined #RubyOnRails
[13:12:56] raz: has left #RubyOnRails: ("*fump*")
[13:13:07] raz: has joined #RubyOnRails
[13:13:38] raz: is there a release date for Rails 6, yet?
[13:14:11] raz: (last thing i heard it was gonna come out on Apr 30, but looks like we're not there yet)
[13:22:45] zacts: has joined #RubyOnRails
[13:49:05] tbuehlmann: raz: there's no release date, but as we're on 6.0.0.rc1, it won't take long
[13:49:16] raz: tbuehlmann: thanks!
[14:00:33] wallace_mu: has joined #RubyOnRails
[14:14:06] crankharder: has joined #RubyOnRails
[14:15:44] zacts: has joined #RubyOnRails
[14:18:09] greengriminal: has joined #RubyOnRails
[14:33:14] crankharder: has joined #RubyOnRails
[14:43:03] jeremycw: has joined #RubyOnRails
[15:16:30] kapil____: has joined #RubyOnRails
[15:23:35] _axx: Someone here already implemented some kind of real-user monitoring combined with turbolinks?
[15:31:43] _aeris_: has joined #RubyOnRails
[15:36:57] al-damiri: has joined #RubyOnRails
[15:41:42] tiboclan: has joined #RubyOnRails
[15:42:17] tiboclan: hi guys , someone here already done a string#parameterize?
[15:53:55] mr-spoon: has joined #RubyOnRails
[16:05:32] Dbugger: has joined #RubyOnRails
[16:05:45] Dbugger: has joined #RubyOnRails
[16:09:31] shansen: has joined #RubyOnRails
[16:16:16] conta: has joined #RubyOnRails
[16:27:45] OneNeptune: has joined #RubyOnRails
[16:27:50] cjohnson: has joined #RubyOnRails
[16:28:31] cjohnson: I have an association on a model, I want to find the children of the model minus a particular instance
[16:28:44] cjohnson: so parent.children.without(specific_child)
[16:34:11] agent_white: has joined #RubyOnRails
[16:37:32] zacts: has joined #RubyOnRails
[16:37:50] duderonomy: has joined #RubyOnRails
[16:59:26] cjohnson: Best I've got is parent.children - [specific-child]
[16:59:39] cjohnson: Or using .reject { |c| c == specific_child }
[17:00:06] jeremycw: parent.children.where.not(specific_child)
[17:04:13] cjohnson: the child is not persisted so that doesn't work
[17:04:18] cjohnson: the query becomes where id IS NOT NULL
[17:04:30] cjohnson: sorry I didn't clarify that
[17:09:12] jeremycw: reject might be your best bet. if it's the only non persisted model you don't want you could do something like children.select(&:persisted?)
[17:16:19] cjohnson: It's not guaranteed to be the only non-persisted one
[17:17:25] jeremycw: ¯\_(ツ)_/¯
[17:18:12] zacts: has joined #RubyOnRails
[17:25:44] ramfjord: has joined #RubyOnRails
[17:25:44] gambl0re: has joined #RubyOnRails
[17:30:38] ariedler: has joined #RubyOnRails
[17:41:20] xco: has joined #RubyOnRails
[17:50:54] sameerynho: has joined #RubyOnRails
[17:54:30] LtHummus: has joined #RubyOnRails
[18:04:41] tdy1: has joined #RubyOnRails
[18:05:07] Technodrome: has joined #RubyOnRails
[18:15:32] jelera: has joined #RubyOnRails
[18:21:58] cjohnson: Ok one more question
[18:22:25] cjohnson: I am having a tough time figuring out how I can save changes to children records as part of the parent record save
[18:22:38] cjohnson: Adding a new child works just fine but updating existing ones doesn't
[18:23:02] cjohnson: parent.children.new
[18:23:13] cjohnson: parent.children.first.x = yz
[18:23:14] cjohnson: parent.save
[18:23:21] cjohnson: the new child is saved, but the first child is not updated
[18:23:41] cjohnson: I've tried with and without accepts_nested_attributes_for but I feel like that is more about updating from params
[18:31:13] jelera: has joined #RubyOnRails
[18:31:57] jelera: has joined #RubyOnRails
[18:32:45] jelera: has joined #RubyOnRails
[18:32:53] mikecmpbll: has joined #RubyOnRails
[18:33:35] jelera: has joined #RubyOnRails
[18:34:20] jelera: has joined #RubyOnRails
[18:36:15] jottr: has joined #RubyOnRails
[18:50:57] cjohnson: Oh ok it's actually because I'm using a scope
[18:51:05] cjohnson: parent.children.myScope.first.x = yz
[18:51:06] cjohnson: parent.save
[18:51:08] cjohnson: this doesn't work
[18:51:11] cjohnson: But parent.children.first.x = yz
[18:51:13] cjohnson: parent.save
[19:06:12] xco: has joined #RubyOnRails
[19:14:14] eckhardt: has joined #RubyOnRails
[19:32:24] orbyt_: has joined #RubyOnRails
[19:46:11] tdy1: has joined #RubyOnRails
[19:57:16] AlHafoudh: has joined #RubyOnRails
[20:28:09] zacts: has joined #RubyOnRails
[20:29:58] GodFather: has joined #RubyOnRails
[20:39:15] tdy1: has joined #RubyOnRails
[20:46:39] weteamsteve: has joined #RubyOnRails
[21:01:01] jottr: has joined #RubyOnRails
[21:25:11] GodFather: has joined #RubyOnRails
[21:30:14] ur5us: has joined #RubyOnRails
[21:36:48] thunderbirdtr: has joined #RubyOnRails
[21:38:27] mcr: has joined #RubyOnRails
[21:45:09] OneNeptune: has joined #RubyOnRails
[22:07:26] gambl0re: has joined #RubyOnRails
[22:09:46] atrius: has joined #RubyOnRails
[22:37:37] jelera: has joined #RubyOnRails
[22:57:55] jelera: has joined #RubyOnRails
[23:03:20] crankharder: has joined #RubyOnRails
[23:15:11] Haydos_: has joined #RubyOnRails
[23:48:52] uks: has joined #RubyOnRails