« Back to channel list

#RubyOnRails - 04 January 2019

« Back 1 day Forward 1 day »
[00:02:45] crankharder: has joined #RubyOnRails
[00:06:49] Tempesta: has joined #RubyOnRails
[00:16:09] jottr: has joined #RubyOnRails
[00:21:14] tdy: has joined #RubyOnRails
[00:26:11] mikecmpbll: has joined #RubyOnRails
[00:43:31] conta: has joined #RubyOnRails
[00:47:41] uplime: has joined #RubyOnRails
[00:52:59] mitblan: has joined #RubyOnRails
[00:56:21] jottr: has joined #RubyOnRails
[01:11:08] ariedler: has joined #RubyOnRails
[01:27:07] Ookma-Kyi: has joined #RubyOnRails
[01:35:38] chouhoulis: has joined #RubyOnRails
[01:41:33] Ookma-Kyi: has joined #RubyOnRails
[01:46:39] Ookma-Kyi: has joined #RubyOnRails
[01:47:07] orbyt_: has joined #RubyOnRails
[01:49:52] hays: what JS framework can fit on top of rails?
[01:52:56] uplime: has joined #RubyOnRails
[01:53:03] hays: hmm ember looks like it might be interesting
[01:53:20] ebsen: has joined #RubyOnRails
[02:03:37] Jervis_: has joined #RubyOnRails
[02:04:17] LightStalker: has joined #RubyOnRails
[02:08:03] dviola: has joined #RubyOnRails
[02:33:47] tdy: has joined #RubyOnRails
[02:35:33] Radar: hays: any of them
[02:35:40] Radar: Rails doesn't care what JS framework you use
[02:57:19] jottr: has joined #RubyOnRails
[02:59:42] Saukk: has joined #RubyOnRails
[03:02:18] MasterAsia: has joined #RubyOnRails
[03:12:07] ariedler: has joined #RubyOnRails
[03:24:34] crankhar1er: has joined #RubyOnRails
[03:45:05] crankhar1er: has joined #RubyOnRails
[03:57:54] crankhar1er: has joined #RubyOnRails
[04:01:50] orbyt_: has joined #RubyOnRails
[04:09:05] braincrash: has joined #RubyOnRails
[04:15:45] ariedler: has joined #RubyOnRails
[04:41:40] orbyt_: has joined #RubyOnRails
[04:58:18] jottr: has joined #RubyOnRails
[05:33:54] uksio: has joined #RubyOnRails
[05:44:15] Ookma-Kyi: has joined #RubyOnRails
[05:45:20] Ookma-Kyi: has left #RubyOnRails: ()
[05:54:53] cnsvc: has joined #RubyOnRails
[06:15:22] conta: has joined #RubyOnRails
[06:28:23] tushark: has joined #RubyOnRails
[06:30:05] tushark: Hey folks! I need some suggestions regarding PWA implementation.
[06:31:39] tushark: The app is using both Rails and Vue on the frontend part. Should I go with the `serviceworker-rails` gem or any other method?
[06:31:44] kapil____: has joined #RubyOnRails
[06:34:34] Puffball: has joined #RubyOnRails
[06:40:33] MasterAsia: has joined #RubyOnRails
[06:57:34] srinidhi: has joined #RubyOnRails
[06:59:11] jottr: has joined #RubyOnRails
[07:13:48] reber: has joined #RubyOnRails
[07:30:18] status402: has joined #RubyOnRails
[07:38:33] status402: has joined #RubyOnRails
[08:37:30] fox_mulder_cp: happy new year :)
[08:55:29] xhoy: has joined #RubyOnRails
[08:58:13] mutantkeyboard: has joined #RubyOnRails
[09:00:04] jottr: has joined #RubyOnRails
[09:03:18] tushark_: has joined #RubyOnRails
[09:06:22] mikecmpbll: has joined #RubyOnRails
[09:08:44] srinidhi: has joined #RubyOnRails
[09:36:09] lxsameer: has joined #RubyOnRails
[10:05:52] xhoy: has joined #RubyOnRails
[10:08:06] Technodrome: has joined #RubyOnRails
[10:21:41] tushark: has joined #RubyOnRails
[10:31:04] rhannequin: has joined #RubyOnRails
[10:49:08] SubZero21: has joined #RubyOnRails
[10:50:44] xhoy: has joined #RubyOnRails
[10:53:33] status402: has joined #RubyOnRails
[11:04:32] srinidhi: has joined #RubyOnRails
[11:34:10] Ergo: has joined #RubyOnRails
[11:48:27] status402: has joined #RubyOnRails
[11:55:29] ariedler: has joined #RubyOnRails
[11:57:48] ariedler: has joined #RubyOnRails
[12:13:14] srinidhi: has joined #RubyOnRails
[12:15:39] status402_: has joined #RubyOnRails
[12:22:54] status402: has joined #RubyOnRails
[12:25:29] status402: has joined #RubyOnRails
[12:28:44] status402: has joined #RubyOnRails
[12:48:22] pavelz: I tried using make_resourful but it is way out of date, is there a way to shrink resourceful controllers? example what make_resourceful did: https://github.com/hcatlin/make_resourceful
[12:48:39] srinidhi: has joined #RubyOnRails
[13:11:01] Jervis_: has joined #RubyOnRails
[13:13:49] MasterAsia: has joined #RubyOnRails
[13:31:25] status402: has joined #RubyOnRails
[13:37:50] status402: has joined #RubyOnRails
[13:39:58] eclm: has joined #RubyOnRails
[13:41:46] sandelius: has joined #RubyOnRails
[13:47:06] kapil____: has joined #RubyOnRails
[13:48:49] catbusters: has joined #RubyOnRails
[13:58:21] ariedler: has joined #RubyOnRails
[14:02:01] agent_white: has joined #RubyOnRails
[14:12:50] dslegends: has joined #RubyOnRails
[14:15:21] crankhar1er: has joined #RubyOnRails
[14:18:11] crankharder: has joined #RubyOnRails
[14:21:15] dviola: has joined #RubyOnRails
[14:24:17] krawchyk: has joined #RubyOnRails
[14:26:49] alan_w: has joined #RubyOnRails
[14:38:11] Puffball: has joined #RubyOnRails
[14:44:45] Dbugger: has joined #RubyOnRails
[14:58:04] tdy: has joined #RubyOnRails
[15:15:14] Saukk: has joined #RubyOnRails
[15:30:11] conta: has joined #RubyOnRails
[15:41:59] srinidhi: has joined #RubyOnRails
[16:00:16] chouhoulis: has joined #RubyOnRails
[16:17:31] pd09041999: has joined #RubyOnRails
[16:39:41] maryo: has joined #RubyOnRails
[16:49:12] Inside: has joined #RubyOnRails
[16:52:59] reber: has joined #RubyOnRails
[16:55:57] stephenplatz: has joined #RubyOnRails
[17:00:42] srinidhi: has joined #RubyOnRails
[17:07:41] siddu: has joined #RubyOnRails
[17:08:41] darris: has joined #RubyOnRails
[17:09:52] Inside: I upgraded to rails 5.0
[17:10:02] Inside: (finally... jesus)
[17:10:16] Inside: And now new specs are created as.. rspecs?
[17:10:21] Inside: When I just want them to be minitests
[17:13:34] Inside: I don't appear to have anything defined anywhere that I want rspec which is odd
[17:20:54] orbyt_: has joined #RubyOnRails
[17:22:43] siddu: has joined #RubyOnRails
[17:28:20] atrius: has joined #RubyOnRails
[17:29:05] agent_white: has joined #RubyOnRails
[17:43:31] gambl0r3: has joined #RubyOnRails
[17:55:12] benlieb: has joined #RubyOnRails
[18:02:29] mikecmpbll: has joined #RubyOnRails
[18:03:25] atrius: has joined #RubyOnRails
[18:29:58] chouhoulis: has joined #RubyOnRails
[18:30:28] atrius: has joined #RubyOnRails
[18:33:08] scrptktty: has joined #RubyOnRails
[18:43:04] conta1: has joined #RubyOnRails
[18:43:26] tdy: has joined #RubyOnRails
[19:21:00] ivanskie: has joined #RubyOnRails
[20:13:35] tdy: has joined #RubyOnRails
[20:19:17] defsdoor: has joined #RubyOnRails
[21:02:21] cnsvc: has joined #RubyOnRails
[21:25:53] Technodrome: has joined #RubyOnRails
[21:29:00] tomaw_: has joined #RubyOnRails
[21:41:15] conta: has joined #RubyOnRails
[21:46:59] tdy: has joined #RubyOnRails
[21:54:53] TheNet: is there an easy way to always run webpack-dev-server in dev from rails?
[21:55:01] TheNet: without having to start it independently that is
[21:58:21] tdy: has joined #RubyOnRails
[22:08:11] nickjj_: has joined #RubyOnRails
[22:13:56] nickjj: has joined #RubyOnRails
[22:17:16] SteenJobs: has joined #RubyOnRails
[22:17:39] orbyt_: has joined #RubyOnRails
[22:26:47] nickjj: has joined #RubyOnRails
[22:29:44] ponzii: has joined #RubyOnRails
[22:29:47] dslegends: has joined #RubyOnRails
[22:30:47] ponzii: My Ruby version is 2.6.0 but when I try `bin/rails/server` I get "Your Ruby version is 2.5.3, but your Gemfile specified 2.6.0"
[22:31:19] ponzii: `rbenv global` confirms 2.6.0
[22:32:00] ponzii: `ruby -v` gives: ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin16]
[22:38:45] orbyt_: has joined #RubyOnRails
[22:44:25] havenwood: using rbenv? did you?: rbenv rehash
[22:44:50] havenwood: check your Gemfile for an old #ruby directive.
[22:49:28] benlieb: I have the unfortunate task of making some legacy data work with a rails ap. Some of the id fields are strings
[22:49:29] benlieb: :client_id => "30430"
[22:49:52] benlieb: My associations work in mysql: belongs_to :client
[22:50:03] benlieb: but in postgres (which we’d prefer to use) it chokes
[22:50:07] benlieb: is there a way around this?
[22:50:20] benlieb: PG::UndefinedFunction: ERROR: operator does not exist: bigint = character varying LINE 1: ...ients" INNER JOIN "reservation" ON "clients"."id" = "reserva...
[22:50:34] benlieb: No operator matches the given name and argument type(s). You might need to add explicit type casts.
[22:54:02] drale2k_: has joined #RubyOnRails
[22:54:24] drale2k_: Man i am having a hard time wrapping my head around Asset Pipeline vs Webpacker
[22:54:44] drale2k_: the main message about Webpack i read is "Webpacker coexists with the asset pipeline, as the primary purpose for webpack is app-like JavaScript, not images, CSS. "
[22:55:05] drale2k_: this confuses me about how to use f.e. Bootstrap, which has JS and CSS files
[22:55:24] drale2k_: do i need to use both, the gem for css,fonts and webpack for JS ?
[23:31:40] benlieb: Cany anyone help me with this legacy foreign_key string issue? https://stackoverflow.com/questions/54047261/rails-association-for-legacy-data-when-foreign-key-is-string
[23:32:42] benlieb: drale2k_: I would say that the asset pipeline and webpacker were built for different purposes, but some of their functionality overlaps
[23:35:41] havenwood: benlieb: Are those String ids incrementing, and just happen to be Strings?
[23:36:37] benlieb: havenwood: they are in a legacy db that the new app I’m writing is reading from. In the clients table the id is INT, but the associate key for some ungodly reason is string
[23:36:49] Inside: I have to deal with that a lot
[23:36:58] planigan: has joined #RubyOnRails
[23:37:30] Inside: ah, but not with postres
[23:37:55] benlieb: If I could somehow cast the client_id to int, that would work, but I think the pg gem is checking the property time directly
[23:38:10] benlieb: I tried overwriting the getter and casting to int, but that didn’t do anything
[23:39:34] Inside: what's your code look like now?
[23:39:55] benlieb: it’s just a belongs_to :client
[23:40:05] benlieb: but client_id => '1234'
[23:40:19] Inside: belongs_to :client, foreign_key: :client_id, etc?
[23:40:48] benlieb: well I don’ t need foreign_key: since the naming convention is actually right
[23:40:49] Inside: Hmm that is odd
[23:41:00] Inside: I'm looking at some code and I have exactly that
[23:41:02] benlieb: the original db is not from a rails app
[23:41:08] havenwood: benlieb: belongs_to :client, type: :string
[23:41:11] benlieb: It’s a 40 year old company
[23:41:18] benlieb: havenwood: does that work?
[23:41:21] Inside: bigbux to havenwood
[23:41:25] benlieb: I looked at the reference, and didn’t see that
[23:41:30] havenwood: benlieb: But it is an incrementing id?
[23:41:47] havenwood: benlieb: It does work like: belongs_to :client, type: :uuid
[23:42:13] benlieb: the client_id doesn’t increment it’s just an association, but clients.id increments and is INT
[23:43:08] benlieb: Unknown key: :type.
[23:43:17] benlieb: didn’t think that existed...
[23:43:25] benlieb: Valid keys are: :class_name, :anonymous_class, :foreign_key, :validate, :autosave, :foreign_type, :dependent, :primary_key, :inverse_of, :required, :polymorphic, :touch, :counter_cache, :optional, :default
[23:43:43] havenwood: benlieb: See here: https://guides.rubyonrails.org/active_record_postgresql.html#uuid
[23:44:14] havenwood: benlieb: Ah, right - I was confusing a migration convention. Nvm.
[23:46:12] benlieb: so no way to manually write the association sql?
[23:49:37] Inside: maybe a scope?
[23:53:45] Inside: belongs_to :client, -> { Client.where("id = ?", self.id) }
[23:53:47] Inside: ACTION shrugs c_c
[23:53:52] Inside: I am not sure that's even valid code
[23:54:40] Inside: Hmmmm.. it might work