« Back to channel list

#RubyOnRails - 01 May 2017

« Back 1 day Forward 1 day »
[00:12:46] Or1on: has joined #RubyOnRails
[00:41:17] iliketurtles: has joined #RubyOnRails
[00:53:47] spion: has joined #RubyOnRails
[00:55:00] brendan-: has joined #RubyOnRails
[01:30:33] gabeodess: has joined #RubyOnRails
[01:31:24] gabeodess: can anyone help me get ruby 2.4.1 installed on my machine? I was running into issue with RVM so I tried using ruby-install instead, but still having issues.
[01:32:00] gabeodess: seems to be related to something called “ossl_ssl.c”?
[01:32:56] sevenseacat: has joined #RubyOnRails
[01:37:35] quirkycoders: has joined #RubyOnRails
[01:52:59] Technodrome: has joined #RubyOnRails
[02:03:56] libastral: has joined #RubyOnRails
[02:16:46] djbkd: has joined #RubyOnRails
[02:22:42] jon31: has joined #RubyOnRails
[02:23:37] cerulean: install openssl
[02:23:49] cerulean: brew install libopenssl-dev or something like that
[02:24:24] sevenseacat: please don't randomly guess things.
[02:24:40] cerulean: hey sevenseacat o/
[02:25:46] cerulean: i guess he's gone or something because i cant hilight him
[02:26:45] jon31: When using .includes, is it normal for an SQL query to take 50ms, but for rails to load all the records into the memory ETC takes almost 3 seconds. there are 600 records in the table, and 7000 records in association table
[02:27:13] messine: has joined #RubyOnRails
[02:27:14] sevenseacat: thats a lot to load all at once.
[02:27:29] sevenseacat: do you actually need to load 7600 records into memory?
[02:28:09] jon31: sevenseacat: depends, does it need to load into memory in order to render it as json data as a response? then yes :<
[02:28:19] sevenseacat: yes, and thats not good
[02:28:36] sevenseacat: json response not paginated in any way?
[02:29:15] jon31: nope... but should it even be taking this long?
[02:29:49] sevenseacat: it doesnt surprise me
[02:29:54] messine: does this association look good? http://imgur.com/a/h9DYZ
[02:30:08] jon31: is there some sort of work around? should i just use find_by_sql and then manually build the json?
[02:30:19] sevenseacat: I'd start with pagination in your json response :)
[02:30:44] sevenseacat: but without seeing any code, logs, or anything at all, its hard to give solid advice
[02:30:50] jon31: pagination is not really an option, and i can't use caching as it's a search query, so caching won't be much of a help
[02:31:42] sevenseacat: like, have you profiled to see whats taking time? it might be the building of json taking 3 seconds, not the hydrating of records from the db
[02:32:10] jon31: .includes(:model).load takes 1.5 seconds and then to_json takes another 1.5 seconds
[02:32:33] sevenseacat: can we see the logs of making the full request?
[02:32:51] jon31: yea absolutely.. gimme a minute :)
[02:35:05] messine: is there a good way to split a model into two?
[02:35:35] messine: existing records and all
[02:38:42] jon31: sevenseacat: https://gist.github.com/slavajacobson/528abedc9c4e8d61fdab3f9718b0c3b6
[02:39:13] jon31: as you see Completed 200 OK in 3317ms (Views: 39.4ms | ActiveRecord: 44.8ms) :(
[02:40:24] sevenseacat: why are you loading all of the photos to only include one URL in the output?
[02:41:03] sevenseacat: that would be a quick win, to fix that up :)
[02:41:14] jon31: sevenseacat: I was just testing, I am planning to include all the images
[02:45:20] sevenseacat: do you really need to do that? and why can't you paginate things?
[02:45:56] cerulean: has left #RubyOnRails: ()
[02:46:49] iliketurtles: has joined #RubyOnRails
[02:47:06] jon31: yeah.. i guess I could just merge all images into a single field to avoid doing includes ...just joking :-/ even with paginatign 100 records, it's still very slow, 600ms... maybe it's a bug in rails 5.0.2? hmm
[02:48:01] sevenseacat: for rails, that doesnt seem excessively slow
[02:49:28] sevenseacat: also, you're not actually using your search filtering - so that will cut down the number of records, no?
[02:50:45] jon31: sevenseacat: yeah eventually... the problem is, there's only 600 test records, in the end there will be around 7000 or even 10k. So after the user adds filters, they will end up with around 600 records on average
[02:51:45] thomasfedb: sevenseacat, hey, long time!
[02:51:47] jon31: It just means i can't use includes.. I'll have to save couple of images in the parent table. When I don't do includes, the response time goes from 3+ seconds down to half a second... I was aiming for 100ms tops, but I guess that's not gonna be possible
[02:51:59] sevenseacat: thomasfedb: howdy :)
[02:53:08] jon31: sevenseacat: yeah, without includes, it takes 0.10 seconds for .load and 0.06 seconds to build the json output
[02:53:42] thomasfedb: Jon31, .includes is all good until you discover caching at the view
[02:54:12] jon31: thomasfedb: what do you mean?
[02:54:38] thomasfedb: Jon31, fragment caching, it's magical
[02:55:59] jon31: it's for a json search api sort of thing... does it still apply?
[03:00:28] sandstrom: has joined #RubyOnRails
[03:00:49] thomasfedb: Jon31, hard to say on just that
[03:01:31] quazimodo: has joined #RubyOnRails
[03:02:23] jon31: i am still kinda shocked that it gets so slow just from some 7000 records.. it's not like I am loading a million :<
[03:08:43] mjora7: has joined #RubyOnRails
[03:11:20] sevenseacat: for a quick test I fired up a rails console and ran `Benchmark.measure { 6000.times { Merchant.new } }` (Merchant being a model in my app) - real time, 2.1 seconds
[03:11:41] sevenseacat: so I'm not surprised at all
[03:12:49] iliketurtles: has joined #RubyOnRails
[03:27:54] jon31: hmmm 0.6 on my vagrant
[03:32:07] jon31: find_by_sql might be the solution
[03:45:05] irishfromua: has joined #RubyOnRails
[04:46:23] gusrub: has joined #RubyOnRails
[04:48:32] Technodrome: has joined #RubyOnRails
[04:51:50] gusrub_: has joined #RubyOnRails
[05:02:23] iliketurtles: has joined #RubyOnRails
[06:10:15] dionysus69: has joined #RubyOnRails
[06:22:45] srinidhi: has joined #RubyOnRails
[06:25:59] quirkycoders: has joined #RubyOnRails
[06:35:38] srinidhi: has joined #RubyOnRails
[06:38:37] irishfromua: has joined #RubyOnRails
[06:59:04] beauby: has joined #RubyOnRails
[07:02:20] jon31: has joined #RubyOnRails
[07:06:53] baash05: has joined #RubyOnRails
[07:07:26] baash05: I'm trying to define views inside an engine, and = block_head is failing..
[07:07:37] baash05: Anyone know what I should be including?
[07:11:41] dionysus69: has joined #RubyOnRails
[07:12:36] Qchmqs: has joined #RubyOnRails
[07:35:56] captainfantastic: has joined #RubyOnRails
[07:36:21] captainfantastic: can I write initializer on my class that's derived from actionmailer?
[07:36:56] Gambaroni: has joined #RubyOnRails
[07:37:16] captainfantastic: I want to store env value in a variable and append them to every email header
[07:37:56] Gambaroni: I'm trying to order an has_many relationship by a nested attribute, like this: has_many :survey_page_answers, -> { order "survey_page.position asc" }. Since it doesn't work I obviously do something wrong, but what is wrong?
[07:41:49] beauby: has joined #RubyOnRails
[07:43:30] arBmind: has joined #RubyOnRails
[07:46:57] MasterAsia: Gambaroni, think I've done that before
[07:47:03] MasterAsia: try including the association first
[07:50:48] Gambaroni: masterasia: like -> { include(:survey_page).order ... ?
[07:52:01] MasterAsia: includes(:survey_page).order("survey_page.attribute")
[07:52:07] MasterAsia: might have to play around with it
[07:52:35] MasterAsia: Like pluralizing ("survey_pages.attribute")
[07:57:00] Gambaroni: masterasia: it works! Thanks :)
[07:57:18] Gambaroni: masterasia: how do I do to include several associations then?
[07:57:30] Gambaroni: masterasia: like this has many "has_many :survey_question_answers, through: :survey_page_answers"?
[07:58:54] mikecmpbll: has joined #RubyOnRails
[08:05:05] User458764: has joined #RubyOnRails
[08:10:18] Wakatara: has joined #RubyOnRails
[08:18:45] srinidhi: has joined #RubyOnRails
[08:34:49] quirkycoders: has joined #RubyOnRails
[08:39:40] Or1on: has joined #RubyOnRails
[08:54:46] lxsameer: has joined #RubyOnRails
[09:24:29] arBmind: has joined #RubyOnRails
[09:37:54] pLaTo0n: has joined #RubyOnRails
[09:46:41] quirkycoders: has joined #RubyOnRails
[09:54:11] defsdoor: has joined #RubyOnRails
[10:12:33] srinidhi: has joined #RubyOnRails
[10:15:25] oddalot: has joined #RubyOnRails
[10:17:15] wethu: has joined #RubyOnRails
[10:19:51] MalMen: has joined #RubyOnRails
[10:28:16] mikecmpbll: has joined #RubyOnRails
[10:42:26] sandstrom: has joined #RubyOnRails
[10:59:25] Or1on: has joined #RubyOnRails
[11:04:24] Qchmqs: has joined #RubyOnRails
[11:23:52] justAllgood: has joined #RubyOnRails
[11:26:50] User458764: has joined #RubyOnRails
[11:27:22] User458764: has joined #RubyOnRails
[11:37:13] justAllgood1: has joined #RubyOnRails
[11:38:44] codelahoma: has joined #RubyOnRails
[11:59:13] User458764: has joined #RubyOnRails
[11:59:18] aseibert: has joined #RubyOnRails
[12:12:19] HoierM: has joined #RubyOnRails
[12:12:48] netzfisch: has joined #RubyOnRails
[12:20:43] fcano1: has joined #RubyOnRails
[12:26:25] roamingdog: has joined #RubyOnRails
[12:29:31] Or1on: has joined #RubyOnRails
[12:32:11] pupsicle: has joined #RubyOnRails
[12:50:55] rfoust: has joined #RubyOnRails
[13:05:40] quazimodo: has joined #RubyOnRails
[13:14:30] Ergo: has joined #RubyOnRails
[13:16:36] thomasfedb: Radar, thoughts: belongs_to touch: true should be a NOOP if @destroyed_by_association is set?
[13:19:31] syndikate: I have namespaced my api and folder structure too, how do I create a controller inside that folder but without having to have the class inheritance as I used Module for namespacing?
[13:20:06] syndikate: Ex: When I create using "rails g controller api/v1/my_controller.rb" it comes inside the desired location but with class Api::V1 < ApplicationController
[13:21:15] syndikate: whereas what I use is module Api::V1 inside which, class MyController < ApiController
[13:21:15] thomasfedb: syndikate, don't personally use the generator, but don't you usually pass the name as `rails g controller API::V1::MyController` ?
[13:21:15] sevenseacat: the generators can't do everything for you
[13:21:30] thomasfedb: agree with sevenseacat
[13:21:39] sevenseacat: they're meant for a starting point
[13:21:40] syndikate: thomasfedb, I do and I get the above result
[13:21:42] thomasfedb: I personally don't use em
[13:22:04] syndikate: sevenseacat, I just wanted to know if I was doing the right procedure by creating and and then renaming and arranging it myself
[13:22:17] syndikate: I am fine with creating and then editing them myself
[13:22:22] aseibert: has joined #RubyOnRails
[13:22:25] syndikate: Just wanted to know if there were some other ways that I was missing
[13:22:27] thomasfedb: syndikate, personally I'd just create them by hand for starters
[13:22:29] quirkycoders: has joined #RubyOnRails
[13:22:30] sevenseacat: I'd just skip the generator if its too much effort, and make the file manually
[13:22:50] syndikate: Ah okay, thanks thomasfedb and sevenseacat, I prefer that too. So, I was on the right track then :)
[13:27:10] patarr: has joined #RubyOnRails
[13:30:14] User458764: has joined #RubyOnRails
[13:37:21] cpruitt: has joined #RubyOnRails
[13:42:41] DrYockel: has joined #RubyOnRails
[13:44:22] DLSteve: has joined #RubyOnRails
[13:52:39] roamingdog: has joined #RubyOnRails
[13:54:53] patarr1: has joined #RubyOnRails
[13:55:00] romeoh: has joined #RubyOnRails
[13:56:13] EXCHGR: has joined #RubyOnRails
[13:58:14] centrx: has joined #RubyOnRails
[13:59:36] ResidentBiscuit: has joined #RubyOnRails
[14:00:19] choke: has joined #RubyOnRails
[14:02:42] irishfromua: has joined #RubyOnRails
[14:08:04] arBmind: has joined #RubyOnRails
[14:10:19] Technodrome: has joined #RubyOnRails
[14:21:47] fourcolors: has joined #RubyOnRails
[14:22:40] quazimodo: has joined #RubyOnRails
[14:23:03] umdstu: has joined #RubyOnRails
[14:23:18] umdstu: trying to use capistrano to deploy an app to another server than my normal one. things go ok until it gets to precompiling the assets. I get this odd Encoding::ConverterNotFoundError: code converter not found (UTF-8 to UTF-32LE) error. it's the same branch, same ruby version
[14:25:15] Andr3as: looks like a jruby issue.. https://github.com/jruby/jruby/issues/3647
[14:25:36] umdstu: the stack trace points to this line: https://github.com/rails/sprockets/blob/v3.7.0/lib/sprockets/utils.rb#L106 but when i modify the file to print out Encoding::UTF_32LE, it finds it just fine. And if I try to manually encode that file in the console, it works fine
[14:25:51] umdstu: Andr3as: i'm on ruby-2.2, not jruby :/
[14:27:13] Andr3as: hmm.. sry.. no idea then
[14:27:33] umdstu: no worries, i appreciate the help!
[14:30:15] Jon30: has joined #RubyOnRails
[14:44:11] armyriad: has joined #RubyOnRails
[14:52:17] am55: has joined #RubyOnRails
[14:54:48] quazimodo: has joined #RubyOnRails
[14:56:03] aajjbb: has joined #RubyOnRails
[14:59:43] fourcolors: has joined #RubyOnRails
[15:00:23] irishfromua: has joined #RubyOnRails
[15:00:29] dblessing: has joined #RubyOnRails
[15:01:30] fourcolors: has joined #RubyOnRails
[15:05:34] patarr__: has joined #RubyOnRails
[15:05:53] patarr___: has joined #RubyOnRails
[15:08:04] quazimodo: has joined #RubyOnRails
[15:16:13] chouhoulis: has joined #RubyOnRails
[15:18:24] User458764: has joined #RubyOnRails
[15:18:25] LightStalker: has joined #RubyOnRails
[15:18:40] cpruitt: has joined #RubyOnRails
[15:20:04] irishfromua: has joined #RubyOnRails
[15:21:05] fourcolors: has joined #RubyOnRails
[15:22:00] fourcolors: has joined #RubyOnRails
[15:31:45] fourcolors: has joined #RubyOnRails
[15:33:47] fourcolors: has joined #RubyOnRails
[15:33:56] blackjid: has joined #RubyOnRails
[15:35:03] HoierM: has joined #RubyOnRails
[15:40:05] fourcolors: has joined #RubyOnRails
[15:43:26] justAllgood: has joined #RubyOnRails
[15:44:17] ResidentBiscuit: has joined #RubyOnRails
[15:44:47] ResidentBiscuit: has joined #RubyOnRails
[15:45:12] ResidentBiscuit: has joined #RubyOnRails
[15:45:37] ResidentBiscuit: has joined #RubyOnRails
[15:46:02] ResidentBiscuit: has joined #RubyOnRails
[15:46:27] ResidentBiscuit: has joined #RubyOnRails
[15:47:31] [Butch]: has joined #RubyOnRails
[15:47:49] Blaze_Boy: has joined #RubyOnRails
[15:50:23] bsec_: has joined #RubyOnRails
[15:51:43] [Butch]_: has joined #RubyOnRails
[15:54:51] [Butch]: has joined #RubyOnRails
[15:59:57] quirkycoders: has joined #RubyOnRails
[16:09:52] gaucheph: has joined #RubyOnRails
[16:16:55] workmad3: has joined #RubyOnRails
[16:17:36] irishfromua: has joined #RubyOnRails
[16:20:45] hobodave: has joined #RubyOnRails
[16:30:22] gusrub: has joined #RubyOnRails
[16:32:10] helpa-bot: has joined #RubyOnRails
[16:34:11] helpa-bot: has joined #RubyOnRails
[16:37:14] sunya7a__: has joined #RubyOnRails
[16:38:19] helpa-bot: has joined #RubyOnRails
[16:38:57] jnj: has joined #RubyOnRails
[16:40:20] helpa-bot: has joined #RubyOnRails
[16:40:37] jnj: Hey guys, I'm having a minor issue with routing. I have a pages controller for static pages. My route for the satic page is "get '/about_application', to: 'pages#about_application'", and my url looks like this: link_to "About", "/about_application". This link will only work on root, when I go to a different page of the application /about_application just gets appended onto the end of whatever path I'm on
[16:42:23] andatche: has joined #RubyOnRails
[16:42:40] helpa: has joined #RubyOnRails
[16:42:41] ProofTechnique: has joined #RubyOnRails
[16:42:41] shtirlic: has joined #RubyOnRails
[16:42:47] CustosLimen: has joined #RubyOnRails
[16:42:57] jtperreault: has joined #RubyOnRails
[16:42:58] tbuehlmann: has joined #RubyOnRails
[16:43:05] HalcyonicStorm: has joined #RubyOnRails
[16:43:10] DarkBushido: has joined #RubyOnRails
[16:43:15] poikon: has joined #RubyOnRails
[16:43:50] daxroc: has joined #RubyOnRails
[16:45:35] Cork: has joined #RubyOnRails
[16:47:35] auv: has joined #RubyOnRails
[16:47:36] Kamuela: has joined #RubyOnRails
[16:51:46] Iacobus: has joined #RubyOnRails
[16:52:20] mattwc: has joined #RubyOnRails
[16:52:26] newton: has joined #RubyOnRails
[16:52:35] jlpeters: has joined #RubyOnRails
[16:58:55] Blaze_Boy: has joined #RubyOnRails
[17:13:05] Or1on: has joined #RubyOnRails
[17:34:11] gaucheph: has joined #RubyOnRails
[17:40:25] polishdub: has joined #RubyOnRails
[17:42:05] bsec_: has left #RubyOnRails: ()
[17:46:26] gaucheph: has joined #RubyOnRails
[17:47:40] DoctorMonocular: has joined #RubyOnRails
[17:53:07] User458764: has joined #RubyOnRails
[17:58:29] aajjbb: has joined #RubyOnRails
[18:03:57] hobodave_: has joined #RubyOnRails
[18:06:12] planigan: has joined #RubyOnRails
[18:07:25] podman: has joined #RubyOnRails
[18:07:34] soahccc: has joined #RubyOnRails
[18:09:49] fcano1: has joined #RubyOnRails
[18:12:21] am55: has joined #RubyOnRails
[18:12:24] workmad3: has joined #RubyOnRails
[18:14:39] quirkycoders: has joined #RubyOnRails
[18:19:09] gusrub: has joined #RubyOnRails
[18:20:15] kies: has joined #RubyOnRails
[18:21:50] romeoh: has joined #RubyOnRails
[18:23:09] hobodave: has joined #RubyOnRails
[18:27:03] aajjbb: has joined #RubyOnRails
[18:30:01] roamingdog: has joined #RubyOnRails
[18:46:02] quirkycoders: has joined #RubyOnRails
[18:57:33] jnj: Hey guys, for some reason I have routes for my static pages and they're working fine on dev, but not on production
[18:59:54] User458764: has joined #RubyOnRails
[19:01:48] L0tDFog: has joined #RubyOnRails
[19:10:38] blackmesa: has joined #RubyOnRails
[19:12:55] knight33: has joined #RubyOnRails
[19:17:34] syndikate: Hello, I am trying to understand how I can incorporate OAuth(Google, Github) to my Api App. I understand it works based on tokens, so if my app is API only then does it require a frontend framework to handle the authentication part?
[19:26:03] sandstrom: has joined #RubyOnRails
[19:28:10] gaucheph: has joined #RubyOnRails
[19:33:35] roamingdog: has joined #RubyOnRails
[19:40:48] linetrace: testing a mailer via delayed_job and getting "ActionView::Template::Error: No route matches {}"
[19:41:02] linetrace: what might cause that?
[19:43:09] linetrace: looks like maybe a link_to
[19:45:35] linetrace: I'm only using *_url (not *_path) and I have config.action_mailer.default_url_options set
[20:00:28] ahrs: has joined #RubyOnRails
[20:02:15] justAllgood: has joined #RubyOnRails
[20:03:19] choke: has joined #RubyOnRails
[20:09:36] LastWhisper: has joined #RubyOnRails
[20:14:11] hndk: has joined #RubyOnRails
[20:19:38] mtkd: has joined #RubyOnRails
[20:25:19] arBmind: has joined #RubyOnRails
[20:28:47] ger0: has joined #RubyOnRails
[20:33:03] duderonomy: has joined #RubyOnRails
[20:36:09] hndk: has joined #RubyOnRails
[20:45:21] romeoh: has joined #RubyOnRails
[20:48:08] nekomune: has joined #RubyOnRails
[20:50:35] xco: has joined #RubyOnRails
[20:59:36] roamingdog: has joined #RubyOnRails
[21:19:39] Blaze_Boy: has joined #RubyOnRails
[21:34:19] blackmesa: has joined #RubyOnRails
[21:36:33] gusrub: has joined #RubyOnRails
[21:39:37] ResidentBiscuit: Are named routes (foo_bar_path) available in the ApplicationController? I keep getting `undefined local variable or method` when I try to get a named route in ApplicationController.
[21:45:15] mustmodify: has joined #RubyOnRails
[21:45:18] mustmodify: what's the technical name for "I'm going to add some stuff to the history so if you press back, you'll just change states within this single page app"?
[21:46:37] blackmesa: has joined #RubyOnRails
[21:47:24] mlt-: ResidentBiscuit: It should be
[21:48:44] mlt-: ResidentBiscuit: check if there is no typo or something
[21:50:16] ResidentBiscuit: No typo, the name show ups in rake routes, no named paths seem to work in ApplicationController. I can copy the same path over to a "real" conntroller and it works fine
[21:50:32] ResidentBiscuit: Thought maybe there was something in Rails that says you can't do that, but I can't find anything about it
[21:53:05] mlt-: ResidentBiscuit: The only related thing I have there is: add_breadcrumb 'Home', :root_path
[21:53:10] mlt-: that works)
[21:53:50] mlt-: mustmodify: default behavior? :-)
[21:55:57] mustmodify: mlt-: apparently it's called PushState
[21:56:04] mustmodify: or pushState
[21:56:34] mustmodify: I just went to reset my password on a site. I submitted the form, and got, "Try again. Your account had to be moved over from our old site. But now you can reset your password."
[21:56:48] mustmodify: Uh... is that a two-request kind of action? :)
[21:57:27] amperry: has joined #RubyOnRails
[21:58:00] mlt-: oh... I though you were looking into explaining that to a user since you did mention "state" in your question.
[21:58:07] mlt-: mustmodify: sounds phishy
[21:58:20] mlt-: were you on original site all the time?
[21:59:02] amperry: hi folks, I've got a case where adding `.count` to an AR query returns results (in a byebug session, anyhow) but I get no results without it. Gist here: https://gist.github.com/amp108/f75d3821f5fa7e3042369c18e1a23226
[21:59:42] MasterAsia: How can I eval embedded ruby inside a string?
[21:59:44] ResidentBiscuit: has joined #RubyOnRails
[22:00:30] roamingdog: has joined #RubyOnRails
[22:05:43] amperry: masterasia: it it's a simple value, you should be able to do something like: "The value of foo's id is: #{foo.id}"
[22:06:36] MasterAsia: amperry, thanks. I got it
[22:06:48] MasterAsia: I ended up using
[22:07:01] MasterAsia: ERB.new("<%= @name %>").result(binding)
[22:07:13] MasterAsia: and then ::raw it
[22:08:57] mustmodify: mlt-: I don't mean anything strange. I mean like ... in gmail. You press back but it stays on that page. Just goes from ... for instance ... an email to the inbox.
[22:08:57] matcouto: has joined #RubyOnRails
[22:12:20] gusrub: has joined #RubyOnRails
[22:17:08] matcouto: Hi guys, we want to create a gem that will have 3 CRUDS to be shared among 3 applications. That said, we were wondering whether it would be worth it to also generate in this gem, the views, e.g.: Devise, and each application would be just overriding the layout with their own, or just encapsulate the CRUD business logic and each product would implement their own views?
[22:17:16] matcouto: what do you guys reckon?
[22:19:08] amperry: matcouto: off the top of my head, I'd say keep the views out of the gem. It will be easier to maintain and debug, especially if/when the views change.
[22:20:08] amperry: that said, you could probably create a view or helper for each app, whose job was to interact with that gem.
[22:21:54] beauby: has joined #RubyOnRails
[22:22:11] matcouto: amperry: even if they are very straightforward CRUD's?
[22:22:36] Radar: GOOD MORNING
[22:22:52] mustmodify: has left #RubyOnRails: ()
[22:24:01] amperry: matcouto: couldn't tell you, because I don't know how straightforward they are, but I'd keep them separate just from an MVC standpoint, and from the assumption that they never remain simple when released in the wild. But someone with more experience should probably pipe in.
[22:24:18] amperry: Radar: morning
[22:26:36] matcouto: I see. Thanks for your opinion. amperry
[22:26:55] matcouto: Anyone else would like to give your 2cents? :)
[22:31:11] amperry: if I have an AR query that joins two models (as most of mine do), how do you/can you call a scope on the joined one? Like: "ModelFoo.joins(ModelBar).scope_for_model_bar"?
[22:33:48] Technodrome: has joined #RubyOnRails
[22:52:16] amperry: I anyone has signed on since last I asked, I have a problem with an AR query which, in a byebug console session, returns a count if I add '.count' to it, but returns nothing if I don't. Gist: https://gist.github.com/amp108/f75d3821f5fa7e3042369c18e1a23226
[23:02:22] romeoh: has joined #RubyOnRails
[23:05:07] AntiSpamMeta: has joined #RubyOnRails
[23:15:33] wethu: has joined #RubyOnRails
[23:19:50] blackmesa: has joined #RubyOnRails
[23:24:59] romeoh: has joined #RubyOnRails
[23:38:39] fourcolors: has joined #RubyOnRails
[23:42:53] chouhoulis: has joined #RubyOnRails
[23:44:50] chouhoulis: has joined #RubyOnRails
[23:58:55] uks: has joined #RubyOnRails