« Back to channel list

#RubyOnRails - 10 May 2018

« Back 1 day Forward 1 day »
[00:00:13] alfiemax: has joined #RubyOnRails
[00:01:46] Psy-Q: has joined #RubyOnRails
[00:04:48] Technodrome: has joined #RubyOnRails
[00:09:19] pharma_joe: has joined #RubyOnRails
[00:26:29] cagomez: has joined #RubyOnRails
[00:28:58] alfiemax: has joined #RubyOnRails
[00:33:39] cstls: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[00:37:55] crankharder: has joined #RubyOnRails
[00:41:03] orbyt_: has joined #RubyOnRails
[00:49:34] p8m: has joined #RubyOnRails
[00:58:49] crankharder: has joined #RubyOnRails
[01:01:10] alfiemax: has joined #RubyOnRails
[01:03:52] kapil___: has joined #RubyOnRails
[01:11:38] duderonomy: has joined #RubyOnRails
[01:19:56] EXCHGR: has joined #RubyOnRails
[01:23:15] namidark: has joined #RubyOnRails
[01:28:07] dogweather: has joined #RubyOnRails
[01:28:21] ephemer0l: has joined #RubyOnRails
[01:29:10] Omnilord: has joined #RubyOnRails
[01:35:42] namidark__: has joined #RubyOnRails
[01:45:19] andrewray: has joined #RubyOnRails
[01:51:55] safetypin: has joined #RubyOnRails
[01:53:26] namidark: has joined #RubyOnRails
[01:59:13] namidark: has joined #RubyOnRails
[02:05:55] namidark: has joined #RubyOnRails
[02:07:59] matcouto: has joined #RubyOnRails
[02:09:25] veex: has joined #RubyOnRails
[02:09:37] sevenseacat: has joined #RubyOnRails
[02:22:58] dogweather: has joined #RubyOnRails
[02:23:04] namidark: has joined #RubyOnRails
[02:33:05] namidark: has joined #RubyOnRails
[02:36:01] dogweather: has joined #RubyOnRails
[02:39:51] namidark: has joined #RubyOnRails
[02:44:53] alfiemax: has joined #RubyOnRails
[03:00:53] namidark: has joined #RubyOnRails
[03:01:59] dviola: has joined #RubyOnRails
[03:03:15] alfiemax: has joined #RubyOnRails
[03:05:13] namidark: has joined #RubyOnRails
[03:06:23] eckhardt: has joined #RubyOnRails
[03:16:43] dogweather: has joined #RubyOnRails
[03:17:57] orbyt_: has joined #RubyOnRails
[03:18:46] cagomez: has joined #RubyOnRails
[03:40:58] alfiemax: has joined #RubyOnRails
[04:07:43] za1b1tsu_: has joined #RubyOnRails
[04:13:45] dogweather: has joined #RubyOnRails
[04:18:00] vedu_: has joined #RubyOnRails
[04:18:14] vedu_: has joined #RubyOnRails
[04:18:49] ur5us: has joined #RubyOnRails
[04:25:28] dogweather: has joined #RubyOnRails
[04:38:26] dogweather: has joined #RubyOnRails
[04:45:58] alfiemax: has joined #RubyOnRails
[04:59:42] Saukk: has joined #RubyOnRails
[05:16:52] Liothen: has joined #RubyOnRails
[05:24:22] dogweather: has joined #RubyOnRails
[05:35:14] dogweather: has joined #RubyOnRails
[05:35:34] alfiemax: has joined #RubyOnRails
[05:38:38] eckhardt: has joined #RubyOnRails
[05:43:54] quazimodo: has joined #RubyOnRails
[05:54:37] dogweather: has joined #RubyOnRails
[05:59:25] Technodrome: has joined #RubyOnRails
[06:03:29] Psy-Q: has joined #RubyOnRails
[06:04:09] dogweather: has joined #RubyOnRails
[06:12:11] alfiemax: has joined #RubyOnRails
[06:13:47] sevenseacat: has joined #RubyOnRails
[06:19:01] conta: has joined #RubyOnRails
[06:19:07] vedu_: has joined #RubyOnRails
[06:21:15] dogweather: has joined #RubyOnRails
[06:25:07] dogweather: has joined #RubyOnRails
[06:26:22] tuskkk___: has joined #RubyOnRails
[06:29:16] srinidhi: has joined #RubyOnRails
[06:47:30] quazimodo: has joined #RubyOnRails
[06:54:01] vedu_: has joined #RubyOnRails
[06:56:23] vedu_: has joined #RubyOnRails
[07:00:11] epochwolf|2: has joined #RubyOnRails
[07:01:35] dogweather: has joined #RubyOnRails
[07:12:11] elcms: has joined #RubyOnRails
[07:15:59] reber: has joined #RubyOnRails
[07:23:19] dogweather: has joined #RubyOnRails
[07:24:31] srinidhi: has joined #RubyOnRails
[07:27:52] syndikate: has joined #RubyOnRails
[07:28:51] syndikate: has joined #RubyOnRails
[07:53:46] mikecmpbll: has joined #RubyOnRails
[07:55:42] dionysus69: has joined #RubyOnRails
[07:59:00] dogweather: has joined #RubyOnRails
[07:59:56] marr: has joined #RubyOnRails
[08:05:09] dogweather: has joined #RubyOnRails
[08:05:10] kapil___: has joined #RubyOnRails
[08:06:13] ur5us: has joined #RubyOnRails
[08:11:59] cschneid_: has joined #RubyOnRails
[08:28:56] Voxxit: has joined #RubyOnRails
[08:40:20] srinidhi: has joined #RubyOnRails
[08:41:46] Psy-Q: has joined #RubyOnRails
[08:53:13] ur5us: has joined #RubyOnRails
[09:06:14] Voxxit: has joined #RubyOnRails
[09:07:17] krainboltgreene: ...Is there any way to change the fact that rails expects the app directory to be called `app/`?
[09:17:37] KeyJoo: has joined #RubyOnRails
[09:44:10] dionysus69: has joined #RubyOnRails
[09:45:02] NL3limin4t0r: has joined #RubyOnRails
[09:46:19] nickjj: has joined #RubyOnRails
[09:58:01] srinidhi: has joined #RubyOnRails
[09:58:42] Radar: krainboltgreene: Yup! Change Rails.application.paths.root
[09:59:20] Radar: See Rails::Paths for more info
[10:00:56] za1b1tsu_: has joined #RubyOnRails
[10:01:33] sevenseacat: nice. i was just going to suggest adding another folder to the load path
[10:02:21] Radar: This is one of those things that I know from my start on Deep Dive Rails.
[10:02:45] Radar: One of those "I know too much about how the sausage is made" moments
[10:03:03] sevenseacat: no wonder you dont want to eat the sausage anymore
[10:10:05] wilornel: has joined #RubyOnRails
[10:15:27] roamingdog: has joined #RubyOnRails
[10:19:51] conta: has joined #RubyOnRails
[10:20:09] DoubleMalt: has joined #RubyOnRails
[10:27:53] apparition: has joined #RubyOnRails
[10:37:23] Tempesta: has joined #RubyOnRails
[10:45:16] kurko_: has joined #RubyOnRails
[10:45:32] srinidhi: has joined #RubyOnRails
[10:49:13] marr: has joined #RubyOnRails
[10:49:15] mostlybadfly: has joined #RubyOnRails
[10:50:28] hfp_work: has joined #RubyOnRails
[10:54:57] dogweather: has joined #RubyOnRails
[11:02:21] Fernando-Basso: has joined #RubyOnRails
[11:03:27] piixal: has joined #RubyOnRails
[11:05:22] dogweather: has joined #RubyOnRails
[11:09:37] dionysus69: has joined #RubyOnRails
[11:10:02] rikkipitt: has joined #RubyOnRails
[11:10:37] Cavallari: has joined #RubyOnRails
[11:13:57] rikkipitt: hey folks, recently I've been getting the "We're sorry, but something went wrong." page on my local machine rather than the normal errors page... has anyone got any suggestions as to why this might be the case?
[11:15:38] dminuoso: rikkipitt: You are running in production mode?
[11:15:46] dminuoso: rikkipitt: Show us your config
[11:16:14] rikkipitt: it's happening on several projects (that were fine before), development in db
[11:16:30] rikkipitt: using Suspenders config
[11:16:45] dminuoso: rikkipitt: It's based on the `consider_all_requests_local` config
[11:16:52] dionysus69: has joined #RubyOnRails
[11:17:01] dminuoso: You either are not actually running in development, or through some code you are changing that setting.
[11:17:05] rikkipitt: thanks, shall give it a quick check
[11:17:31] rikkipitt: set to true in development.rb...
[11:17:45] rikkipitt: using pow/.test
[11:18:01] dminuoso: rikkipitt: It's not about whats in that config
[11:18:05] dminuoso: It's about what your code does.
[11:18:12] rikkipitt: yeah, or env
[11:18:14] dminuoso: rikkipitt: How are you starting the server?
[11:19:52] dminuoso: rikkipitt: Also be sure to grep for consider_all_requests_local in case you somehow set this in some place you're not thinking of
[11:20:08] dminuoso: rikkipitt: You could also just do a git bisect to find the commit
[11:20:09] rikkipitt: will do, thanks for the tips
[11:23:28] dionysus69: has joined #RubyOnRails
[11:25:10] vedu_: has joined #RubyOnRails
[11:38:12] nzst: has joined #RubyOnRails
[11:41:33] DoubleMalt: has joined #RubyOnRails
[12:07:24] duderonomy: has joined #RubyOnRails
[12:22:42] dionysus69: how do I recreate burst request attack? using postman?
[12:24:06] blackcross: has joined #RubyOnRails
[12:26:44] nzst: i found this https://github.com/samvid25/Low-Rate-TCP-DoS-Attack
[12:30:01] DTZUZO_: has joined #RubyOnRails
[12:33:51] samosaphile: has joined #RubyOnRails
[12:42:45] ellcs: has joined #RubyOnRails
[12:48:27] lord4163: has joined #RubyOnRails
[13:00:37] Ergo: has joined #RubyOnRails
[13:16:03] dogweather: has joined #RubyOnRails
[13:22:13] sevenseacat: has joined #RubyOnRails
[13:22:25] RougeR: has joined #RubyOnRails
[13:25:35] dionysus69: dminuoso: just recreated race condition just two consoles and running a loop of transactions :)
[13:26:45] RougeR: having issues with saving from a form
[13:26:46] RougeR: https://gist.github.com/CodePint/bbea0819ea28e8322a30368c22991a05
[13:26:56] RougeR: getting not_null constraints on timestamps
[13:27:00] RougeR: any ideas?
[13:32:27] dminuoso: RougeR: Read closer.
[13:32:32] RougeR: dionysus69: yeah
[13:32:34] RougeR: ive got it
[13:32:35] dminuoso: RougeR: Read the error message carefully.
[13:32:36] RougeR: i was being dumb
[13:32:54] dminuoso: "NOT NULL constraint failed: gyms.gym_name:"
[13:33:34] RougeR: yeah and timestamps i was looking in the wrong place
[13:39:06] duderonomy: has joined #RubyOnRails
[13:44:29] jottr: has joined #RubyOnRails
[13:50:06] samosaphile: dminuoso: what's your favorite language?
[13:52:21] dminuoso: samosaphile: The one you can express your problem domain/solutions best in.
[13:53:40] samosaphile: alright, so JS it is :>
[13:54:20] samosaphile: ACTION runs and hides
[13:55:38] ariejan: has joined #RubyOnRails
[13:57:24] dminuoso: samosaphile: I personally started to solve most my problems in Haskell because I can write code faster with far less bugs, and gain access to what is probably world wide the best single-machine concurrency solution in existence.
[13:57:32] dminuoso: sevenseacat: But I wouldn't use Haskell to write a kernel with.
[13:58:06] sevenseacat: dminuoso: after a crazy three-day Haskell workshop last week, I have infinite respect for that
[13:58:35] dionysus69: I lock object Model.lock.find(8) and try to change it in a second console
[13:58:39] dionysus69: and it changes
[13:59:25] dionysus69: so, obviously it is not locking, although that's how it is done here http://api.rubyonrails.org/classes/ActiveRecord/Locking/Pessimistic.html
[14:01:02] sevenseacat: dionysus69: what dbms are you using?
[14:01:27] samosaphile: I hear allot about haskell but what has actually been built with it? I don't know anything that I actually use ... hard to relate when I don't even know what I'm looking at or what's been built with it or what is possible with it
[14:01:36] dionysus69: Model.find(8).lock! I tried this syntax too
[14:01:51] sevenseacat: can you gist what youre seeing?
[14:02:06] duderonomy: has joined #RubyOnRails
[14:02:15] dminuoso: samosaphile:. Facebook uses Haskell in quite a few places
[14:05:00] dionysus69: sevenseacat: did you write that to me?
[14:05:22] dionysus69: ok one sek xD
[14:06:49] samosaphile: oh, I thought most of FB's stack was comprised of PHP and various forms of JS
[14:07:54] dminuoso: samosaphile: Sigma is the huge facebook rule engine that detects unwanted content. It's entirely written in Haskell
[14:07:55] dionysus69: sevenseacat: when I did again to show it to you, it worked :D
[14:08:12] dminuoso: samosaphile: But maybe things you have heard of. Heard about Elm or PureScript maybe?
[14:08:20] dionysus69: maybe I expected a rollback or something, it seemed like it saved successfully
[14:08:26] dionysus69: but the value didnt change
[14:09:14] dang`r`us: oh, interesting
[14:10:21] dminuoso: samosaphile: So lots of quality languages are implemented in Haskell. Examples are GHC (reference Haskell implementation), PureScript, Elm, Agda, Idris..
[14:10:51] samosaphile: neverheard of Elm or Purescript either
[14:11:12] jottr: has joined #RubyOnRails
[14:13:03] orbyt_: has joined #RubyOnRails
[14:15:14] samosaphile: all i know is that I hate java
[14:15:39] samosaphile: there has never been a java program I've ever liked
[14:15:52] samosaphile: it's not possible
[14:16:22] samosaphile: There is something wrong with that language
[14:20:01] dionysus69: my bad, still doesn't work I will try it later on
[14:33:48] samosaphile: has joined #RubyOnRails
[14:34:08] Ericx2x: has joined #RubyOnRails
[14:35:15] mikecmpb_: has joined #RubyOnRails
[14:39:32] dogweather: has joined #RubyOnRails
[15:01:23] dogweather: has joined #RubyOnRails
[15:02:17] ellcs: has joined #RubyOnRails
[15:06:08] cagomez: has joined #RubyOnRails
[15:12:13] mikecmpbll: has joined #RubyOnRails
[15:18:02] Liothen: has joined #RubyOnRails
[15:21:06] tdy: has joined #RubyOnRails
[15:22:21] dogweather: has joined #RubyOnRails
[15:23:32] Fernando-Basso: has joined #RubyOnRails
[15:32:33] hgost: has joined #RubyOnRails
[15:42:12] roamingdog: has joined #RubyOnRails
[15:48:04] blackmesa: has joined #RubyOnRails
[15:51:34] MrCrackPotBuilde: has joined #RubyOnRails
[15:52:20] Technodrome: has joined #RubyOnRails
[16:00:55] GodFather: has joined #RubyOnRails
[16:04:30] eckhardt: has joined #RubyOnRails
[16:24:41] jcarl43: has joined #RubyOnRails
[16:26:16] alfiemax: has joined #RubyOnRails
[16:32:37] NL3limin4t0r: has joined #RubyOnRails
[16:57:01] piixal: has joined #RubyOnRails
[16:57:43] orbyt_: has joined #RubyOnRails
[17:00:45] eckhardt: has joined #RubyOnRails
[17:01:51] vedu_: has joined #RubyOnRails
[17:02:09] vedu_: has joined #RubyOnRails
[17:22:31] dogweather: has joined #RubyOnRails
[17:22:39] dionysus69: has joined #RubyOnRails
[17:32:34] mikecmpbll: has joined #RubyOnRails
[17:36:02] blackmesa: has joined #RubyOnRails
[17:38:19] Cavallari: has joined #RubyOnRails
[17:44:03] dogweather: has joined #RubyOnRails
[18:07:07] jane_booty_doe: has joined #RubyOnRails
[18:08:10] dminuoso: has left #RubyOnRails: ("WeeChat 2.0.1")
[18:10:41] pause_: has joined #RubyOnRails
[18:10:48] nzst: has joined #RubyOnRails
[18:10:52] sameerynho: has joined #RubyOnRails
[18:11:49] pause_: Anyone knows how to pick up DB defaults when creating a record ?
[18:16:42] NL_3limin4t0r: has joined #RubyOnRails
[18:20:10] Saukk: has joined #RubyOnRails
[18:20:26] sunya7a: has joined #RubyOnRails
[18:23:32] srinidhi: has joined #RubyOnRails
[18:25:03] pause_: has joined #RubyOnRails
[18:26:02] pause_: Anyone knows how to change the RETURNING clause when INSERTing (postgres)
[18:26:19] pause_: I'd like to see the serial/default values without reloading a record
[18:32:49] nickenchuggets: has joined #RubyOnRails
[18:53:52] mcr1: pause_, that would be cool if you could figure that out. I want to do the opposite, which is remove the RETURNing clause, because it fails when insering into FDW tables with PostgresQL.
[19:08:54] kapil___: has joined #RubyOnRails
[19:16:06] eckhardt: has joined #RubyOnRails
[19:18:02] conceivably: has joined #RubyOnRails
[19:18:38] conceivably: Hi. Is there a way to use ActiveStorage with pre-existing files sitting in S3?
[19:19:16] conceivably: It seems like I would somehow need to create an attachment from the s3 link or something like that.
[19:21:44] nzst: mcr1: maybe something can be done in this file, i was poking around ActiveRecord a bit https://github.com/rails/rails/blob/master/activerecord/lib/active_record/log_subscriber.rb
[19:26:05] mostlybadfly: has joined #RubyOnRails
[19:38:45] jottr: has joined #RubyOnRails
[19:51:21] alfiemax: has joined #RubyOnRails
[19:59:13] nofxx: has joined #RubyOnRails
[20:00:24] nofxx: Hello, hard time searching for this: Got on routes: scope '/:user' ... resources accounts ... why on hell link_to keeps giving me /accounts?user=foo while it should be /foo/accounts ?
[20:00:50] nofxx: eg link_to accounts_path(user: foo)
[20:02:14] nzst: did you reload your app?
[20:13:29] chouhoulis: has joined #RubyOnRails
[20:14:02] nofxx: nzst, hmmm.... just did... same
[20:14:13] nofxx: 5.2.0 btw
[20:18:38] nzst: if you run rake routes do you see a route like the one you expect?
[20:21:18] conceivably: has left #RubyOnRails: ("ERC (IRC client for Emacs 25.3.1)")
[20:30:55] dviola: has joined #RubyOnRails
[20:33:40] uks: has joined #RubyOnRails
[20:53:07] chouhoulis: has joined #RubyOnRails
[20:55:28] veex: has joined #RubyOnRails
[20:56:52] orbyt_: has joined #RubyOnRails
[20:57:16] mlt-: has joined #RubyOnRails
[20:58:32] chouhoulis: has joined #RubyOnRails
[21:00:50] mondongo: has joined #RubyOnRails
[21:04:10] dmarr: has joined #RubyOnRails
[21:04:12] chouhoulis: has joined #RubyOnRails
[21:09:10] _aeris_: has joined #RubyOnRails
[21:09:41] chouhoulis: has joined #RubyOnRails
[21:14:25] chouhoulis: has joined #RubyOnRails
[21:17:42] dogweather: has joined #RubyOnRails
[21:19:31] chouhoulis: has joined #RubyOnRails
[21:22:00] cagomez: has joined #RubyOnRails
[21:22:12] kapil___: has joined #RubyOnRails
[21:25:16] chouhoulis: has joined #RubyOnRails
[21:30:05] gambl0re: has joined #RubyOnRails
[21:31:09] ebsen: has joined #RubyOnRails
[21:31:43] blackmesa: has joined #RubyOnRails
[21:36:22] chouhoulis: has joined #RubyOnRails
[21:38:36] dogweather: has joined #RubyOnRails
[21:41:41] chouhoulis: has joined #RubyOnRails
[21:47:28] chouhoulis: has joined #RubyOnRails
[21:52:48] chouhoulis: has joined #RubyOnRails
[21:58:21] chouhoulis: has joined #RubyOnRails
[21:58:23] ellcs: has joined #RubyOnRails
[21:59:41] dipnlik: has joined #RubyOnRails
[22:08:31] Radar: GOOD MORNING
[22:11:40] GodFather: has joined #RubyOnRails
[22:13:12] ur5us: has joined #RubyOnRails
[22:26:58] cagomez: has joined #RubyOnRails
[22:28:28] apeiros: moin Radar
[22:28:46] Radar: apeiros: the one of two hours a day where our days overlap ;)
[22:29:44] alfiemax: has joined #RubyOnRails
[22:29:57] apeiros: actually it usually doesn't anymore. I try to go to sleep at ~2200 CET (+0200 atm)
[22:30:17] apeiros: but no work tomorrow, so… long evening :D
[22:35:59] AnotherOne: has joined #RubyOnRails
[22:36:20] dogweather: has joined #RubyOnRails
[22:41:44] apeiros__: has joined #RubyOnRails
[22:43:18] alfiemax_: has joined #RubyOnRails
[22:43:21] blackmesa1: has joined #RubyOnRails
[22:50:04] regedit: has joined #RubyOnRails
[22:51:26] jokke: has joined #RubyOnRails
[22:51:41] regedit: i'd like to conditionally pass one set or another set of optional parameters into a method. Ex: Thing.foo(lol: 1, rofl: 2) OR Thing.foo(haha: 10, wtf: 20)
[22:52:42] regedit: is it possible to do this without calling the method in an "if" and again in the "else" ?
[22:53:05] havenwood: regedit: what condition determines which set of parameters you'll use?
[22:53:31] regedit: let's say it boils down to a boolean expression
[22:53:52] havenwood: regedit: You could pass all four, and have the unused ones be `nil`, then ignore `nil`.
[22:54:18] havenwood: regedit: You could assign the pair you want, then pass them as: **params
[22:54:30] havenwood: regedit: An if statement with the two options seems straightforward.
[22:55:14] regedit: havenwood: can you explain or demonstrate what you mean in your 2nd suggestion about assigning pairs and passing as **param
[22:57:15] apeiros__: regedit: `args = your_condition ? {lol: 1, rofl: 2} : {haha: 10, wtf: 20}; Thing.foo(args)`
[22:57:32] apeiros__: you can fold it into a single statement. honestly I think I'd even still prefer an explicit if/else
[22:58:22] apeiros: or a different design entirely which doesn't rely on a different set of arguments to the same method (that's got a weird smell to it anyway - doesn't mean it's wrong)
[22:58:38] havenwood: regedit: https://gist.github.com/havenwood/05872ee702f58883f93374af4b1a1903
[22:59:13] havenwood: oh, i guess double splat isn't even necessary
[22:59:15] apeiros: ah, yeah, **args in mine too. even if it'd work without.
[22:59:25] apeiros: it isn't, but it's IMO clarifying intent.
[23:00:37] regedit: aha! bingo, i was hoping there was a way of passing a sort of {temporary: "object"} which will be treated as if it were (comma, separated, parameters)
[23:00:38] apeiros: I also wonder whether ruby optimizes differently… 🤔
[23:00:43] regedit: ACTION is rather new to ruby
[23:01:10] apeiros: *args for positional arguments
[23:01:15] apeiros: **kwargs for keyword arguments
[23:01:20] nickenchuggets: has joined #RubyOnRails
[23:03:21] nickenchuggets: has joined #RubyOnRails
[23:03:43] mostlybadfly: has joined #RubyOnRails
[23:13:22] cagomez: has joined #RubyOnRails
[23:19:27] regedit: k thanks guys 👍
[23:40:11] duderonomy: has joined #RubyOnRails
[23:47:41] dogweather: has joined #RubyOnRails
[23:51:09] quazimodo: has joined #RubyOnRails