« Back to channel list

#RubyOnRails - 10 May 2019

« Back 1 day Forward 1 day »
[00:06:19] haengma: has joined #RubyOnRails
[00:08:19] haengma_: has joined #RubyOnRails
[00:40:18] AlHafoudh: has joined #RubyOnRails
[00:46:53] brool: has joined #RubyOnRails
[00:56:59] Technodrome: has joined #RubyOnRails
[01:03:32] carbone5: has joined #RubyOnRails
[01:05:27] cnsvc: has joined #RubyOnRails
[01:06:27] zacts: has joined #RubyOnRails
[01:25:51] altigraph: has joined #RubyOnRails
[01:49:55] duderonomy: has joined #RubyOnRails
[02:29:50] cnsvc: has joined #RubyOnRails
[02:43:44] rishi-pioneer: has joined #RubyOnRails
[02:47:34] pd09041999: has joined #RubyOnRails
[03:06:27] gambl0r3: has joined #RubyOnRails
[03:07:41] weteamsteve1: has joined #RubyOnRails
[03:11:25] braincrash: has joined #RubyOnRails
[03:17:17] zacts: has joined #RubyOnRails
[03:22:06] jobewan: has joined #RubyOnRails
[03:31:44] kapilp: has joined #RubyOnRails
[03:34:48] _Shaun: has joined #RubyOnRails
[03:37:15] Saukk: has joined #RubyOnRails
[04:16:56] tdy: has joined #RubyOnRails
[04:24:11] timdotrb: has joined #RubyOnRails
[05:06:53] haengma: has joined #RubyOnRails
[05:14:53] pd09041999: has joined #RubyOnRails
[05:18:49] AlHafoudh: has joined #RubyOnRails
[05:21:54] conta: has joined #RubyOnRails
[05:33:21] srinidhi: has joined #RubyOnRails
[05:35:22] za1b1tsu: has joined #RubyOnRails
[05:46:17] AlHafoudh: has joined #RubyOnRails
[05:59:35] timdotrb_: has joined #RubyOnRails
[06:09:42] maryo: has joined #RubyOnRails
[06:20:44] AlHafoudh: has joined #RubyOnRails
[06:27:55] Xiti: has joined #RubyOnRails
[06:30:03] jefffrails35: has joined #RubyOnRails
[06:39:03] dminuoso: has left #RubyOnRails: ("WeeChat 2.2")
[06:50:26] Puffball: has joined #RubyOnRails
[06:54:39] Puffball: has joined #RubyOnRails
[06:56:18] Ergo: has joined #RubyOnRails
[07:22:40] haengma: has joined #RubyOnRails
[07:24:27] lxsameer: has joined #RubyOnRails
[07:32:19] AlHafoudh: has joined #RubyOnRails
[07:39:07] mikecmpbll: has joined #RubyOnRails
[07:43:33] tdy: has joined #RubyOnRails
[07:54:13] AlHafoudh: has joined #RubyOnRails
[08:17:08] AlHafoudh: has joined #RubyOnRails
[08:28:28] cnsvc: has joined #RubyOnRails
[08:42:03] DTZUZO: has joined #RubyOnRails
[08:44:39] pd09041999: has joined #RubyOnRails
[09:00:39] conta: has joined #RubyOnRails
[09:06:45] srinidhi: has joined #RubyOnRails
[09:07:46] AlHafoudh: has joined #RubyOnRails
[09:08:09] ur5us: has joined #RubyOnRails
[09:09:06] Rustputin: has joined #RubyOnRails
[09:10:22] cnsvc: has joined #RubyOnRails
[09:10:56] Technodrome: has joined #RubyOnRails
[09:26:48] AlHafoudh: has joined #RubyOnRails
[09:36:46] Rustputin: has joined #RubyOnRails
[09:38:21] haengma: has joined #RubyOnRails
[09:45:06] MrCrackPot: has joined #RubyOnRails
[09:45:56] cnsvc: has joined #RubyOnRails
[09:50:11] Skilly: has joined #RubyOnRails
[09:50:49] Odalrick: has joined #RubyOnRails
[09:51:29] Skilly: I have a model that has an attribute which is a JSON, when I .new it with the params I get from a request, the JSON's values which should be integers are strings
[09:51:42] Skilly: is there a simple conventional way to convert these to integers?
[09:52:04] Skilly: e.g. attribute info is {"name":"Tom", "age":"5"}
[09:52:11] Skilly: i want info.age to be an integer
[09:52:26] Skilly: mymodel.info.age
[10:10:25] Rustputin: has joined #RubyOnRails
[10:19:11] AlHafoudh: has joined #RubyOnRails
[10:30:07] Rustputin: has joined #RubyOnRails
[10:38:46] conta: has joined #RubyOnRails
[10:50:44] cnsvc: has joined #RubyOnRails
[10:51:26] atrius: has joined #RubyOnRails
[10:51:31] jhill: has joined #RubyOnRails
[10:54:50] lankanmon: has joined #RubyOnRails
[10:58:13] _aeris_: has joined #RubyOnRails
[10:58:58] jhill: has joined #RubyOnRails
[10:59:15] mostlybadfly: has joined #RubyOnRails
[11:12:55] truenito: has joined #RubyOnRails
[11:21:38] AlHafoudh: has joined #RubyOnRails
[11:38:41] pd09041999: has joined #RubyOnRails
[11:56:57] broman: has joined #RubyOnRails
[11:58:31] broman: can someone please help me? I'm trying to keep a ruby socket open through a rails application.. did someone already managed to accomplish that? I already searched a lot and everytime is about a ruby socket persistence, without taking the rails into consideration
[12:01:13] cnsvc: has joined #RubyOnRails
[12:03:10] ebbflowgo: has joined #RubyOnRails
[12:07:43] haengma: has joined #RubyOnRails
[12:08:11] Rustputin: has joined #RubyOnRails
[12:18:54] ariedler: has joined #RubyOnRails
[12:22:47] ebbflowgo: has joined #RubyOnRails
[12:22:53] ebbflowgo: has left #RubyOnRails: ()
[12:28:00] Rustputin: has joined #RubyOnRails
[12:37:56] apparition: has joined #RubyOnRails
[12:42:26] conta: has joined #RubyOnRails
[12:51:16] AlHafoudh: has joined #RubyOnRails
[12:58:35] FrankDW: has joined #RubyOnRails
[13:06:09] cnsvc: has joined #RubyOnRails
[13:26:03] johnsonch: has joined #RubyOnRails
[13:27:50] johnsonch: has joined #RubyOnRails
[13:30:10] AlHafoudh: has joined #RubyOnRails
[13:33:32] LiamW: has joined #RubyOnRails
[13:33:59] LiamW: doing a rails 6 preview for my app
[13:34:10] LiamW: how do I get rid of all the action mailbox crud from my routes
[13:38:05] LiamW: if it helps (config/routes.rb for actionmailbox is unconfigurable) I don't want action mailbox at all
[13:41:28] Odalrick: has joined #RubyOnRails
[13:42:30] LiamW: there are also some activestorage routes I didn't realize were present last time around and want to get rid of them
[13:43:27] tris: has joined #RubyOnRails
[13:53:14] LiamW: I changed my require line in application.rb to remove the railties for action mailbox and active storage
[13:53:19] LiamW: that... kind of worked
[13:55:41] pd09041999: has joined #RubyOnRails
[13:55:47] LiamW: oh, apparently the rest were from action text
[14:08:53] agent_white: has joined #RubyOnRails
[14:10:51] maryo: has joined #RubyOnRails
[14:10:54] Frem: has joined #RubyOnRails
[14:16:56] haxx0r: has joined #RubyOnRails
[14:18:36] LiamW: has left #RubyOnRails: ("WeeChat 2.3")
[14:19:11] ariedler: has joined #RubyOnRails
[14:19:35] haxx0r: i need to submit banktransfers with my bank, but there is not api. so i thought i'll use cuprite and headless chrome. i remember, running headless chrome was pita , 5 years ago and didnt' really work. what's my best way to do this? i need login, create transfer, then pull the OTP from my sms gateway, submit the transfer, make a screenshot and that'
[14:20:48] havenwood: haxx0r: headless chrome works better these days
[14:21:10] haxx0r: should i take selenium?
[14:21:25] haxx0r: i remember development was quite easy since the browser opened and we can see what we've been doing
[14:21:50] havenwood: haxx0r: https://developer.squareup.com/blog/useful-tools-headless-chrome-puppeteer-for-browser-automation-testing/
[14:23:17] haxx0r: yeah, that's what i need i think. would do it in ruby tho
[14:23:49] haxx0r: selenium the way to go?
[14:24:12] Inside: has joined #RubyOnRails
[14:24:18] haxx0r: or better PhantomJS
[14:24:44] Inside: Just upgraded to rails 5.2 and some of my requests are hanging indefinitely
[14:25:11] haxx0r: what requests?
[14:25:40] Inside: In my application - I haven't quite narrowed down what's hanging just yet.
[14:33:03] Inside: looks like caching changed somehow in 5.2?
[14:36:19] cnsvc: has joined #RubyOnRails
[14:36:40] Inside: https://gist.github.com/Insood/088a93efb499f1aa0242bc467929f3a2
[14:36:46] Inside: Like - this code has worked for forever
[14:36:49] Inside: and now... hanging!
[14:46:53] haxx0r: havenwood seems like there isn't even a post request and i have to do it via click events
[14:50:23] Saukk: has joined #RubyOnRails
[14:52:34] Travis-42: has joined #RubyOnRails
[14:53:40] Travis-42: In rails 6, the default is to use webpacker for js, and sprockets for css/images. If you want to stick with this approach, how would you use something like bootstrap that comes with css and javascript?
[14:55:17] haxx0r: you can sill use sprockets for js
[14:57:40] Inside: Where do all the RoR dev guys hang out these days anyway?
[14:58:01] Travis-42: sure, I guess, but then aren't I fighting rails again? for example, if I use action text, it'll install trix via yarn
[14:58:12] Rustputin: has joined #RubyOnRails
[15:05:13] tdy: has joined #RubyOnRails
[15:06:13] Inside: Man whiskey tango foxtrot
[15:09:14] Inside: Something changed that makes Rails.cache.fetch() run 24,000x slower for me :D
[15:14:11] gregf_: has joined #RubyOnRails
[15:19:20] Travis-42: so, what's the expected approach in rails 6 to using third party javascript that has vendor CSS (like bootstrap), is it to use both stylesheet_tag and stylesheet_pack_tag? or migrate to webpacker entirely?
[15:29:54] gambl0r3: has joined #RubyOnRails
[15:31:25] Inside: https://github.com/rails/rails/commit/ed100166874fb4a542c5aaba933a4cca5ed72269
[15:33:13] Inside: Talk about annoying
[15:37:10] haxx0r: whats the problem with that?
[15:37:23] cnsvc: has joined #RubyOnRails
[15:37:51] Inside: it was slowing my stuff down about 24,000 times :P
[15:38:05] Inside: I understand where they're coming from
[15:38:13] Inside: and how I'm caching stuff isn't the best
[15:40:20] Inside: I just didn't see it anywhere in the update notes
[15:40:48] Inside: https://guides.rubyonrails.org/5_2_release_notes.html
[15:40:50] Inside: I mean - it's there
[15:42:17] Inside: I probably should've dug deeper when my tests were taking much longer to load than usual ;)
[15:48:46] agent_white: has joined #RubyOnRails
[15:51:52] weteamsteve: has joined #RubyOnRails
[15:52:16] jobewan: has joined #RubyOnRails
[15:57:34] Technodrome: has joined #RubyOnRails
[15:59:32] LtHummus: has joined #RubyOnRails
[16:00:03] mikecmpb_: has joined #RubyOnRails
[16:04:44] Dbugger: has joined #RubyOnRails
[16:08:35] quazimodo: has joined #RubyOnRails
[16:15:40] haengma: has joined #RubyOnRails
[16:17:53] haengma: has joined #RubyOnRails
[16:20:09] ariedler: has joined #RubyOnRails
[16:34:21] maryo_: has joined #RubyOnRails
[16:36:59] duderonomy: has joined #RubyOnRails
[16:47:07] cnsvc: has joined #RubyOnRails
[16:57:27] Rustputin: has joined #RubyOnRails
[16:58:07] FrankDW: Best practices for doing something like maintaining a persistent connection from a Rails app to an external source (ie an instantiation of a class from a gem where it would be better to not constantly create a new HTTP connection to the place I need to query data from)?
[17:00:33] FrankDW: Also.. where to put globally accessible logic to all controllers/models? I currently have it in app/lib/, but when I modify a controller in dev mode I get a namespace error when trying to use classes in there..
[17:12:57] Inside: I like to use app/poro (For plain ol' ruby objects)
[17:13:30] Inside: FrankDW: Use connection pools
[17:13:35] Inside: what kind of connection is it?
[17:16:31] gambl0r3: has joined #RubyOnRails
[17:22:18] FrankDW: Inside, I think they just use net/http in the Gem.. it's a really small internal app, so I'd be fine with just using a global variable and one instantiation
[17:29:18] Inside: I mean, you can put something into your Application class
[17:29:26] Inside: I believe anything there will persist
[17:31:31] ellcs: has joined #RubyOnRails
[17:34:34] FrankDW: hmm I'll give that a shot
[17:35:02] FrankDW: and I have a class that wraps around this Gem.. getting Namespace errors when modifying anything, have to restart puma/rails
[17:35:04] FrankDW: kind of annoying
[17:35:07] FrankDW: any way around that? :D
[17:41:57] psyton: has joined #RubyOnRails
[17:45:04] psyton: has joined #RubyOnRails
[17:46:25] s00pcan: has joined #RubyOnRails
[17:50:13] schne1der: has joined #RubyOnRails
[17:57:42] nacsurte: has joined #RubyOnRails
[17:58:13] s00pcan: has joined #RubyOnRails
[17:58:47] nacsurte: I'm trying to create a custom type for the attributes API, and it seems like it works except when i try to save the model, it doesn't save. It just shows the "BEGIN COMMIT" stuff
[17:58:58] nacsurte: No error message. Is there something I need to do to save?
[18:04:20] Saukk: has joined #RubyOnRails
[18:21:05] ariedler: has joined #RubyOnRails
[18:27:33] mikecmpbll: has joined #RubyOnRails
[18:33:37] hightower2: has joined #RubyOnRails
[18:36:36] hightower2: has joined #RubyOnRails
[18:58:05] gambl0re: has joined #RubyOnRails
[19:11:18] sameerynho: has joined #RubyOnRails
[19:42:33] tdy: has joined #RubyOnRails
[20:15:32] orbyt_: has joined #RubyOnRails
[20:21:52] ariedler: has joined #RubyOnRails
[20:22:56] tdy: has joined #RubyOnRails
[20:23:35] cnsvc: has joined #RubyOnRails
[20:35:30] timdotrb: has joined #RubyOnRails
[20:52:19] hightower2: has joined #RubyOnRails
[21:02:20] za1b1tsu: has joined #RubyOnRails
[21:03:47] cnsvc: has joined #RubyOnRails
[21:09:13] AlHafoudh: has joined #RubyOnRails
[21:14:16] kapilp: has joined #RubyOnRails
[21:23:40] quazimodo: has joined #RubyOnRails
[21:49:22] cnsvc: has joined #RubyOnRails
[22:00:29] cnsvc: has joined #RubyOnRails
[23:01:57] xco: has joined #RubyOnRails
[23:02:27] orbyt_: has joined #RubyOnRails
[23:09:05] AlHafoudh: has joined #RubyOnRails
[23:23:35] uksio: has joined #RubyOnRails
[23:34:02] xco: has joined #RubyOnRails
[23:34:14] gambl0re: has joined #RubyOnRails
[23:50:33] xco: has joined #RubyOnRails
[23:52:15] al-damiri: has joined #RubyOnRails
[23:56:30] cnsvc: has joined #RubyOnRails