« Back to channel list

#RubyOnRails - 30 December 2017

« Back 1 day Forward 1 day »
[00:01:15] amperry: mynameisdebian: according to this, it might be something wrong with your pg_hba.conf file, although anything further than that, I'm lost: https://stackoverflow.com/questions/18664074/getting-error-peer-authentication-failed-for-user-postgres-when-trying-to-ge
[00:01:45] amperry: after that, #postgresql might have more info.
[00:13:57] JusticeFries: has joined #RubyOnRails
[00:17:54] alfiemax: has joined #RubyOnRails
[00:25:53] mtkd: has joined #RubyOnRails
[00:28:42] mynameisdebian: amperry: thank you, that helped me sort out an error that was causing some other errors, and I finally got it
[00:31:14] amperry: mynameisdebian: groovy, glad to help.
[00:34:09] jrp93: has joined #RubyOnRails
[00:37:13] duderonomy: has joined #RubyOnRails
[00:38:56] mikecmpbll: has joined #RubyOnRails
[00:52:00] alfiemax: has joined #RubyOnRails
[01:03:16] andrewray: has joined #RubyOnRails
[01:04:40] alfiemax: has joined #RubyOnRails
[01:05:03] JusticeFries: has joined #RubyOnRails
[01:08:35] hotpancakes: has joined #RubyOnRails
[01:09:25] zwliew: has joined #RubyOnRails
[01:22:38] alfiemax: has joined #RubyOnRails
[01:28:33] mtkd: has joined #RubyOnRails
[01:31:51] joycepao: https://gist.github.com/anonymous/f2166c8bc289bec6413d6f12c4d5bc9c
[01:32:13] joycepao: what's the right way to find the asset with first_asset_id with activerecord?
[01:32:26] joycepao: in rails c, Pair.joins(:first_asset) says uninitialized constant
[01:33:14] joycepao: (i wanna find Pairs based on an attribute on Assets)
[01:48:09] quazimodo: has joined #RubyOnRails
[01:49:57] ahrs: has joined #RubyOnRails
[02:03:25] alfiemax: has joined #RubyOnRails
[02:04:03] powrtoch: has joined #RubyOnRails
[02:20:07] jrp93: has joined #RubyOnRails
[02:29:19] hotpancakes: has joined #RubyOnRails
[02:33:13] hotpancakes: has joined #RubyOnRails
[02:33:48] alfiemax: has joined #RubyOnRails
[02:55:42] gambl0re: has joined #RubyOnRails
[02:57:50] alfiemax: has joined #RubyOnRails
[03:26:01] alfiemax: has joined #RubyOnRails
[03:33:25] mtkd: has joined #RubyOnRails
[03:46:01] c0dec: has joined #RubyOnRails
[03:51:40] alfiemax: has joined #RubyOnRails
[03:55:06] Dreamer3: has joined #RubyOnRails
[03:56:18] nso95: has joined #RubyOnRails
[03:57:49] hnanon: has joined #RubyOnRails
[03:58:15] hnanon: How do I add a namespace to a form in 5.2?
[03:58:36] hnanon: The edge guides don't appear to be updated.
[03:59:02] gambl0re: has joined #RubyOnRails
[03:59:05] hnanon: ...using form_with.
[04:03:25] hnanon: Found it in the api:
[04:03:32] hnanon: <%= form_with(model: [:admin, category], local: true) do |form| %>
[04:19:50] alfiemax: has joined #RubyOnRails
[04:20:12] mtkd: has joined #RubyOnRails
[04:24:56] wethu: has joined #RubyOnRails
[04:52:28] alfiemax: has joined #RubyOnRails
[05:08:25] wethu: has joined #RubyOnRails
[05:20:55] Dimik: has joined #RubyOnRails
[05:23:38] gambl0re: has joined #RubyOnRails
[05:38:57] wethu: has joined #RubyOnRails
[06:03:21] wethu: has joined #RubyOnRails
[06:21:53] JusticeFries: has joined #RubyOnRails
[06:26:28] darkhanb: has joined #RubyOnRails
[06:41:23] garyserj: has joined #RubyOnRails
[06:42:31] garyserj: db:drop is giving me an error "Errno::EACCES: Permission denied @ unlink_internal - C:/rubytest/blah2/db/development.sqlite3" I have heard that in linux you get an error too because it doesn't want you to drop a database and there's an option you can set that allows it. What is it in linux?
[06:57:14] dviola: has joined #RubyOnRails
[07:11:34] zwliew: has joined #RubyOnRails
[07:23:16] gambl0re: has joined #RubyOnRails
[07:27:44] wethu: has joined #RubyOnRails
[07:45:27] gambl0re: has joined #RubyOnRails
[07:52:58] gambl0re: has joined #RubyOnRails
[08:03:04] gambl0re: has joined #RubyOnRails
[08:05:02] wethu: has joined #RubyOnRails
[08:13:35] t0adst00l: has joined #RubyOnRails
[08:29:04] mtkd: has joined #RubyOnRails
[08:56:29] Saukk: has joined #RubyOnRails
[09:05:11] t0adst00l: has joined #RubyOnRails
[09:10:03] conta: has joined #RubyOnRails
[09:27:35] marr: has joined #RubyOnRails
[09:29:35] morfin: has joined #RubyOnRails
[09:29:56] morfin: anybody can help with ActionMailer? i need to send message from console
[09:33:17] morfin: i do not understand why messages aren't delivered from rails project
[09:33:54] morfin: seems like ActionMailer::Base.mail(from: "info@mysite.com", to: "mymail@example.com", subject: "Test", body: "Test").deliver_now worked
[09:53:52] syndikate: How can I query eager loaded records? I am eager loading associated records for some data display in the view - now I need to query them - how can I do that so I can prevent hitting db again?
[10:01:36] wethu: has joined #RubyOnRails
[10:10:53] zwliew: has joined #RubyOnRails
[10:15:30] arBmind: has joined #RubyOnRails
[10:21:35] mikecmpbll: has joined #RubyOnRails
[10:27:46] morfin: well, i had to start queue
[10:31:50] apeiros: has joined #RubyOnRails
[10:34:18] dionysus69: has joined #RubyOnRails
[10:47:36] Ergo: has joined #RubyOnRails
[10:49:29] conta: has joined #RubyOnRails
[10:50:28] Ergo: has joined #RubyOnRails
[10:56:40] mtkd: has joined #RubyOnRails
[11:00:21] wethu: has joined #RubyOnRails
[11:01:11] fox_mulder_cp: has joined #RubyOnRails
[11:03:17] mikecmpb_: has joined #RubyOnRails
[11:12:58] apeiros: has joined #RubyOnRails
[11:18:37] wethu: has joined #RubyOnRails
[11:33:52] dionysus69: how do i default rails new project to using double quotes instead of single?
[11:34:56] wethu: has joined #RubyOnRails
[12:19:55] desperek: has joined #RubyOnRails
[12:21:44] marr: has joined #RubyOnRails
[12:28:11] desperek: how can i make relationship, where X belongs to Y and X has many Ys
[12:28:18] desperek: is it called polymorphic?
[12:28:34] Andr3as: in the model
[12:28:58] Andr3as: in y "belongs_to: x" - in x "has_many: y"
[12:35:18] AzaToth: has joined #RubyOnRails
[12:35:34] reber: has joined #RubyOnRails
[12:37:04] za1b1tsu: has joined #RubyOnRails
[12:37:49] za1b1tsu: If an object's attribute is another object it is considered a dependency injection?
[12:50:43] desperek: Andr3as, you didnt understand
[12:50:57] desperek: X belongs to Y
[13:33:03] pLaTo0n: has joined #RubyOnRails
[13:57:24] IanMalcolm: has joined #RubyOnRails
[14:03:17] mikecmpbll: has joined #RubyOnRails
[14:09:40] IanMalcolm: has joined #RubyOnRails
[14:19:50] Penguinlay: has joined #RubyOnRails
[14:20:54] JusticeFries: has joined #RubyOnRails
[14:31:04] jnollette: has joined #RubyOnRails
[14:31:38] Penguinlay: Hi, for the question I asked here yesterday, I also posted on StackOverflow. The link is: https://stackoverflow.com/questions/48034855/rails-5-how-to-share-a-model-partially-by-different-entries-of-another-model
[14:40:43] fl4sh_: has joined #RubyOnRails
[14:41:31] IanMalcolm: has joined #RubyOnRails
[14:43:13] JusticeFries: has joined #RubyOnRails
[14:57:25] za1b1tsu: In a service object I update multiple object, but in case something goes wrong I want to "rollback" the changes. I understand that I can do this in a callback of the service object, use transactions, use a lot of ifs etc. What is the recommended way to do this?
[15:00:37] za1b1tsu: or should I use restore_attribute?\
[15:11:29] gambl0re: has joined #RubyOnRails
[15:11:32] lupine: transactionds
[15:11:38] lupine: this is exactly what they are for
[15:11:46] lupine: if you cross multiple datastores, look into 2PC or 3PC
[15:12:10] sameerynho: has joined #RubyOnRails
[15:13:31] gambl0re: has joined #RubyOnRails
[15:27:08] rfoust: has joined #RubyOnRails
[15:28:18] za1b1tsu: lupine: Thank you, I don't why but the person who gave me this project didn't like the idea of transcations, didnt have a chance to ask him why and he left for holidays. He said something about having 1000s of records. I looked for alternatives but they arent many. So I guess transactions are the way to go
[15:33:09] conta: hey folks, I have question about polymprphic association
[15:34:06] conta: I understand classic ones, as in the guides: eg Image, Text, Document can be Commentable.
[15:35:25] conta: But what if I have Post and I want it to have many Text, Picture, Gallery (all ActiveRecord models)
[15:35:52] conta: I don't know how to model this
[15:49:19] DrYockel: has joined #RubyOnRails
[15:51:29] mikecmpbll: has joined #RubyOnRails
[16:06:14] KeyJoo: has joined #RubyOnRails
[16:22:40] tamouse__: has joined #RubyOnRails
[16:30:50] troys: has joined #RubyOnRails
[16:41:50] NoGodDamnIdea: has joined #RubyOnRails
[16:42:19] lupine: za1b1tsu: get out while you still can
[16:51:07] apeiros__: has joined #RubyOnRails
[16:54:32] Saukk: has joined #RubyOnRails
[17:14:28] za1b1tsu: has joined #RubyOnRails
[17:15:09] za1b1tsu: Hello, in my before_save callback when I raise an exception there is no rollbakc https://gist.github.com/bbtdev/ff2d0ce8c565a03b0fe5113e9b3d4e45
[17:16:58] za1b1tsu: From what I've read if an exception is raised in callbacks all the changes in that particular callback are rollbacked
[17:16:58] za1b1tsu: From what I've read if an exception is raised in callbacks all the changes in that particular callback are rollbacked
[17:17:10] orbyt_: has joined #RubyOnRails
[17:18:11] NoGodDamnIdea: has joined #RubyOnRails
[17:26:54] cstls: has joined #RubyOnRails
[17:27:48] apeiros: has joined #RubyOnRails
[17:30:33] platoon23: has joined #RubyOnRails
[17:37:47] DrYockel: has joined #RubyOnRails
[18:00:39] dviola: has joined #RubyOnRails
[18:18:09] blindMoe: has joined #RubyOnRails
[18:18:10] blindMoe: I'm having an issue where the new version of rubocop wants me to paranthesize this rspec line but if I switch it from a block to a method call and the param returns nil it throws a TypeError: expect { subject }.not_to change { user.emails.first.confirmed? }
[18:18:28] blindMoe: anyone have any suggestions to help me get it to pass rubocop?
[18:19:31] desperek: has joined #RubyOnRails
[18:19:53] daed: has joined #RubyOnRails
[18:21:28] blindMoe: forgot to paste the rubocop error ;) You must pass an argument rather than a block to use the provided matcher (""), or the matcher must implement `supports_block_expectations?`.
[18:24:03] JusticeFries: has joined #RubyOnRails
[18:31:51] mtkd: has joined #RubyOnRails
[18:42:00] blindMoe: Is there a way to have rubocop spit out the current ruleset? I have an old app that I am updating to the newest version of rubocop and want to see what the old default settings were
[19:06:01] dionysus69: has joined #RubyOnRails
[19:40:15] tanuki4: has joined #RubyOnRails
[19:43:12] hammer065: has joined #RubyOnRails
[20:07:44] mikecmpbll: has joined #RubyOnRails
[20:19:50] Dimik: has joined #RubyOnRails
[20:28:58] JusticeFries: has joined #RubyOnRails
[20:36:53] mtkd: has joined #RubyOnRails
[20:40:58] orbyt_: has joined #RubyOnRails
[21:01:30] jrp93: has joined #RubyOnRails
[21:23:06] ResidentBiscuit: has joined #RubyOnRails
[21:34:05] meesles: has joined #RubyOnRails
[21:40:49] weaksauce: has joined #RubyOnRails
[21:46:07] alfiemax: has joined #RubyOnRails
[21:49:41] JusticeFries: has joined #RubyOnRails
[21:54:32] desnudopenguino: i'm trying to get a rails app running on FreeBSD, but running into issues getting a js enronment working. what do you guys suggest?
[22:03:04] havenwood: desnudopenguino: install node
[22:03:55] havenwood: pkg install node
[22:13:29] Gm4n: has joined #RubyOnRails
[22:13:51] Gm4n: has left #RubyOnRails: ()
[22:15:55] desnudopenguino: havenwood: ah ok
[22:16:35] desnudopenguino: therubyracer worked on a ubuntu vps instance i was working on, but not so much for FreeBSD
[22:33:55] gambl0re: has joined #RubyOnRails
[22:41:39] mtkd: has joined #RubyOnRails
[22:53:25] orbyt_: has joined #RubyOnRails
[22:57:59] unreal: has joined #RubyOnRails
[22:59:22] JusticeFries: has joined #RubyOnRails
[23:05:27] JusticeFries: has joined #RubyOnRails
[23:08:42] darkhanb: has joined #RubyOnRails
[23:20:13] Cache_Money: has joined #RubyOnRails
[23:27:47] alfiemax: has joined #RubyOnRails
[23:31:20] gambl0re: has joined #RubyOnRails
[23:32:31] gambl0re: has joined #RubyOnRails
[23:42:02] gambl0re: has joined #RubyOnRails
[23:42:45] Cache_Money: has joined #RubyOnRails
[23:48:03] IanMalcolm: has joined #RubyOnRails
[23:48:27] amperry: has left #RubyOnRails: ("ERC (IRC client for Emacs 24.5.1)")