« Back to channel list

#RubyOnRails - 09 May 2019

« Back 1 day Forward 1 day »
[00:01:22] ramfjord: has joined #RubyOnRails
[00:01:51] Technodrome: has joined #RubyOnRails
[00:07:46] gambl0r3: has joined #RubyOnRails
[00:23:22] ramfjord: has joined #RubyOnRails
[00:29:14] quazimodo: has joined #RubyOnRails
[01:02:12] altigraph: has joined #RubyOnRails
[01:46:10] tdy: has joined #RubyOnRails
[01:51:01] Jameser: has joined #RubyOnRails
[01:54:27] s00pcan: has joined #RubyOnRails
[02:00:23] ariedler: has joined #RubyOnRails
[02:01:59] haengma: has joined #RubyOnRails
[02:28:13] dhuey: has joined #RubyOnRails
[02:31:12] tdy: has joined #RubyOnRails
[02:38:11] sdrew: has joined #RubyOnRails
[03:11:14] braincrash: has joined #RubyOnRails
[03:22:18] Saukk: has joined #RubyOnRails
[03:49:51] zacts: has joined #RubyOnRails
[04:00:50] ariedler: has joined #RubyOnRails
[04:17:55] haengma: has joined #RubyOnRails
[04:44:36] conta: has joined #RubyOnRails
[04:49:54] quazimodo: has joined #RubyOnRails
[05:08:54] tdy: has joined #RubyOnRails
[05:19:16] conta: has joined #RubyOnRails
[05:57:00] duderonomy: has joined #RubyOnRails
[05:57:01] conta: has joined #RubyOnRails
[05:57:39] srinidhi: has joined #RubyOnRails
[06:00:04] za1b1tsu: has joined #RubyOnRails
[06:01:49] ariedler: has joined #RubyOnRails
[06:12:32] Jameser: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[06:27:58] Ergo: has joined #RubyOnRails
[06:31:40] srinidhi: has joined #RubyOnRails
[06:31:50] ramfjord: has joined #RubyOnRails
[06:37:55] balo: has joined #RubyOnRails
[06:38:19] balo: morning everyone!
[06:38:45] balo: i am on rails 6.0rc1 and see this deprecation warning in development mode: https://github.com/rails/rails/blob/master/railties/lib/rails/application/finisher.rb#L27
[06:39:33] balo: just for a few constants, the first one is ApplicationRecord, 2 of the models inheriting from it and some module names used in those models
[06:40:17] balo: i look around initializers and everything but couldn't find the reason. where else would you look? what is the typicial case when this deprecation warning is raised?
[06:40:53] balo: i read the constants guide and i understand constant lookup better but not the root cause of the issue
[06:41:09] balo: i use zeitwek btw
[06:41:13] balo: *zeitwerk
[06:51:20] balo: ok, i figured it out
[06:51:57] balo: there was indeed an initializer doing a `require Rails.root.join("lib", "my_ext")`
[06:54:28] balo: this raises a new question, how to handle these independent libraries? according to https://edgeguides.rubyonrails.org/autoloading_and_reloading_constants.html#autoload-paths-and-eager-load-paths adding lib to `autoload_paths` is discouraged
[06:56:15] balo: need to extract it into a gem i guess?
[07:10:43] srinidhi: has joined #RubyOnRails
[07:33:13] dminuoso: has joined #RubyOnRails
[07:34:35] dminuoso: Using simple_form I have an `simple_form_for model { |f| ... f.input :email_addresses, :input_html: { class: "selectize_mail" } }`, where email_addresses is an array field on my model.
[07:35:21] dminuoso: This produces an input field where the array is joined together with a space. What process decides how to serialize this array?
[07:35:40] srinidhi: has joined #RubyOnRails
[08:02:23] ariedler: has joined #RubyOnRails
[08:04:19] jefffrails35: has joined #RubyOnRails
[08:04:55] conta: has joined #RubyOnRails
[08:07:12] mikecmpbll: has joined #RubyOnRails
[08:08:32] sevenseacat: has joined #RubyOnRails
[08:09:22] Momentum: has joined #RubyOnRails
[08:10:42] FooBarWidget: has joined #RubyOnRails
[08:32:03] ramfjord: has joined #RubyOnRails
[09:13:52] lxsameer: has joined #RubyOnRails
[09:27:59] conta: has joined #RubyOnRails
[10:01:46] pd09041999: has joined #RubyOnRails
[10:03:24] ariedler: has joined #RubyOnRails
[10:13:19] mjacob: has joined #RubyOnRails
[10:19:53] kapil____: has joined #RubyOnRails
[10:20:42] apparition: has joined #RubyOnRails
[10:32:15] ramfjord: has joined #RubyOnRails
[10:52:21] lankanmon: has joined #RubyOnRails
[10:55:08] ariedler: has joined #RubyOnRails
[10:55:15] MrCrackPotBuilde: has joined #RubyOnRails
[10:55:31] conta: has joined #RubyOnRails
[11:37:51] defsdoor: has joined #RubyOnRails
[11:40:17] atrius: has joined #RubyOnRails
[11:54:09] pd09041999: has joined #RubyOnRails
[12:14:25] ariedler: has joined #RubyOnRails
[12:17:14] AlHafoudh: has joined #RubyOnRails
[12:20:58] AlHafoudh: does anyone have idea how can I determine new session id inside custom devise authentication strategy? after login, session id gets reset
[12:23:11] GodFather: has joined #RubyOnRails
[12:27:09] GodFather_: has joined #RubyOnRails
[12:28:27] Squeeeez: has left #RubyOnRails: ("%IRC-I-USRLFT, User left channel")
[13:40:10] za1b1tsu: has joined #RubyOnRails
[13:43:50] cek: has joined #RubyOnRails
[13:55:34] cek: Hi. I'm having troubles with responding on proper content type. First of all, request coming with `Accept: application/json` header isn't "translated" to JSON. It shows as `Processing by xx#yy as ` . No JSON or HTML, just an empty space -- why?
[13:56:11] cek: Secondly, when I'm doing `respond_to {|f| f.json { render json: blah } }`, it's throwing `ActionController::UnknownFormat`. why?
[13:58:35] cek: I admit using `defaults: {format: [:html, :json]}` in the route. But the only reason is that I just wanted to set a default type when there's no `Accept` supplied by client
[14:06:43] cek: well fuck https://blog.bigbinary.com/2010/11/23/mime-type-resolution-in-rails.html
[14:14:38] ariedler: has joined #RubyOnRails
[14:21:00] FrankDW: has joined #RubyOnRails
[14:23:35] Net: has left #RubyOnRails: ()
[14:23:57] Frem: has joined #RubyOnRails
[14:31:21] Net: has joined #RubyOnRails
[14:39:03] ellcs: has joined #RubyOnRails
[14:40:12] zacts: has joined #RubyOnRails
[14:43:05] Jameser: has joined #RubyOnRails
[14:47:18] cerulean: has joined #RubyOnRails
[14:47:20] cerulean: g b a ld a ! ! ! g b a lda ! ! ! ! g b a l d a! ! ! g ba l d a ! !!g b a l d a ! ! !! g b d a l d a
[14:47:20] cerulean: g b a ld a ! ! ! g b a lda ! ! ! ! g b a l d a! ! ! g ba l d a ! !!g b a l d a ! ! !! g b d a l d a
[14:47:20] cerulean: g b a ld a ! ! ! g b a lda ! ! ! ! g b a l d a! ! ! g ba l d a ! !!g b a l d a ! ! !! g b d a l d a
[14:47:20] cerulean: g b a ld a ! ! ! g b a lda ! ! ! ! g b a l d a! ! ! g ba l d a ! !!g b a l d a ! ! !! g b d a l d a
[14:47:20] cerulean: g b a ld a ! ! ! g b a lda ! ! ! ! g b a l d a! ! ! g ba l d a ! !!g b a l d a ! ! !! g b d a l d a
[14:47:21] cerulean: g b a ld a ! ! ! g b a lda ! ! ! ! g b a l d a! ! ! g ba l d a ! !!g b a l d a ! ! !! g b d a l d a
[14:47:21] cerulean: g b a ld a ! ! ! g b a lda ! ! ! ! g b a l d a! ! ! g ba l d a ! !!g b a l d a ! ! !! g b d a l d a
[14:47:21] cerulean: g b a ld a ! ! ! g b a lda ! ! ! ! g b a l d a! ! ! g ba l d a ! !!g b a l d a ! ! !! g b d a l d a
[14:47:34] cerulean: g b a lda ! !! g b ald a ! ! ! ! gb a l d a ! ! ! gb a l da ! !!g b al d a !!! ! g bd a l d a
[14:47:34] cerulean: g b a lda ! !! g b ald a ! ! ! ! gb a l d a ! ! ! gb a l da ! !!g b al d a !!! ! g bd a l d a
[14:47:34] cerulean: g b a lda ! !! g b ald a ! ! ! ! gb a l d a ! ! ! gb a l da ! !!g b al d a !!! ! g bd a l d a
[14:47:34] cerulean: g b a lda ! !! g b ald a ! ! ! ! gb a l d a ! ! ! gb a l da ! !!g b al d a !!! ! g bd a l d a
[14:47:34] cerulean: g b a lda ! !! g b ald a ! ! ! ! gb a l d a ! ! ! gb a l da ! !!g b al d a !!! ! g bd a l d a
[14:47:34] ChanServ: +q *!*@75-166-93-95.hlrn.qwest.net
[14:47:37] cerulean: has left #RubyOnRails: ()
[15:04:14] Technodrome: has joined #RubyOnRails
[15:07:08] ellcs: has joined #RubyOnRails
[15:07:13] tdy: has joined #RubyOnRails
[15:12:03] gambl0r3: has joined #RubyOnRails
[15:14:25] AlHafoudh: has joined #RubyOnRails
[15:15:46] timdotrb: has joined #RubyOnRails
[15:30:35] Technodrome: has joined #RubyOnRails
[16:20:35] pd09041999: has joined #RubyOnRails
[16:24:16] tdy: has joined #RubyOnRails
[16:27:43] as4h3l: has joined #RubyOnRails
[16:31:32] haengma: has joined #RubyOnRails
[16:33:55] haengma: has joined #RubyOnRails
[16:40:12] duderonomy: has joined #RubyOnRails
[16:52:46] skryking: has joined #RubyOnRails
[16:53:09] gambl0r3: has joined #RubyOnRails
[16:53:32] skryking: would anyone happen to have a clean way to overload a method based on Rails.env ?
[17:20:58] tdy: has joined #RubyOnRails
[17:21:13] za1b1tsu: has joined #RubyOnRails
[17:28:20] ebbflowgo: has joined #RubyOnRails
[17:32:13] ebbflowgo: Hey guys, what am I missing here.. I can't access the exposed headers in the axios response
[17:32:15] ebbflowgo: my cors file - https://pastebin.com/8GyHP2tW
[17:32:47] ebbflowgo: my js call - https://pastebin.com/hsjFqFP7
[17:32:54] ebbflowgo: function that gets called*
[17:34:26] Jameser: has joined #RubyOnRails
[17:36:28] ramfjord: has joined #RubyOnRails
[17:37:18] zacts: has joined #RubyOnRails
[17:41:01] tdy: has joined #RubyOnRails
[17:52:43] Saukk: has joined #RubyOnRails
[18:03:04] AlHafoudh: has joined #RubyOnRails
[18:16:27] ElF3rn4: has joined #RubyOnRails
[18:22:35] cek: has joined #RubyOnRails
[18:29:40] Dbugger: has joined #RubyOnRails
[18:31:48] cek: Hi. Why would no prefix be generated for a parameterized constrained route?
[18:35:57] AlHafoudh: has joined #RubyOnRails
[18:40:57] pd09041999: has joined #RubyOnRails
[18:45:04] tdy: has joined #RubyOnRails
[18:53:40] Xiti: has joined #RubyOnRails
[19:21:41] cnsvc: has joined #RubyOnRails
[19:22:04] jobewan: has joined #RubyOnRails
[19:23:50] za1b1tsu: has joined #RubyOnRails
[19:24:04] mikecmpbll: has joined #RubyOnRails
[19:26:37] weteamsteve: has joined #RubyOnRails
[19:27:20] cnsvc: has joined #RubyOnRails
[19:36:55] cnsvc: has joined #RubyOnRails
[19:43:28] cnsvc: has joined #RubyOnRails
[19:53:59] Rustputin: has joined #RubyOnRails
[20:16:47] ariedler: has joined #RubyOnRails
[20:25:14] agent_white: has joined #RubyOnRails
[20:36:41] cnsvc: has joined #RubyOnRails
[20:44:13] Mia: has joined #RubyOnRails
[20:57:26] pd09041999: has joined #RubyOnRails
[21:03:32] jhill: has joined #RubyOnRails
[21:03:47] pekalicious: has joined #RubyOnRails
[21:06:21] pekalicious: Quick question: I had two models that where associated with HABTM and I just converted them into a has_many through. Now I'm migrating the data and don't really know how to find a record when a db table has 2 ID columns as its index. The bigger problem is, I don't even know how to search this to find an answer online. This is probably standard SQL terminology
[21:08:47] pekalicious: When I created the HABTM, rails automatically created a join table with two columns, one ID columne for each referencing model (I just realized the columns aren't even foreign keys). Now I created a model for this table (by --skip-migration) and trying to figure out how to find records from it.
[21:13:33] zacts: has joined #RubyOnRails
[21:33:54] gambl0r3: has joined #RubyOnRails
[21:47:36] DTZUZO: has joined #RubyOnRails
[21:48:55] ellcs: has joined #RubyOnRails
[21:58:29] sameerynho: has joined #RubyOnRails
[22:14:26] Fernando-Basso: has joined #RubyOnRails
[22:18:06] ariedler: has joined #RubyOnRails
[22:23:56] ellcs: has joined #RubyOnRails
[22:35:03] haengma: has joined #RubyOnRails
[22:36:26] uranoss: has joined #RubyOnRails
[22:36:33] DukeDave: has joined #RubyOnRails
[22:47:27] AlHafoudh: has joined #RubyOnRails
[22:54:07] tdy: has joined #RubyOnRails
[23:02:16] Jameser: has joined #RubyOnRails
[23:04:54] ariedler: has joined #RubyOnRails
[23:05:31] haengma: has joined #RubyOnRails
[23:17:56] haengma: has joined #RubyOnRails
[23:20:59] ellcs: has joined #RubyOnRails
[23:24:07] uks: has joined #RubyOnRails
[23:25:38] haengma: has joined #RubyOnRails
[23:41:04] AlHafoudh: has joined #RubyOnRails
[23:41:41] haengma: has joined #RubyOnRails
[23:45:52] haengma: has joined #RubyOnRails