« Back to channel list

#RubyOnRails - 22 December 2018

« Back 1 day Forward 1 day »
[00:02:43] guyz: has joined #RubyOnRails
[00:09:01] LambdaSource: has joined #RubyOnRails
[00:25:25] mikecmpbll: has joined #RubyOnRails
[01:10:54] atrius: has joined #RubyOnRails
[01:13:08] gambl0r3: has joined #RubyOnRails
[01:15:46] cnsvc_: has joined #RubyOnRails
[01:26:59] bga57: has joined #RubyOnRails
[01:43:40] maryo: has joined #RubyOnRails
[01:46:40] Technodrome: has joined #RubyOnRails
[01:49:48] kapil____: has joined #RubyOnRails
[02:00:36] maryo: has joined #RubyOnRails
[02:03:30] linoespinoza: has joined #RubyOnRails
[02:41:38] linoespinoza: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[02:45:15] creamme: WOW I guess no one is running this channel these days
[02:54:55] cpruitt: has joined #RubyOnRails
[03:24:17] Technodrome: creamme what makes you say that?
[03:25:23] orbyt_: has joined #RubyOnRails
[03:25:36] cpruitt: has joined #RubyOnRails
[03:45:07] darkhanb: has joined #RubyOnRails
[03:54:38] gambl0r3: has joined #RubyOnRails
[03:58:54] darris: has joined #RubyOnRails
[04:10:17] rodd: is there a way to let rails/active record handle duplicated records during an update on has_many through: relationships? The docs mention using a scope with distinct, but that still inserts dupes in the db
[04:10:35] braincrash: has joined #RubyOnRails
[04:10:46] rodd: I can create a unique index, but then I need to maintain this myself
[04:11:05] rodd: for reference: https://guides.rubyonrails.org/association_basics.html#scopes-for-has-many-distinct
[04:13:07] rodd: nvm i should review my patch request body
[04:16:21] roshanavand1: has joined #RubyOnRails
[04:24:45] guyz: has joined #RubyOnRails
[04:49:05] orbyt_: has joined #RubyOnRails
[04:50:53] cnsvc_: has joined #RubyOnRails
[05:05:34] roshanavand: has joined #RubyOnRails
[05:06:11] cpruitt: has joined #RubyOnRails
[05:22:43] uksio: has joined #RubyOnRails
[05:38:00] Technodrome: has joined #RubyOnRails
[05:39:59] Technodrome: creamme the channel is kinda dead these days :(
[05:44:28] baweaver: Technodrome / creamme: either that or it's the weekend and holiday season, meaning most people probably aren't online.
[05:44:45] ChanServ: -o baweaver
[05:45:00] Technodrome: sure, but just in general i think irc activity has been down for many channels
[05:54:51] Technodrome: baweaver one could say, rails activity is down more than before in general
[06:00:03] cpruitt: has joined #RubyOnRails
[06:02:26] _aeris_: has joined #RubyOnRails
[06:03:05] Technodrome: has joined #RubyOnRails
[06:22:01] creamme: I have loved how easy rails is until now; I am trying to update from 4 to 5 on a new server, and because of dependency problems I'm rebuilding my app, copying parts of code in hopes they work
[06:25:50] armyriad: has joined #RubyOnRails
[06:34:42] guyz: has joined #RubyOnRails
[06:35:33] cpruitt: has joined #RubyOnRails
[06:39:35] endemic: has joined #RubyOnRails
[06:41:16] cpruitt: has joined #RubyOnRails
[06:46:17] kapil____: has joined #RubyOnRails
[06:49:33] cpruitt: has joined #RubyOnRails
[07:09:05] cpruitt: has joined #RubyOnRails
[07:25:07] guyz: has joined #RubyOnRails
[07:29:23] cpruitt: has joined #RubyOnRails
[07:30:44] Jervis_: has joined #RubyOnRails
[07:32:49] sevenseacat: has joined #RubyOnRails
[07:33:34] Technodrome: has joined #RubyOnRails
[07:57:43] hadifarnoud: has joined #RubyOnRails
[08:02:05] reber: has joined #RubyOnRails
[08:08:15] cpruitt: has joined #RubyOnRails
[08:08:56] Technodrome: has joined #RubyOnRails
[08:13:06] maryo: has joined #RubyOnRails
[08:16:29] cpruitt: has joined #RubyOnRails
[08:26:34] Technodrome: has joined #RubyOnRails
[08:40:16] gambl0r3: How do you avoid using DI container in the global scope?
[08:44:02] guyz: has joined #RubyOnRails
[08:49:17] tbuehlmann: gambl0r3: have an example of what you mean?
[08:55:00] guyz: has joined #RubyOnRails
[09:08:40] guyz: has joined #RubyOnRails
[09:23:51] cpruitt: has joined #RubyOnRails
[09:29:52] maryo: has joined #RubyOnRails
[09:41:28] mikecmpbll: has joined #RubyOnRails
[09:55:05] bga57: has joined #RubyOnRails
[10:31:23] hadifarnoud: has joined #RubyOnRails
[10:40:19] defsdoor: has joined #RubyOnRails
[10:43:53] cnsvc_: has joined #RubyOnRails
[11:19:22] za1b1tsu: has joined #RubyOnRails
[11:25:55] cpruitt: has joined #RubyOnRails
[11:42:09] shenghi: has joined #RubyOnRails
[11:45:17] drale2k_: has joined #RubyOnRails
[11:55:29] ariedler: has joined #RubyOnRails
[12:05:29] lunarkitty7: has joined #RubyOnRails
[12:06:16] za1b1tsu: has joined #RubyOnRails
[12:12:54] roshanavand: has joined #RubyOnRails
[12:32:50] za1b1tsu: has joined #RubyOnRails
[13:06:32] ^amra: has joined #RubyOnRails
[13:07:30] ^amra: has left #RubyOnRails: ("https://quassel-irc.org - Chat comfortably. Anywhere.")
[13:07:42] maryo: has joined #RubyOnRails
[13:29:48] roshanavand: has joined #RubyOnRails
[13:34:22] cnsvc_: has joined #RubyOnRails
[13:37:18] MasterAsia: has joined #RubyOnRails
[14:32:24] Dbugger: has joined #RubyOnRails
[14:55:52] cpruitt: has joined #RubyOnRails
[14:56:33] ariedler: has joined #RubyOnRails
[15:19:43] dviola: has joined #RubyOnRails
[15:33:35] KeyJoo: has joined #RubyOnRails
[16:09:39] cpruitt: has joined #RubyOnRails
[16:17:43] _aeris_: has joined #RubyOnRails
[16:19:45] cnsvc_: has joined #RubyOnRails
[16:37:42] lypsis: has joined #RubyOnRails
[16:42:30] za1b1tsu: has joined #RubyOnRails
[16:54:58] IGnorAND: running with webpack, I add <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> in my html and I see vue code, if I comment it out while I have import 'vue/dist/vue.js'; I dont see my vue code
[16:55:17] IGnorAND: I even see the same code in my packs/application.js
[17:00:03] maryo: has joined #RubyOnRails
[17:01:05] lxsameer: has joined #RubyOnRails
[17:04:39] creamme: has joined #RubyOnRails
[17:06:09] lypsis: has joined #RubyOnRails
[17:10:33] creamme: in index view for meals I have link_to( year, params.merge(year: year), class: "year") to try and make the link meals?year=2018 but I get UnfilteredParameters
[17:23:16] GodFather: has joined #RubyOnRails
[17:30:53] Technodrome: has joined #RubyOnRails
[17:38:39] tbuehlmann: creamme: you might want `link_to(year, meals_path(year: params[:year]))` instead
[17:39:16] creamme: that looks good! ty
[17:53:05] creamme: it ignores params and all link to meals http://geekjeff.us:3000
[17:54:53] creamme: ah fixed it
[17:55:19] creamme: year: year not year: params[:year]
[18:04:29] ariedler: has joined #RubyOnRails
[18:05:14] ariedler: has joined #RubyOnRails
[18:06:00] ariedler: has joined #RubyOnRails
[18:06:46] ariedler: has joined #RubyOnRails
[18:07:33] ariedler: has joined #RubyOnRails
[18:08:20] ariedler: has joined #RubyOnRails
[18:16:44] jottr: has joined #RubyOnRails
[18:20:31] deathwishdave: has joined #RubyOnRails
[18:23:32] coreyja: has joined #RubyOnRails
[18:43:04] cnsvc_: has joined #RubyOnRails
[19:10:17] Aherin: has joined #RubyOnRails
[19:28:03] creamme: models/user.rb has logged_in? which works in views but not in controllers/meals_controller.rb what did I forget?
[19:30:59] Linuus: has joined #RubyOnRails
[19:31:56] lexileo: has joined #RubyOnRails
[19:32:35] tbuehlmann: creamme: it's not usual having such a method in the model. where and how is that defined?
[19:33:46] creamme: oops helpers/sessions_helpers
[19:36:14] creamme: I check logged in to determine what to display (login or logout)
[19:37:11] creamme: I define it as part of the model, don't remember why, I wrote this stuff about 6 years ago.
[19:45:49] MasterAsia: has joined #RubyOnRails
[19:46:06] cnsvc_: has joined #RubyOnRails
[19:49:07] Dreamer3: has joined #RubyOnRails
[19:52:56] reber: has joined #RubyOnRails
[19:55:19] tbuehlmann: you can put that method in the application controller and add a `helper_method :logged_in?` to that so that the view can use it
[19:56:17] tbuehlmann: see https://api.rubyonrails.org/classes/AbstractController/Helpers/ClassMethods.html#method-i-helper_method
[20:09:34] ariedler: has joined #RubyOnRails
[20:16:32] guyz: has joined #RubyOnRails
[20:28:41] creamme: thanks again tbuehlmann!
[21:00:05] cnsvc_: has joined #RubyOnRails
[21:04:15] tdy: has joined #RubyOnRails
[21:09:01] MasterAsia: has joined #RubyOnRails
[21:13:31] Technodrome: has joined #RubyOnRails
[21:18:36] orbyt_: has joined #RubyOnRails
[21:28:32] cnsvc_: has joined #RubyOnRails
[21:31:55] helpa-bot: has joined #RubyOnRails
[21:32:50] DTZUZO: has joined #RubyOnRails
[21:33:30] helpa: has joined #RubyOnRails
[21:38:14] guyz: has joined #RubyOnRails
[21:39:40] tdy: has joined #RubyOnRails
[21:47:49] tdy: has joined #RubyOnRails
[21:49:45] tdy: has joined #RubyOnRails
[22:03:30] guyz: has joined #RubyOnRails
[22:03:31] cnsvc_: has joined #RubyOnRails
[22:03:34] tdy: has joined #RubyOnRails
[22:10:56] ariedler: has joined #RubyOnRails
[22:38:16] ariedler: has joined #RubyOnRails
[22:58:52] cnsvc_: has joined #RubyOnRails
[23:22:13] kapil____: has joined #RubyOnRails
[23:28:12] LambdaSource: has joined #RubyOnRails
[23:29:35] orbyt_: has joined #RubyOnRails
[23:35:19] tdy: has joined #RubyOnRails
[23:50:02] Technodrome: has joined #RubyOnRails