« Back to channel list

#RubyOnRails - 05 September 2017

« Back 1 day Forward 1 day »
[00:00:24] Rodya_: has joined #RubyOnRails
[00:00:37] jrabe: has joined #RubyOnRails
[00:05:09] jhfisc: has joined #RubyOnRails
[00:11:11] jhfisc: has joined #RubyOnRails
[00:14:57] Radar: On the Internet, nobody knows you're a cat.
[00:17:11] jhfisc: has joined #RubyOnRails
[00:17:13] pharma_joe: has joined #RubyOnRails
[00:29:24] jhfisc: has joined #RubyOnRails
[00:41:39] jhfisc: has joined #RubyOnRails
[00:47:55] jhfisc: has joined #RubyOnRails
[00:54:31] jhfisc: has joined #RubyOnRails
[00:58:08] mtkd: has joined #RubyOnRails
[00:59:26] bruno-: has joined #RubyOnRails
[01:01:42] atrius: has joined #RubyOnRails
[01:02:19] jhfisc: has joined #RubyOnRails
[01:02:36] Rodya_: has joined #RubyOnRails
[01:06:15] apparition: has joined #RubyOnRails
[01:06:47] mtkd: has joined #RubyOnRails
[01:12:51] ResidentBiscuit: has joined #RubyOnRails
[01:14:53] jhfisc: has joined #RubyOnRails
[01:26:48] bronson: has joined #RubyOnRails
[01:43:07] jhfisc: has joined #RubyOnRails
[01:45:43] jmay: has joined #RubyOnRails
[01:51:00] umaaji: has joined #RubyOnRails
[01:51:21] xaviergmail: has joined #RubyOnRails
[01:58:09] jhfisc: has joined #RubyOnRails
[02:03:11] jhfisc: has joined #RubyOnRails
[02:06:17] jhfisc: has joined #RubyOnRails
[02:13:46] Jameser: has joined #RubyOnRails
[02:13:54] jmay: has joined #RubyOnRails
[02:18:06] jhfisc: has joined #RubyOnRails
[02:21:15] jhfisc: has joined #RubyOnRails
[02:22:50] agent_white: has joined #RubyOnRails
[02:24:27] sevenseacat: has joined #RubyOnRails
[02:26:42] jhfisc: has joined #RubyOnRails
[02:38:23] jhfisc: has joined #RubyOnRails
[02:41:44] jmay: has joined #RubyOnRails
[02:46:51] jhfisc: has joined #RubyOnRails
[02:53:17] milesmatthias: has joined #RubyOnRails
[02:54:09] jhfisc: has joined #RubyOnRails
[02:54:11] irishfromua: has joined #RubyOnRails
[03:00:21] sandstrom: has joined #RubyOnRails
[03:03:57] Rodya_: has joined #RubyOnRails
[03:05:00] jhfisc: has joined #RubyOnRails
[03:09:11] jhfisc: has joined #RubyOnRails
[03:11:42] mtkd: has joined #RubyOnRails
[03:15:57] jhfisc: has joined #RubyOnRails
[03:23:28] jmay: has joined #RubyOnRails
[03:27:01] jhfisc: has joined #RubyOnRails
[03:27:59] bronson: has joined #RubyOnRails
[03:33:11] jhfisc: has joined #RubyOnRails
[03:39:13] jhfisc: has joined #RubyOnRails
[03:42:08] jhfisc: has joined #RubyOnRails
[03:50:05] knight33: has joined #RubyOnRails
[03:53:54] jhfisc: has joined #RubyOnRails
[04:03:01] srinidhi: has joined #RubyOnRails
[04:04:46] Rodya_: has joined #RubyOnRails
[04:08:35] jhfisc: has joined #RubyOnRails
[04:12:05] workmad3: has joined #RubyOnRails
[04:28:10] jmay: has joined #RubyOnRails
[04:31:30] jhfisc: has joined #RubyOnRails
[04:42:54] jhfisc: has joined #RubyOnRails
[04:44:19] gusrub: has joined #RubyOnRails
[04:45:08] Rodya_: has joined #RubyOnRails
[04:57:58] gusrub_: has joined #RubyOnRails
[05:03:21] jhfisc: has joined #RubyOnRails
[05:09:24] jhfisc: has joined #RubyOnRails
[05:09:27] gusrub: has joined #RubyOnRails
[05:14:28] srinidhi: has joined #RubyOnRails
[05:14:29] jhfisc: has joined #RubyOnRails
[05:15:48] srinidhi: has joined #RubyOnRails
[05:24:18] jhfisc: has joined #RubyOnRails
[05:29:03] bronson: has joined #RubyOnRails
[05:32:54] atrius: has joined #RubyOnRails
[05:34:03] srinidhi: has joined #RubyOnRails
[05:35:53] jhfisc: has joined #RubyOnRails
[05:42:20] conta: has joined #RubyOnRails
[05:44:49] jhfisc: has joined #RubyOnRails
[05:51:11] jhfisc: has joined #RubyOnRails
[05:53:42] snickers: has joined #RubyOnRails
[05:54:23] jhfisc: has joined #RubyOnRails
[05:58:36] drale2k_: has joined #RubyOnRails
[06:02:26] maryo: has joined #RubyOnRails
[06:05:29] mtkd: has joined #RubyOnRails
[06:07:10] jhfisc: has joined #RubyOnRails
[06:07:40] maryo: I have used a puts statement inside my Rails application for troubleshooting purpose but it gives me values "NaN". How do i find out the value of "NaN" ?
[06:10:02] jhfisc: has joined #RubyOnRails
[06:10:16] havenwood: maryo: NaN isn't a valid IEEE floating point number, so it's value is "not a number."
[06:11:03] havenwood: maryo: 0/0.0 #=> NaN
[06:11:22] havenwood: maryo: Might you be dividing 0.0 by 0.0?
[06:12:56] havenwood: "You have to understand what NaN is, before playing with it." ~Matz
[06:13:16] maryo: havenwood, yep thank you so much. Got an idea now
[06:13:31] havenwood: maryo: no prob, good luck tracking it down!
[06:15:09] roshanavand: has joined #RubyOnRails
[06:16:19] jhfisc: has joined #RubyOnRails
[06:20:44] AzaToth: has joined #RubyOnRails
[06:26:00] Rodya_: has joined #RubyOnRails
[06:27:10] jhfisc: has joined #RubyOnRails
[06:35:07] FastJack: has joined #RubyOnRails
[06:41:11] jhfisc: has joined #RubyOnRails
[06:47:50] jhfisc: has joined #RubyOnRails
[06:51:00] conta: has joined #RubyOnRails
[07:04:10] jhfisc: has joined #RubyOnRails
[07:13:24] ianfleeton: has joined #RubyOnRails
[07:14:05] paranoicsan: has joined #RubyOnRails
[07:15:11] jhfisc: has joined #RubyOnRails
[07:20:33] jhfisc: has joined #RubyOnRails
[07:23:36] crst: has joined #RubyOnRails
[07:25:27] roshanavand: has joined #RubyOnRails
[07:26:31] Rodya_: has joined #RubyOnRails
[07:28:36] crst: Good morning. I put my app into production. rails s runs behind an apache proxy. The assets are precompiled but I still get 404 for them. Any idea what's the problem here? I's better to avoid setting config.public_file_server.enabled = true, right?
[07:29:54] bronson: has joined #RubyOnRails
[07:31:29] tbuehlmann_: crst: sounds like your apache isn't serving them?
[07:31:39] crst: tbuehlmann_: yeah
[07:31:48] xco: has joined #RubyOnRails
[07:32:14] jhfisc: has joined #RubyOnRails
[07:32:38] crst: tbuehlmann_: do you maybe have an example apache vhost config?
[07:33:00] tbuehlmann_: nope, but I'm sure the interwebz has
[07:37:35] xco: morning. anyone with some ideas on this? https://stackoverflow.com/questions/46041939/minitest-runs-tests-twice or clues?
[07:38:08] tbuehlmann_: xco: can you prepare a minimal reproduction app that we can inspect?
[07:39:54] sandstrom: has joined #RubyOnRails
[07:41:13] jhfisc: has joined #RubyOnRails
[07:43:05] xco: yeah checking
[07:46:30] maryo: I am troubleshooting a Rails application. And for one of the value it gives the result as 1.49.. Looking into the logs, i see for the calculation it takes this "#<BigDecimal:5820d20,'0.511126869E0',9(27)>". How is this calculation done? Can someone shed some lights?
[07:46:48] jhfisc: has joined #RubyOnRails
[07:46:54] sevenseacat: has joined #RubyOnRails
[07:47:54] mars777: has joined #RubyOnRails
[07:50:11] tbuehlmann_: maryo: I don't get the question yet. what's the problem? can you share some code?
[07:50:39] dminuoso: maryo: BigDecimal is an extension of IEEE 754 floats
[07:51:17] dminuoso: maryo: It's basically a ruby internal way of "scientific notation" if you want.
[07:52:28] dminuoso: maryo: Though that bit about IEEE 754 is not strictly true I guess.
[07:52:55] jhfisc: has joined #RubyOnRails
[08:01:14] maryo: dminuoso, thank you so much
[08:04:06] dionysus69: has joined #RubyOnRails
[08:05:10] one_zero: has joined #RubyOnRails
[08:06:52] ur5us: has joined #RubyOnRails
[08:07:02] jhfisc: has joined #RubyOnRails
[08:10:32] jhfisc: has joined #RubyOnRails
[08:11:46] mikecmpbll: has joined #RubyOnRails
[08:15:31] plop: has joined #RubyOnRails
[08:23:11] Tempesta: has joined #RubyOnRails
[08:23:11] jhfisc: has joined #RubyOnRails
[08:25:41] kapil___: has joined #RubyOnRails
[08:27:13] Rodya_: has joined #RubyOnRails
[08:29:47] marr: has joined #RubyOnRails
[08:31:08] jhfisc: has joined #RubyOnRails
[08:31:24] karmayogi23: has joined #RubyOnRails
[08:31:36] funkytwig: has joined #RubyOnRails
[08:31:42] ur5us: has joined #RubyOnRails
[08:40:52] lxsameer: has joined #RubyOnRails
[08:47:49] jhfisc: has joined #RubyOnRails
[08:52:40] jhfisc: has joined #RubyOnRails
[08:54:45] ams__: has joined #RubyOnRails
[08:55:26] solars: has joined #RubyOnRails
[08:55:40] inky: has joined #RubyOnRails
[08:55:59] solars: quick question: does anyone know if activerecord ads a default order by .id when using .select in postgresql as opposed to mysql?
[08:56:11] dminuoso: solars: it dos not
[08:56:28] dminuoso: Or at least I really hope it doesnt.
[08:56:45] dminuoso: AR has no business imposing an order unless I tell it to, it could ruin good plans.
[08:59:11] jhfisc: has joined #RubyOnRails
[09:01:41] DaveTaboola: has joined #RubyOnRails
[09:02:54] ayonkhan: has joined #RubyOnRails
[09:05:35] matthewd: It does if you call .first
[09:07:38] solars: matthewd: good point - do you know if this is different from mysql to postgresql? and, how can I dump the query that is used in this case? as .first.to_sql won't work I guess
[09:08:02] matthewd: No, it doesn't differ between adapters
[09:08:18] matthewd: Simplest option is to check the logged query
[09:09:22] jhfisc: has joined #RubyOnRails
[09:09:27] solars: hm weird - I've got a mysql query (custom query, using .select) that I need to convert to pgsql and pgsql complains about the missing id
[09:09:33] solars: but it's working in mysql
[09:09:41] dminuoso: matthewd: Is there a way to not impose that order even with .first?
[09:09:49] matthewd: dminuoso: #take
[09:10:07] dminuoso: No way, I can #take and #drop on a relation?
[09:10:19] dminuoso: ACTION is happy
[09:10:52] matthewd: It's an Enumerable, so yes :)
[09:11:38] matthewd: solars: Oh, that'll be a backend difference in how they behave with columns not covered by grouping
[09:17:36] dminuoso: matthewd: Oh what a shame. I was hoping for take to be lazy.
[09:18:18] dminuoso: But I guess #limit gives me that
[09:18:21] matthewd: It is.. though I doubt drop is
[09:18:57] dminuoso: Abis::House.all.take(1).class #=> Array
[09:19:32] matthewd: Oh, that sort of lazy.. yeah, no, that's limit
[09:20:13] jhfisc: has joined #RubyOnRails
[09:20:49] sathish: has joined #RubyOnRails
[09:20:49] matthewd: .. with attendant potential for surprise
[09:21:19] sathish: I have SavingsScheme model and an instance method has_pending_dues defined in the model which simply returns true or false. How do I query all SavingsScheme that has_pending_dues so that I can send batch emails
[09:22:32] matthewd: Post.where('score < 5').order(:score).limit(1).where('score > 3').take.score == 4; Post.where('score < 5').order(:score).take(1).select {|x| x.score > 3 }.take == nil
[09:23:02] tbuehlmann_: sathish: it depends on the method. what does it do exactly?
[09:23:08] matthewd: sathish: Enumerable#select will do it, but inefficiently
[09:23:25] matthewd: Otherwise, you need to not have an instance method
[09:25:22] defsdoor: has joined #RubyOnRails
[09:25:40] sathish: tbuehlmann_, the method just checks if the upcoming_due date field in the db is within 7 days from now and returns true or false. This is the actual code https://paste.ubuntu.com/25471180/
[09:26:05] tbuehlmann_: okay, great, you could make it a scope then
[09:26:38] tbuehlmann_: that scope would query for records having that condition
[09:27:30] sathish: tbuehlmann_, Great. Thanks. will try that now. Is it possible to use a gem like whenever and send daily reminders for all pending dues using that scope?
[09:27:31] defsdoor: sathish, that method is returning false purely from the Date > comparison, so you might as well remove the if true end and return true in the same manner
[09:28:16] defsdoor: otherwuse if you are explicitly returning true, for consistency of approach add an else false
[09:28:35] tbuehlmann_: sathish: sure, you can do that
[09:29:13] sathish: defsdoor, sure will add an else false
[09:29:47] defsdoor: sathish, (personally I'd just make it def has_pending_due ; Date.current > self.upcoming_due - 7.days ; end
[09:31:13] bronson: has joined #RubyOnRails
[09:31:31] sathish: defsdoor, Is this a one liner? I don't understand what the ; is doing? any pointers?
[09:32:24] jhfisc: has joined #RubyOnRails
[09:32:38] sathish: Aww right. Is it like just the check itself is made to return true. If the condition is not met it will return false automatically?
[09:37:47] tbuehlmann_: sathish: yeah, exactly
[09:38:30] sathish: That is lot prettier thanks a ton tbuehlmann_ defsdoor
[09:39:34] bladdezz: has joined #RubyOnRails
[09:41:48] solars: btw is there any way to omit the ordering by id (with .select and .first) if I only need one record? The result contains sum only so an order doesn't make sense
[09:42:02] defsdoor: sathish, it returns the value of the condition - which is either true or false
[09:42:56] sathish: defsdoor, Got it. It is more beautiful than if else. Thanks.
[09:43:01] defsdoor: solars, does it do any harm ? There's always an order - if not specified the DB decides
[09:43:21] dminuoso: defsdoor: there's not an order
[09:43:39] dminuoso: defsdoor: If none is specified the order is unstable and can actually change across subsequent queries.
[09:44:09] defsdoor: dminuoso, the DB decides
[09:44:54] dminuoso: defsdoor: In SQL terms no. If none is specified, then there is no order.
[09:45:07] dminuoso: Whether or not the database decides to impose something in this case is irrelevant.
[09:45:19] jhfisc: has joined #RubyOnRails
[09:45:22] defsdoor: dminuoso, i think you are arguing the toss
[09:46:37] crst: Does that https://github.com/plataformatec/devise#controller-filters-and-helpers mean to put protect_from_forgery prepend: true application_controller.rb ? Everything works on local dev but on prod I get authenticity token error :(
[09:46:57] crst: *put in app_controller
[09:49:51] dminuoso: defsdoor: An ordering means there must be some semantic where you can take two tuples and say whether one is lt/eq/gt than the other. If you do not specify an order, the result has no such ordering.
[09:50:13] dminuoso: It's simply unordered.
[09:55:20] ferr: has joined #RubyOnRails
[09:55:38] dionysus69: hello everyone
[09:56:36] dionysus69: so I am preselecting radio tags in this way, https://gist.github.com/anonymous/ccdebe1416469d44111f9a5262b72aba, is there a better way?
[09:56:45] defsdoor: solars, - https://github.com/rails/rails/issues/12623
[09:56:48] ur5us: has joined #RubyOnRails
[09:56:53] jhfisc: has joined #RubyOnRails
[09:58:07] ayonkhan: has joined #RubyOnRails
[09:59:16] defsdoor: solars, this is the specific reason here - https://github.com/rails/rails/pull/5153
[10:04:53] konos5_: has joined #RubyOnRails
[10:07:14] x4ec7: has joined #RubyOnRails
[10:08:22] x4ec7: has left #RubyOnRails: ("ERC (IRC client for Emacs 26.0.50)")
[10:11:35] apparition: has joined #RubyOnRails
[10:19:46] ayonkhan: has joined #RubyOnRails
[10:24:33] Jameser: has joined #RubyOnRails
[10:30:08] Rodya_: has joined #RubyOnRails
[10:35:08] Qchmqs__: has joined #RubyOnRails
[10:46:49] Ergo: has joined #RubyOnRails
[10:55:31] xcesariox: has joined #RubyOnRails
[11:04:57] sandstrom: has joined #RubyOnRails
[11:05:49] solars: defsdoor: thanks!
[11:13:13] apparition47: has joined #RubyOnRails
[11:18:21] crst: What's the reason I get `ActionController::InvalidAuthenticityToken in Devise::SessionsController#create` on a server but my identical setup on localhost works fine?
[11:22:24] noob_on_rails: has joined #RubyOnRails
[11:22:35] noob_on_rails: hey guys , any idea why i get nil here ? https://gist.github.com/frcake/3b73894399955352eeb2650fdc6da442
[11:23:01] noob_on_rails: can't i access the created record right after ?
[11:23:32] gheegh: has joined #RubyOnRails
[11:24:14] snickers: has joined #RubyOnRails
[11:24:56] noob_on_rails: oh the query is wrong
[11:31:05] Rodya_: has joined #RubyOnRails
[11:32:20] bronson: has joined #RubyOnRails
[11:39:01] xco: has joined #RubyOnRails
[11:41:44] srinidhi: has joined #RubyOnRails
[11:43:11] ldnunes: has joined #RubyOnRails
[11:43:17] fumk: has joined #RubyOnRails
[11:46:01] konos5_: has joined #RubyOnRails
[11:48:20] bruno-: has joined #RubyOnRails
[11:57:58] roshanavand: why would someone create an instance method with the same name as a database field?
[11:59:54] noob_on_rails: roshanavand: ?
[12:02:00] roshanavand: I'm looking at a code, where in the model an instance method is named the same as a db field
[12:02:00] roshanavand: model has a field named 'template_fields' and an instance named template_fields too.
[12:02:01] roshanavand: What would be the reason and what could be the effect of doing such thing?
[12:02:34] noob_on_rails: is he giving like any arguments to the method ?
[12:03:08] noob_on_rails: you mean an instance method
[12:03:14] noob_on_rails: not just @template_fields
[12:03:31] noob_on_rails: dunno haven't tried that
[12:03:32] roshanavand: an instance method
[12:04:13] noob_on_rails: does the data persist in the db?
[12:04:20] noob_on_rails: or are they attribute: .
[12:11:09] KeyJoo: has joined #RubyOnRails
[12:16:22] roshanavand: I think I asked my question wrong, I'm more interested to know what would be the side effect of naming your method the same as a db field in your model
[12:17:16] gheegh: has joined #RubyOnRails
[12:18:59] alexday: I have a small problem. in rails 4.2. is there a way to get the error details key when an error is generated by activemodel validations. like :name_or_email_blank this https://github.com/rails/rails/blob/master/activemodel/lib/active_model/errors.rb#L267
[12:20:28] knight33: has joined #RubyOnRails
[12:24:30] matthewd: roshanavand: The explicit method overrides the implicit one from the attribute
[12:25:33] matthewd: The most reasonable use case would be to present the underlying DB value in a more objecty form
[12:26:58] matthewd: alexday: I'm not clear what you're asking.. you seem to have found a suitable method?
[12:29:08] keegnotrub: has joined #RubyOnRails
[12:29:52] roshanavand: matthewd: can you think of any case that doing so would cause an error?
[12:30:27] matthewd: I can think of many things. Do you have an actual question?
[12:31:51] Rodya_: has joined #RubyOnRails
[12:33:16] roshanavand: No, I just need a general understanding whether this is an acceptable way of writing code or not
[12:33:33] alexday: matthewd, that new @details in the activemodel errors in new version of rails, is it possible to do something similar in rails 4.2? One way would be to take the relevant pieces of code from the new code and monkey patch in my codebase. but is their a less intrusive way to do this
[12:35:55] spheric: has joined #RubyOnRails
[12:36:39] spheric_: has joined #RubyOnRails
[12:39:17] fumk: puissant!
[12:42:38] matthewd: roshanavand: Yes, it's fairly common
[12:43:19] matthewd: alexday: Oh, right, that was added more recently
[12:44:14] alexday: yeah, so is there a way to get that symbol in the older rails version?
[12:44:46] matthewd: alexday: Best suggestion would be to upgrade. 4.2 -> 5.0 is nothing like the older, much harder, version bumps. Otherwise, yeah, backport the relevant stuff.
[12:45:26] matthewd: alexday: A glance at the equivalent method in 4.2 confirms it doesn't store the symbol anywhere: the message is immediately translated to the final string, and that's what gets kept. So no, no easy answers.
[12:46:54] spheric: has joined #RubyOnRails
[12:53:31] arBmind: has joined #RubyOnRails
[12:55:56] tacoboy: has joined #RubyOnRails
[12:57:01] dviola: has joined #RubyOnRails
[12:57:15] crst: I'm new to testing, what technology should I invest my time to learn? I've read that chrome headless changed a lot and selenium is kind of eol, not sure if I got that correctly.
[13:04:06] inky: has joined #RubyOnRails
[13:04:55] alexday: I got a gem, but that still does that patching. I guess I will patch as well.
[13:06:35] xco: has joined #RubyOnRails
[13:12:00] xco_: has joined #RubyOnRails
[13:15:47] jhfisc: has joined #RubyOnRails
[13:15:54] dminuoso: matthewd: I want serializable relations! :S
[13:20:24] dminuoso: Imagine I could drive active record straight from my react frontend
[13:21:22] daydreamm: has joined #RubyOnRails
[13:23:41] mars777: has joined #RubyOnRails
[13:25:40] jhfisc: has joined #RubyOnRails
[13:26:35] matthewd: dminuoso: Pretty sure relation is actually marshalable, though that's maybe not quite what you're after ;)
[13:32:35] Sylario: has joined #RubyOnRails
[13:32:37] dminuoso: matthewd: Weeew! (:
[13:33:18] bronson: has joined #RubyOnRails
[13:34:34] dminuoso: matthewd: Why shouldn't it be what I want?
[13:36:07] matthewd: You presumably want to send it to/through the client. Unmarshalling a user-supplied string seems.. unwise.
[13:36:26] ule: has left #RubyOnRails: ()
[13:39:14] keegnotrub: has joined #RubyOnRails
[13:42:09] jhfisc: has joined #RubyOnRails
[13:48:00] jhfisc: has joined #RubyOnRails
[13:49:00] S007: has joined #RubyOnRails
[13:57:22] jhfisc: has joined #RubyOnRails
[13:57:45] keegnotrub_: has joined #RubyOnRails
[14:11:23] konos5_: has joined #RubyOnRails
[14:11:36] keegnotrub_: has joined #RubyOnRails
[14:14:42] dminuoso: What could possibly go wrong?
[14:15:16] theunraveler: has joined #RubyOnRails
[14:15:50] soahccc: has joined #RubyOnRails
[14:25:12] jhfisc: has joined #RubyOnRails
[14:25:37] JoshL: according to the webpacker README on github, webpack compiles on demand and there's no need to run the dev server or webpack watcher manually unless you want to. However I am getting the "Is webpack still compiling?" error no matter what
[14:25:45] JoshL: Is there something else I need to do to enable on-demand compiling in dev?
[14:26:17] JoshL: (brand new Rails 5.1.3 project, btw)
[14:33:20] Rodya_: has joined #RubyOnRails
[14:33:37] mikecmpb_: has joined #RubyOnRails
[14:34:13] chouhoulis: has joined #RubyOnRails
[14:38:45] bruno-: has joined #RubyOnRails
[14:40:33] JoshL: ah I was on a 2.0 version of webpacker for some reason
[14:42:25] jhfisc: has joined #RubyOnRails
[14:46:38] jmay: has joined #RubyOnRails
[14:47:49] keegnotrub: has joined #RubyOnRails
[14:48:48] ResidentBiscuit: has joined #RubyOnRails
[14:49:06] knight33: has joined #RubyOnRails
[14:53:10] jhfisc: has joined #RubyOnRails
[14:54:16] Or1on: has joined #RubyOnRails
[14:57:03] digitalfiz: has left #RubyOnRails: ()
[14:58:15] jhfisc: has joined #RubyOnRails
[14:59:20] daveomcd: has joined #RubyOnRails
[15:06:57] Rodya_: has joined #RubyOnRails
[15:08:40] keegnotrub_: has joined #RubyOnRails
[15:13:13] snickers: has joined #RubyOnRails
[15:17:50] jhfisc: has joined #RubyOnRails
[15:21:19] drale2k_: has joined #RubyOnRails
[15:25:08] mtkd: has joined #RubyOnRails
[15:26:15] mikecmpbll: has joined #RubyOnRails
[15:30:58] irishfromua: has joined #RubyOnRails
[15:31:09] jhfisc: has joined #RubyOnRails
[15:31:28] jackhum: has joined #RubyOnRails
[15:31:54] cagomez: has joined #RubyOnRails
[15:34:51] bronson: has joined #RubyOnRails
[15:38:29] jhfisc: has joined #RubyOnRails
[15:39:35] crst: has joined #RubyOnRails
[15:42:16] gusrub: has joined #RubyOnRails
[15:43:52] jhfisc: has joined #RubyOnRails
[15:48:32] Skull0Inc: has joined #RubyOnRails
[15:49:01] roshanavand: has joined #RubyOnRails
[15:51:36] gusrub: has joined #RubyOnRails
[15:51:57] jhfisc: has joined #RubyOnRails
[15:56:14] mikecmpbll: has joined #RubyOnRails
[15:56:26] jhfisc: has joined #RubyOnRails
[16:00:04] gusrub: has joined #RubyOnRails
[16:01:52] jhfisc: has joined #RubyOnRails
[16:10:27] aajjbb: has joined #RubyOnRails
[16:12:29] jhfisc: has joined #RubyOnRails
[16:17:52] dblessing: has joined #RubyOnRails
[16:18:42] jhfisc: has joined #RubyOnRails
[16:19:14] DrYockel: has joined #RubyOnRails
[16:20:51] [Butch]: has joined #RubyOnRails
[16:26:58] jhfisc: has joined #RubyOnRails
[16:32:01] Rodya_: has joined #RubyOnRails
[16:33:37] jhfisc: has joined #RubyOnRails
[16:35:47] cagomez: has joined #RubyOnRails
[16:37:16] Rodya__: has joined #RubyOnRails
[16:42:00] jhfisc: has joined #RubyOnRails
[16:42:35] bruno-_: has joined #RubyOnRails
[16:47:42] rakm: has joined #RubyOnRails
[16:48:00] jhfisc: has joined #RubyOnRails
[16:48:49] orbyt_: has joined #RubyOnRails
[16:53:35] dionysus69: has joined #RubyOnRails
[16:53:59] jhfisc: has joined #RubyOnRails
[16:58:14] ishahnaz: has joined #RubyOnRails
[17:01:02] drale2k_: has joined #RubyOnRails
[17:01:31] mikecmpbll: has joined #RubyOnRails
[17:06:18] one_zero: has joined #RubyOnRails
[17:06:26] jhfisc: has joined #RubyOnRails
[17:07:38] xco: has joined #RubyOnRails
[17:08:11] Rodya_: has joined #RubyOnRails
[17:09:13] milesmatthias: has joined #RubyOnRails
[17:11:04] Torrieri: has joined #RubyOnRails
[17:12:18] jhfisc: has joined #RubyOnRails
[17:15:59] one_zero: has joined #RubyOnRails
[17:17:54] jhfisc: has joined #RubyOnRails
[17:24:49] srinidhi: has joined #RubyOnRails
[17:26:06] xco: has joined #RubyOnRails
[17:27:38] jhfisc: has joined #RubyOnRails
[17:27:46] Aherin: has joined #RubyOnRails
[17:29:03] Rodya_: has joined #RubyOnRails
[17:29:39] hahuang65: has joined #RubyOnRails
[17:29:59] jackhum: has joined #RubyOnRails
[17:31:07] jackhum: has joined #RubyOnRails
[17:32:17] jackhum: has joined #RubyOnRails
[17:33:14] kies: has joined #RubyOnRails
[17:33:33] jhfisc: has joined #RubyOnRails
[17:33:58] jackhum: has joined #RubyOnRails
[17:34:49] jackhum: has joined #RubyOnRails
[17:35:38] bronson: has joined #RubyOnRails
[17:35:43] rakm: does params.require(:test).permit(:metadata) rquire that metadata is the right type for the db column? strong params is ignoring "metadata" key in params when sent as key/val pairs, but seeing it when it's sent as stringified
[17:36:28] milesmatthias: has joined #RubyOnRails
[17:37:07] rakm: ah never min, i need to permit the scalar value
[17:46:41] fryguy: has joined #RubyOnRails
[17:52:10] sinjin1985: has joined #RubyOnRails
[17:52:25] sinjin1985: hey guys, was helper_method removed from rails 5.1? I am getting undefined method `helper_method' for ApplicationHelper:Module (NoMethodError)
[17:53:52] matthewd: sinjin1985: http://api.rubyonrails.org/
[17:54:52] tenderlove: has joined #RubyOnRails
[17:55:12] orbyt_: has joined #RubyOnRails
[17:57:23] jhfisc: has joined #RubyOnRails
[17:57:31] gusrub: has joined #RubyOnRails
[18:02:09] daydreamm: has joined #RubyOnRails
[18:06:11] xco_: has joined #RubyOnRails
[18:10:42] fmartingr: has joined #RubyOnRails
[18:13:55] jhfisc: has joined #RubyOnRails
[18:18:09] Skull0Inc: has joined #RubyOnRails
[18:21:42] FrostCandy: has joined #RubyOnRails
[18:25:13] FrostCandy: I'm doing Foo = JSON.parse(responce.body), Foo.inspect's output = {"success"=>"true"}, but when I type puts Foo[:success] it tells me no implicit conversion of nil into String. It shouldn't be nil though should it?
[18:26:01] cagomez: has joined #RubyOnRails
[18:26:45] FrostCandy: Oh wow, Foo['success'] worked. I really thought I could use a symbol there.
[18:29:33] Rodya_: has joined #RubyOnRails
[18:30:15] cagomez: has joined #RubyOnRails
[18:30:36] gusrub: has joined #RubyOnRails
[18:32:14] rakm: has joined #RubyOnRails
[18:33:10] cagomez: has joined #RubyOnRails
[18:34:54] lxsameer: has joined #RubyOnRails
[18:42:34] cagomez: has joined #RubyOnRails
[18:51:11] tanuki4: has joined #RubyOnRails
[18:55:00] xco: has joined #RubyOnRails
[18:57:02] orbyt_: has joined #RubyOnRails
[19:04:46] netzfisch: has joined #RubyOnRails
[19:05:23] mtkd: has joined #RubyOnRails
[19:15:57] ghormoon: has joined #RubyOnRails
[19:26:30] cagomez: has joined #RubyOnRails
[19:28:47] milesmatthias: has joined #RubyOnRails
[19:29:15] Skull0Inc: JSON.parse(responce.body) or JSON.parse(response.body)
[19:29:40] arBmind: has joined #RubyOnRails
[19:29:54] milesmat_: has joined #RubyOnRails
[19:31:23] jackhum: has joined #RubyOnRails
[19:31:31] milesmatthias: has joined #RubyOnRails
[19:32:52] SteenJobs: has joined #RubyOnRails
[19:36:32] bronson: has joined #RubyOnRails
[19:39:26] orbyt_: has joined #RubyOnRails
[19:39:48] maryo: has joined #RubyOnRails
[19:40:13] netzfisch: has joined #RubyOnRails
[19:46:17] gusrub: has joined #RubyOnRails
[19:46:28] milesmat_: has joined #RubyOnRails
[19:46:39] Rodya_: has joined #RubyOnRails
[19:47:39] netzfisch: has joined #RubyOnRails
[19:48:44] FrostCandy: Skull0inc: wow good catch. Now I'll have to try with a symbol and see if that was my error heh
[19:53:14] FrostCandy: Skull0inc: naw, just a typo in chat. parsed_json[:symbol] = nil parsed_json['var'] = string
[19:54:33] milesmatthias: has joined #RubyOnRails
[20:17:23] dviola: has joined #RubyOnRails
[20:27:04] cagomez: has joined #RubyOnRails
[20:31:58] sandstrom: has joined #RubyOnRails
[20:32:07] FastJack: has joined #RubyOnRails
[20:34:04] mrbubbles: has joined #RubyOnRails
[20:34:24] mrbubbles: Good evening folks
[20:35:03] mrbubbles: Raandom Q - let's say I built a website dashboard in Rails that I wanted to run some linux commands. What would be the best way to do that? And (if possible) capture stdout and output it on the screen
[20:35:04] deevil: has joined #RubyOnRails
[20:35:34] jmay: has joined #RubyOnRails
[20:37:22] deevil: hey everybody. I’m hoping somebody can help explain this for me.. whenever I run migrations, or regenerate the schema.rb file, I’m getting “id: :serial” on all the “create_table” lines.. None of the other developers I work with are getting that when they regenerate schema.rb.. I can’t think of anything different about my setup, so I’m not sure why it’s inconsistent..?
[20:43:07] cagomez: has joined #RubyOnRails
[20:47:43] jackhum: has joined #RubyOnRails
[20:51:49] roshanavand: has joined #RubyOnRails
[20:52:41] a0b: has joined #RubyOnRails
[20:53:41] daydreamm: has joined #RubyOnRails
[20:55:55] keegnotrub: has joined #RubyOnRails
[21:01:25] orbyt_: has joined #RubyOnRails
[21:02:57] mtkd: has joined #RubyOnRails
[21:06:25] milesmatthias: has joined #RubyOnRails
[21:06:58] inky: has joined #RubyOnRails
[21:13:24] conta: has joined #RubyOnRails
[21:23:00] brent__: has joined #RubyOnRails
[21:23:47] fidalgo: has joined #RubyOnRails
[21:28:28] jmay: has joined #RubyOnRails
[21:32:32] cagomez: has joined #RubyOnRails
[21:32:57] xelkarin: has joined #RubyOnRails
[21:35:54] cagomez: has joined #RubyOnRails
[21:37:00] hahuang65: has joined #RubyOnRails
[21:37:53] bronson: has joined #RubyOnRails
[21:38:48] gusrub: has joined #RubyOnRails
[21:43:45] drale2k_: has joined #RubyOnRails
[21:45:13] flaviocamilo: has joined #RubyOnRails
[21:51:23] daydreamm: has joined #RubyOnRails
[21:56:29] mtkd: has joined #RubyOnRails
[21:59:20] workmad3: has joined #RubyOnRails
[22:06:50] dionysus70: has joined #RubyOnRails
[22:10:21] knight33: has joined #RubyOnRails
[22:11:12] a0b: Hi there! What is the best way to configure redis in the rails4 + puma? So far I’m initializing it in dedicated initializer as connection pool and assigning to the global variable $redis is this a right way to go?
[22:12:05] mtkd: has joined #RubyOnRails
[22:13:03] a0b: https://gist.github.com/anonymous/3f58c43a67613ec4971a8126b687dbb6
[22:13:15] a0b: this is a gist with example
[22:15:07] orbyt_: has joined #RubyOnRails
[22:15:10] xelkarin: has joined #RubyOnRails
[22:15:44] xelkarin: I'm having a weird migration problem with rails 4.2.9.
[22:16:11] ForeignBiscuit: has joined #RubyOnRails
[22:16:43] xelkarin: I run 'rake db:drop db:create db:migrate db:seed' and I get 'ActiveRecord::UnknownAttributeError' when trying to access the last migrated column while seeding.
[22:17:02] xelkarin: Looking at the table it seems the column wasn't created yet.
[22:17:27] xelkarin: If I run 'rake db:drop db:create db:migrate' and 'rake db:seed' separately the column is created and everything runs fine.
[22:17:57] JR042444__: has joined #RubyOnRails
[22:21:51] hammer065: has joined #RubyOnRails
[22:22:48] cagomez: has joined #RubyOnRails
[22:26:53] cagomez: has joined #RubyOnRails
[22:29:56] cagomez: has joined #RubyOnRails
[22:32:22] flaviocamilo: has joined #RubyOnRails
[22:33:15] liamc: has joined #RubyOnRails
[22:34:19] cagomez: has joined #RubyOnRails
[22:34:25] ResidentBiscuit: has joined #RubyOnRails
[22:36:44] funkytwig: has joined #RubyOnRails
[22:43:14] jmay: has joined #RubyOnRails
[22:44:34] rakm: has joined #RubyOnRails
[22:56:12] gambl0re: has joined #RubyOnRails
[23:06:41] brent__: has joined #RubyOnRails
[23:19:54] tfitts: has joined #RubyOnRails
[23:20:32] tfitts: Is it possible to broadcast data from a console to a websocket channel in development mode? Does it require redis to be installed?
[23:33:17] qeevus: has joined #RubyOnRails
[23:38:46] bronson: has joined #RubyOnRails
[23:48:25] tenderlo_: has joined #RubyOnRails
[23:57:21] orbyt_: has joined #RubyOnRails