« Back to channel list

#RubyOnRails - 08 March 2018

« Back 1 day Forward 1 day »
[00:06:03] gambl0re: has joined #RubyOnRails
[00:08:42] hahuang61: has joined #RubyOnRails
[00:14:08] cagomez: I'm shelling out and running a rails server like so: `rails s`. is there I way I can drop into that shell so I can hit binding.pry statements?
[00:17:43] cagomez: is the topmost call in a backtrace the source of an exception?
[00:17:53] Mr_Tea: has joined #RubyOnRails
[00:32:12] mjolnird: has joined #RubyOnRails
[00:38:46] SteenJobs: has joined #RubyOnRails
[00:40:08] blackcross: has joined #RubyOnRails
[00:46:25] cschneid: has joined #RubyOnRails
[00:47:08] SteenJobs: has joined #RubyOnRails
[00:50:06] timdotrb: has joined #RubyOnRails
[00:51:54] 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.
[00:52:20] timdotrb: Has anyone else had this issue?
[00:56:19] lroca: has joined #RubyOnRails
[01:10:05] hahuang61: has joined #RubyOnRails
[01:13:56] am55: has joined #RubyOnRails
[01:18:28] cagomez: has joined #RubyOnRails
[01:35:06] cpruitt: has joined #RubyOnRails
[01:36:14] cagomez: has joined #RubyOnRails
[01:40:55] am55: has joined #RubyOnRails
[01:45:49] cagomez: has joined #RubyOnRails
[02:05:45] cpruitt: has joined #RubyOnRails
[02:06:00] cawel: has joined #RubyOnRails
[02:11:24] Jameser: has joined #RubyOnRails
[02:12:29] hahuang61: has joined #RubyOnRails
[02:14:04] cschneid: has joined #RubyOnRails
[02:19:23] cschneid: has joined #RubyOnRails
[02:20:23] cpruitt: has joined #RubyOnRails
[02:28:36] cschneid: has joined #RubyOnRails
[02:53:33] cpruitt: has joined #RubyOnRails
[02:55:03] mroutis: has joined #RubyOnRails
[02:55:53] mroutis: cardoni: what's shelling out?
[02:56:37] mroutis: cardoni: sorry; hehe, I was trying to message `cagomez` but he's not online (tab completion error)
[03:00:28] ramfjord: has joined #RubyOnRails
[03:02:36] quazimodo: has joined #RubyOnRails
[03:04:24] cagomez: has joined #RubyOnRails
[03:13:25] hahuang61: has joined #RubyOnRails
[03:14:44] mroutis: can someone explain the `inverse_of: x` option in an association?
[03:39:57] fragamus: has joined #RubyOnRails
[03:45:31] darkhanb: has joined #RubyOnRails
[03:48:26] cpruitt: has joined #RubyOnRails
[03:56:58] Ryzokuken: has joined #RubyOnRails
[04:01:17] cagomez: has joined #RubyOnRails
[04:02:25] fryguy: has joined #RubyOnRails
[04:04:52] cpruitt: has joined #RubyOnRails
[04:06:22] hahuang61: has joined #RubyOnRails
[04:09:58] kies: has joined #RubyOnRails
[04:25:33] trautwein: has joined #RubyOnRails
[04:31:26] s2013: has joined #RubyOnRails
[04:54:23] cpruitt: has joined #RubyOnRails
[05:12:31] hahuang61: has joined #RubyOnRails
[05:20:07] cpruitt: has joined #RubyOnRails
[05:31:21] orbyt_: has joined #RubyOnRails
[05:34:32] dviola: has joined #RubyOnRails
[05:35:47] ramfjord: has joined #RubyOnRails
[05:41:55] cpruitt: has joined #RubyOnRails
[05:43:04] sidx64: has joined #RubyOnRails
[05:54:45] ramfjord: has joined #RubyOnRails
[05:56:56] mroutis: has joined #RubyOnRails
[06:07:02] hahuang61: has joined #RubyOnRails
[06:30:51] gambl0re: has joined #RubyOnRails
[06:54:47] mtkd: has joined #RubyOnRails
[06:57:43] sidx64: has joined #RubyOnRails
[07:00:44] srinidhi: has joined #RubyOnRails
[07:06:32] bruce_lee: has joined #RubyOnRails
[07:08:03] hahuang61: has joined #RubyOnRails
[07:11:53] sidx64_: has joined #RubyOnRails
[07:12:50] quazimodo: has joined #RubyOnRails
[07:13:12] AntiSpamMeta2: has joined #RubyOnRails
[07:16:16] timdotrb: has joined #RubyOnRails
[07:16:22] timdotrb: Evening, all
[07:16:41] sidx64: has joined #RubyOnRails
[07:18:29] timdotrb: I upgraded Ubuntu on our web server, and now the Rails caching isn’t working. In the logs, I see: Cache fetch_hit: foo, Cache read: foo but the view is taking quite a bit of time to load, it’s definitely not reading from the cache
[07:22:57] sevenseacat: has joined #RubyOnRails
[07:28:32] conta: has joined #RubyOnRails
[07:29:08] cpruitt: has joined #RubyOnRails
[07:29:15] orbyt_: has joined #RubyOnRails
[07:31:43] tetraktys: has joined #RubyOnRails
[07:54:27] ramfjord: has joined #RubyOnRails
[08:04:13] sidx64: has joined #RubyOnRails
[08:06:18] DrYockel: has joined #RubyOnRails
[08:07:03] cpruitt: has joined #RubyOnRails
[08:09:45] hahuang61: has joined #RubyOnRails
[08:10:32] s2013: has joined #RubyOnRails
[08:16:04] mtkd: has joined #RubyOnRails
[08:42:19] Sylario: has joined #RubyOnRails
[08:42:23] aiguuu: has joined #RubyOnRails
[08:44:36] tetraktys: has joined #RubyOnRails
[08:52:38] apeiros_: has joined #RubyOnRails
[08:56:28] marr: has joined #RubyOnRails
[08:56:37] mikecmpbll: has joined #RubyOnRails
[09:13:05] hahuang61: has joined #RubyOnRails
[09:17:54] cpruitt: has joined #RubyOnRails
[09:21:24] sidx64: has joined #RubyOnRails
[09:23:07] schneider: has joined #RubyOnRails
[09:29:28] cpruitt: has joined #RubyOnRails
[09:30:05] DrYockel: has joined #RubyOnRails
[09:32:49] tetraktys: has joined #RubyOnRails
[09:44:43] cpruitt: has joined #RubyOnRails
[09:51:20] gregf_: has joined #RubyOnRails
[09:54:14] ramfjord: has joined #RubyOnRails
[10:00:54] Ergo: has joined #RubyOnRails
[10:01:33] ams__: has joined #RubyOnRails
[10:11:52] arBmind: has joined #RubyOnRails
[10:12:33] hahuang61: has joined #RubyOnRails
[10:17:46] workmad3: has joined #RubyOnRails
[10:25:43] cschneid: has joined #RubyOnRails
[10:26:37] DaniG2k: has joined #RubyOnRails
[10:27:01] DaniG2k: hello all. I'm trying to write an RSpec/Capybara test that checks a redirect when a user visits a page
[10:27:14] DaniG2k: however, the page is external to my app so I don't actually want the test to go there
[10:27:19] DaniG2k: how should I do this?
[10:28:04] DaniG2k: so I have something like visit '/some/path' and I'm trying to expect a redirect to an external website.
[10:30:52] cpruitt: has joined #RubyOnRails
[10:38:57] mikecmpbll: has joined #RubyOnRails
[10:45:25] cpruitt: has joined #RubyOnRails
[10:47:34] sidx64: has joined #RubyOnRails
[10:48:05] agent_white: has joined #RubyOnRails
[10:48:40] Fusselgesicht: has joined #RubyOnRails
[10:59:10] sidx64: has joined #RubyOnRails
[11:02:16] jottr: has joined #RubyOnRails
[11:06:21] cpruitt: has joined #RubyOnRails
[11:06:59] Jameser: has joined #RubyOnRails
[11:07:10] hahuang61: has joined #RubyOnRails
[11:12:55] Jameser: has joined #RubyOnRails
[11:20:19] dreadnal: has left #RubyOnRails: ("Leaving")
[11:24:09] cstls: has joined #RubyOnRails
[11:36:46] nme13: has joined #RubyOnRails
[11:38:03] nme13: It seems there's a problem checking date with ruby
[11:38:21] nme13: I have a date object, I add 1 minute to it
[11:38:49] nme13: I take this new object (datetime + 1minute) and check if it is past
[11:38:58] nme13: It doesn't work at all
[11:39:14] nme13: ruby tell it's always past or always future
[11:39:52] cpruitt: has joined #RubyOnRails
[11:40:03] nme13: exemple : initial datetime object is 2018-03-08 12:00:00
[11:40:33] nme13: I add 1 minute and get the correct value (datetime format) 2018-03-08 12:01:00
[11:41:29] fox_mulder_cp: DaniG2k some like this? expect(:post => "/api/users").to route_to("users#create")
[11:41:57] nme13: when I test the final datetime on 2018-03-08 12:00 it says that 2018-03-08 12:01 is in the future, OK / but on 2018-03-08 12:04 it always says that 2018-03-08 12:00 is in the future
[11:42:05] nme13: these are datetime
[11:42:19] nme13: every step of the script is OK (checked with inspect)
[11:42:29] nme13: so it seems this is a problem of ruby ?
[11:43:35] nme13: tried with .past? .future? and tested with < or > compared to DateTime.now
[11:49:19] nfsnobody: has joined #RubyOnRails
[11:50:09] DaniG2k: fox_mulder_cp: I explained my question in a bit more detail on SO
[11:50:13] DaniG2k: https://stackoverflow.com/questions/49171142/rspec-capybara-redirect-to-external-page-sends-me-back-to-root-path
[11:52:13] Cavallari: has joined #RubyOnRails
[11:54:17] am55: has joined #RubyOnRails
[11:58:39] cpruitt: has joined #RubyOnRails
[12:08:05] apparition: has joined #RubyOnRails
[12:08:43] hahuang61: has joined #RubyOnRails
[12:09:11] ferr1: has joined #RubyOnRails
[12:12:10] cpruitt: has joined #RubyOnRails
[12:17:19] Jameser: has joined #RubyOnRails
[12:17:37] sidx64: has joined #RubyOnRails
[12:21:18] mtkd: has joined #RubyOnRails
[12:24:31] Jameser: has joined #RubyOnRails
[12:41:20] DrYockel: has joined #RubyOnRails
[12:45:29] cpruitt: has joined #RubyOnRails
[12:55:15] tetraktys: has joined #RubyOnRails
[12:56:00] cpruitt: has joined #RubyOnRails
[13:04:42] Cavallari1: has joined #RubyOnRails
[13:12:39] hahuang61: has joined #RubyOnRails
[13:16:43] cpruitt: has joined #RubyOnRails
[13:33:05] DaniG2k: has joined #RubyOnRails
[13:33:33] DaniG2k: hello all. I'm trying to write a Helper spec. However, my locales aren't being passed in
[13:33:38] DaniG2k: how can I pass in the locale in my helpers
[13:34:29] chouhoulis: has joined #RubyOnRails
[13:34:34] cpruitt: has joined #RubyOnRails
[13:35:54] thomasfedb: DaniG2k, not sure what you mean
[13:36:06] thomasfedb: DaniG2k, what's specifically the error or problem you're getting?
[13:36:13] thomasfedb: DaniG2k, can you provide code?
[13:42:52] cpruitt: has joined #RubyOnRails
[13:43:35] cawel: has joined #RubyOnRails
[13:47:26] Saukk: has joined #RubyOnRails
[13:48:13] am55: has joined #RubyOnRails
[13:53:56] cstls: has joined #RubyOnRails
[13:58:12] sidx64: has joined #RubyOnRails
[14:00:00] am55: has joined #RubyOnRails
[14:00:09] cpruitt: has joined #RubyOnRails
[14:02:23] Puffball: has joined #RubyOnRails
[14:05:58] chouhoulis: has joined #RubyOnRails
[14:06:49] hahuang61: has joined #RubyOnRails
[14:16:28] sidx64: has joined #RubyOnRails
[14:20:47] cpruitt: has joined #RubyOnRails
[14:25:20] jottr: has joined #RubyOnRails
[14:31:18] cstls: has joined #RubyOnRails
[14:35:50] krawchyk: has joined #RubyOnRails
[14:51:14] tetraktys: has joined #RubyOnRails
[14:55:07] ramfjord: has joined #RubyOnRails
[14:57:29] apeiros__: has joined #RubyOnRails
[15:04:09] mrbubbles: has joined #RubyOnRails
[15:05:03] mrbubbles: I've been reading around that STI is evil... is this really the case? My models are all *pretty* similar but with a few unique fields each. 16 models, there would be 37 unique columns in total if I use STI
[15:05:18] mrbubbles: Sorry, so 37 columns in total in the DB
[15:06:03] hahuang61: has joined #RubyOnRails
[15:17:12] za1b1tsu: has joined #RubyOnRails
[15:21:19] za1b1tsu: Anyone using Resque? I need resque to start a job to see how multiple args are sent to the job, anyway I can do this?
[15:29:40] apeiros: has joined #RubyOnRails
[15:31:05] cstls: has joined #RubyOnRails
[15:35:51] adavia: has joined #RubyOnRails
[15:36:51] apeiros: has joined #RubyOnRails
[15:39:34] lroca: has joined #RubyOnRails
[15:44:02] mtkd: has joined #RubyOnRails
[15:49:55] brent__: has joined #RubyOnRails
[15:51:16] srinidhi: has joined #RubyOnRails
[16:01:24] cschneid: has joined #RubyOnRails
[16:01:58] roshanavand: has joined #RubyOnRails
[16:09:53] hahuang61: has joined #RubyOnRails
[16:12:03] srinidhi: has joined #RubyOnRails
[16:22:27] Puffball: has joined #RubyOnRails
[16:24:58] cawel: has joined #RubyOnRails
[16:30:00] Ryzokuken: has joined #RubyOnRails
[16:30:34] Ryzokuken: has joined #RubyOnRails
[16:34:52] troys: has joined #RubyOnRails
[16:38:05] mroutis: has joined #RubyOnRails
[16:54:39] cagomez: has joined #RubyOnRails
[16:55:44] cstls: has joined #RubyOnRails
[16:57:23] [Butch]: has joined #RubyOnRails
[17:00:48] tcopeland: has joined #RubyOnRails
[17:02:38] orbyt_: has joined #RubyOnRails
[17:03:45] cagomez: anyone know how to print the list of middleware being used by an app during runtime?
[17:05:59] tetraktys: has joined #RubyOnRails
[17:14:09] hahuang61: has joined #RubyOnRails
[17:15:45] srinidhi: has joined #RubyOnRails
[17:17:18] one_zero: has joined #RubyOnRails
[17:17:21] alfiemax: has joined #RubyOnRails
[17:19:02] cagomez: has joined #RubyOnRails
[17:34:54] mtkd: has joined #RubyOnRails
[17:35:26] darkhanb: has joined #RubyOnRails
[17:50:22] conta: has joined #RubyOnRails
[17:53:13] mroutis: has joined #RubyOnRails
[17:53:17] workmad3_: has joined #RubyOnRails
[17:56:51] cawel: has joined #RubyOnRails
[17:57:40] apeiros: has joined #RubyOnRails
[18:01:02] apeiros: has joined #RubyOnRails
[18:02:01] kossae: has joined #RubyOnRails
[18:04:09] mooser: has joined #RubyOnRails
[18:11:28] ferr1: has left #RubyOnRails: ("WeeChat 2.0.1")
[18:12:10] hahuang61: has joined #RubyOnRails
[18:16:18] tcopeland: has joined #RubyOnRails
[18:17:44] rgr: has joined #RubyOnRails
[18:21:24] Cavallari1: has joined #RubyOnRails
[18:28:32] Cavallari1: has joined #RubyOnRails
[18:30:18] planigan: has joined #RubyOnRails
[18:31:55] Sirecote: has joined #RubyOnRails
[18:32:45] mroutis: someone going to railsconf2018?
[18:41:20] Cavallari1: has joined #RubyOnRails
[18:43:01] ramfjord: has joined #RubyOnRails
[18:47:27] mtkd: has joined #RubyOnRails
[18:49:05] c0dec: has joined #RubyOnRails
[18:50:34] DrYockel: has joined #RubyOnRails
[18:53:46] sidx64: has joined #RubyOnRails
[18:58:01] sidx64_: has joined #RubyOnRails
[19:00:12] c0dec: has joined #RubyOnRails
[19:05:37] hahuang61: has joined #RubyOnRails
[19:14:40] cagomez: has joined #RubyOnRails
[19:17:04] aguestuser: has joined #RubyOnRails
[19:18:21] kies: has joined #RubyOnRails
[19:31:15] sameerynho: has joined #RubyOnRails
[19:33:04] c0dec: has joined #RubyOnRails
[19:35:16] conceivably: has joined #RubyOnRails
[19:37:55] conceivably: Hello. I have a bunch of services some of which need to format strings in a certain way. It feels a bit clunky to have the different formats in the services themselves, as for newcomers to the project it might not be clear where they can change these formats. Thus I'd like to somehow extract the formatting methods. Is there a canonical way / pattern to do this? Obviously, I could just make a module for them, but I was just wonderi
[19:37:55] conceivably: there was a better way to handle sort of configurations like that.
[19:49:09] hahuang61: has joined #RubyOnRails
[19:58:54] alfiemax: has joined #RubyOnRails
[20:10:51] fragamus: has joined #RubyOnRails
[20:25:00] cagomez: has joined #RubyOnRails
[20:29:44] dviola: has joined #RubyOnRails
[20:31:15] mtkd: has joined #RubyOnRails
[20:39:15] lroca: has joined #RubyOnRails
[20:53:41] mroutis: has joined #RubyOnRails
[20:54:19] ramfjord: has joined #RubyOnRails
[20:55:28] srinidhi: has joined #RubyOnRails
[20:58:31] jottr: has joined #RubyOnRails
[21:12:27] dviola: has joined #RubyOnRails
[21:13:33] hahuang61: has joined #RubyOnRails
[21:17:20] cawel: has joined #RubyOnRails
[21:18:27] mroutis: has joined #RubyOnRails
[21:30:41] alfiemax: has joined #RubyOnRails
[21:33:10] sidx64: has joined #RubyOnRails
[21:37:52] sidx64_: has joined #RubyOnRails
[21:38:35] c0dec: has joined #RubyOnRails
[21:52:54] arBmind: has joined #RubyOnRails
[21:55:16] cagomez_: has joined #RubyOnRails
[21:58:06] MasterAsia: has joined #RubyOnRails
[21:58:12] MasterAsia: What do you return
[21:58:25] MasterAsia: when a show action can't find the record?
[21:58:28] MasterAsia: (for an API)
[21:58:46] Jon30: has joined #RubyOnRails
[21:59:29] jtperreault: 404 response code
[21:59:36] Jon30: hey guys, i extended a controller with class_eval, within the controller I have MessageMailer which works fine, but in class_eval I am getting: *** NoMethodError Exception: undefined method `MessageMailer' for #<ActionDispatch::Routing::RoutesProxy:0
[22:02:14] Jon30: hmm I had to use a name space, I was extending a controller from an engine, but the extended class was already wrapped in a namespace(Frame::MessagesController.class_eval), so i don't know why I still had to add Frame:: infront of MessageMailer...
[22:06:21] quazimodo: has joined #RubyOnRails
[22:12:59] hahuang61: has joined #RubyOnRails
[22:15:10] Coldbla5: has joined #RubyOnRails
[22:15:56] Coldbla5: has joined #RubyOnRails
[22:18:13] jcarl43: How do I stub/mock a class method with rspec-rails?
[22:20:55] Jon30: regarding my old problem, i am still stuck.. for some reason Frame::MessageMailer.message_email only accepts one argument within the extended class, but 2 arguments if I call it directly from the engine
[22:21:23] Coldbla5: has joined #RubyOnRails
[22:27:34] Dimik: has joined #RubyOnRails
[22:27:37] Jon30: tried doing: require 'frame/message_mailer'
[22:32:35] mtkd: has joined #RubyOnRails
[22:34:32] Cache_Money: has joined #RubyOnRails
[22:36:19] glassresistor: has joined #RubyOnRails
[22:38:40] glassresistor: im having a bit of trouble with validates_associated. we are using it with a custom validator
[22:39:11] glassresistor: the validator works but its not giving any error in the form
[22:43:06] DTZUZO: has joined #RubyOnRails
[23:10:16] hahuang61: has joined #RubyOnRails
[23:13:16] quazimodo: has joined #RubyOnRails
[23:20:24] alfiemax: has joined #RubyOnRails
[23:34:31] glassresistor: has joined #RubyOnRails
[23:35:48] cawel: has joined #RubyOnRails
[23:38:16] cagomez: has joined #RubyOnRails
[23:38:44] hahuang61: has joined #RubyOnRails
[23:54:21] cagomez: has joined #RubyOnRails
[23:59:46] mroutis: has left #RubyOnRails: ()