« Back to channel list

#RubyOnRails - 13 March 2018

« Back 1 day Forward 1 day »
[00:08:23] mroutis: has joined #RubyOnRails
[00:14:49] hahuang61: has joined #RubyOnRails
[00:20:34] riotjones: has joined #RubyOnRails
[00:25:20] cagomez: has joined #RubyOnRails
[00:28:02] orbyt_: has joined #RubyOnRails
[00:29:54] mikecmpbll: has joined #RubyOnRails
[00:37:25] workmad3: has joined #RubyOnRails
[00:40:01] kn-928_: has joined #RubyOnRails
[00:41:24] ramfjord: has joined #RubyOnRails
[00:50:12] adavia: has joined #RubyOnRails
[00:51:24] adavia: Isnt this correct to set a default value? Image.create!(params.permit(:file, :imageable_type => "Book"))
[01:01:18] Psy-Q: has joined #RubyOnRails
[01:09:44] hahuang61: has joined #RubyOnRails
[01:10:12] ramfjord: has joined #RubyOnRails
[01:18:35] ramfjord: has joined #RubyOnRails
[01:29:55] orbyt_: has joined #RubyOnRails
[01:32:15] cagomez: has joined #RubyOnRails
[01:35:17] javierbuilder: has joined #RubyOnRails
[01:36:29] javierbuilder: hi, i need help for one app that i building.. https://www.pastiebin.com/5aa6a8bd95502
[01:44:07] xuyuheng: has joined #RubyOnRails
[01:50:10] wethu: has joined #RubyOnRails
[02:06:16] dviola: has joined #RubyOnRails
[02:10:50] kn-928_: has joined #RubyOnRails
[02:14:46] hahuang61: has joined #RubyOnRails
[02:17:53] darkhanb: has joined #RubyOnRails
[02:23:59] cagomez: has joined #RubyOnRails
[02:28:07] sevenseacat: has joined #RubyOnRails
[02:32:02] cawel: has joined #RubyOnRails
[02:35:41] mheld: has joined #RubyOnRails
[02:37:47] workmad3: has joined #RubyOnRails
[03:06:34] kies: has joined #RubyOnRails
[03:07:01] babykosh: has joined #RubyOnRails
[03:08:36] hahuang61: has joined #RubyOnRails
[03:23:36] ramfjord: has joined #RubyOnRails
[04:00:34] hahuang61: has joined #RubyOnRails
[04:18:33] elcontrastador: has joined #RubyOnRails
[04:22:52] Saukk: has joined #RubyOnRails
[04:23:44] jcarl43: has joined #RubyOnRails
[04:25:15] trautwein: has joined #RubyOnRails
[04:29:49] kn-928_: has joined #RubyOnRails
[04:32:58] babykosh: has joined #RubyOnRails
[04:38:17] workmad3: has joined #RubyOnRails
[04:42:48] xuyuheng: has joined #RubyOnRails
[05:08:17] jkwood: has joined #RubyOnRails
[05:14:07] blackcross: has joined #RubyOnRails
[05:23:17] ramfjord: has joined #RubyOnRails
[05:23:47] drale2k_: has joined #RubyOnRails
[05:25:57] sidx64: has joined #RubyOnRails
[05:35:26] xuyuheng: has joined #RubyOnRails
[05:56:53] xuyuheng: has joined #RubyOnRails
[06:01:13] andrewray: has joined #RubyOnRails
[06:02:08] andrewray: has joined #RubyOnRails
[06:02:50] andrewray: has joined #RubyOnRails
[06:03:07] hahuang65: has joined #RubyOnRails
[06:03:41] andrewray: has joined #RubyOnRails
[06:06:16] xuyuheng: has joined #RubyOnRails
[06:14:57] KeyJoo: has joined #RubyOnRails
[06:15:51] KeyJoo: has joined #RubyOnRails
[06:33:19] srinidhi: has joined #RubyOnRails
[06:38:36] workmad3: has joined #RubyOnRails
[06:52:25] tetraktys: has joined #RubyOnRails
[07:13:12] sidx64_: has joined #RubyOnRails
[07:16:55] thortron: has joined #RubyOnRails
[07:22:56] ramfjord: has joined #RubyOnRails
[07:23:21] sidx64: has joined #RubyOnRails
[07:23:23] srinidhi: has joined #RubyOnRails
[07:24:01] conta: has joined #RubyOnRails
[07:24:53] alfiemax: has joined #RubyOnRails
[07:24:59] conta: has joined #RubyOnRails
[07:35:02] cjoshmartin: has joined #RubyOnRails
[07:43:55] mtkd: has joined #RubyOnRails
[07:51:45] tetraktys: has joined #RubyOnRails
[07:52:34] _aeris_: has joined #RubyOnRails
[07:54:27] sidx64: has joined #RubyOnRails
[07:54:58] tetraktys: has joined #RubyOnRails
[07:57:17] SebastianThorn: has joined #RubyOnRails
[08:03:39] riotjones: has joined #RubyOnRails
[08:04:38] alfiemax: has joined #RubyOnRails
[08:24:59] schneider: has joined #RubyOnRails
[08:39:55] srinidhi: has joined #RubyOnRails
[08:45:28] ianfleeton: has joined #RubyOnRails
[08:47:10] ianfleeton: has joined #RubyOnRails
[08:47:40] hahuang65: has joined #RubyOnRails
[08:48:44] dionysus69: has joined #RubyOnRails
[09:01:26] mikecmpbll: has joined #RubyOnRails
[09:02:01] jottr: has joined #RubyOnRails
[09:06:34] Sylario: has joined #RubyOnRails
[09:10:45] elcms: has joined #RubyOnRails
[09:22:09] tetraktys: has joined #RubyOnRails
[09:22:34] ramfjord: has joined #RubyOnRails
[09:24:59] mahloun: has joined #RubyOnRails
[09:26:29] sidx64: has joined #RubyOnRails
[09:32:41] universa1: has joined #RubyOnRails
[09:35:12] marr: has joined #RubyOnRails
[09:35:43] za1b1tsu: has joined #RubyOnRails
[09:38:19] schneider: has joined #RubyOnRails
[09:39:02] cstls: has joined #RubyOnRails
[09:49:06] mtkd: has joined #RubyOnRails
[09:50:01] riotjones: has joined #RubyOnRails
[09:54:21] sidx64: has joined #RubyOnRails
[09:58:00] universa1: has joined #RubyOnRails
[10:11:17] sidx64: has joined #RubyOnRails
[10:17:30] DrYockel: has joined #RubyOnRails
[10:18:40] sidx64: has joined #RubyOnRails
[10:21:03] cstls: has joined #RubyOnRails
[10:23:05] riotjones: has joined #RubyOnRails
[10:23:45] jonno112: has joined #RubyOnRails
[10:24:46] sidx64: has joined #RubyOnRails
[10:36:06] _sfiguser: has joined #RubyOnRails
[10:36:09] _sfiguser: hello all, can somebody suggest me a good starting point for beginners who want to start with RoR ?
[10:39:28] workmad3: has joined #RubyOnRails
[10:44:22] tetraktys: has joined #RubyOnRails
[10:45:21] sidx64: has joined #RubyOnRails
[10:46:36] srinidhi: has joined #RubyOnRails
[10:47:48] riotjones: has joined #RubyOnRails
[10:47:55] dminuoso: _sfiguser: Check the topic
[10:47:56] helpa: What book should you get? - http://is.gd/hYWq
[10:48:08] dminuoso: Probably kind of dated.
[10:48:10] dminuoso: ¯\_(ツ)_/¯
[10:56:47] sevenseacat: yeah a bit out of date. we don't have a really good intro to rails atm, but I'm working on that
[10:57:14] xuyuheng: has joined #RubyOnRails
[10:58:53] sevenseacat: if you're new to programming in general, I'd recommend Chris Pine's Learn to Program. if you're not new to programming but don't know Ruby, David A Black's The Well Grounded Rubyist
[11:03:39] xuyuheng: has joined #RubyOnRails
[11:04:08] wethu: has joined #RubyOnRails
[11:08:11] sidx64: has joined #RubyOnRails
[11:09:14] xuyuheng: has joined #RubyOnRails
[11:20:56] jonno112: has joined #RubyOnRails
[11:22:22] ramfjord: has joined #RubyOnRails
[11:24:20] hammer065: has joined #RubyOnRails
[11:35:26] workmad3: has joined #RubyOnRails
[11:43:51] srinidhi: has joined #RubyOnRails
[11:49:08] sidx64: has joined #RubyOnRails
[11:53:48] sidx64: has joined #RubyOnRails
[11:55:44] sidx64: has joined #RubyOnRails
[11:56:16] Cavallari: has joined #RubyOnRails
[11:56:29] Ryzokuken: has joined #RubyOnRails
[12:00:23] wethu: has joined #RubyOnRails
[12:11:59] DoubleMalt: has joined #RubyOnRails
[12:18:03] Ergo: has joined #RubyOnRails
[12:28:53] havenwood: has joined #RubyOnRails
[12:31:02] DoubleMalt: has joined #RubyOnRails
[12:38:55] AntiSpamMeta: has joined #RubyOnRails
[12:40:26] mrbubbles: has joined #RubyOnRails
[12:40:31] mrbubbles: I'm building an API based Rails/Vue app.
[12:40:44] mrbubbles: I want to have the ability to show users messages if needed - so a popup saying "a new file has arrived". I was thinking of just having a messages table which messages get added to and then a ajax call on the front end that queries it every 5 seconds and displays messages if any exist. Does that sound sensible?
[12:41:08] mrbubbles: I wasn't sure if something like ActionCable was more suitable (I'm a bit confused by/scared of ActionCable)
[12:43:23] tbuehlmann: mrbubbles: sure, you could use actioncable for this, it's a pretty good usecase for it. you could also do what you mentioned, polling. another option is to use server sent events.
[12:44:02] mrbubbles: Thanks tbuehlmann okay I'll look into it
[12:47:32] cawel: has joined #RubyOnRails
[12:47:33] cstls: has joined #RubyOnRails
[12:53:00] mtkd: has joined #RubyOnRails
[13:03:19] sonOfRa: has joined #RubyOnRails
[13:10:50] schneider: has joined #RubyOnRails
[13:13:26] dviola: has joined #RubyOnRails
[13:14:07] ramfjord: has joined #RubyOnRails
[13:19:10] za1b1tsu: has joined #RubyOnRails
[13:35:50] jonno112: has joined #RubyOnRails
[13:37:39] Puffball: has joined #RubyOnRails
[13:47:26] DrYockel: has joined #RubyOnRails
[13:50:44] roshanavand: has joined #RubyOnRails
[13:52:56] ramfjord: has joined #RubyOnRails
[14:01:21] schneider: has joined #RubyOnRails
[14:07:35] vaillancourtmax: has joined #RubyOnRails
[14:08:36] desperek: has joined #RubyOnRails
[14:10:24] roshanavand: has joined #RubyOnRails
[14:15:52] tubbo: has joined #RubyOnRails
[14:16:41] sidx64: has joined #RubyOnRails
[14:26:09] roshanavand: has joined #RubyOnRails
[14:43:26] ramfjord: has joined #RubyOnRails
[14:44:36] sidx64: has joined #RubyOnRails
[14:47:42] DrYockel: has joined #RubyOnRails
[14:50:28] mtkd: has joined #RubyOnRails
[14:56:52] chouhoulis: has joined #RubyOnRails
[15:00:28] riotjoe: has joined #RubyOnRails
[15:33:22] mikecmpb_: has joined #RubyOnRails
[15:38:46] troys: has joined #RubyOnRails
[15:48:00] za1b1tsu: has joined #RubyOnRails
[15:51:55] mheld: has joined #RubyOnRails
[15:56:50] cagomez: has joined #RubyOnRails
[15:57:40] srinidhi: has joined #RubyOnRails
[16:01:09] roca: has joined #RubyOnRails
[16:01:23] orbyt_: has joined #RubyOnRails
[16:06:06] vaillancourtmax: has joined #RubyOnRails
[16:08:42] andrewray: has joined #RubyOnRails
[16:14:30] SteenJobs: has joined #RubyOnRails
[16:15:42] jcarl43: has joined #RubyOnRails
[16:15:55] one_zero: has joined #RubyOnRails
[16:15:58] mikecmpbll: has joined #RubyOnRails
[16:17:14] darkhanb: has joined #RubyOnRails
[16:21:06] uksio: has joined #RubyOnRails
[16:23:39] Saukk: has joined #RubyOnRails
[16:25:06] rafik: has joined #RubyOnRails
[16:26:27] cstls: has joined #RubyOnRails
[16:26:40] dionysus69: has joined #RubyOnRails
[16:38:12] ianfleeton: has joined #RubyOnRails
[16:38:35] rgiscard: has joined #RubyOnRails
[16:38:51] vaillancourtmax: has joined #RubyOnRails
[16:41:23] yehowyada: has joined #RubyOnRails
[16:43:20] darkhanb: has joined #RubyOnRails
[16:48:12] orbyt_: has joined #RubyOnRails
[16:53:35] lupine: has joined #RubyOnRails
[16:55:33] mtkd: has joined #RubyOnRails
[17:07:14] Ryzokuken: has joined #RubyOnRails
[17:12:38] remix2000: has joined #RubyOnRails
[17:14:32] remix2000: Hiya! Have you experienced problems with HTTPS when using the latest Puma? I got all those errors mentioned in https://git.io/vxUQL
[17:21:26] cawel: has joined #RubyOnRails
[17:29:14] hahuang61: has joined #RubyOnRails
[17:33:51] mroutis: has joined #RubyOnRails
[17:36:03] mtkd: has joined #RubyOnRails
[17:48:30] mikecmpbll: has joined #RubyOnRails
[17:49:02] MacWinner: has joined #RubyOnRails
[17:52:09] srinidhi: has joined #RubyOnRails
[17:54:20] srinidhi: has joined #RubyOnRails
[17:56:10] workmad3: has joined #RubyOnRails
[18:06:01] blackcross: has joined #RubyOnRails
[18:09:01] schneider: has joined #RubyOnRails
[18:09:58] riotjones: has joined #RubyOnRails
[18:17:56] elcontrastador: has joined #RubyOnRails
[18:19:22] guacamole: has joined #RubyOnRails
[18:29:22] cagomez: how do I write a stub activemodel attribute "setter" for an attribute? is it `def my_attribute=; # do stuff end;`?
[18:29:51] tbuehlmann: cagomez: that's how you define a setter, yes. why do you need a stub?
[18:30:11] cagomez: tbuehlmann: I'm not ready to write a migration to add the column yet because I want to think about the data model first
[18:31:07] cagomez: ie how do I write a method that will "intercept" `MyModel.update(my_attribute: 'foo')`? would it be the same as above?
[18:32:14] tbuehlmann: yeah, that's just using the setter method
[18:32:27] tbuehlmann: you could also just do `attr_accessor :my_attribute` for a getter and setter
[18:32:56] cagomez: ok, thanks
[18:36:17] ianfleeton: has joined #RubyOnRails
[18:41:07] schneider: has joined #RubyOnRails
[18:41:11] konos5__: has joined #RubyOnRails
[18:41:37] alfiemax: has joined #RubyOnRails
[18:51:12] riotjoe: has joined #RubyOnRails
[19:00:05] roca: has joined #RubyOnRails
[19:00:13] mahloun: has joined #RubyOnRails
[19:00:44] boshhead: has joined #RubyOnRails
[19:15:09] alfiemax: has joined #RubyOnRails
[19:18:51] mtkd: has joined #RubyOnRails
[19:28:32] Dimik: has joined #RubyOnRails
[19:28:53] boshhead: has joined #RubyOnRails
[19:34:42] cagomez: has joined #RubyOnRails
[19:45:22] rafik: has joined #RubyOnRails
[19:46:55] kies: has joined #RubyOnRails
[19:52:56] ramfjord: has joined #RubyOnRails
[19:55:01] cagomez: has joined #RubyOnRails
[19:56:18] mtkd: has joined #RubyOnRails
[20:02:37] ianfleeton: has joined #RubyOnRails
[20:03:31] mtkd: has joined #RubyOnRails
[20:04:11] cagomez: Bar belongs to Foo. Foo has many Bars. should I use the inverse_of option on Bar?
[20:07:09] cstls: has joined #RubyOnRails
[20:14:22] cawel: has joined #RubyOnRails
[20:34:02] schneider: has joined #RubyOnRails
[20:40:36] alfiemax: has joined #RubyOnRails
[20:41:57] Cavallari: has joined #RubyOnRails
[20:48:29] cagomez: do you need to create a migration if a foreign key references the same table?
[20:49:51] nme13: has joined #RubyOnRails
[20:51:19] workmad3: has joined #RubyOnRails
[20:51:57] nme13: anybody here familiar with building gems ?
[20:52:12] nme13: I'd like to know how to use custom Models and migration inside a gem
[20:52:23] sidx64: has joined #RubyOnRails
[20:55:34] molloy: nme13: what are your specific questions? it really helps us help you if you tell us what you are having a problem with, and what your initially attempted solution is ^_^
[20:57:28] molloy: it helps to understand what perspective you are approaching the problem from, and what best practices you may not have learned about before constructing that approach
[20:57:54] sameerynho: has joined #RubyOnRails
[20:58:59] nme13: I'm making a gem, inside it I need to use Models
[20:59:48] nme13: but I don't know how to automatically create the model and the migration when it gets installed ine rails client app
[21:00:00] Radar: nme13: !engines
[21:00:00] helpa: nme13: http://guides.rubyonrails.org/engines.html - Engines Guide - Written by Ryan Bigg
[21:00:06] Radar: ^ This is what you want to do by the sound of things.
[21:02:32] mtkd: has joined #RubyOnRails
[21:20:05] FrostCandy: has joined #RubyOnRails
[21:21:12] FrostCandy: I'm not sure this could ever happen, but if someone were to call one of my webpages I can read the url they used with request.original_url, but how do i read the headers if any?
[21:23:37] weathermaker: has joined #RubyOnRails
[21:29:17] alfiemax: has joined #RubyOnRails
[21:36:14] daveomcd: I have some strong_params in my controllers that are quite large. This seems like "smelly" code but I'm not sure what I should probably consider doing - or if it's fine. Anyone have any ideas? https://gist.github.com/daveomcd/4bca2686cff21b8ddf93011dc433c4e8
[21:38:33] mikecmpbll: has joined #RubyOnRails
[21:38:42] sameerynho: has joined #RubyOnRails
[21:45:14] mroutis: has joined #RubyOnRails
[22:06:32] alfiemax: has joined #RubyOnRails
[22:07:41] hahuang65: has joined #RubyOnRails
[22:10:42] rafik: daveomcd: I think looks ok, what do you think is "smelly" about it?
[22:13:32] alfiemax: has joined #RubyOnRails
[22:13:48] sameerynho: has joined #RubyOnRails
[22:15:45] roca: has joined #RubyOnRails
[22:17:39] roca: has joined #RubyOnRails
[22:19:01] rikkipitt: has joined #RubyOnRails
[22:19:46] rikkipitt: hey folks, anyone know much about activestorage? I'm making a custom service and was wondering how i could override the preview feature for a particular service (i.e. a service that generates remote preview images)
[22:31:10] FastJack: has joined #RubyOnRails
[22:40:50] hahuang61: has joined #RubyOnRails
[22:41:22] tjbp: has joined #RubyOnRails
[22:43:32] rikkipitt: has joined #RubyOnRails
[22:45:27] ali_g: has joined #RubyOnRails
[22:48:33] cstls: has joined #RubyOnRails
[22:51:41] workmad3: has joined #RubyOnRails
[23:14:00] hahuang61: has joined #RubyOnRails
[23:18:08] halbbalda: has joined #RubyOnRails
[23:21:36] AntiSpamMeta: has joined #RubyOnRails
[23:30:21] jrm: has joined #RubyOnRails
[23:43:26] alfiemax: has joined #RubyOnRails
[23:50:13] cstls: has joined #RubyOnRails
[23:56:20] sameerynho: has joined #RubyOnRails
[23:58:49] jottr: has joined #RubyOnRails