« Back to channel list

#RubyOnRails - 07 March 2018

« Back 1 day Forward 1 day »
[00:02:51] cagomez: has joined #RubyOnRails
[00:12:06] chouhoulis: has joined #RubyOnRails
[00:12:46] chouhoulis: has joined #RubyOnRails
[00:19:56] alfiemax: has joined #RubyOnRails
[00:28:47] unreal: has joined #RubyOnRails
[00:31:00] hahuang65: has joined #RubyOnRails
[00:32:34] alfiemax: has joined #RubyOnRails
[00:45:07] alfiemax: has joined #RubyOnRails
[00:57:12] hahuang65: has joined #RubyOnRails
[00:58:11] alfiemax: has joined #RubyOnRails
[01:02:01] westoque: has joined #RubyOnRails
[01:05:02] hahuang65: has joined #RubyOnRails
[01:12:02] workmad3: has joined #RubyOnRails
[01:13:38] hahuang65: has joined #RubyOnRails
[01:34:35] conceivably: has joined #RubyOnRails
[01:36:10] alfiemax: has joined #RubyOnRails
[01:36:12] conceivably: Hi there, I have a model with a jsonb type attribute. Is there a built in way to make the accessor return a hash with symbolized keys or do I have to do so manually? I can't seem to find proper documentation for this anywhere.
[01:38:37] conceivably: Never mind, just found out about deep_symbolize_keys :)
[01:42:44] hahuang65: has joined #RubyOnRails
[01:49:30] alfiemax: has joined #RubyOnRails
[01:53:27] orbyt_: has joined #RubyOnRails
[01:53:36] lroca: has joined #RubyOnRails
[01:55:15] hahuang65: has joined #RubyOnRails
[01:56:00] Exuma: has joined #RubyOnRails
[01:56:37] Exuma: Hey -- was this security issue ever fixed? https://github.com/rails/rails/issues/17136
[02:03:39] hahuang65: has joined #RubyOnRails
[02:07:02] mroutis: has joined #RubyOnRails
[02:08:13] alfiemax: has joined #RubyOnRails
[02:08:53] Puffball_: has joined #RubyOnRails
[02:29:14] blackcross: has joined #RubyOnRails
[02:41:08] brycesenz: has joined #RubyOnRails
[02:55:44] blackcross: has joined #RubyOnRails
[03:07:24] mroutis: has joined #RubyOnRails
[03:12:35] workmad3: has joined #RubyOnRails
[03:26:48] dtzuzu: has joined #RubyOnRails
[04:05:40] alfiemax: has joined #RubyOnRails
[04:17:36] darkhanb: has joined #RubyOnRails
[04:22:17] srruby: has joined #RubyOnRails
[04:23:57] srruby: A long time ago I built a few multi-tenant rails apps using Default Scope. They seem to work ok, but they have never really been tested with more than one tenant. Any thoughts ?
[04:25:14] trautwein: has joined #RubyOnRails
[04:27:11] c0dec: has joined #RubyOnRails
[04:34:39] LightStalker: has joined #RubyOnRails
[04:35:21] sidx64: has joined #RubyOnRails
[04:44:52] darkhanb: has joined #RubyOnRails
[04:45:41] kies: has joined #RubyOnRails
[05:09:42] darkhanb: has joined #RubyOnRails
[05:13:45] workmad3: has joined #RubyOnRails
[05:25:31] sevenseacat: has joined #RubyOnRails
[05:33:52] Karpah: has joined #RubyOnRails
[05:36:01] srruby: has joined #RubyOnRails
[06:00:07] sidx64: has joined #RubyOnRails
[06:03:35] dionysus69: has joined #RubyOnRails
[06:20:09] KeyJoo: has joined #RubyOnRails
[06:26:29] sidx64: has joined #RubyOnRails
[06:35:45] srinidhi: has joined #RubyOnRails
[06:39:44] sidx64: has joined #RubyOnRails
[06:47:17] helpa: has joined #RubyOnRails
[06:47:47] helpa: has joined #RubyOnRails
[07:03:00] gambl0re: has joined #RubyOnRails
[07:13:36] hahuang65: has joined #RubyOnRails
[07:13:47] workmad3: has joined #RubyOnRails
[07:16:04] hahuang61: has joined #RubyOnRails
[07:16:21] Dimik: has joined #RubyOnRails
[07:17:41] hahuang65: has joined #RubyOnRails
[07:17:56] Fusselgesicht: has joined #RubyOnRails
[07:24:14] jarred: has joined #RubyOnRails
[07:27:45] conta: has joined #RubyOnRails
[07:32:09] sidx64: has joined #RubyOnRails
[07:33:06] mtkd: has joined #RubyOnRails
[07:34:42] armyriad: has joined #RubyOnRails
[07:36:16] hahuang61: has joined #RubyOnRails
[07:42:48] ramfjord: has joined #RubyOnRails
[07:45:24] dionysus69: has joined #RubyOnRails
[07:50:09] mjolnird: has joined #RubyOnRails
[08:05:05] hahuang61: has joined #RubyOnRails
[08:28:39] defsdoor: has joined #RubyOnRails
[08:30:21] mtkd: has joined #RubyOnRails
[08:30:46] DaveTaboola: has joined #RubyOnRails
[08:50:09] morfin60: has joined #RubyOnRails
[08:50:30] morfin60: how do i register stylesheets/javascripts in my own gem?
[09:01:49] DrYockel: has joined #RubyOnRails
[09:03:31] marr: has joined #RubyOnRails
[09:12:12] schneider: has joined #RubyOnRails
[09:14:19] workmad3: has joined #RubyOnRails
[09:21:54] srinidhi: has joined #RubyOnRails
[09:28:05] apeiros: has joined #RubyOnRails
[09:35:42] mtkd: has joined #RubyOnRails
[09:42:33] ramfjord: has joined #RubyOnRails
[09:47:49] schneider: has joined #RubyOnRails
[09:48:16] Ergo: has joined #RubyOnRails
[09:48:23] dminuoso: has left #RubyOnRails: ("WeeChat 2.0.1")
[09:53:00] srinidhi: has joined #RubyOnRails
[09:56:24] crst: has joined #RubyOnRails
[09:56:31] crst: Good Morning
[09:58:38] schneider: has joined #RubyOnRails
[09:59:46] alfiemax_: has joined #RubyOnRails
[10:09:22] hahuang61: has joined #RubyOnRails
[10:10:00] mtkd: has joined #RubyOnRails
[10:11:42] hive-mind: has joined #RubyOnRails
[10:33:48] moei: has joined #RubyOnRails
[10:34:16] Coldbla5: has joined #RubyOnRails
[10:44:46] schneider: has joined #RubyOnRails
[10:54:08] am55: has joined #RubyOnRails
[10:58:11] schneider: has joined #RubyOnRails
[11:00:38] cstls: has joined #RubyOnRails
[11:01:31] srinidhi: has joined #RubyOnRails
[11:08:56] hahuang61: has joined #RubyOnRails
[11:17:01] za1b1tsu: has joined #RubyOnRails
[11:18:00] za1b1tsu: Hello. If someone can help me: for example I have in routes: resources :users only: [:create, :show, :update]
[11:18:28] za1b1tsu: I need to have a new resource :init_trust, under users:show
[11:18:33] za1b1tsu: how can I do this in routes?
[11:19:20] tbuehlmann: za1b1tsu: do you mean a route like `/users/42/init_trust`?
[11:20:46] za1b1tsu: tbuehlmann, yes
[11:20:54] tbuehlmann: see http://guides.rubyonrails.org/routing.html#adding-member-routes
[11:21:08] za1b1tsu: tbuehlmann, thank you
[11:22:07] tbuehlmann: also consider making this a whole new nested resources route, so it might fit restful routing
[11:24:11] Cavallari: has joined #RubyOnRails
[11:25:51] za1b1tsu: tbuehlmann, what do you mean?
[11:26:45] workmad3: has joined #RubyOnRails
[11:27:22] tbuehlmann: something like this: https://gist.github.com/tbuehlmann/b63dedecc7bed258b174cdb3e57a2427
[11:27:32] tbuehlmann: I don't know the exact usecase though
[11:38:23] schneider: has joined #RubyOnRails
[11:50:09] za1b1tsu: tbuehlmann, but in this situation /trust would be available for all users actions? I need it only for users#show
[12:12:17] hahuang61: has joined #RubyOnRails
[12:12:53] konos5: has joined #RubyOnRails
[12:13:39] konos5: Using Rails 5.2.rc.1 is it allowed to do direct_uploads on localhost?
[12:13:53] konos5: or is it only supported for cloud hosts?
[12:21:07] dblessing: has joined #RubyOnRails
[12:32:17] tbuehlmann: za1b1tsu: what?
[12:34:50] KeyJoo: has joined #RubyOnRails
[12:38:13] hahuang61: has joined #RubyOnRails
[12:55:25] c0dec: has joined #RubyOnRails
[13:07:31] DrYockel: has joined #RubyOnRails
[13:11:42] hahuang61: has joined #RubyOnRails
[13:29:26] chouhoulis: has joined #RubyOnRails
[13:38:38] cawel: has joined #RubyOnRails
[13:41:57] ramfjord: has joined #RubyOnRails
[13:49:05] chouhoulis: has joined #RubyOnRails
[13:50:58] mtkd: has joined #RubyOnRails
[13:56:45] tcopeland: has joined #RubyOnRails
[14:01:09] xKraty: has joined #RubyOnRails
[14:01:47] Saukk: has joined #RubyOnRails
[14:03:36] Tempesta: has joined #RubyOnRails
[14:03:40] edolix: has joined #RubyOnRails
[14:09:32] [Butch]: has joined #RubyOnRails
[14:09:44] hahuang61: has joined #RubyOnRails
[14:15:25] cawel: has joined #RubyOnRails
[14:16:57] willywos: has joined #RubyOnRails
[14:18:43] yehowyada: has joined #RubyOnRails
[14:20:54] am55: has joined #RubyOnRails
[14:31:16] roshanavand: has joined #RubyOnRails
[14:43:27] ramfjord: has joined #RubyOnRails
[14:51:08] Sylario: has joined #RubyOnRails
[14:56:39] greengriminal: has joined #RubyOnRails
[15:00:34] dblessing: has joined #RubyOnRails
[15:05:56] hahuang61: has joined #RubyOnRails
[15:07:18] kn-928: has joined #RubyOnRails
[15:19:02] mikecmpbll: has joined #RubyOnRails
[15:33:16] am55: has joined #RubyOnRails
[15:45:39] mroutis: has joined #RubyOnRails
[15:56:13] mtkd: has joined #RubyOnRails
[15:59:41] troys: has joined #RubyOnRails
[16:04:54] bruce_lee: has joined #RubyOnRails
[16:09:32] hahuang61: has joined #RubyOnRails
[16:17:55] tetraktys: has joined #RubyOnRails
[16:19:44] schneider: has joined #RubyOnRails
[16:20:08] tetraktys: Hi all, I've been following (relevant) steps in this gist: https://gist.github.com/maxivak/690e6c353f65a86a4af9 in order to have ActionMailer to use the sidekiq queues. But in development (from the console) mails are queued somewhere else (don't show in the UI) and after a while the console starts putting logs for the mailer. Is this expected behavior?
[16:20:13] Ryzokuken: has joined #RubyOnRails
[16:30:10] schneider: has joined #RubyOnRails
[16:32:30] ams__: has joined #RubyOnRails
[16:37:02] SteenJobs: has joined #RubyOnRails
[16:47:30] cawel: has joined #RubyOnRails
[16:49:31] cagomez: has joined #RubyOnRails
[16:53:08] [Butch]: has joined #RubyOnRails
[16:54:14] srinidhi: has joined #RubyOnRails
[17:06:08] hahuang65: has joined #RubyOnRails
[17:06:25] hahuang61: has joined #RubyOnRails
[17:11:19] aress190: has joined #RubyOnRails
[17:13:31] mtkd: has joined #RubyOnRails
[17:14:28] jcarl43: has joined #RubyOnRails
[17:25:39] schneider: has joined #RubyOnRails
[17:26:05] apeiros__: has joined #RubyOnRails
[17:26:45] one_zero: has joined #RubyOnRails
[17:38:19] darkhanb: has joined #RubyOnRails
[17:38:22] marr: has joined #RubyOnRails
[17:40:36] za1b1tsu: has joined #RubyOnRails
[17:53:13] atrerus: has joined #RubyOnRails
[17:53:57] one_zero: has joined #RubyOnRails
[17:55:13] bga57: has joined #RubyOnRails
[17:55:47] atrerus: Howdy… wondering if I can get some suggestions here. I just inherited a Rails 5 project and it looks like the former maintainer never got the tests to run? They have this line “require ‘test_helper’” that is blowing up. Am I missing a gem or what?
[17:58:10] espressocannon: has joined #RubyOnRails
[17:58:15] apeiros: has joined #RubyOnRails
[17:59:12] apeiros: has joined #RubyOnRails
[18:00:09] espressocannon: any idea why this link: `<%= link_to 'Apply For Job', {controller: :position_applications, action: :apply_for_position, temp_id: @active_temp.id, position_id: position.id} %>` would give me this error? `Couldn't find PositionApplication with 'id'=apply_for_position`
[18:01:03] espressocannon: I have tried adding {id: 0} to the params to 'hack' it into submission
[18:08:22] Cache_Money: has joined #RubyOnRails
[18:08:41] hahuang61: has joined #RubyOnRails
[18:09:40] atrerus: nevermind, seems to be same issue as this: https://github.com/rails/rails-perftest/issues/31
[18:10:08] atrerus: somehow the file got deleted (or wasn’t in git) and I was able to regenerate it from a fresh project and copy it over
[18:11:26] cawel: has joined #RubyOnRails
[18:11:43] atrerus: @espressocannon have you looked at the records in your database?
[18:19:49] Dimik: has joined #RubyOnRails
[18:20:08] espressocannon: ummmm. not really
[18:21:48] orbyt_: has joined #RubyOnRails
[18:21:51] SteenJobs: has joined #RubyOnRails
[18:22:22] am55: has joined #RubyOnRails
[18:28:19] dionysus69: has joined #RubyOnRails
[18:29:00] atrerus: it looks like you’re running a find… which translates into a database query
[18:29:13] atrerus: and the error is telling you the data you’re looking for is not present
[18:29:24] ramfjord: has joined #RubyOnRails
[18:30:41] dionysus69: has joined #RubyOnRails
[18:33:31] espressocannon: ok but, this kind of cross linking works with this other link " <%= link_to 'Select for Hire', {controller: :positions, action: :select_hire, temp_id: @temp.id, position_id: position.id} %>"
[18:35:11] kies: has joined #RubyOnRails
[18:36:35] atrerus: does it need to be @position.id?
[18:39:46] hgost: has joined #RubyOnRails
[18:39:49] crst: has joined #RubyOnRails
[18:40:30] espressocannon: yeah. i am creating a new PositionApplication entry with the fields 'position_id' and 'temp_id'
[18:40:44] espressocannon: also these two links somehow create different urls
[18:41:22] espressocannon: so the position_application url is: http://localhost:3000/position_applications/apply_for_position?position_id=9&temp_id=3
[18:41:47] espressocannon: and the admin genrated url is: http://localhost:3000/positions/select_hire?position_id=9&temp_id=3
[18:42:12] espressocannon: oh .. wait. no they're the same
[18:42:21] conta: has joined #RubyOnRails
[18:43:50] espressocannon: and my "apply_for_position" controller just defaults to "show" for some reason, without even using the "apply_for_position" function
[18:45:14] espressocannon: so it uses '/position_applications/show' instead of 'position_applications/apply_for_position' ....
[18:45:41] espressocannon: yep my route is correct get 'position_applications/apply_for_position'
[18:47:40] schneider: has joined #RubyOnRails
[18:51:38] espressocannon: so the main difference is that the "apply for position" link is creating an entry, while the "select hire" is editing one.
[18:57:44] espressocannon: i was trying to post with a get request
[19:03:41] sameerynho: has joined #RubyOnRails
[19:07:05] orbyt_: has joined #RubyOnRails
[19:09:08] hahuang61: has joined #RubyOnRails
[19:11:20] atrerus: has joined #RubyOnRails
[19:16:52] desperek: has joined #RubyOnRails
[19:18:32] mtkd: has joined #RubyOnRails
[19:22:51] jcm__: has joined #RubyOnRails
[19:28:33] Inside: has joined #RubyOnRails
[19:32:24] Inside: Q: how do you test multi-database transactions?
[19:34:15] schneider: has joined #RubyOnRails
[19:35:14] Inside: ie: https://gist.github.com/Insood/2708de4b20c78631e4c328bf194c23cd
[19:35:39] Inside: how do you simulate a database connection crapping out (which is what is actually happening to me)
[19:39:05] dionysus69: has joined #RubyOnRails
[19:39:22] mroutis: has joined #RubyOnRails
[19:42:56] hahuang61: has joined #RubyOnRails
[19:45:28] aress190: has joined #RubyOnRails
[19:52:11] sidx64: has joined #RubyOnRails
[19:57:54] cagomez: has joined #RubyOnRails
[19:58:52] cagomez: has joined #RubyOnRails
[20:03:12] SteenJobs: has joined #RubyOnRails
[20:03:49] fragamus: has joined #RubyOnRails
[20:04:33] mroutis: has joined #RubyOnRails
[20:08:40] dviola: has joined #RubyOnRails
[20:09:35] am55: has joined #RubyOnRails
[20:09:41] sidx64_: has joined #RubyOnRails
[20:10:45] Cavallari: has joined #RubyOnRails
[20:13:25] schneider: has joined #RubyOnRails
[20:15:47] ramfjord: has joined #RubyOnRails
[20:20:05] roshanavand: has joined #RubyOnRails
[20:32:39] fragamus: has joined #RubyOnRails
[20:34:42] workmad3: has joined #RubyOnRails
[20:52:38] schneider: has joined #RubyOnRails
[20:55:08] TinkerTyper: has joined #RubyOnRails
[21:01:41] schneider: has joined #RubyOnRails
[21:06:37] Terens: has joined #RubyOnRails
[21:06:59] Terens: is there a reliable way to schedule sidekiq job after one is finished?
[21:08:16] hahuang61: has joined #RubyOnRails
[21:10:51] schneider: has joined #RubyOnRails
[21:19:55] schneider: has joined #RubyOnRails
[21:26:02] gambl0re: has joined #RubyOnRails
[21:26:41] schneider: has joined #RubyOnRails
[21:29:16] mikecmpbll: has joined #RubyOnRails
[21:33:44] am55: has joined #RubyOnRails
[21:35:52] dviola: has joined #RubyOnRails
[21:46:17] am55: has joined #RubyOnRails
[21:53:35] cagomez: has joined #RubyOnRails
[21:55:11] jnollette: has joined #RubyOnRails
[21:57:18] fragamus: has joined #RubyOnRails
[22:02:05] cagomez: I have a model that has JSONB column with an array of objects. I can query the model to find a single object that has a particular key, value like so: `Model.where("users @> ?", [ {'key' => 'value'} ].to_json )`
[22:02:54] cagomez: how would I find an instance of the model that has an array where ALL objects match have that particular key, value?
[22:04:15] orbyt_: has joined #RubyOnRails
[22:08:53] hahuang61: has joined #RubyOnRails
[22:13:58] dblessing: has joined #RubyOnRails
[22:17:31] fragamus: has joined #RubyOnRails
[22:20:49] nogic: has joined #RubyOnRails
[22:24:50] fox_mulder_cp: model.where - is a scope from all model collection
[22:32:26] blackcross: I have gem 'ups-ruby', '~> 0.9.6' in my Gemfile, and I have ran bundle install, when I am in rails console, and type "require 'ups-ruby'" as well as require 'ups', both give me the error "LoadError: cannot load such file -- ups-ruby" and "LoadError: cannot load such file -- ups" What am I doing wrong for rails not to be able to load ups or ups-ruby, even though bundle install saids it is
[22:34:13] SteenJobs: has joined #RubyOnRails
[22:36:54] tetraktys: has joined #RubyOnRails
[22:52:02] SteenJobs: has joined #RubyOnRails
[22:55:14] Coldblackice: has joined #RubyOnRails
[22:57:49] SteenJobs: has joined #RubyOnRails
[22:58:06] ramfjord: has joined #RubyOnRails
[23:04:50] cawel: has joined #RubyOnRails
[23:10:47] marr: has joined #RubyOnRails
[23:12:04] hahuang61: has joined #RubyOnRails
[23:15:22] hahuang65: has joined #RubyOnRails
[23:17:12] hahuang65: has joined #RubyOnRails
[23:17:41] timdotrb: has joined #RubyOnRails
[23:17:45] timdotrb: Afternoon, all
[23:18:55] gambl0re: has joined #RubyOnRails
[23:19:15] timdotrb: I'm having some strange behavior happening with will_paginate. I'm using it with an array of data, and when I display the nav links, it's showing all of the pages - not just the current one + 4 around current. I've tried specifying inner_window: 4 to no avail.
[23:19:23] hahuang65: has joined #RubyOnRails
[23:19:25] timdotrb: Any ideas what could be wrong?
[23:19:48] gambl0re: has joined #RubyOnRails
[23:33:57] c0dec: has joined #RubyOnRails
[23:37:03] mroutis: has joined #RubyOnRails
[23:41:56] apeiros_: has joined #RubyOnRails
[23:42:27] SteenJobs: has joined #RubyOnRails
[23:55:16] tcopeland: has joined #RubyOnRails