« Back to channel list

#RubyOnRails - 09 October 2018

« Back 1 day Forward 1 day »
[00:00:57] sarmiena_: still on rails 4, but i’m trying to figure out a situation where ActiveSupport::Notifications for “sql.active_record” say a query is taking X seconds, but the DB logs themselves say that the query is taking Y seconds. The difference is quite large… about 7-10 seconds
[00:01:36] prettybTech: has joined #RubyOnRails
[00:02:38] improv42: has joined #RubyOnRails
[00:13:16] kreantos: has joined #RubyOnRails
[00:14:52] kreantos: Hi, I'm using Rails 5.2.1 and when running a rake task it has issues to load inherited methods and i get a "NoMethodError: undefined method" error. when running the specs, there is no error.
[00:18:54] sitheris: has joined #RubyOnRails
[00:20:19] sitheris: hello all. I am using a DB view defined in a migration, and my model uses it through a has_one association. Rubocop is complaining about there not being a dependent clause. What are my choices when working with a view? Destroy doesn't seem to work :)
[00:36:12] NivenHuH: has joined #RubyOnRails
[00:36:59] orbyt_: has joined #RubyOnRails
[00:46:54] blackcross: has joined #RubyOnRails
[00:58:34] marahin: has joined #RubyOnRails
[01:01:00] EXCHGR: has joined #RubyOnRails
[01:06:44] sevenseacat: has joined #RubyOnRails
[01:16:49] mheld: has joined #RubyOnRails
[01:23:17] Dimik: has joined #RubyOnRails
[01:27:53] tdy: has joined #RubyOnRails
[01:29:03] Saukk: has joined #RubyOnRails
[01:33:07] DTZUZO: has joined #RubyOnRails
[01:43:57] za1b1tsu: has joined #RubyOnRails
[01:48:20] quazimodo: has joined #RubyOnRails
[01:52:12] cagomez: has joined #RubyOnRails
[02:13:17] ajsharma: has joined #RubyOnRails
[02:34:04] beholders_eye: has joined #RubyOnRails
[02:37:18] orbyt_: has joined #RubyOnRails
[03:05:25] beholders_eye: has joined #RubyOnRails
[03:10:42] braincrash: has joined #RubyOnRails
[03:12:35] srinidhi: has joined #RubyOnRails
[03:15:17] podlech: has joined #RubyOnRails
[03:19:14] orbyt_: has joined #RubyOnRails
[03:32:28] podlech: has joined #RubyOnRails
[04:01:17] ariedler: has joined #RubyOnRails
[04:04:45] lord4163: has joined #RubyOnRails
[04:09:54] srinidhi: has joined #RubyOnRails
[04:31:51] NivenHuH: has joined #RubyOnRails
[04:34:45] cagomez: has joined #RubyOnRails
[04:37:12] sarmiena_: has joined #RubyOnRails
[04:42:55] sarmiena_: has joined #RubyOnRails
[05:01:38] eckhardt: has joined #RubyOnRails
[05:28:41] quazimodo: has joined #RubyOnRails
[05:30:24] srinidhi: has joined #RubyOnRails
[05:32:04] za1b1tsu: has joined #RubyOnRails
[05:35:08] reber: has joined #RubyOnRails
[05:47:23] apeiros_: has joined #RubyOnRails
[06:10:17] argoneus: has joined #RubyOnRails
[06:10:51] sandstrom: has joined #RubyOnRails
[06:34:00] snickers: has joined #RubyOnRails
[06:49:11] dionysus69: Does anyone here use docker to deploy to staging/production?
[07:09:17] srinidhi: has joined #RubyOnRails
[07:18:49] simmerz: has joined #RubyOnRails
[07:22:50] lexileo: has joined #RubyOnRails
[07:26:24] eckhardt_: has joined #RubyOnRails
[07:27:07] kreantos: has joined #RubyOnRails
[07:40:18] sandstrom: has joined #RubyOnRails
[08:00:36] ellcs: has joined #RubyOnRails
[08:08:47] lxsameer: has joined #RubyOnRails
[08:10:33] srinidhi: has joined #RubyOnRails
[08:18:00] Ergo: has joined #RubyOnRails
[08:22:28] lexileo: has joined #RubyOnRails
[08:27:06] simmerz: has joined #RubyOnRails
[09:29:58] za1b1tsu: has joined #RubyOnRails
[09:33:44] GeorgesLeYeti: has joined #RubyOnRails
[09:34:23] GeorgesLeYeti: I have a list of authorized tag and I want to remove all none authorized tag in an HTML file
[09:39:25] tbuehlmann: https://github.com/rails/rails-html-sanitizer might help
[09:48:44] yiadom: has joined #RubyOnRails
[09:52:08] GeorgesLeYeti: tbuehlmann, Ho Ty !!
[09:52:34] davidh38: has joined #RubyOnRails
[09:54:19] davidh38: hey guys, i have trouble using ruby-debug-ide in rubymine. Error installing ruby-debug-ide-0.7.0.beta6.gem. Does anybody know how to solve this problem?
[10:08:06] simmerz: has joined #RubyOnRails
[10:29:42] MoritaShinobu: has joined #RubyOnRails
[10:30:51] dionysus69: davidh38: just simplify your life and download sublime3 with rubocop or something
[10:31:58] uksio: has joined #RubyOnRails
[10:32:59] davidh38: dionysus69: what do you think of byebug?
[10:33:27] dionysus69: I rarely use such tools but yea it's great, very famous
[10:34:16] davidh38: dionysus69: why do think this solution is better than rubymine, if i may ask?
[10:35:39] dionysus69: for various reasons which you will understand with experience, you are not welcome to use IDE in ruby community
[10:36:34] dionysus69: I'd put it as unnecessary overhead
[10:37:40] dionysus69: IDEs are associated with languages such as java and c#
[10:37:54] dionysus69: which need compilation
[10:41:50] davidh38: dionysus69 can you please state one main argument though i might not understand?
[10:43:12] dionysus69: one main argument would be, you wouldn't have such problems you just had? :P
[10:44:26] dionysus69: setting up ruby environment is as easy as install ruby and open up a text editor. I don't know, if you paid for rubymine, I guess you can invest more time in it, I don't mean you should abandon it or anything
[10:49:19] davidh38: has joined #RubyOnRails
[10:49:24] lankanmon: has joined #RubyOnRails
[10:50:22] davidh38: dionysus69 thank you, i actually used sublime like you said, but debugging with byebug looked a bit strange i would say. Thank yu
[10:50:41] dionysus69: davidh38: there's pry also
[10:50:54] davidh38: dionysus69 lets say you start to learn a new language like i do know. when you start to learn how debug?
[10:51:22] davidh38: dionysus69 would it be one of the first things you do or first learn basics?
[10:52:04] dionysus69: dunno, I do things without pry or byebug, I usually get what the error messages says
[10:52:33] dionysus69: you should learn using them when you cannot advance without them I'd say
[10:52:45] tbuehlmann: davidh38: using pry can be huge. I'm almost always using it when debugging and exploring objects
[10:53:07] tbuehlmann: it's the first gem I add to a rails app's gemfile (pry-rails it is)
[10:53:19] davidh38: thank you guys, you are awesome, i will check it out
[11:04:33] apeiros_: has joined #RubyOnRails
[11:11:59] michael_mbp: has joined #RubyOnRails
[11:14:10] srinidhi: has joined #RubyOnRails
[11:41:54] phaul: has joined #RubyOnRails
[11:43:57] estrod: has joined #RubyOnRails
[11:44:19] phaul: hi all, https://gist.github.com/phaul/110b07958c22c0eecb5e85f2ae7a9437 on line 10 I need to force a load on constant Person, otherwise it locks up deep in activesupport. In code that looks like taking double lock.
[11:44:43] phaul: Does anybody have any idea why?
[11:45:09] phaul: this is db/seed.rb run by rails db:setup...
[11:49:29] phaul: never mind. I can't repro it any more. I wanted to get a backtrace, but it doesn't happen.
[11:49:59] phaul: all I can think of is that the db was somehow in an inconsistent state. I'm just not sure how.
[11:50:29] improv42: has joined #RubyOnRails
[12:11:10] kurko_: has joined #RubyOnRails
[12:11:20] sandstrom: has joined #RubyOnRails
[12:33:45] kurko_: has joined #RubyOnRails
[12:36:16] sitheris: has joined #RubyOnRails
[12:36:24] sitheris: hello all. I am using a DB view defined in a migration, and my model uses it through a has_one association. Rubocop is complaining about there not being a dependent clause. What are my choices when working with a view? Destroy doesn't seem to work :)
[12:42:13] hadifarnoud: has joined #RubyOnRails
[12:43:34] hadifarnoud: there is a mysql2 gem in a project I'm trying to install. but when installing it run into ERROR: Error installing mysql2 Failed to build gem native extension
[12:43:52] hadifarnoud: I have mysql installed, why bundler don't just use that?
[12:45:33] hadifarnoud: I installed mysql using `brew install mysql` before and it works just fine.
[12:50:31] phaul: has joined #RubyOnRails
[12:56:22] sandstrom: has joined #RubyOnRails
[13:03:48] hadifarnoud: has joined #RubyOnRails
[13:04:47] deathwishdave: has joined #RubyOnRails
[13:08:13] snickers: has joined #RubyOnRails
[13:10:34] estrod: has joined #RubyOnRails
[13:12:57] srinidhi: has joined #RubyOnRails
[13:15:54] srinidhi: has joined #RubyOnRails
[13:20:26] ariedler: has joined #RubyOnRails
[13:27:26] marahin: has joined #RubyOnRails
[13:48:00] phaul: has left #RubyOnRails: ("WeeChat 2.2")
[13:57:45] sevenseacat: has joined #RubyOnRails
[13:59:38] DTZUZO: has joined #RubyOnRails
[14:05:25] dionysus69: has joined #RubyOnRails
[14:08:39] chouhoulis: has joined #RubyOnRails
[14:12:24] snickers: has joined #RubyOnRails
[14:12:30] dionysus69: has joined #RubyOnRails
[14:31:41] simmerz: has joined #RubyOnRails
[14:54:00] orbyt_: has joined #RubyOnRails
[15:13:50] hadifarnoud: has joined #RubyOnRails
[15:16:53] hadifarnoud: has joined #RubyOnRails
[15:19:48] pLaTo0n: has joined #RubyOnRails
[15:21:14] ariedler: has joined #RubyOnRails
[15:29:04] quazimodo: has joined #RubyOnRails
[15:36:28] apeiros_: has joined #RubyOnRails
[15:37:11] arup_r: has joined #RubyOnRails
[15:38:08] mauro1254: has joined #RubyOnRails
[15:45:06] GodFather: has joined #RubyOnRails
[15:57:20] schneider: has joined #RubyOnRails
[16:02:07] DTZUZO: has joined #RubyOnRails
[16:07:03] duderonomy: has joined #RubyOnRails
[16:08:35] truenito: has joined #RubyOnRails
[16:11:56] duderonomy: has joined #RubyOnRails
[16:26:55] snickers: has joined #RubyOnRails
[16:30:09] darkhanb: has joined #RubyOnRails
[16:31:07] srinidhi: has joined #RubyOnRails
[16:31:49] sarmiena_: has joined #RubyOnRails
[16:37:32] conta1: has joined #RubyOnRails
[16:39:26] DTZUZO_: has joined #RubyOnRails
[16:49:46] duderonomy: has joined #RubyOnRails
[16:58:53] sameerynho: has joined #RubyOnRails
[16:59:00] schneider: has joined #RubyOnRails
[16:59:59] prettybTech: has joined #RubyOnRails
[17:06:51] beowuff: has joined #RubyOnRails
[17:14:52] roshanavand: has joined #RubyOnRails
[17:19:34] Dbugger: has joined #RubyOnRails
[17:22:08] ariedler: has joined #RubyOnRails
[17:23:22] kurko_: has joined #RubyOnRails
[17:27:05] Saukk: has joined #RubyOnRails
[17:35:18] GodFather: has joined #RubyOnRails
[17:40:10] ellcs: has joined #RubyOnRails
[17:43:22] kapil____: has joined #RubyOnRails
[17:49:15] NivenHuH: has joined #RubyOnRails
[17:50:23] prettybTech: has joined #RubyOnRails
[17:56:08] agent_white: has joined #RubyOnRails
[18:08:48] NivenHuH: has joined #RubyOnRails
[18:24:15] dviola: has joined #RubyOnRails
[18:26:19] improv42: has joined #RubyOnRails
[18:26:21] weaksauce: has joined #RubyOnRails
[18:28:19] kurko_: has joined #RubyOnRails
[18:28:37] prettybTech: has joined #RubyOnRails
[18:35:01] krawchyk: has joined #RubyOnRails
[18:35:24] improv42: has joined #RubyOnRails
[18:35:34] conta1: has joined #RubyOnRails
[18:37:12] eckhardt: has joined #RubyOnRails
[18:45:59] improv42: has joined #RubyOnRails
[18:51:41] ariedler: has joined #RubyOnRails
[18:53:22] NoGodDamnIdea: has joined #RubyOnRails
[18:53:27] GodFather: has joined #RubyOnRails
[19:07:50] deathwishdave: has joined #RubyOnRails
[19:09:38] improv42: has joined #RubyOnRails
[19:11:02] duderonomy: has joined #RubyOnRails
[19:15:10] sandstrom: has joined #RubyOnRails
[19:21:05] prettybTech: has joined #RubyOnRails
[19:23:32] ruurd: has joined #RubyOnRails
[19:34:19] greengriminal: has joined #RubyOnRails
[19:39:20] NivenHuH: has joined #RubyOnRails
[19:50:30] ivanskie: has joined #RubyOnRails
[20:02:59] chouhoulis: has joined #RubyOnRails
[20:09:02] dviola: has joined #RubyOnRails
[20:09:35] agent_white: has joined #RubyOnRails
[20:20:37] fragamus: has joined #RubyOnRails
[20:25:41] Xiti: has joined #RubyOnRails
[20:29:50] LiftLeft2: has joined #RubyOnRails
[20:33:27] deathwishdave: has joined #RubyOnRails
[20:37:14] NivenHuH: has joined #RubyOnRails
[20:37:32] simmerz: has joined #RubyOnRails
[20:38:27] tdy: has joined #RubyOnRails
[20:45:18] kurko_: has joined #RubyOnRails
[20:52:19] fragamus: has joined #RubyOnRails
[20:53:10] ariedler: has joined #RubyOnRails
[20:57:55] gheegh: has joined #RubyOnRails
[20:58:16] lxsameer: has joined #RubyOnRails
[21:03:29] gheegh: Hey all, i'm having a problem with VCR in some of my tests.. i am doing the query in the "let", but it seems to retrieve each time no matter what.. any thoughts on how to fix this in RSpec?
[21:03:31] gheegh: https://gist.github.com/wflanagan/59f0434d11079ace97ed4679d503d31d
[21:03:35] gheegh: that's an example
[21:12:44] ellcs: has joined #RubyOnRails
[21:23:26] timdotrb: has joined #RubyOnRails
[21:26:07] timdotrb: Afternoon, all. Does anyone have experience stubbing data in rspec tests with Travis CI? We tried using VCR, but Travis got a nil value instead of the value expected in the VCR cassette
[21:31:54] mrbubbles: has joined #RubyOnRails
[21:31:59] mrbubbles: I'm trying to stub an active model relationship in rspec. basically I want to be able to access @project.owner.name and have it equal "paul" but I'm struggling with it
[21:32:23] mrbubbles: I thought I'd be able to use @project = { owner: { name: 'paul' } } but is there a better way?
[21:39:49] truenito: has joined #RubyOnRails
[21:46:45] mrbubbles: ah, receive_message_chain :) nice
[21:46:53] ellcs: has joined #RubyOnRails
[21:54:21] deathwishdave: has joined #RubyOnRails
[21:56:59] mrbubbles: has joined #RubyOnRails
[21:57:19] NivenHuH: has joined #RubyOnRails
[22:08:41] timdotrb: has joined #RubyOnRails
[22:17:22] jordansz: has joined #RubyOnRails
[22:17:46] jordansz: hello everyone, im investigating if i want to re-use rails again for another project of mine i need to build quick mvp
[22:18:21] jordansz: now one of the things that bottles me down with rails is the many repeative crud operations controllers and views. I have been looking for a solution for this, and only found some old blog posts or non updated repo's tackling the crud problem in rails
[22:18:41] jordansz: any of you experts can advice me on a good solution how i prevent repeating my controllers and views over and over in rails?
[22:19:53] jordansz: many blog posts on this subject are from 2015 area so i starting to think i approach this wrong or search wrong terms.. basically what i need for is a way to minimze the repeatness in my application so im able to speedup and clean my codebase
[22:20:41] jordansz: for example 2013: https://www.reddit.com/r/rails/comments/1i8oko/rails_scaffoldshow_do_you_dry_them_up/ any expert advice thoughts on this subject would be highly appreciated
[22:22:28] jordansz: best i found https://github.com/plataformatec/responders ( 2 years/ 7 year old codebase) since this is an issue many rails codes must have im stunned there seems no "real solution" for this
[22:23:33] Radar: maybe it is that many people have tried going down this path, build crufty, hard-to-modify systems, and have failed?
[22:25:30] jordansz: Radar it seems like that is the conclusion indeed. Would there be a different solution maybe but still use rails?
[22:26:21] jordansz: I love rails have made many projects in it but this crud work is always a bit pain and for next project i thought lets look for a solution to prevent that road again.
[22:27:08] jordansz: more interestingly are there non MVC patterns implementations for Rails? perhaps use an API to do the data handling and use rails just for the authentication and the views
[22:28:37] Radar: I guarantee you if you go down this path of trying to speed up CRUD building you will end up with a hard-to-modify/customise mess. Take your time.
[22:31:07] jordansz: Radar if I would stay on the road, would it be possible to customize the scaffold generator so it uses templates? for example have a partial for the code that generates the submit button
[22:31:39] jordansz: so i could basically prototype and scaffold from datamodel then have the view layer be a bit more presentable and preventing me to make almost exact manual changes for each views?
[22:31:50] Radar: jordansz: HERE BE DRAGONS
[22:32:26] jordansz: ah nevermind i should rtfm https://guides.rubyonrails.org/generators.html seems a good start
[22:32:38] jordansz: and stick with the framework conventions dragons?
[22:32:56] Radar: it_is_dangerous_to_go_alone.jpg
[22:36:55] fragamus: has joined #RubyOnRails
[22:45:52] fugee: has joined #RubyOnRails
[22:47:10] MoritaShinobu: has joined #RubyOnRails
[22:58:57] lxsameer: has joined #RubyOnRails
[22:59:20] dviola: has joined #RubyOnRails
[23:32:21] MrCrackPotBuilde: has joined #RubyOnRails
[23:33:58] weaksauce: has joined #RubyOnRails
[23:34:04] MaiconVieira: has joined #RubyOnRails
[23:36:58] DTZUZO_: has joined #RubyOnRails
[23:46:48] fragamus: has joined #RubyOnRails
[23:57:34] Dimik: has joined #RubyOnRails