« Back to channel list

#RubyOnRails - 17 April 2018

« Back 1 day Forward 1 day »
[00:00:00] uks: has joined #RubyOnRails
[00:08:01] mroutis: has joined #RubyOnRails
[00:11:25] Dimik: any one got an example of okta authentication ?
[00:11:28] Fridtjof: has joined #RubyOnRails
[00:14:14] cagomez: has joined #RubyOnRails
[00:14:32] mr-spoon: has joined #RubyOnRails
[00:15:31] mroutis: has left #RubyOnRails: ()
[00:16:25] shtirlic: has joined #RubyOnRails
[00:18:52] tejasmanohar: has joined #RubyOnRails
[00:19:12] wethu: has joined #RubyOnRails
[00:20:11] cagomez: has joined #RubyOnRails
[00:27:17] Technodrome: has joined #RubyOnRails
[00:46:16] duderonomy: has joined #RubyOnRails
[00:53:46] kapil___: has joined #RubyOnRails
[00:54:16] cagomez: has joined #RubyOnRails
[01:01:33] harrycs: has joined #RubyOnRails
[01:08:28] weaksauce: has joined #RubyOnRails
[01:38:31] harrycs: has joined #RubyOnRails
[01:40:35] chouhoulis: has joined #RubyOnRails
[01:45:31] workmad3: has joined #RubyOnRails
[01:50:49] wethu: has joined #RubyOnRails
[02:05:27] harrycs: has joined #RubyOnRails
[02:07:30] harrycs: has joined #RubyOnRails
[02:09:26] harrycs: has joined #RubyOnRails
[02:11:30] harrycs: has joined #RubyOnRails
[02:12:55] harrycs: has joined #RubyOnRails
[02:34:00] Technodrome: has joined #RubyOnRails
[02:47:40] mtkd: has joined #RubyOnRails
[02:48:59] wethu: has joined #RubyOnRails
[02:53:37] orbyt_: has joined #RubyOnRails
[03:04:41] cagomez: has joined #RubyOnRails
[03:44:43] workmad3: has joined #RubyOnRails
[03:46:13] cagomez: has joined #RubyOnRails
[04:01:26] LateralOctober: has joined #RubyOnRails
[04:02:50] arcturiaen_: has joined #RubyOnRails
[04:04:28] Technodrome: has joined #RubyOnRails
[04:54:00] endemic: has joined #RubyOnRails
[04:57:31] blackcross: has joined #RubyOnRails
[05:26:42] wethu: has joined #RubyOnRails
[05:28:38] armyriad: has joined #RubyOnRails
[05:30:39] ur5us: has joined #RubyOnRails
[05:32:35] armyriad: has joined #RubyOnRails
[05:43:53] workmad3: has joined #RubyOnRails
[05:47:07] kapil___: has joined #RubyOnRails
[05:47:14] blackcross: Anyone have a recommended up to date (within 1 year) Ubuntu 16.04 guide for setting up rails in production?
[05:52:48] reber: has joined #RubyOnRails
[06:02:50] woohoou: has joined #RubyOnRails
[06:22:24] sidx64: has joined #RubyOnRails
[06:26:26] schneider: has joined #RubyOnRails
[06:27:18] defsdoor: has joined #RubyOnRails
[06:48:11] ariejan: has joined #RubyOnRails
[06:50:51] LateralOctober: has joined #RubyOnRails
[07:04:03] TvL2386: has joined #RubyOnRails
[07:05:23] TvL2386: In the past I used resque for background jobs with resque-web as interface. I'm wondering what the best/nicest solution nowadays is
[07:07:24] nertzy: has joined #RubyOnRails
[07:09:28] fragamus: has joined #RubyOnRails
[07:10:13] moei: has joined #RubyOnRails
[07:12:48] schneider: has joined #RubyOnRails
[07:13:46] tbuehlmann: TvL2386: sidekiq being the most famous
[07:15:01] dionysus69: has joined #RubyOnRails
[07:15:05] apeiros: has joined #RubyOnRails
[07:16:14] dminuoso: TypeError: environment.plugins.set is not a function
[07:16:17] woohoou: has joined #RubyOnRails
[07:16:23] dminuoso: But what is it...
[07:17:27] TvL2386: tbuehlmann: does sidekiq also have some way to monitor the jobs, like resque-web
[07:17:46] TvL2386: Sidekiq comes with a web application that can display the current state of a Sidekiq installation.
[07:17:51] TvL2386: yeah it does
[07:18:29] dminuoso: Sometimes I really think the JavaScript authors are part of the largest prank in the history of the earth.
[07:18:34] Torrone: has joined #RubyOnRails
[07:20:22] Torrone: Hello, I have a rails application (rails 5), which is hosted on www.example.com and 3 small websites in wordpress, it would be nice to have them be subpaths of my site such as www.example.com/site1. Is there any standard way of doing it? Can Rails help me in this?
[07:21:23] dminuoso: Torrone: Let nginx take care of it.
[07:21:31] dminuoso: ACTION stabs apeiros
[07:21:34] dminuoso: Our slave is gone.
[07:21:55] dminuoso: Oh wait! Wrong channel.
[07:21:57] helpa: Next question, please!
[07:21:59] helpa: Nom nom. Thanks, dminuoso!
[07:23:06] Torrone: thanks dminuoso for pointing me in the right direction
[07:23:16] Torrone: I always trust dminuoso
[07:23:32] Torrone: you're a good guy
[07:24:12] tbuehlmann: yeah he's not.
[07:26:35] apeiros: dminuoso: why are you always hurting me?!?
[07:27:05] dminuoso: Give me a fork and Ill explain it to you.
[07:28:02] apeiros: ACTION forks dminuoso
[07:28:13] apeiros: are you cow?
[07:28:57] apeiros: Torrone: can confirm, dminuoso is not a good guy *looks at his various stabbing wounds*
[07:29:23] dminuoso: Seriously. Im tired of Rails.
[07:29:26] dminuoso: Cant even deploy assets.
[07:31:11] ur5us: has joined #RubyOnRails
[07:31:31] apeiros: what? don't you love to see how it starts webrat which starts yarn which installs bower which uses node…
[07:31:46] dminuoso: apeiros: Im being blocked by an optional dependency that fails.
[07:31:57] apeiros: let me guess, it worked yesterday?
[07:32:07] dminuoso: yarn tries to install fsevents, says that its an optional dependency and skips it. Then it tries to install fsevent, fails and bails out.
[07:32:20] dminuoso: ACTION sighs
[07:32:29] apeiros: I feel your pain
[07:32:56] dminuoso: How people get shit done with this pile of anti intellectual garbage is beyond me. JavaScript is the client-side version of PHP.
[07:35:10] apeiros: I'd argue it's even worse
[07:35:33] apeiros: and if only because there are yet more cooks who all put their salt into the soup
[07:43:10] workmad3: has joined #RubyOnRails
[07:55:30] mikecmpbll: has joined #RubyOnRails
[07:58:57] _aeris_: has joined #RubyOnRails
[08:19:29] marr: has joined #RubyOnRails
[08:24:32] dminuoso: apeiros: If only they were cooks.
[08:29:15] dminuoso: apeiros: https://github.com/yarnpkg/yarn/issues/1285
[08:29:36] dminuoso: 2 year old bug. Closed and "fixed (not really)".
[08:29:57] Terens: has joined #RubyOnRails
[08:30:32] Terens: Initially there was a table for configuration. Also there were some unique fields. Eg: name
[08:31:26] apeiros: dminuoso: it's only 2 years. give it some time.
[08:35:34] apeiros__: has joined #RubyOnRails
[08:49:02] Ergo: has joined #RubyOnRails
[08:50:53] one_zero: has joined #RubyOnRails
[08:54:03] LateralO1: has joined #RubyOnRails
[08:56:02] alfiemax: has joined #RubyOnRails
[08:57:52] alfiemax: has joined #RubyOnRails
[09:04:09] srinidhi: has joined #RubyOnRails
[09:13:31] drale2k_: has joined #RubyOnRails
[09:22:57] mikecmpb_: has joined #RubyOnRails
[09:42:16] workmad3: has joined #RubyOnRails
[09:47:16] Linuus: has joined #RubyOnRails
[09:47:52] ur5us: has joined #RubyOnRails
[09:48:20] mtkd: has joined #RubyOnRails
[09:57:11] kapil___: has joined #RubyOnRails
[09:57:26] FernandoBasso: has joined #RubyOnRails
[10:01:02] mtkd: has joined #RubyOnRails
[10:20:48] workmad3: has joined #RubyOnRails
[10:25:15] ur5us: has joined #RubyOnRails
[10:30:42] srinidhi: has joined #RubyOnRails
[10:53:45] apparition: has joined #RubyOnRails
[11:01:25] LateralO1: has joined #RubyOnRails
[11:07:52] mtkd: has joined #RubyOnRails
[11:11:23] Nick-S: has joined #RubyOnRails
[11:12:10] Nick-S: hey anyone with this problem trying to send mail through gmail smtp? Net::SMTPAuthenticationError (454 4.7.0 Too many login attempts, please try again later.
[11:12:23] Nick-S: i am thinking if i need to try to keep session open somehow or anything
[11:24:13] dionysus69: has joined #RubyOnRails
[11:29:05] roshanavand: has joined #RubyOnRails
[11:29:37] roshanavand: has joined #RubyOnRails
[11:35:29] fragamus: has joined #RubyOnRails
[11:43:44] Cavallari: has joined #RubyOnRails
[11:44:08] Cavallari1: has joined #RubyOnRails
[11:46:59] mtkd: has joined #RubyOnRails
[11:55:29] tcopeland: has joined #RubyOnRails
[11:59:10] Saukk: has joined #RubyOnRails
[12:05:40] ariejan: has joined #RubyOnRails
[12:24:15] ariejan: has joined #RubyOnRails
[12:29:30] ariejan: has joined #RubyOnRails
[12:42:57] dminuoso: Capistrano release. Puma stopped, puma restarted.
[12:43:05] dminuoso: Why would rails be rendering old views
[12:43:54] dminuoso: This is so bizarre.
[12:45:08] dionysus69: :S from old tmp files?
[12:46:18] dminuoso: tbuehlmann: What possible caching?
[12:46:28] dminuoso: Oh wait a second..
[12:46:32] dminuoso: What is this
[12:46:51] dminuoso: Do I have to nuke this stupid tmp/cache directory myself?
[12:46:52] tbuehlmann: page caching, action caching, fragment caching, russian doll caching?
[12:47:22] dminuoso: Why cant I expect capistrano to do the right™ thing.
[12:47:24] tbuehlmann: maybe fresh_when?
[12:47:43] tbuehlmann: well, no, not fresh_when
[12:49:17] tbuehlmann: could be fresh_when, though, depends on some things. but I guess you figured it out?
[12:50:03] dminuoso: tbuehlmann: Is it too much to expect the cache to be invalidated when the underlying source file gets changed?
[12:50:56] dminuoso: Or maybe it was me.
[12:51:52] dminuoso: I think it's just todays JavaScript frustration that bend my nerves a bit.
[12:56:20] mtkd: has joined #RubyOnRails
[12:58:12] DrYockel: has joined #RubyOnRails
[12:58:16] dionysus69: never had such a problem myself, I assumed capistrano removed tmp dir itself all the time :D
[13:00:40] Technodrome: has joined #RubyOnRails
[13:01:07] dminuoso: tbuehlmann: Thank you for the hint. Subtle fragment caching bugs hauting me again. :<
[13:03:57] jerematic: has joined #RubyOnRails
[13:04:04] ariejan: has joined #RubyOnRails
[13:05:29] kapil___: has joined #RubyOnRails
[13:18:51] pavelz: hi, I have a controller namespaced in admin (and so are the routes) just wondering if there is a general way to integrate this with non-namespaced models?
[13:19:51] pavelz: so i do form_form DataItem.new from namespaced controller and I get error that there is no new_data_item_url helper
[13:20:39] tbuehlmann: pavelz: you would use [:admin, DataItem.new] instead of just DataItem.new
[13:22:24] tcopeland: has joined #RubyOnRails
[13:24:10] pavelz: tbuehlmann: this is thanks!
[13:24:36] dminuoso: Okay.. I think I have no choice but to do N+1..
[13:24:38] dminuoso: ACTION sighs
[13:25:03] duderonomy: has joined #RubyOnRails
[13:28:02] tbuehlmann: pavelz: alternatively, use DataItem.new again and provide an `url: admin_data_items_path` option
[13:29:19] pavelz: tbuehlmann: nuh, can't place edit/new code in _form then
[13:40:04] Cavallari1: has joined #RubyOnRails
[13:40:54] blackcross: Anyone have a recommended up to date (within 1 year) Ubuntu 16.04 guide for setting up rails in production?
[13:42:37] blackcross: or just how to setup a rails 5 production server on barebones? I can install any OS
[13:43:01] tbuehlmann: although it's for a development setup, most of it is probably suitable for production as well: https://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you
[13:47:09] blackcross: will take a gander at it, ty
[13:48:23] schneider: has joined #RubyOnRails
[13:48:56] Cavallari: has joined #RubyOnRails
[13:52:17] sidx64: has joined #RubyOnRails
[13:53:06] blackcross: Good mini tutorial, but it doesn't explain how to setup nginx/apache, and any of the many app servers and setup the asset pipeline.
[13:53:23] tbuehlmann: that's right
[13:54:48] blackcross: I have my production server setup using capistrino, passenger, nginx, postgresql, and it's serving fine, but I am unable to run rails c production to import lots of .txt data into the database. That is my real problem, I keep getting a devise error that secret_key is missing from the devise initializer, but it is there, so no idea why i keep getting the same error when running rails c
[13:54:49] blackcross: production. Anyone have a suggestion?
[13:55:52] sidx64_: has joined #RubyOnRails
[14:09:38] blackcross: I can see why rails devs get paid so well, it's a nightmare to go from development to production, with all the security, assets, database loading, woo!
[14:14:12] mtkd: has joined #RubyOnRails
[14:28:06] alotofnoodles: has joined #RubyOnRails
[14:33:22] blackcross: secret_key_base is not used for database encryption, aside from session data, correct? I can export from a test database and import that into a production database with no problems?
[14:35:44] w0rd-driven: has joined #RubyOnRails
[14:35:49] mikecmpbll: has joined #RubyOnRails
[14:36:08] alotofnoodles: has joined #RubyOnRails
[14:36:45] elsurudo: has joined #RubyOnRails
[14:36:55] ariejan: has joined #RubyOnRails
[14:39:06] elsurudo: So the rails date/time view helpers generate fields that end in “(1i)”, “(2i)” etc. to break apart the different parts of the date, and then assign them all in unison to oen date object… is there a generalized pattern for this? I have a similar need, but my time is broken down into hr, min, and am/pm parts, so the standard ones aren’t cutting it for me. I created my own attr accessors and am setting the date in a
[14:39:07] elsurudo: before_initialize callback, but the problem is that my new accessors don’t trigger the “dirty” state for the object, so it’s not actually updated unless I update some other (regular) attribute as part of my update
[14:39:38] elsurudo: Err, “before_validation” callback, not “before_initialize”
[14:45:55] sidx64: has joined #RubyOnRails
[14:47:25] troys: has joined #RubyOnRails
[14:48:40] chouhoulis: has joined #RubyOnRails
[14:52:42] sidx64: has joined #RubyOnRails
[14:55:43] sidx64_: has joined #RubyOnRails
[14:58:10] srinidhi: has joined #RubyOnRails
[14:58:22] apeiros: has joined #RubyOnRails
[15:04:46] SteenJobs: has joined #RubyOnRails
[15:11:43] uks: has joined #RubyOnRails
[15:18:17] gregf_: has joined #RubyOnRails
[15:23:57] dionysus69: has joined #RubyOnRails
[15:28:23] Linuus: has joined #RubyOnRails
[15:28:23] mtkd: has joined #RubyOnRails
[15:29:55] dionysus70: has joined #RubyOnRails
[15:47:37] jcarl43: has joined #RubyOnRails
[15:53:45] rfoust: has joined #RubyOnRails
[15:57:17] MrPunkin: has joined #RubyOnRails
[15:59:04] [Butch]: has joined #RubyOnRails
[16:01:15] kurko_: ACTION watching railsconf online
[16:03:10] sidx64: has joined #RubyOnRails
[16:04:55] cagomez: has joined #RubyOnRails
[16:06:10] sidx64: has joined #RubyOnRails
[16:12:05] MrPunkin: Can anyone tell me if rails offers a nice way to group_by / reduce at the same time? Basically I want to create create arrays of files where each array is limited to under a 1Gig
[16:14:20] fragamus: has joined #RubyOnRails
[16:15:13] one_zero: has joined #RubyOnRails
[16:18:09] orbyt_: has joined #RubyOnRails
[16:25:27] s2013: has joined #RubyOnRails
[16:33:36] kurko_: has joined #RubyOnRails
[16:35:53] s2013: has joined #RubyOnRails
[17:03:37] chouhoulis: has joined #RubyOnRails
[17:06:07] Ergo: has joined #RubyOnRails
[17:12:55] workmad3: has joined #RubyOnRails
[17:13:30] mrbubbles: has joined #RubyOnRails
[17:13:52] mrbubbles: Good evening. I've got a collection of models - jobs, classifieds, etc. and I want to collect all from a given user into an array. So basically collect the results of self.jobs, self.classifieds, etc
[17:13:55] sidx64_: has joined #RubyOnRails
[17:14:11] mrbubbles: I thought I could use %w[jobs classifieds].inject { |c| self.send(c) } but that seems to return each array value rater then the results of the method call?
[17:16:28] orbyt_: has joined #RubyOnRails
[17:17:53] srinidhi: has joined #RubyOnRails
[17:21:55] tbuehlmann: mrbubbles: what about #map?
[17:23:05] mrbubbles: tbuehlmann I had considered that but I thought that inject would keep an accumulator of the results of each method call?
[17:24:23] tbuehlmann: not sure I can follow your though. you want to have [jobs_array, classifieds_array], right? that sounds like a job for #map
[17:25:53] mrbubbles: It's more that I want [job_1, job_2, classified_1, classified_2]
[17:26:14] mrbubbles: So to call self.jobs and append the result to a array, then self.classifieds and append the classifieds to the array
[17:26:15] tbuehlmann: yeah, so just flatten the other thing
[17:26:33] mrbubbles: Okay I'll try, thanks
[17:30:28] cagomez: if I'm using `dalli_store` (memcached) for `Rails.cache`, will `Rails.cache.fetch_multi` make a single network request for all of the n keys that I wanted fetched? Or will it make n requests for the n keys?
[17:37:03] havenwood: cagomez: Single call to the server: https://github.com/petergoldstein/dalli/blob/master/lib/active_support/cache/dalli_store.rb#L167-L193
[17:38:11] cagomez: thanks havenwood! I wasn't sure what source I needed to be looking at. So I take it that `DalliStore` needs to conform to `Rails.cache`'s public API?
[17:38:41] havenwood: cagomez: Though I assumed dalli's #fetch_multi used #read_multi like Rails' does, and I may be wrong.
[17:38:45] cagomez: or rather, `DalliStore` needs to comply with the interface that `Rails.cache` calls
[17:39:52] cagomez: havenwood: maybe so, but `Rails.cache` docs usually mention that some cache implementations may not support the operations that it's public API exposes, so this DalliStore source will be useful
[17:40:04] havenwood: cagomez: https://github.com/rails/rails/blob/5-2-stable/activesupport/lib/active_support/cache.rb#L397-L436
[17:40:43] havenwood: cagomez: Yeah, reading that source is probably the best way to find out.
[17:41:39] cagomez: thanks again!
[17:48:04] mrbubbles: Worked a treat, thanks tbuehlmann
[17:52:20] Torrone: has joined #RubyOnRails
[17:53:56] SteenJobs: has joined #RubyOnRails
[17:54:51] Torrone: Hello, I'm trying to set up a wordpress blog as a subdirectory of my rails app (blog.example.com => www.example.com/blog). The way I would normally do this is adding a proxy pass to my nginx configuration but I have conflicting routes and not having a /blog route defined sends me elsewhere depending on the url I'm on in the blog
[17:55:18] Torrone: I tried following this https://hackernoon.com/wordpress-inside-a-ruby-on-rails-app-c324fbf39ad8 but stopped working after refreshing my permalinks
[17:55:48] Torrone: do you think I can make it with the nginx proxy pass + routes? If so, how do I go about it?
[17:58:01] mikecmpbll: has joined #RubyOnRails
[17:59:04] Torrone: in short, I need to tell Rails to keep routes starting with /blog within the scope of the proxy pass
[18:03:07] SteenJobs: has joined #RubyOnRails
[18:08:04] sameerynho: has joined #RubyOnRails
[18:08:08] Cavallari: has joined #RubyOnRails
[18:20:57] duderonomy: has joined #RubyOnRails
[18:27:30] ariejan: has joined #RubyOnRails
[18:35:15] cagomez: if a model has `before_create :foo, :bar` will both `foo` and `bar` be called?
[18:39:08] mtkd: has joined #RubyOnRails
[18:56:14] mtkd: has joined #RubyOnRails
[19:12:35] ^mtkd: has joined #RubyOnRails
[19:13:00] DrYockel: has joined #RubyOnRails
[19:26:25] mostlybadfly: has joined #RubyOnRails
[19:43:01] orbyt_: has joined #RubyOnRails
[19:44:52] ellcs: has joined #RubyOnRails
[19:48:36] workmad3: has joined #RubyOnRails
[20:19:44] fragamus: has joined #RubyOnRails
[20:25:03] SteenJobs: has joined #RubyOnRails
[20:44:06] alfiemax: has joined #RubyOnRails
[20:48:45] s2013: has joined #RubyOnRails
[20:51:11] deathwishdave: has joined #RubyOnRails
[20:53:45] jerematic: has joined #RubyOnRails
[20:59:21] harrycs: has joined #RubyOnRails
[21:03:14] Cavallari1: has joined #RubyOnRails
[21:06:47] alfiemax: has joined #RubyOnRails
[21:10:11] ur5us: has joined #RubyOnRails
[21:14:09] ur5us: has joined #RubyOnRails
[21:16:34] apofis: has joined #RubyOnRails
[21:17:05] alotofnoodles: has joined #RubyOnRails
[21:19:07] ur5us: has joined #RubyOnRails
[21:21:24] schneider: has joined #RubyOnRails
[21:24:05] alfiemax: has joined #RubyOnRails
[21:26:54] Radar: GOOD MORNING
[21:31:08] tejasmanohar: has joined #RubyOnRails
[21:31:54] fox_mulder_cp: Radar: ahaha. 0:30 __
[21:34:36] fragamus: has joined #RubyOnRails
[21:40:11] tdy: has joined #RubyOnRails
[21:43:21] orbyt_: has joined #RubyOnRails
[21:47:47] workmad3: has joined #RubyOnRails
[21:54:41] duderonomy: has joined #RubyOnRails
[22:02:01] harrycs: has joined #RubyOnRails
[22:04:10] Technodrome: has joined #RubyOnRails
[22:07:39] moei: has joined #RubyOnRails
[22:23:56] schneider: has joined #RubyOnRails
[22:25:03] shtirlic_: has joined #RubyOnRails
[22:36:25] epochwolf: has joined #RubyOnRails
[22:58:12] orbyt_: has joined #RubyOnRails
[22:59:56] orbyt_: has joined #RubyOnRails
[23:11:56] rfoust: has joined #RubyOnRails
[23:20:34] yehowyada: has joined #RubyOnRails
[23:23:11] cschneid_: has joined #RubyOnRails
[23:29:12] duderonomy: has joined #RubyOnRails
[23:45:12] jnollette: has joined #RubyOnRails
[23:45:34] LenPayne: has joined #RubyOnRails
[23:46:59] workmad3: has joined #RubyOnRails
[23:58:47] uksio: has joined #RubyOnRails