« Back to channel list

#RubyOnRails - 21 November 2017

« Back 1 day Forward 1 day »
[00:00:14] noob_on_rails: nah .. :( anyways thanks for trying!
[00:00:27] noob_on_rails: ill look into it tomorrow , it's too late now
[00:03:57] tcopeland: has joined #RubyOnRails
[00:06:53] GodFather: has joined #RubyOnRails
[00:09:02] workmad3: has joined #RubyOnRails
[00:18:11] airdisa_: has joined #RubyOnRails
[00:39:18] bga57: has joined #RubyOnRails
[00:39:56] Technodrome: has joined #RubyOnRails
[00:51:34] muzik: has joined #RubyOnRails
[00:54:17] shilon: has joined #RubyOnRails
[00:54:50] cnk: has joined #RubyOnRails
[01:10:33] orbyt_: has joined #RubyOnRails
[01:14:34] Exhiled: has joined #RubyOnRails
[01:18:31] ResidentBiscuit: has joined #RubyOnRails
[01:23:08] Technodrome: has joined #RubyOnRails
[01:34:48] peterhil: has joined #RubyOnRails
[02:03:45] segy_: has joined #RubyOnRails
[02:09:16] workmad3: has joined #RubyOnRails
[02:16:37] LambdaSource: has joined #RubyOnRails
[02:19:12] xlegoman: has joined #RubyOnRails
[02:22:08] no0p: has joined #RubyOnRails
[02:31:35] srinidhi: has joined #RubyOnRails
[02:35:24] no0p: so I just installed rails 5 and I'm seeing ActionController::RoutingError (No route matches [GET] "/assetsapplication.self
[02:35:51] no0p: is there some default configuration trick to get it to like add routes or format the urls correctly?
[02:57:57] safetypin: has joined #RubyOnRails
[03:12:13] cschneid_: has joined #RubyOnRails
[03:12:17] LambdaSource: has joined #RubyOnRails
[03:13:43] sevenseacat: has joined #RubyOnRails
[03:21:45] Puffball: has joined #RubyOnRails
[03:22:59] Liothen: has joined #RubyOnRails
[03:29:01] Puffball: has joined #RubyOnRails
[03:45:03] LambdaSource: has joined #RubyOnRails
[03:46:30] Exhiled: has joined #RubyOnRails
[03:51:05] Technodrome: has joined #RubyOnRails
[04:09:37] workmad3: has joined #RubyOnRails
[04:15:45] LambdaSource: has joined #RubyOnRails
[04:42:31] Jameser: has joined #RubyOnRails
[04:52:08] Technodrome: has joined #RubyOnRails
[05:01:42] Exhiled: has joined #RubyOnRails
[05:31:52] chouhoulis: has joined #RubyOnRails
[05:32:09] Exhiled: has joined #RubyOnRails
[05:38:05] iamarun: has joined #RubyOnRails
[05:46:28] LambdaSource: has joined #RubyOnRails
[05:58:14] Technodrome: has joined #RubyOnRails
[05:59:20] Dimik: has joined #RubyOnRails
[06:09:56] workmad3: has joined #RubyOnRails
[06:36:59] Tempesta: has joined #RubyOnRails
[06:45:13] srinidhi: has joined #RubyOnRails
[06:51:12] apeiros: has joined #RubyOnRails
[07:21:07] snickers: has joined #RubyOnRails
[07:29:03] conta: has joined #RubyOnRails
[07:29:33] ur5us: has joined #RubyOnRails
[07:33:01] Exhiled: has joined #RubyOnRails
[07:36:25] beilabs: has joined #RubyOnRails
[07:37:00] beilabs: Anyone have the experience of uploading a svg to s3 then render via cloudfront? Have set the mime type but the content-type from cloudfront keeps coming back as application/gzip instead of image/svg
[07:38:55] melkor: has joined #RubyOnRails
[07:43:21] dionysus69: has joined #RubyOnRails
[07:50:50] TinkerTyper: has joined #RubyOnRails
[07:58:13] Jameser: has joined #RubyOnRails
[08:01:50] MrCrackPotBuilde: no0p you need to specify the routes in config/routes.rb
[08:02:32] MrCrackPotBuilde: be better for you to follow along with either learn rails book one and two or the ruby on rails tutorial by michael hartl
[08:03:20] dionysus69: I have a question about token based authentication, i understand when user signs in gets auth token etc, let's say its through api and client is android app, but what about registration, how do I allow only that specific android app to send registration post requests? do I create an application wide auth token ?
[08:09:59] one_zero: has joined #RubyOnRails
[08:13:27] shilon: has joined #RubyOnRails
[08:14:23] shilon: has joined #RubyOnRails
[08:27:08] srinidhi: has joined #RubyOnRails
[08:27:37] one_zero: has joined #RubyOnRails
[08:38:47] defsdoor: has joined #RubyOnRails
[08:40:14] arBmind: has joined #RubyOnRails
[08:45:27] mtkd: has joined #RubyOnRails
[08:47:14] drowze: has joined #RubyOnRails
[08:58:52] airdisa: has joined #RubyOnRails
[09:03:12] mikecmpbll: has joined #RubyOnRails
[09:03:57] deur-: has joined #RubyOnRails
[09:14:32] srinidhi: has joined #RubyOnRails
[09:16:53] Sylario: has joined #RubyOnRails
[09:26:07] AlHafoudh: has joined #RubyOnRails
[09:28:22] bronson: has joined #RubyOnRails
[09:38:10] marr: has joined #RubyOnRails
[09:46:13] DrYockel: has joined #RubyOnRails
[09:52:02] easzero: has joined #RubyOnRails
[10:10:30] workmad3: has joined #RubyOnRails
[10:20:55] LambdaSource: has joined #RubyOnRails
[10:22:49] arBmind: has joined #RubyOnRails
[10:42:41] duyleekun: has joined #RubyOnRails
[10:45:55] duyleekun: I found a side effect in rails 5 which is very inconvenient, should I ask here first or go straight to github issue?
[10:46:31] duyleekun: It's regarding new "per_form_csrf_tokens"
[10:59:17] ferr: has joined #RubyOnRails
[11:01:38] ferr: has left #RubyOnRails: ()
[11:03:10] drowze: has joined #RubyOnRails
[11:07:50] hfp_work: has joined #RubyOnRails
[11:22:26] Terens: has joined #RubyOnRails
[11:23:37] srinidhi: has joined #RubyOnRails
[11:26:39] drowze: has joined #RubyOnRails
[11:39:14] airdisa_: has joined #RubyOnRails
[11:39:51] Terens: Has anyone worked with mqtt ?
[11:43:39] Jameser: has joined #RubyOnRails
[11:51:38] dviola: has joined #RubyOnRails
[12:10:46] workmad3: has joined #RubyOnRails
[12:13:24] lunarkitty7: has joined #RubyOnRails
[12:14:28] drowze: has joined #RubyOnRails
[12:24:18] _aeris_: has joined #RubyOnRails
[12:46:25] Jameser: has joined #RubyOnRails
[12:53:14] tcopeland: has joined #RubyOnRails
[12:53:45] truenito: has joined #RubyOnRails
[12:55:14] Jameser: has joined #RubyOnRails
[12:57:49] drowze: has joined #RubyOnRails
[13:03:09] zathras: has joined #RubyOnRails
[13:04:20] apparition: has joined #RubyOnRails
[13:09:47] mcr1: terens, not within ruby for me.
[13:10:28] mcr1: why won't Rails::Server, (and Thor) parse additional arguments to rails server and pass them into the chosen server...
[13:11:47] Terens: mcr1: with other languages?
[13:12:57] mcr1: had to debug some python...
[13:19:12] safetypin: has joined #RubyOnRails
[13:28:07] Puffball_: has joined #RubyOnRails
[13:28:48] Barrt: has joined #RubyOnRails
[13:38:52] easzero: has joined #RubyOnRails
[13:40:32] Kutakizukari: has joined #RubyOnRails
[13:45:07] arBmind: has joined #RubyOnRails
[13:45:43] davic: has joined #RubyOnRails
[13:46:29] davic: has joined #RubyOnRails
[13:48:08] Jameser: has joined #RubyOnRails
[13:49:03] patrickod_: has joined #RubyOnRails
[13:50:21] gheegh: has joined #RubyOnRails
[13:50:32] SirOliver: has joined #RubyOnRails
[13:52:50] davic: has joined #RubyOnRails
[13:53:15] SirOliver: has joined #RubyOnRails
[13:53:34] SirOliver: has left #RubyOnRails: ()
[13:54:26] DrYockel: has joined #RubyOnRails
[13:56:34] drowze: has joined #RubyOnRails
[13:59:50] Jameser: has joined #RubyOnRails
[14:02:18] Barrt: has joined #RubyOnRails
[14:02:36] rfoust: has joined #RubyOnRails
[14:02:56] mikecmpb_: has joined #RubyOnRails
[14:03:18] mtkd: has joined #RubyOnRails
[14:07:11] jonr22: has joined #RubyOnRails
[14:11:08] workmad3: has joined #RubyOnRails
[14:13:20] Jameser: has joined #RubyOnRails
[14:15:12] catbusters: has joined #RubyOnRails
[14:17:03] keegnotrub: has joined #RubyOnRails
[14:20:39] rikkipitt: has joined #RubyOnRails
[14:27:12] Jameser: has joined #RubyOnRails
[14:39:52] Jameser: has joined #RubyOnRails
[14:40:40] Barrt: has joined #RubyOnRails
[14:50:46] Jameser: has joined #RubyOnRails
[14:57:00] MrCrackPotBuilde: any other function i can add to this form <%= f.email_field :contactEmail, placeholder: 'Email', id: "id_email" %>
[15:01:09] daemonwrangler: has joined #RubyOnRails
[15:02:09] alfie: has joined #RubyOnRails
[15:03:29] safetypin: has joined #RubyOnRails
[15:04:26] Barrt: has joined #RubyOnRails
[15:08:53] daemonwrangler: has joined #RubyOnRails
[15:12:46] Jameser: has joined #RubyOnRails
[15:14:26] Technodrome: has joined #RubyOnRails
[15:27:51] SirOliver: has joined #RubyOnRails
[15:30:54] drowze: has joined #RubyOnRails
[15:31:44] mikecmpbll: has joined #RubyOnRails
[15:33:23] Technodrome: if i have a form with some saved settings like, form checkboxes, what is the best way to persist them across sessions, i am using https://github.com/ledermann/rails-settings to save the options
[15:33:50] Technodrome: but what is a best practice to get that information back to the client / javascript
[15:33:50] snickers: has joined #RubyOnRails
[15:40:54] rikkipitt: has joined #RubyOnRails
[15:41:41] rikkipitt: has joined #RubyOnRails
[15:47:30] elsurudo: has joined #RubyOnRails
[15:48:36] kickr: has joined #RubyOnRails
[15:48:44] elsurudo: Rails 5 with webpack, I have “babel-loader” in my loaders, yet it doesn’t seem to be transpiling my JS, as I can’t use things like “const” without having my app break on older browsers. Does anyone have experience with this?
[15:54:15] iamarun: has joined #RubyOnRails
[16:03:38] mikecmpbll: has joined #RubyOnRails
[16:05:31] snickers: has joined #RubyOnRails
[16:07:20] SteenJobs: has joined #RubyOnRails
[16:07:25] mostlybadfly: has joined #RubyOnRails
[16:08:19] srinidhi: has joined #RubyOnRails
[16:11:27] workmad3: has joined #RubyOnRails
[16:15:33] troys: has joined #RubyOnRails
[16:20:31] SirOliver: has joined #RubyOnRails
[16:24:52] joshsmith: has joined #RubyOnRails
[16:30:39] Technodrome: has joined #RubyOnRails
[16:32:32] Andr3as: hi everyone.. during a csv import i want to compare if values have changed and skip those items where they have.. my poor try was to do it like this: https://gist.github.com/awunder/dd32abb73f0a849a985a28f436e36bc6
[16:33:18] Andr3as: however, it doesnt work as the "economic_event2 = economic_event" seems to create a "link" so when i change economic_events, it also "changes" economic_events2
[16:33:43] Andr3as: due to the lack of proper naming i dont even know wht to google for...
[16:33:47] Andr3as: anyone with a hint?
[16:37:25] orbyt_: has joined #RubyOnRails
[16:40:42] LambdaSource: has joined #RubyOnRails
[16:53:54] dviola: has joined #RubyOnRails
[16:56:03] MrCrackPotBuilde: technodrome follow along with this tutorial to the end and you should be able to transfer data as you want using erb
[16:56:05] MrCrackPotBuilde: https://www.murdo.ch/blog/build-a-contact-form-with-ruby-on-rails-part-1
[16:56:46] MrCrackPotBuilde: i was able to create a form then from that form insert data into an email.html.erb and using something like this
[16:57:19] MrCrackPotBuilde: <p> You have a message from <% @contactFormName %> </p>
[16:57:32] Technodrome: thats not the issue
[16:57:40] MrCrackPotBuilde: this will then take the name from the contact form input it to the layout and then send it
[16:58:05] Technodrome: i am trying to save form state, and persist it across sessions
[16:58:23] MrCrackPotBuilde: ah hhhmmmm no dont think that would help then sorry
[16:59:38] MrCrackPotBuilde: technodrome https://www.google.com/search?client=ubuntu&channel=fs&q=rails+5+save+a+form+state+and+persistent+across+sessions&spell=1&sa=X&ved=0ahUKEwjzq-b0kdDXAhXFQ48KHSqXDOQQBQgkKAA&biw=1366&bih=672
[17:00:40] Technodrome: yes most of those implementations of state are not what I am referring to here
[17:01:01] srinidhi: has joined #RubyOnRails
[17:01:57] Technodrome: I'm an idiot and overcomplicating this, it should be a session object
[17:13:04] dionysus69: has joined #RubyOnRails
[17:16:18] DrYockel: has joined #RubyOnRails
[17:18:53] helpa: has joined #RubyOnRails
[17:20:06] Nitrodist: anyone able to help me debug why passenger can't detect my rails apps?
[17:20:43] Nitrodist: it doesn't see any application groups, although apache seems to see that they're listening on the ports I've defined in each app's apache config file
[17:21:58] Nitrodist: also I can't see where passenger is logging stuff
[17:23:10] defsdoor: has joined #RubyOnRails
[17:24:56] orbyt_: has joined #RubyOnRails
[17:32:30] nogic: has joined #RubyOnRails
[17:36:25] Sylario: Nitrodist: did you do that ? : @nitrodist : gist the site config you put in apache
[17:36:42] Sylario: https://www.phusionpassenger.com/library/walkthroughs/deploy/ruby/ownserver/apache/oss/xenial/install_passenger.html
[17:36:49] Sylario: too many copy paste
[17:37:19] Sylario: reas the link and gist the site config in apache
[17:41:23] cnk: has joined #RubyOnRails
[17:52:35] chouhoulis: has joined #RubyOnRails
[17:55:48] hahuang65: has joined #RubyOnRails
[17:56:23] Exhiled: has joined #RubyOnRails
[17:57:09] apeiros_: has joined #RubyOnRails
[17:58:54] milesmatthias: has joined #RubyOnRails
[18:03:11] mcr1: has joined #RubyOnRails
[18:11:43] workmad3: has joined #RubyOnRails
[18:20:34] krawchyk: has joined #RubyOnRails
[18:23:41] conta2: has joined #RubyOnRails
[18:24:50] truenito: has joined #RubyOnRails
[18:26:20] Andr3as: fwiw, i found a way with using "event_attributes2 = economic_event.attributes" and compare them like "economic_event.attributes == event_attributes2"
[18:30:47] Technodrome: say i have 5 checkboxes checked, i want to come back to that page later, and the same 5 checkboxes are checked on a per user basis, is there any gem out there to help with this ?
[18:31:17] Technodrome: or do i just save a JSON object into the session , and read it from there
[18:31:56] mikecmpbll: has joined #RubyOnRails
[18:34:10] Exhiled: has joined #RubyOnRails
[18:36:18] moei: has joined #RubyOnRails
[18:37:38] milesmatthias: has joined #RubyOnRails
[18:38:01] Nitrodist: sylario: thanks, will get you the configs after I test something
[18:39:13] LambdaSource: has joined #RubyOnRails
[18:50:48] Radanisk: has joined #RubyOnRails
[18:52:44] Radanisk: has joined #RubyOnRails
[19:04:21] milesmatthias: has joined #RubyOnRails
[19:05:51] zacts: has joined #RubyOnRails
[19:09:07] apeiros_: has joined #RubyOnRails
[19:09:10] Technodrome: has joined #RubyOnRails
[19:09:20] kapil___: has joined #RubyOnRails
[19:09:56] mcr1: is there a channel or slack or XYZ where celluloid people hang out?
[19:13:21] ur5us: has joined #RubyOnRails
[19:13:29] datasnt: has joined #RubyOnRails
[19:16:20] Exhiled: has joined #RubyOnRails
[19:27:20] Dimik: has joined #RubyOnRails
[19:32:03] snickers: has joined #RubyOnRails
[19:37:37] Technodrome: has joined #RubyOnRails
[19:39:05] moei: has joined #RubyOnRails
[19:47:42] workmad3: has joined #RubyOnRails
[19:54:04] noob_on_rails: has joined #RubyOnRails
[20:01:57] cnk: has joined #RubyOnRails
[20:05:35] moei: has joined #RubyOnRails
[20:09:18] LambdaSource: has joined #RubyOnRails
[20:13:50] chouhoulis: has joined #RubyOnRails
[20:15:18] Exhiled: has joined #RubyOnRails
[20:15:53] DrYockel: has joined #RubyOnRails
[20:28:47] apeiros_: has joined #RubyOnRails
[20:33:27] apeiros_: has joined #RubyOnRails
[20:34:02] truenito: has joined #RubyOnRails
[20:35:03] orbyt_: has joined #RubyOnRails
[20:58:01] Technodrome: has joined #RubyOnRails
[21:09:07] dviola: has joined #RubyOnRails
[21:13:53] alexertech: has joined #RubyOnRails
[21:14:07] deepredsky: has joined #RubyOnRails
[21:19:09] alexertech: has joined #RubyOnRails
[21:20:59] orbyt_: has joined #RubyOnRails
[21:38:10] Technodrome: is it considered bad practice to throw some JSON into a session variable? to be available on the client side ?
[21:41:49] cnk: Somewhat - but it might be the practical solution if you just need a little info
[22:01:27] shilon: has joined #RubyOnRails
[22:07:07] one_zero: has joined #RubyOnRails
[22:12:53] rikkipitt: has joined #RubyOnRails
[22:24:25] dbpqdbpq: has joined #RubyOnRails
[22:29:21] dbpqdbpq: Hi RoR, I'm running through upgrading an old Rails 4.0 app up to 5.1. There a release note for 4.1 I'm struggling to understand I was hoping for some community help with. http://guides.rubyonrails.org/4_1_release_notes.html - "Removed deprecated ActiveRecord::Base#connection method. Make sure to access it via the class." - I don't understand what the second part of that means, and I created a new Rails 5.1 app where
[22:29:22] dbpqdbpq: ActiveRecord::Base#connection still works, so does it just mean you can't use it from an instance of a model?
[22:46:38] shilon: has joined #RubyOnRails
[22:48:01] apeiros_: has joined #RubyOnRails
[22:49:28] Exhiled: has joined #RubyOnRails
[22:59:18] rikkipitt: has joined #RubyOnRails
[23:03:56] hnanon: has joined #RubyOnRails
[23:10:04] GodFather: has joined #RubyOnRails
[23:17:23] hahuang65: has joined #RubyOnRails
[23:21:14] hnanon: I'm having a hard time writing a query and displaying the results in a view.
[23:21:24] hnanon: This is what I have so far: https://gist.github.com/anonymous/5ae8495e38c03ebdfa141572dd21e816
[23:21:37] hnanon: The sample html file is basically a ledger.
[23:22:15] hnanon: It lists markets and revenues across categories, with totals.
[23:24:01] creature: hnanon: What have you tried so far? What's the hardest part of this?
[23:25:33] creature: Could you, for instance, manage to get just the market names listed out? How would you go about doing that? (You might find the 'getting started' guide & other docs at http://guides.rubyonrails.org/ useful).
[23:25:54] hnanon: creature: I'm able to get market name listed.
[23:26:18] hnanon: creature: I'm just not sure how to construct the join and group.
[23:27:01] hnanon: @revenues = Revenue.joins(:location).group("locations.market_id", "category_id")
[23:27:21] hnanon: That gives me an array of revenues grouped by category_id.
[23:27:35] hnanon: I think I need the array grouped by market first.
[23:28:52] uksio: has joined #RubyOnRails
[23:31:31] w0rd-driven: has joined #RubyOnRails
[23:32:42] creature: hnanon: I think I'd expect that join to do what you'd expect it to. Do you have same raw sample data you could share, and the result of that query?
[23:34:53] Jameser: has joined #RubyOnRails
[23:35:22] hnanon: creature: 1 min, please
[23:39:59] hnanon: creature: What kind of raw data?
[23:40:12] hnanon: I have existing db records
[23:40:23] hnanon: For example, from the Revenues table
[23:40:27] Technodrome: has joined #RubyOnRails
[23:41:35] hnanon: creature: Can you take a look at the sample html file in my gist above?
[23:41:51] hnanon: creature: I think I'm approaching this all wrong.
[23:42:02] creature: Yeah, I saw that. I'm not sure if you're approaching it all wrong.
[23:42:32] creature: It'd be useful to be able to see some example data, and the output you're getting from that query, and to compare it to what you've got in the sample.html.
[23:42:59] creature: Like, I'm presuming this is kind of a homeworky problem, and such a data dump would be easy to include in a gist. :) But I might be off-base there...
[23:44:01] hnanon: creature: No, it's not :)
[23:44:20] hnanon: I just have some tables of data...
[23:44:44] hnanon: This is a sample output: https://gist.github.com/anonymous/96fc2f2d8fcbacd07404e6945bbcc8a6
[23:46:02] hnanon: Let me back up...
[23:46:30] hnanon: I have Revenue. Each revenue record has a location and category.
[23:46:40] hnanon: Each location belongs to a Market.
[23:47:03] hnanon: I want to sum the revenue for each market for each category.
[23:47:20] Radar: Table rows seem to be grouped by categories, so why not start the query there?
[23:47:37] Radar: You'd be iterating over each category and finding the data for those to build the rows
[23:47:42] Cache_Money: has joined #RubyOnRails
[23:47:47] Radar: I think it is wrong to start from the Revenues side
[23:47:50] creature: OK. Are you sure that this data is wrong? You're grouping by locations.market_id, not location_id.
[23:49:49] hnanon: Radar: But table columns are grouped by Market. Does that make a difference where I start from?
[23:50:12] hnanon: creature: Yeah, it's wrong. The markets behind those location ids are different.
[23:50:45] Radar: creature: agree with the assessment that this feels like homework btw
[23:52:50] Radar: hnanon: https://gist.github.com/radar/7293cfaeedc7edb439c1b3373c2a78fe
[23:52:52] Radar: First one's free.
[23:53:37] Radar: Can you at least get that much of the problem solved? Ignore the TODO columns for now.
[23:55:11] hnanon: Radar: 1 sec.
[23:58:51] hnanon: Radar: That's done.
[23:59:55] hnanon: Next assignment/clue...