« Back to channel list

#RubyOnRails - 16 May 2018

« Back 1 day Forward 1 day »
[00:03:20] duderonomy: has joined #RubyOnRails
[00:16:29] za1b1tsu: has joined #RubyOnRails
[00:17:12] crankharder: has joined #RubyOnRails
[00:29:49] Dykam: has joined #RubyOnRails
[00:35:51] GodFather: has joined #RubyOnRails
[00:37:19] alfiemax: has joined #RubyOnRails
[00:49:33] prahal: has joined #RubyOnRails
[00:50:17] prahal: has joined #RubyOnRails
[00:56:59] duderonomy: has joined #RubyOnRails
[00:59:05] jottr: has joined #RubyOnRails
[01:01:46] Dykam: has joined #RubyOnRails
[01:12:46] Ericx2x: has joined #RubyOnRails
[01:18:25] alfiemax: has joined #RubyOnRails
[01:51:58] Jameser: has joined #RubyOnRails
[02:04:28] za1b1tsu: has joined #RubyOnRails
[02:11:51] fryguy: is there any best practice for getting useful recording of how long tests take to run when using time traveling in the test?
[02:13:44] alfiemax: has joined #RubyOnRails
[02:16:46] Saukk: has joined #RubyOnRails
[02:27:23] jottr: has joined #RubyOnRails
[02:35:24] Ericx2x: has joined #RubyOnRails
[02:54:38] orbyt_: has joined #RubyOnRails
[03:06:45] alfiemax: has joined #RubyOnRails
[03:07:21] mdel_: has joined #RubyOnRails
[03:13:44] sevenseacat: has joined #RubyOnRails
[03:32:29] darkhanb: has joined #RubyOnRails
[03:39:52] tuskkk___: Hello, can someone show me an example of a well documented rails app, am a bit confused on how to comment/document controller and its actions
[03:40:22] sevenseacat: in a lot of cases they wont be documented
[03:41:20] tuskkk___: not even like, what @params, @return etc?
[03:42:05] tuskkk___: why is that so? 😕
[03:43:17] sevenseacat: its not really necessary - would be the same repetitive things over and over again
[03:44:31] tuskkk___: ok, is that your personal opinion or a rails practice?
[03:45:31] sevenseacat: I've never seen it done in a rails app in seven years.
[03:46:03] tuskkk___: ok, thanks sevenseacat!
[03:46:12] sevenseacat: all controller action methods take the same parameters (none) and return the same thing
[03:46:41] tuskkk___: yes, so I will just add in code comments in the business logic...
[03:46:56] tuskkk___: makes my life easier :)
[03:47:18] tuskkk___: some examples I am seeing have, # POST /teams/:team_id/account/send_invoice(.:format)
[03:48:06] sevenseacat: if it would make you feel better to add route output like that, then do it, but then you have to keep it up to date
[03:52:22] za1b1tsu: has joined #RubyOnRails
[03:55:39] tuskkk___: sevenseacat: basically, its an assignment, I don't want them to pick up things like these. Would you be interested in proof reading a bit of my code here? Please!
[03:56:21] sevenseacat: well to be fair I don't know what your teachers will be marking on either
[03:57:20] tuskkk___: sevenseacat: not teachers, companies, people like you and me
[03:58:18] sevenseacat: I'm not sure how to respond to that
[03:59:16] tuskkk___: you said 7 years of writing this, I have been at it for 5 days, sure you'd have some great points
[03:59:49] Radar: tuskkk___: If you want to get a good idea of what a common Rails application looks like, then I would suggest going through this app from the book sevenseacat & I wrote: https://github.com/rubysherpas/r4ia_examples/tree/master/ticketee
[04:00:24] Radar: tuskkk___: If you send me a GitHub link and $50USD I'll review your code for you.
[04:00:37] mroutis: has joined #RubyOnRails
[04:00:47] tuskkk___: wow, its quite adorable how everyone asks money here
[04:01:29] Radar: It's quite adorable that people expect work for free. Been there, done that.
[04:01:32] sevenseacat: its almost like we do this for a living
[04:01:35] tuskkk___: aren't there any community guidelines here?
[04:01:37] Radar: "Can you just do one more thing?" No. No I can't.
[04:02:26] Radar: You want a code review from an expert and you've got at least one person in this channel with a decade's worth of experience that would be happy to pore through your code for an hour and to give you feedback, and in return they want $50.
[04:02:59] Radar: This isn't my first rodeo. I've reviewed ... probably close to 100 codebases by now.
[04:03:09] Radar: !rules is the closest thing we have to guidelines btw.
[04:03:09] helpa: https://gist.github.com/996779
[04:03:20] tuskkk___: nice ideology, its like 100 lines of code, probably a snippet...
[04:03:57] Radar: Poring through 100 lines would take me a few minutes. The writeup that follows would take me a larger amount of time -- depending on the code.
[04:04:18] Radar: For our coding tests at Culture Amp I submitted written feedback back to everyone, averaging 7.5 pages of feedback on... maybe 200 lines of code?
[04:04:55] Radar: It's not the poring that's the cost, it's the "knowing where to put the X" that's the cost.
[04:04:56] tuskkk___: maybe I will hire you when I have the client
[04:05:24] tuskkk___: its good to know that you have a price for your knowledge! Thanks!
[04:06:00] Radar: No problem :) Happy to discuss this with you further and to also put you in touch with people who've used my services too if that would help.
[04:06:49] Technodrome: has joined #RubyOnRails
[04:20:26] mroutis_: has joined #RubyOnRails
[04:28:15] jottr: has joined #RubyOnRails
[05:01:53] apeiros: has joined #RubyOnRails
[05:01:55] reber: has joined #RubyOnRails
[05:05:37] za1b1tsu: has joined #RubyOnRails
[05:06:34] KeyJoo: has joined #RubyOnRails
[05:25:10] tdy: has joined #RubyOnRails
[05:49:49] ur5us: has joined #RubyOnRails
[05:54:13] mtkd: has joined #RubyOnRails
[06:16:35] sidx64: has joined #RubyOnRails
[06:24:15] conta: has joined #RubyOnRails
[06:25:48] DoubleMalt: has joined #RubyOnRails
[06:26:58] dionysus69: has joined #RubyOnRails
[06:29:05] jottr: has joined #RubyOnRails
[06:31:55] srinidhi: has joined #RubyOnRails
[06:33:35] sidx64: has joined #RubyOnRails
[06:39:11] sidx64_: has joined #RubyOnRails
[06:39:39] schneider: has joined #RubyOnRails
[06:42:47] sidx64: has joined #RubyOnRails
[06:58:05] Technodrome: has joined #RubyOnRails
[07:09:48] srinidhi: has joined #RubyOnRails
[07:11:55] ariejan: has joined #RubyOnRails
[07:11:59] sidx64: has joined #RubyOnRails
[07:20:25] sidx64: has joined #RubyOnRails
[07:25:31] sidx64: has joined #RubyOnRails
[07:35:28] sidx64: has joined #RubyOnRails
[07:38:27] kapil___: has joined #RubyOnRails
[07:43:14] srinidhi: has joined #RubyOnRails
[07:49:50] roshanavand: has joined #RubyOnRails
[07:53:11] alfiemax: has joined #RubyOnRails
[07:53:55] mikecmpbll: has joined #RubyOnRails
[07:56:50] roamingdog: has joined #RubyOnRails
[07:57:52] marr: has joined #RubyOnRails
[07:59:13] crankharder: has joined #RubyOnRails
[07:59:19] mtkd: has joined #RubyOnRails
[08:13:08] roshanavand: has joined #RubyOnRails
[08:19:55] drale2k_: has joined #RubyOnRails
[08:20:14] Dykam: has joined #RubyOnRails
[08:29:04] sidx64: has joined #RubyOnRails
[08:30:02] jottr: has joined #RubyOnRails
[08:30:55] sidx64: has joined #RubyOnRails
[08:38:46] prahal: has joined #RubyOnRails
[08:40:57] nemesit: has joined #RubyOnRails
[08:41:26] nemesit: has joined #RubyOnRails
[08:41:52] nemesit: hm I get undefined method `before_filter' for AppointmentsController:Class Did you mean? before_action in rails 5.2 but I got no before_filter in any file
[08:43:02] crankharder: has joined #RubyOnRails
[08:43:10] sidx64: has joined #RubyOnRails
[08:44:58] tbuehlmann: nemesit: please gist the complete stacktrace for that error
[08:46:34] nemesit: found it, was an outdated gem
[08:46:38] nemesit: quite annoying
[08:56:19] DrYockel: has joined #RubyOnRails
[09:11:54] conta: has joined #RubyOnRails
[09:22:39] sidx64: has joined #RubyOnRails
[09:30:29] sidx64: has joined #RubyOnRails
[09:32:38] KeyJoo: has joined #RubyOnRails
[09:50:15] ur5us: has joined #RubyOnRails
[09:51:00] sidx64: has joined #RubyOnRails
[09:53:05] roamingdog: has joined #RubyOnRails
[09:56:49] ur5us: has joined #RubyOnRails
[09:58:23] ur5us: has joined #RubyOnRails
[09:59:14] ur5us: has joined #RubyOnRails
[10:00:41] Puffball: has joined #RubyOnRails
[10:04:24] mtkd: has joined #RubyOnRails
[10:04:28] blackmesa: has joined #RubyOnRails
[10:06:17] reber: has joined #RubyOnRails
[10:08:40] jottr: has joined #RubyOnRails
[10:09:56] sidx64: has joined #RubyOnRails
[10:16:51] prahal: has joined #RubyOnRails
[10:21:04] dionysus69: has joined #RubyOnRails
[10:36:46] roshanavand: has joined #RubyOnRails
[10:49:40] Fernando-Basso: has joined #RubyOnRails
[10:57:22] dionysus69: has joined #RubyOnRails
[10:59:07] DrYockel: has joined #RubyOnRails
[11:03:08] drale2k_: has joined #RubyOnRails
[11:04:44] apparition47: has joined #RubyOnRails
[11:04:55] sidx64: has joined #RubyOnRails
[11:11:12] psychoslave: has joined #RubyOnRails
[11:14:26] alfiemax: has joined #RubyOnRails
[11:33:08] drale2k_: has joined #RubyOnRails
[11:43:51] srinidhi: has joined #RubyOnRails
[11:54:15] drale2k_: has joined #RubyOnRails
[11:54:22] psychoslave: has joined #RubyOnRails
[12:02:44] Orxata_: has joined #RubyOnRails
[12:03:01] DrYockel: has joined #RubyOnRails
[12:03:03] Orxata_: could you help me understand what does it mean "csrf_detected"?
[12:03:14] Orxata_: I'm getting this error when using oauth2
[12:06:33] za1b1tsu: has joined #RubyOnRails
[12:08:54] mtkd: has joined #RubyOnRails
[12:17:10] Cavallari: has joined #RubyOnRails
[12:17:53] Cavallari1: has joined #RubyOnRails
[12:18:23] Aherin: has joined #RubyOnRails
[12:25:48] sidx64: has joined #RubyOnRails
[12:32:42] alfiemax: has joined #RubyOnRails
[12:38:22] dblessing: has joined #RubyOnRails
[12:39:22] nayena: has joined #RubyOnRails
[12:39:52] sidx64: has joined #RubyOnRails
[12:42:18] Dykam: has joined #RubyOnRails
[12:42:47] rafaeldelucena: has joined #RubyOnRails
[12:43:11] Cavallari1: has joined #RubyOnRails
[12:46:04] nayena: What is the recommended rails way to craft a route based on slugs, like this? /<category>/<article>, with the option of having multiple articles with the same name, despite being in different categories?
[12:47:08] drale2k_: has joined #RubyOnRails
[12:54:24] alfiemax: has joined #RubyOnRails
[12:59:56] sidx64: has joined #RubyOnRails
[13:06:18] DrYockel: has joined #RubyOnRails
[13:09:12] conta1: has joined #RubyOnRails
[13:14:21] DrYockel: has joined #RubyOnRails
[13:14:22] alfiemax: has joined #RubyOnRails
[13:28:19] srinidhi: has joined #RubyOnRails
[13:33:22] drale2k_: has joined #RubyOnRails
[13:37:07] s2013: has joined #RubyOnRails
[13:42:08] mikecmpbll: has joined #RubyOnRails
[13:52:26] conta: has joined #RubyOnRails
[14:01:31] mikecmpb_: has joined #RubyOnRails
[14:05:56] blackmesa: has joined #RubyOnRails
[14:07:55] Technodrome: has joined #RubyOnRails
[14:08:41] drale2k_: has joined #RubyOnRails
[14:13:01] srinidhi: has joined #RubyOnRails
[14:13:54] mtkd: has joined #RubyOnRails
[14:19:56] kapil___: has joined #RubyOnRails
[14:23:27] psychoslave: has joined #RubyOnRails
[14:33:04] alfiemax: has joined #RubyOnRails
[14:36:33] Technodrome: has joined #RubyOnRails
[14:42:51] mroutis: has joined #RubyOnRails
[14:45:19] chouhoulis: has joined #RubyOnRails
[14:45:45] mtkd: has joined #RubyOnRails
[14:45:59] drale2k_: has joined #RubyOnRails
[14:46:06] mauro1254: has joined #RubyOnRails
[14:46:42] mauro1254: Hi folks, is there a way to create associations between ActiveRecord models and ActiveResource ones
[14:47:41] alfiemax: has joined #RubyOnRails
[14:51:48] DrYockel: has joined #RubyOnRails
[14:54:12] s2013: has joined #RubyOnRails
[14:58:59] apeiros: has joined #RubyOnRails
[15:02:22] sidx64: has joined #RubyOnRails
[15:02:35] regedit: has joined #RubyOnRails
[15:02:42] dblessing: has joined #RubyOnRails
[15:04:50] schneider: has joined #RubyOnRails
[15:11:24] Torrone: has joined #RubyOnRails
[15:13:33] Torrone: Hello, I'm designing a simple api for my rails app. Most examples I've seen make use of namespace resource statements for routes but I don't need/want to do that, all I want to do is to expose some named endpoints for actions I'm gonna call from the client side. How do I declare namespaces routes so that they only support the few actions I need?
[15:14:50] Torrone: for example I have my Api::v1::TriggersController#trigger_action_1 action and I need a route for that
[15:15:10] cagomez: has joined #RubyOnRails
[15:15:43] cagomez: has joined #RubyOnRails
[15:16:21] orbyt_: has joined #RubyOnRails
[15:20:35] GodFather: has joined #RubyOnRails
[15:28:16] mroutis: has joined #RubyOnRails
[15:31:06] Torrone: ok I've figured it out
[15:36:37] cagomez: is there a way to manually mark a model instance as persisted? (ie not a new record)
[15:37:11] jcarl43: has joined #RubyOnRails
[15:42:16] schneider: has joined #RubyOnRails
[15:43:08] psychoslave: has joined #RubyOnRails
[15:49:04] roamingdog: has joined #RubyOnRails
[15:49:42] srinidhi: has joined #RubyOnRails
[15:52:31] cagomez: found it: `item.instance_variable_set "@new_record",true`
[16:08:16] safetypin: has joined #RubyOnRails
[16:14:27] darkhanb: has joined #RubyOnRails
[16:25:56] tuskkk___: with rspec, how do we check that something should raise an error e.g duplicate entry into a model should raise ActiveRecord::RecordNotUnique
[16:27:41] schneider: has joined #RubyOnRails
[16:28:52] prahal: has joined #RubyOnRails
[16:29:34] prahal: has joined #RubyOnRails
[16:33:02] qnaal: has joined #RubyOnRails
[16:45:07] qnaal: has joined #RubyOnRails
[16:46:19] orbyt_: has joined #RubyOnRails
[16:50:53] mtkd: has joined #RubyOnRails
[16:57:53] mtkd: has joined #RubyOnRails
[17:03:46] psychoslave: has joined #RubyOnRails
[17:05:00] Fernando-Basso: has joined #RubyOnRails
[17:07:45] fox_mulder_cp: Radar in 5.2 base key in encrypted and stored in encrypted storage
[17:09:04] fox_mulder_cp: hi, folks. i try to use js activecable lib, try to create subscription, but seeems, thah connected() {} don't do anything, when i add console.log into it
[17:09:30] fox_mulder_cp: how i can propery use connected and disconnect functions on it?
[17:14:08] mtkd: has joined #RubyOnRails
[17:14:41] tdy: has joined #RubyOnRails
[17:16:14] ellcs: has joined #RubyOnRails
[17:17:30] zave: has joined #RubyOnRails
[17:18:18] zave: hi all, is this a good place to ask questions about using Capistrano for RoR deployments?
[17:22:52] poincare101: has joined #RubyOnRails
[17:23:33] blackcross: Anyone know of a good free CRM made for ruby on rails? I am trying fat_free_crm, but it looks like the Advanced Search is broken
[17:26:14] za1b1tsu: has joined #RubyOnRails
[17:28:36] prahal: has joined #RubyOnRails
[17:35:11] fox_mulder_cp: blackcross: it's a say to fixit :)
[17:38:40] poincare101: Hi. I have a Rails app and I’m attempting to set up a Sinatra app that has access to the Rails ActiveModel instances and is able to interact with the same database. I don’t want the Sinatra app to run on the same endpoint/port as the Rails app since the Sinatra app is an internal service. I attempted to use “rails runner” to accomplish this, but the Sinatra app doesn’t actually run (i.e. the server never starts). Any i
[17:38:41] poincare101: how to fix this?
[17:39:45] fox_mulder_cp: mount sinatra app as engine to rails?
[17:40:40] poincare101: Will that allow me to run the Sinatra app independently of the Rails application (i.e. different host/port)?
[17:47:06] mikecmpbll: has joined #RubyOnRails
[17:48:05] blackcross: fox_mulder_cp: what do you mean by it's a say to fixit? :)
[17:51:09] Technodrome: has joined #RubyOnRails
[17:58:37] sameerynho: has joined #RubyOnRails
[17:58:51] za1b1tsu: has joined #RubyOnRails
[17:59:58] blackcross: Looking for ruby developer that can fix a bug in fat_free_crm for me. Will pay well.
[18:06:10] Cavallari: has joined #RubyOnRails
[18:09:28] mtkd: has joined #RubyOnRails
[18:17:52] eckhardt: has joined #RubyOnRails
[18:19:01] jottr: has joined #RubyOnRails
[18:27:37] blackmesa: has joined #RubyOnRails
[18:50:35] DrYockel: has joined #RubyOnRails
[18:53:05] dviola: has joined #RubyOnRails
[18:55:43] schneider: has joined #RubyOnRails
[19:04:58] alfiemax: has joined #RubyOnRails
[19:22:30] poincare101: has joined #RubyOnRails
[19:26:56] blackmesa: has joined #RubyOnRails
[19:41:39] meo: has joined #RubyOnRails
[19:44:18] Dbugger: has joined #RubyOnRails
[19:44:52] orbyt_: has joined #RubyOnRails
[19:44:52] psychoslave: has joined #RubyOnRails
[19:51:47] KeyJoo: has joined #RubyOnRails
[19:53:22] za1b1tsu: has joined #RubyOnRails
[20:01:37] charnel: has joined #RubyOnRails
[20:03:43] conceivably: has joined #RubyOnRails
[20:13:21] alfiemax: has joined #RubyOnRails
[20:16:44] Nawn: has joined #RubyOnRails
[20:20:44] Nawn: has joined #RubyOnRails
[20:30:00] jottr: has joined #RubyOnRails
[20:33:13] uksio: has joined #RubyOnRails
[20:35:39] jottr_: has joined #RubyOnRails
[20:39:07] Technodrome: has joined #RubyOnRails
[20:40:08] Technodrome: has joined #RubyOnRails
[20:40:58] Technodrome: has joined #RubyOnRails
[20:41:45] Technodrome: has joined #RubyOnRails
[20:42:22] Technodrome: has joined #RubyOnRails
[20:43:16] Technodrome: has joined #RubyOnRails
[20:58:19] ellcs: has joined #RubyOnRails
[21:23:00] schneider: has joined #RubyOnRails
[21:25:30] dionysus69: has joined #RubyOnRails
[21:28:55] schneider: has joined #RubyOnRails
[21:33:09] eckhardt: has joined #RubyOnRails
[21:38:23] schneider: has joined #RubyOnRails
[21:47:38] schneider: has joined #RubyOnRails
[21:51:02] croberts: has joined #RubyOnRails
[21:56:57] schneider: has joined #RubyOnRails
[21:57:50] ellcs: has joined #RubyOnRails
[22:06:21] schneider: has joined #RubyOnRails
[22:07:40] s2013: has joined #RubyOnRails
[22:10:48] roamingdog: has joined #RubyOnRails
[22:12:40] alfiemax: has joined #RubyOnRails
[22:15:34] schneider: has joined #RubyOnRails
[22:24:12] jottr: has joined #RubyOnRails
[22:24:50] schneider: has joined #RubyOnRails
[22:31:48] ellcs: has left #RubyOnRails: ()
[22:34:13] schneider: has joined #RubyOnRails
[22:43:32] schneider: has joined #RubyOnRails
[22:50:33] tipyn: has joined #RubyOnRails
[22:52:51] schneider: has joined #RubyOnRails
[22:57:54] eckhardt: has joined #RubyOnRails
[23:02:21] schneider: has joined #RubyOnRails
[23:08:37] orbyt_: has joined #RubyOnRails
[23:10:48] blackmesa1: has joined #RubyOnRails
[23:11:38] schneider: has joined #RubyOnRails
[23:20:55] schneider: has joined #RubyOnRails
[23:30:15] schneider: has joined #RubyOnRails
[23:39:33] schneider: has joined #RubyOnRails
[23:39:51] jottr: has joined #RubyOnRails
[23:43:59] gambl0re: has joined #RubyOnRails
[23:48:53] schneider: has joined #RubyOnRails
[23:54:49] quazimodo: has joined #RubyOnRails
[23:58:11] schneider: has joined #RubyOnRails