« Back to channel list

#RubyOnRails - 02 September 2018

« Back 1 day Forward 1 day »
[00:10:27] jari: has joined #RubyOnRails
[00:20:05] jottr: has joined #RubyOnRails
[00:39:25] LambdaSource: has joined #RubyOnRails
[00:57:47] jottr: has joined #RubyOnRails
[00:59:34] orbyt_: has joined #RubyOnRails
[01:12:56] work_: has joined #RubyOnRails
[01:13:07] ivanskie: has joined #RubyOnRails
[01:16:20] LambdaSource: has joined #RubyOnRails
[01:19:06] hive-mind: has joined #RubyOnRails
[02:44:41] LambdaSource: has joined #RubyOnRails
[02:49:26] LambdaSource: has joined #RubyOnRails
[02:59:46] sevenseacat: has joined #RubyOnRails
[03:10:12] braincrash: has joined #RubyOnRails
[03:19:30] Saukk: has joined #RubyOnRails
[03:25:13] jackhum: has joined #RubyOnRails
[03:30:26] Technodrome: has joined #RubyOnRails
[03:33:52] jottr: has joined #RubyOnRails
[03:41:55] dionysus69: has joined #RubyOnRails
[03:42:55] jackhum: has joined #RubyOnRails
[03:52:22] LambdaSource: has joined #RubyOnRails
[04:01:23] jackhum: has joined #RubyOnRails
[05:20:43] LambdaSource: has joined #RubyOnRails
[05:34:43] jottr: has joined #RubyOnRails
[05:45:35] LambdaSource: has joined #RubyOnRails
[05:53:28] reber: has joined #RubyOnRails
[06:08:30] Technodrome: has joined #RubyOnRails
[06:21:29] Majadon: has joined #RubyOnRails
[06:48:43] ariedler: has joined #RubyOnRails
[07:01:10] ariedler: has joined #RubyOnRails
[07:10:48] kapil___: has joined #RubyOnRails
[07:20:25] lomex: has joined #RubyOnRails
[07:20:36] lessless_: has joined #RubyOnRails
[07:26:41] quazimodo: has joined #RubyOnRails
[07:35:38] jottr: has joined #RubyOnRails
[07:39:00] Dbugger: has joined #RubyOnRails
[07:44:30] conta1: has joined #RubyOnRails
[07:44:32] DTZUZO: has joined #RubyOnRails
[07:45:03] ariedler: has joined #RubyOnRails
[08:10:38] srinidhi: has joined #RubyOnRails
[08:12:41] lord4163: has joined #RubyOnRails
[08:19:41] DTZUZO: has joined #RubyOnRails
[08:34:17] roshanavand: has joined #RubyOnRails
[09:13:22] pLaTo0n: has joined #RubyOnRails
[09:17:36] jottr: has joined #RubyOnRails
[09:49:07] defsdoor: has joined #RubyOnRails
[09:57:44] emmezeta: has joined #RubyOnRails
[10:07:17] emmezeta: Hi, Yesterday I started for the *first time* ruby and ruby on rails from the getting started guide.
[10:07:19] emmezeta: I've a question about deleting-associated-objects https://guides.rubyonrails.org/getting_started.html#deleting-associated-objects.
[10:07:25] emmezeta: when I delete an Article that has a 1:n relation with Comments "has_many :comments, dependent: :destroy", I can se from the server logs that each comment is deleted with 1 query. So, delete an article with 10 comments will fire 11 "delete" queries. (n+1 problem)
[10:07:31] emmezeta: Why Rails don't use a single delete query for every articles "DELETE comments WHERE article_id = ?" ? Is there some drawback I can't see?
[10:33:15] moei: has joined #RubyOnRails
[10:44:09] lankanmon: has joined #RubyOnRails
[10:55:07] ariedler: has joined #RubyOnRails
[11:18:26] jottr: has joined #RubyOnRails
[11:26:54] gavit: has joined #RubyOnRails
[11:28:08] gavit: is apache/passenger still the way to go?
[11:36:36] emmezeta: has joined #RubyOnRails
[11:40:31] conta1: has joined #RubyOnRails
[11:42:33] quazimodo: has joined #RubyOnRails
[12:06:41] quazimodo: has joined #RubyOnRails
[12:08:55] KeyJoo: has joined #RubyOnRails
[12:11:57] jottr: has joined #RubyOnRails
[12:13:51] snuz: has joined #RubyOnRails
[12:23:10] DTZUZO: has joined #RubyOnRails
[12:27:59] reber: has joined #RubyOnRails
[12:28:31] lomex: has joined #RubyOnRails
[12:31:10] AlHafoudh: has joined #RubyOnRails
[12:38:24] defsdoor: has joined #RubyOnRails
[12:49:11] Linuus: has joined #RubyOnRails
[12:57:15] dionysus69: has joined #RubyOnRails
[13:00:28] NoGodDamnIdea: has joined #RubyOnRails
[13:09:54] snuz: has joined #RubyOnRails
[13:44:55] desperek: has joined #RubyOnRails
[13:45:50] desperek: has joined #RubyOnRails
[13:58:36] tycoon177: gavit: passenger and nginx or Apache is good (I prefer nginx) but we use puma in prod now and just proxy requests from nginx. I'd suggest sticking with passenger. We made this switch for ease of docker in production
[14:00:44] conta1: has joined #RubyOnRails
[14:03:28] Dimik: has joined #RubyOnRails
[14:13:51] gavit: tycoon177: why do you prefer nginx?
[14:26:11] tycoon177: gavit: it seems to perform better and have better defaults imo
[14:27:23] tycoon177: It's not a make or break decision and can be changed later
[14:27:36] tycoon177: So if you're comfortable with Apache just stick with it :)
[14:32:04] Linuus: has joined #RubyOnRails
[14:38:54] Linuus: has joined #RubyOnRails
[14:46:01] S007: has joined #RubyOnRails
[14:48:31] emmezeta: has joined #RubyOnRails
[14:52:56] gavit: tycoon177: I have both running, so doesnt matter to me
[15:00:44] Linuus: has joined #RubyOnRails
[15:14:08] shenghi: has joined #RubyOnRails
[15:26:26] LiftLeft: has joined #RubyOnRails
[15:31:14] Linuus: has joined #RubyOnRails
[15:35:24] lomex: has joined #RubyOnRails
[15:41:10] roshanavand: has joined #RubyOnRails
[15:45:27] orbyt_: has joined #RubyOnRails
[15:50:10] Linuus: has joined #RubyOnRails
[15:57:36] dionysus69: has joined #RubyOnRails
[15:58:17] quazimodo: has joined #RubyOnRails
[16:01:21] roshanavand: has joined #RubyOnRails
[16:05:41] Linuus: has joined #RubyOnRails
[16:10:33] uks: has joined #RubyOnRails
[16:10:53] conta1: has joined #RubyOnRails
[16:18:34] Technodrome: has joined #RubyOnRails
[16:20:47] lomex: has joined #RubyOnRails
[16:35:18] sandstrom: has joined #RubyOnRails
[16:42:03] Linuus: has joined #RubyOnRails
[16:43:31] quazimodo: has joined #RubyOnRails
[17:00:33] dionysus70: has joined #RubyOnRails
[17:03:17] Linuus: has joined #RubyOnRails
[17:07:42] roshanavand: has joined #RubyOnRails
[17:08:35] Linuus: has joined #RubyOnRails
[17:15:10] defsdoor: has joined #RubyOnRails
[17:18:16] samort7: has joined #RubyOnRails
[17:21:11] roshanavand: has joined #RubyOnRails
[17:26:37] atrius: has joined #RubyOnRails
[17:26:52] roshanavand: has joined #RubyOnRails
[17:27:50] snickers: has joined #RubyOnRails
[17:46:36] dionysus69: has joined #RubyOnRails
[17:49:42] jenenliu: has joined #RubyOnRails
[18:12:52] Linuus: has joined #RubyOnRails
[18:17:57] Linuus: has joined #RubyOnRails
[18:27:18] lankanmon: has joined #RubyOnRails
[18:41:16] srinidhi: has joined #RubyOnRails
[18:55:22] dviola: has joined #RubyOnRails
[19:02:51] kapil___: has joined #RubyOnRails
[19:10:40] knight33: has joined #RubyOnRails
[19:11:33] Dbugger: has joined #RubyOnRails
[19:22:16] Linuus: has joined #RubyOnRails
[19:23:25] Xiti`: has joined #RubyOnRails
[19:33:00] Puffball: has joined #RubyOnRails
[19:39:49] ShekharReddy: has joined #RubyOnRails
[19:48:44] Xiti: has joined #RubyOnRails
[19:50:24] knight33: has joined #RubyOnRails
[19:53:52] Xiti: has joined #RubyOnRails
[20:04:13] lomex: has joined #RubyOnRails
[20:05:39] orbyt_: has joined #RubyOnRails
[20:15:18] jammanbo: has joined #RubyOnRails
[20:20:08] ellcs: has joined #RubyOnRails
[20:21:53] jammanbo: So I built a Grape API within a Rails app ... Ask me how that's working out ...
[20:22:35] albus: has joined #RubyOnRails
[20:23:15] albus: hi all, I'm trying to create a model to hold some preset values for a dropdown I want to display, and I'm trying to set it up in my seeds file like this:
[20:23:42] jammanbo: Latest issue is getting RackAttack to work on each of them _independently_. Does anyone know to do that without resorting to checking the subdomains of the Rack requests.
[20:23:57] albus: ['foo', 'bar', 'baz'].each { |document_type| PropertyDocumentType.first_or_create!({name: document_type}) }
[20:24:23] albus: "rails db:seed" runs without any errors but when I check the model, only the first item in the array gets added
[20:24:49] albus: I added a puts statement before the first or create line to see if it was actually iterating through the array and confirmed that it is
[20:24:57] albus: so not sure why it's not creating the rest, any ideas?
[20:25:42] albus: I also tried both first_or_create and first_or_create!
[20:25:50] albus: neither raised any errors
[20:25:58] jammanbo: albus: Try `where(name: document_type).first_or_create`
[20:26:46] albus: that was it
[20:26:52] albus: you're a genius jammanbo
[20:27:26] jammanbo: I'm pretty too, right.
[20:27:38] albus: the prettiest
[20:31:13] Dbugger: has joined #RubyOnRails
[20:43:57] RiPuk: has joined #RubyOnRails
[20:52:50] lomex: has joined #RubyOnRails
[21:03:34] ariedler: has joined #RubyOnRails
[21:57:22] Technodrome: has joined #RubyOnRails
[22:07:13] DTZUZO: has joined #RubyOnRails
[22:28:48] mikecmpbll: has joined #RubyOnRails
[22:30:01] blobsson: has joined #RubyOnRails
[22:30:51] blobsson: Hello I am making a simple app but I need to change state in database and send updates to client using actioncable a minute later how do I achieve this
[22:31:30] orbyt_: has joined #RubyOnRails
[22:32:14] rootsudo: has joined #RubyOnRails
[23:31:01] quazimodo: has joined #RubyOnRails
[23:46:47] HisShadow: has joined #RubyOnRails
[23:47:06] HisShadow: Hello, where did ActionController::UnknownController disappear to in rails 5.2?