« Back to channel list

#RubyOnRails - 25 June 2018

« Back 1 day Forward 1 day »
[00:03:16] benlieb: has joined #RubyOnRails
[00:04:39] Guest82829: has joined #RubyOnRails
[00:12:39] jackhum: has joined #RubyOnRails
[00:14:55] Guest82829: has joined #RubyOnRails
[00:25:09] Guest82829: has joined #RubyOnRails
[00:29:35] workmad3: has joined #RubyOnRails
[00:32:38] barhum2013: has joined #RubyOnRails
[00:35:20] Guest82829: has joined #RubyOnRails
[00:37:11] roamingdog: has joined #RubyOnRails
[00:43:15] barhum2013: has joined #RubyOnRails
[00:45:29] Guest82829: has joined #RubyOnRails
[00:55:48] Guest82829: has joined #RubyOnRails
[01:05:59] Guest82829: has joined #RubyOnRails
[01:06:04] sevenseacat: has joined #RubyOnRails
[01:16:13] Guest82829: has joined #RubyOnRails
[01:17:19] baash05: has joined #RubyOnRails
[01:17:45] baash05: Hey all.. Anyone ever interact with netsuite via restlets?
[01:26:25] Guest82829: has joined #RubyOnRails
[01:31:25] heckler: has joined #RubyOnRails
[01:36:41] Guest82829: has joined #RubyOnRails
[01:46:54] Guest82829: has joined #RubyOnRails
[01:47:05] Saukk: has joined #RubyOnRails
[01:57:01] Guest82829: has joined #RubyOnRails
[02:07:16] Guest82829: has joined #RubyOnRails
[02:10:12] baash05: Nothing? Ah crap. I was hoping someone managed.
[02:17:33] Guest82829: has joined #RubyOnRails
[02:27:43] Guest82829: has joined #RubyOnRails
[02:29:52] workmad3: has joined #RubyOnRails
[02:38:04] Guest82829: has joined #RubyOnRails
[02:45:46] jackhum: has joined #RubyOnRails
[02:47:08] Radar: baash05: this is the time in the channel when most people are offline
[02:48:11] sevenseacat: and the aussies are pretending we're still enjoying our weekends
[02:48:14] Guest82829: has joined #RubyOnRails
[02:53:24] buhrmi: has joined #RubyOnRails
[02:54:19] buhrmi: Hello all. I got a question about active storage... basically I'd like to find all records where the attachment is of a specific content_type
[02:55:18] buhrmi: Something like `Upload.joins(:active_storage_attachments => :active_storage_blobs).where("active_storage_blobs.content_type LIKE 'image%'")`
[02:58:26] Guest82829: has joined #RubyOnRails
[03:08:35] Guest82829: has joined #RubyOnRails
[03:10:31] braincrash: has joined #RubyOnRails
[03:18:43] cschneid: has joined #RubyOnRails
[03:18:53] Guest82829: has joined #RubyOnRails
[03:25:02] Radar: buhrmi: looks... like it might work? What's going on?
[03:29:18] Guest82829: has joined #RubyOnRails
[03:32:44] jackhum: has joined #RubyOnRails
[03:39:20] Guest82829: has joined #RubyOnRails
[03:45:18] benlieb: has joined #RubyOnRails
[03:47:23] buhrmi: `ActiveRecord::ConfigurationError (Can't join 'Upload' to association named 'active_storage_attachments'; perhaps you misspelled it?)`
[03:49:08] sevenseacat: can you show the code for your Upload model? do you have such an association in it?
[03:49:31] Guest82829: has joined #RubyOnRails
[03:59:45] Guest82829: has joined #RubyOnRails
[04:09:55] srinidhi: has joined #RubyOnRails
[04:09:57] Guest82829: has joined #RubyOnRails
[04:20:10] Guest82829: has joined #RubyOnRails
[04:22:29] za1b1tsu: has joined #RubyOnRails
[04:30:15] workmad3: has joined #RubyOnRails
[04:30:27] Guest82829: has joined #RubyOnRails
[04:40:39] Guest82829: has joined #RubyOnRails
[04:50:56] Guest82829: has joined #RubyOnRails
[05:01:03] Guest82829: has joined #RubyOnRails
[05:07:13] jackhum: has joined #RubyOnRails
[05:09:14] srinidhi: has joined #RubyOnRails
[05:11:19] Guest82829: has joined #RubyOnRails
[05:21:30] Guest82829: has joined #RubyOnRails
[05:31:29] buhrmi: no I don't. I was hoping rails would somehow add it automatically.
[05:31:45] Guest82829: has joined #RubyOnRails
[05:31:47] buhrmi: not sure how to add this kind of association because there exists no model for it
[05:40:59] conta: has joined #RubyOnRails
[05:41:57] Guest82829: has joined #RubyOnRails
[05:52:15] Guest82829: has joined #RubyOnRails
[06:02:28] Guest82829: has joined #RubyOnRails
[06:03:20] cschneid: has joined #RubyOnRails
[06:05:30] apeiros: has joined #RubyOnRails
[06:08:40] cschneid: has joined #RubyOnRails
[06:08:57] reber: has joined #RubyOnRails
[06:12:41] Guest82829: has joined #RubyOnRails
[06:15:27] duderono_: has joined #RubyOnRails
[06:22:46] cschneid: has joined #RubyOnRails
[06:22:51] Guest82829: has joined #RubyOnRails
[06:23:43] jackhum: has joined #RubyOnRails
[06:26:32] za1b1tsu: has joined #RubyOnRails
[06:30:31] workmad3: has joined #RubyOnRails
[06:33:03] Guest82829: has joined #RubyOnRails
[06:36:45] cschneid: has joined #RubyOnRails
[06:37:18] srinidhi: has joined #RubyOnRails
[06:43:17] Guest82829: has joined #RubyOnRails
[06:50:23] cschneid: has joined #RubyOnRails
[06:53:34] Guest82829: has joined #RubyOnRails
[06:56:56] ynonp: has joined #RubyOnRails
[06:57:01] mauro1254: has joined #RubyOnRails
[07:03:51] Guest82829: has joined #RubyOnRails
[07:04:56] cschneid: has joined #RubyOnRails
[07:14:01] Guest82829: has joined #RubyOnRails
[07:18:37] sandstrom: has joined #RubyOnRails
[07:20:36] jammanbo: has joined #RubyOnRails
[07:22:33] jammanbo: `headers['Content-Type'] = 'text/plain'` Should it be sufficient to force ActionMailer to send the text version only?
[07:23:42] cschneid: has joined #RubyOnRails
[07:28:53] Guest82829: has joined #RubyOnRails
[07:33:40] cschneid: has joined #RubyOnRails
[07:35:42] ams__: has joined #RubyOnRails
[07:39:08] Guest82829: has joined #RubyOnRails
[07:40:40] dionysus69: has joined #RubyOnRails
[07:44:14] lxsameer: has joined #RubyOnRails
[07:47:51] jammanbo: More to the point, how do I force ActionMailer to use plain text for a subset of users? No matter what I do it's insisting upon sending multipart/alternative when both a html and text template exist.
[07:50:49] pankaj: has joined #RubyOnRails
[07:52:28] apeiros: has joined #RubyOnRails
[07:53:52] apeiros: hi there. I have a rails 4.2 engine which somebody else built. I've added jquery-rails to the gemfile and //= require 'jquery_ujs' to application.js. Viewing the dummy app, the ujs loads fine. but running rspec, it complains abbout being unable to find jquery_ujs. any idea where I should start looking for why this is the case?
[07:54:08] tbuehlmann: jammanbo: shouldn't you be able to call `mail(…) { |format| format.text }` in order to only send the text template?
[08:02:57] jammanbo: tbuehlmann: Should `{ |format| format.text }` be sufficient? Because I tried it and it complained about not finding the template, and I'd really rather not explicitly render the template.
[08:03:12] ellcs: has joined #RubyOnRails
[08:03:38] tbuehlmann: I'd assume the template doesn't exist then. is it placed in the right directory and named correctly?
[08:04:03] tbuehlmann: you shouldn't have to render explicitly
[08:04:21] jammanbo: Yeah it's there, and it does render implicitly into the multipart version.
[08:05:22] sandstrom: has joined #RubyOnRails
[08:06:43] tbuehlmann: even when using format.text?
[08:07:24] apeiros: ok, so the problem was that this engine author wants all dependencies in the .gemspec (and Gemfile only consists of `source …` + `gemspec`). that does not automatically require stuff. so adding a manual require in lib/<engine>/engine.rb solved the issue.
[08:07:41] jammanbo: `ActionView::MissingTemplate: Missing template user_mailer/invoice, application_mailer/invoice with {:locale=>[:en], :formats=>[:text], :variants=>[], :handlers=>[:erb...`
[08:07:46] jammanbo: `ls app/views/mailers/user_mailer/invoice.* app/views/mailers/user_mailer/invoice.html.erb app/views/mailers/user_mailer/invoice.text.erb`
[08:07:47] apeiros: still wondering why it worked in the dummy app using the browser, though
[08:08:02] jammanbo: What am I missing?
[08:09:07] tbuehlmann: jammanbo: shouldn't that be app/views/user_mailer/invoice.text.erb?
[08:11:23] jammanbo: What the actual hell... That's been like that forever! How has it not been spotted before!
[08:12:06] jammanbo: thank you tbuehlmann. I assume that's the problem and if it's not, it's a new one at least.
[08:12:55] mauro1254: Hi folks. Is there an ORM for RESTful webservice that integrates (associations) with ActiveRecord?
[08:13:55] tbuehlmann: jammanbo: welcome!
[08:16:21] srinidhi: has joined #RubyOnRails
[08:19:56] cschneid: has joined #RubyOnRails
[08:25:17] ellcs: has joined #RubyOnRails
[08:29:31] jottr_: has joined #RubyOnRails
[08:30:51] workmad3: has joined #RubyOnRails
[08:34:31] cschneid: has joined #RubyOnRails
[08:41:07] KeyJoo: has joined #RubyOnRails
[09:01:49] cabotto: has joined #RubyOnRails
[09:13:21] ur5us: has joined #RubyOnRails
[09:21:10] cschneid: has joined #RubyOnRails
[09:21:57] KeyJoo: has joined #RubyOnRails
[09:24:16] apeiros: anybody use site_prism for specs? is there a nice way to use rails route helpers instead of writing the paths as strings?
[09:27:14] arup_r: has joined #RubyOnRails
[09:27:24] arup_r: How are you all? :)
[09:28:24] apeiros: hungry, that's how I am. Hence afk for a couple of minutes. but if anybody got an answer to my question, I'll read it as soon as I'm back :)
[09:28:29] dionysus69: has joined #RubyOnRails
[09:30:39] cschneid: has joined #RubyOnRails
[09:32:20] vovs03: has joined #RubyOnRails
[09:44:45] cschneid: has joined #RubyOnRails
[09:57:50] workmad3: has joined #RubyOnRails
[09:57:55] apeiros: ACTION back
[09:58:47] cschneid: has joined #RubyOnRails
[10:00:27] DrYockel: has joined #RubyOnRails
[10:28:38] apparition47: has joined #RubyOnRails
[10:39:25] cabotto: has joined #RubyOnRails
[10:40:12] conta: has joined #RubyOnRails
[10:48:45] maiz: has joined #RubyOnRails
[10:58:01] cabotto: has joined #RubyOnRails
[10:59:49] cabotto: has joined #RubyOnRails
[11:00:13] cschneid: has joined #RubyOnRails
[11:04:10] GodFather: has joined #RubyOnRails
[11:14:12] cschneid: has joined #RubyOnRails
[11:16:07] duderonomy: has joined #RubyOnRails
[11:20:03] barhum2013: has joined #RubyOnRails
[11:24:33] cabotto: has joined #RubyOnRails
[11:25:35] za1b1tsu: has joined #RubyOnRails
[11:25:48] Radar: GOOD EVENING
[11:38:44] GodFather: has joined #RubyOnRails
[11:40:21] mauro1254: Hi folks. Is there an ORM for RESTful webservice that integrates (supports associations) with ActiveRecord?
[11:46:30] DrYockel: has joined #RubyOnRails
[11:47:22] cschneid: has joined #RubyOnRails
[11:47:41] Radar: mauro1254: those who have come before you have failed in their endeavours
[11:48:08] Radar: http://logs.ryanbigg.com/RubyOnRails?date=2018-06-21#7071048
[11:48:09] Radar: http://logs.ryanbigg.com/RubyOnRails?date=2018-06-14#7055302
[11:48:12] Radar: http://logs.ryanbigg.com/RubyOnRails?date=2018-06-13#7052144
[11:48:31] Radar: http://logs.ryanbigg.com/RubyOnRails?date=2018-05-18#7005202
[11:48:34] Radar: http://logs.ryanbigg.com/RubyOnRails?date=2018-05-17#7003912
[11:48:37] Radar: Can we put an end to this question now?
[11:49:45] Radar: mauro1254: What you're probably after is something that makes HTTP calls to an endpoint.... but it's hard to know for certain without more information.
[11:49:57] Radar: mauro1254: do you control both applications?
[11:51:02] mauro1254: Radar: you are right, I asked the question multiple times. Yes, I control both applications.
[11:51:23] Radar: mauro1254: Ok. Then you get the benefit that you can control how the two applications talk to each other.
[11:51:34] Radar: Is there a reason that they can't share the same database?
[11:52:54] mauro1254: Radar : there are many apps that need to access shared data. One solution is to build an engine and share AR models (share same DB)
[11:53:26] mauro1254: Radar : the other solution is to use ARes (or equivalent) models
[11:53:27] Radar: ok. Maybe then a gem which contains Ruby code that talks to applications? I'm thinking like AWS's SDKs.
[11:54:20] mauro1254: Radar : I prefer the second solution, but it seems that certain things are not supported (associations between local / remote odels)
[11:54:33] Radar: Yes, that's right. They aren't.
[11:54:40] Radar: People have tried to do this and have not had a good time
[11:54:51] Radar: it is better to create your local models with one call, and your remote models with a separate call
[11:55:06] dblessing: has joined #RubyOnRails
[11:56:10] mauro1254: Radar : problems happens when you have a collection of objects and you want to prevent N+1 query problem, or when you have N to N relationships
[11:56:53] Radar: mauro1254: lucky for you, you can design the APIs to prevent those from happening
[11:58:10] mauro1254: Radar : I have the problem if I use AR for local models, ARes for remote ones
[11:58:27] Radar: I am telling you: do not use ARes. Down that path lies madness.
[11:58:37] Radar: You'll probably be fine with just http.rb and some clever JSON parsing
[12:02:21] mauro1254: Radar : sharing the DB is probably the easiest solution
[12:02:27] beanish: has joined #RubyOnRails
[12:03:14] mauro1254: An engin to share models, migration are installed only in the master application.
[12:04:35] mauro1254: Radar : thx for your help
[12:04:47] Radar: mauro1254: Hopefully this question is now put to bed.
[12:04:55] Radar: It has been over a month. Good to get closure.
[12:06:07] mauro1254: Radar : hehe
[12:09:59] cschneid: has joined #RubyOnRails
[12:15:03] Saukk: has joined #RubyOnRails
[12:15:06] superflit: has joined #RubyOnRails
[12:15:18] cschneid: has joined #RubyOnRails
[12:20:39] roamingdog: has joined #RubyOnRails
[12:23:28] fmcgeough: has joined #RubyOnRails
[12:28:15] cabotto: has joined #RubyOnRails
[12:29:22] cschneid: has joined #RubyOnRails
[12:29:50] beanish: has joined #RubyOnRails
[12:35:34] johndunn: has joined #RubyOnRails
[12:38:27] sandstrom: has joined #RubyOnRails
[12:38:36] cschneid: has joined #RubyOnRails
[12:44:21] johndunn: has left #RubyOnRails: ()
[12:46:15] agent_white: has joined #RubyOnRails
[12:56:55] agent_white: has left #RubyOnRails: ()
[12:58:51] cabotto: has joined #RubyOnRails
[13:02:16] cschneid: has joined #RubyOnRails
[13:03:48] conta: has joined #RubyOnRails
[13:14:37] fmcgeough: has joined #RubyOnRails
[13:14:44] jottr_: has joined #RubyOnRails
[13:16:28] cschneid: has joined #RubyOnRails
[13:21:34] sandstrom: has joined #RubyOnRails
[13:24:03] beanish: has joined #RubyOnRails
[13:29:48] jottr_: has joined #RubyOnRails
[13:30:48] sandstrom: has joined #RubyOnRails
[13:34:20] cabotto: has joined #RubyOnRails
[13:34:47] cschneid: has joined #RubyOnRails
[13:48:00] cschneid: has joined #RubyOnRails
[14:00:44] cschneid: has joined #RubyOnRails
[14:00:47] barhum2013: has joined #RubyOnRails
[14:41:52] superflit: has joined #RubyOnRails
[14:43:04] barhum2013: has joined #RubyOnRails
[14:45:40] chouhoulis: has joined #RubyOnRails
[14:54:16] superflit: has joined #RubyOnRails
[14:58:46] chouhoulis: has joined #RubyOnRails
[15:02:25] tdy: has joined #RubyOnRails
[15:02:32] cabotto: has joined #RubyOnRails
[15:03:28] akaiiro: has joined #RubyOnRails
[15:31:00] weird_error: has joined #RubyOnRails
[15:37:24] cagomez: has joined #RubyOnRails
[15:38:18] cagomez: has joined #RubyOnRails
[15:39:38] orbyt_: has joined #RubyOnRails
[15:45:45] Dbugger: has joined #RubyOnRails
[15:56:11] cagomez: has joined #RubyOnRails
[16:00:31] cagomez: has joined #RubyOnRails
[16:00:36] akaiiro: has joined #RubyOnRails
[16:03:52] blackcross: If I have a one to many association of model User to model Company, am I able to do UserInstance.companies.create(args)? and have that create company and associate to UserInstance?
[16:05:15] blackcross: found the answer :)
[16:13:28] cabotto: has joined #RubyOnRails
[16:13:34] jcarl43: has joined #RubyOnRails
[16:16:26] cabotto: has joined #RubyOnRails
[16:18:04] dviola: has joined #RubyOnRails
[16:23:06] dionysus69: has joined #RubyOnRails
[16:29:45] crankharder: has joined #RubyOnRails
[16:36:59] roamingdog: has joined #RubyOnRails
[16:39:17] eckhardt_: has joined #RubyOnRails
[16:41:03] DrYockel: has joined #RubyOnRails
[16:45:13] markh: has joined #RubyOnRails
[16:48:38] maiz: has joined #RubyOnRails
[16:49:12] superflit: has joined #RubyOnRails
[16:49:51] Saukk: has joined #RubyOnRails
[16:53:25] barhum2013: has joined #RubyOnRails
[16:53:50] [Butch]: has joined #RubyOnRails
[16:56:12] benlieb: has joined #RubyOnRails
[17:04:53] cagomez: has joined #RubyOnRails
[17:13:51] vedu_: has joined #RubyOnRails
[17:21:15] MichaelG: has joined #RubyOnRails
[17:21:31] gheegh: has joined #RubyOnRails
[17:22:16] sameerynho: has joined #RubyOnRails
[17:28:57] benlieb: has joined #RubyOnRails
[17:30:39] roamingdog: has joined #RubyOnRails
[17:31:56] orbyt_: has joined #RubyOnRails
[17:36:15] cagomez: has joined #RubyOnRails
[17:49:24] jottr_: has joined #RubyOnRails
[17:58:27] sandstrom: has joined #RubyOnRails
[18:14:55] ynonp: has joined #RubyOnRails
[18:19:04] cagomez: has joined #RubyOnRails
[18:35:30] cagomez: has joined #RubyOnRails
[18:45:03] cagomez: has joined #RubyOnRails
[18:56:36] pankaj: has joined #RubyOnRails
[18:56:38] pankaj: Is their any most preferred website used by ruby users particularly to download and use html themes for free so that to be used in their projects?
[18:59:39] Quatro: has joined #RubyOnRails
[19:06:32] jottr_: has joined #RubyOnRails
[19:11:13] johndunn: has joined #RubyOnRails
[19:29:55] Aherin: has joined #RubyOnRails
[19:41:57] cagomez: has joined #RubyOnRails
[19:42:51] conta1: has joined #RubyOnRails
[19:45:40] Aherin_: has joined #RubyOnRails
[19:45:43] tycoon177: i cannot figure this out...i'm trying to define a new route inside a namespace (which i've done many times before) and i keep getting `uninitialized constant Reports::Controller::Controller` where reports is the namespace and controller is my controller name
[19:45:50] tycoon177: does anyone know why this may be happening?
[19:47:26] tycoon177: and my controller is defined as `class Reports::SomeController < ApplicationController`
[19:47:31] tycoon177: so i'm not sure what I'm doing wrong
[19:48:19] tycoon177: aaaaand disregard. I was trying to access the model under the controller's name in the index method
[20:05:51] johndunn: has left #RubyOnRails: ()
[20:12:45] mjacob: Radar: i didn't find a way to add you as a subscriber: https://github.com/rails/rails/issues/33219
[20:18:26] jottr_: has joined #RubyOnRails
[20:19:57] orbyt_: has joined #RubyOnRails
[20:21:22] apeiros_: has joined #RubyOnRails
[20:22:13] cagomez: has joined #RubyOnRails
[20:28:58] cagomez: has joined #RubyOnRails
[20:41:15] amperry: has joined #RubyOnRails
[20:49:40] cagomez: has joined #RubyOnRails
[20:50:28] mheld: has joined #RubyOnRails
[20:52:33] cagomez: has joined #RubyOnRails
[21:23:09] jottr_: has joined #RubyOnRails
[21:41:49] jottr_: has joined #RubyOnRails
[21:43:10] desperek: has joined #RubyOnRails
[21:50:27] weird_error: has joined #RubyOnRails
[21:57:11] bijan_: has joined #RubyOnRails
[21:59:43] bijan_: Hello ladies and gentlemen, I'm starting a new Rails project and before I run the rails new command I asked myself if it would be feasible to use SQLite in production. What do you think? The Sqlite websites says it will be fine for medium traffic sites (<100K hits/day). Any opinion on that?
[22:24:57] jhack: has joined #RubyOnRails
[22:25:55] dblessing: has joined #RubyOnRails
[22:29:20] GodFather: has joined #RubyOnRails
[22:33:01] cschneid: has joined #RubyOnRails
[22:36:30] orbyt_: has joined #RubyOnRails
[22:39:09] jottr_: has joined #RubyOnRails
[22:55:07] cagomez: has joined #RubyOnRails
[23:01:01] crankharder: has joined #RubyOnRails
[23:03:06] crankharder: has joined #RubyOnRails
[23:03:37] eckhardt: has joined #RubyOnRails
[23:13:29] jhack: has joined #RubyOnRails
[23:14:25] sdn90: has joined #RubyOnRails
[23:24:09] bijan_: has joined #RubyOnRails
[23:35:58] bijan_: has joined #RubyOnRails
[23:42:55] darkhanb: has joined #RubyOnRails
[23:43:21] jhack: has joined #RubyOnRails
[23:49:42] eckhardt: has joined #RubyOnRails
[23:51:59] bijan_: has joined #RubyOnRails