« Back to channel list

#RubyOnRails - 07 July 2019

« Back 1 day Forward 1 day »
[00:04:54] Exuma: has joined #RubyOnRails
[00:09:38] emptyfl4sk: has joined #RubyOnRails
[00:10:57] Technodrome: has joined #RubyOnRails
[01:04:53] brool: has joined #RubyOnRails
[01:18:49] alxgsv: has joined #RubyOnRails
[01:26:19] ariedler: has joined #RubyOnRails
[02:10:35] emptyfl4sk: has joined #RubyOnRails
[02:27:47] Exuma: has joined #RubyOnRails
[02:29:57] arooni: anyone ever have the issue where you generate a new controller and cannot access any regular activerecord models that you would normally be able to access? things like User.find_by_email don't work ?
[02:31:45] benlieb_: has joined #RubyOnRails
[02:33:40] w0rd-driven: has joined #RubyOnRails
[02:43:35] haxx0r: has joined #RubyOnRails
[02:52:19] ascarter: has joined #RubyOnRails
[03:01:15] orbyt_: has joined #RubyOnRails
[03:10:09] braincrash: has joined #RubyOnRails
[03:13:26] hd1: has joined #RubyOnRails
[03:39:55] orbyt_: has joined #RubyOnRails
[03:48:06] Technodrome: has joined #RubyOnRails
[04:11:28] emptyfl4sk: has joined #RubyOnRails
[04:20:09] Exuma: has joined #RubyOnRails
[04:46:39] emptyfl4sk: has joined #RubyOnRails
[05:02:01] ascarter: has joined #RubyOnRails
[05:12:51] za1b1tsu: has joined #RubyOnRails
[05:15:18] Exuma: has joined #RubyOnRails
[05:19:27] emptyfl4sk: has joined #RubyOnRails
[05:45:07] Norrin: amazed at how little chat happens where
[05:45:16] Norrin: is there some other rails channel that is bigger?
[05:58:35] kurly: think it's more of a support channel than a chat channel
[05:59:03] tfreedman1: actually, I might as well start asking crazy questions here
[05:59:05] tfreedman1: if it's mostly idling
[05:59:22] tfreedman1: so I have a rails project that's got a bunch of plugins, such that you can kinda turn on and off a bunch of features
[05:59:38] tfreedman1: those features may or may not have DB tables associated with them
[06:00:13] tfreedman1: I can dump the entire DB schema with rake, but then that restores every plugin
[06:00:58] tfreedman1: and migrations aren't super useful, just because they would also restore things assuming every plugin is used
[06:02:25] tfreedman1: is there a good way to automatically break it up and put the relevant DB stuff into the model or controller
[06:09:47] Giorgio: has joined #RubyOnRails
[06:11:29] mattwc: has joined #RubyOnRails
[06:13:19] ChrisBr: has joined #RubyOnRails
[06:18:04] FooBarWidget: has joined #RubyOnRails
[06:18:04] DukeDave: has joined #RubyOnRails
[06:18:04] spectra: has joined #RubyOnRails
[06:18:04] lupine: has joined #RubyOnRails
[06:18:04] shansen: has joined #RubyOnRails
[06:18:04] arathald: has joined #RubyOnRails
[06:18:24] tfreedman1: has joined #RubyOnRails
[06:18:25] MrCrackPotBuilde: has joined #RubyOnRails
[06:18:25] voker57: has joined #RubyOnRails
[06:18:25] keden: has joined #RubyOnRails
[06:18:25] G: has joined #RubyOnRails
[06:18:25] phon: has joined #RubyOnRails
[06:18:25] newton: has joined #RubyOnRails
[06:18:25] Vircung: has joined #RubyOnRails
[06:18:25] leeky: has joined #RubyOnRails
[06:18:25] hahuang65: has joined #RubyOnRails
[06:18:25] uplime: has joined #RubyOnRails
[06:18:25] Net: has joined #RubyOnRails
[06:33:05] za1b1tsu: has joined #RubyOnRails
[06:57:10] sandstrom: has joined #RubyOnRails
[07:14:28] orbyt_: has joined #RubyOnRails
[07:20:12] emptyfl4sk: has joined #RubyOnRails
[07:23:38] orbyt_: has joined #RubyOnRails
[08:07:55] MasterAsia: has joined #RubyOnRails
[08:11:24] Dbugger: has joined #RubyOnRails
[08:16:25] Mutsuhito: has joined #RubyOnRails
[08:23:39] hahuang65: has joined #RubyOnRails
[08:24:14] hahuang65: has joined #RubyOnRails
[08:24:15] tfreedman: has joined #RubyOnRails
[08:24:43] coffeejunk: has joined #RubyOnRails
[08:25:50] uranoss: has joined #RubyOnRails
[08:28:52] DukeDave: has joined #RubyOnRails
[08:32:17] lipoqil: has joined #RubyOnRails
[08:33:39] spectra: has joined #RubyOnRails
[08:59:50] schne1der: has joined #RubyOnRails
[09:37:31] emptyfl4sk: has joined #RubyOnRails
[09:37:45] Omnilord: has joined #RubyOnRails
[09:50:55] sandstrom: has joined #RubyOnRails
[09:59:22] Norrin: kurly that's fine but there's very little rails discussion happening. maybe you haven't seen how IRC has been in the past before
[10:10:46] emptyfl4sk: has joined #RubyOnRails
[10:53:31] Fernando-Basso: has joined #RubyOnRails
[10:59:49] lankanmon: has joined #RubyOnRails
[11:09:46] conta: has joined #RubyOnRails
[12:04:01] Saukk: has joined #RubyOnRails
[12:04:26] sandstrom: has joined #RubyOnRails
[12:20:53] beingjohnm: has joined #RubyOnRails
[12:30:52] emptyfl4sk: has joined #RubyOnRails
[12:59:15] alxgsv: has joined #RubyOnRails
[13:07:40] emptyfl4sk: has joined #RubyOnRails
[14:03:52] ellcs: has joined #RubyOnRails
[15:00:16] sandstrom: has joined #RubyOnRails
[15:08:22] emptyfl4sk: has joined #RubyOnRails
[15:15:27] emptyfl4sk: has joined #RubyOnRails
[15:50:38] Technodrome: has joined #RubyOnRails
[16:02:11] Technodrome: has joined #RubyOnRails
[16:11:45] cerulean: has joined #RubyOnRails
[16:11:51] cerulean: i have sort of an odd question
[16:11:55] cerulean: I'm an advanced rubyist
[16:12:08] cerulean: I'm off to C# land! for reasons of Unity and making some windows-native stuff
[16:12:23] cerulean: can anyone recommend C# tutorials that are advanced for someone like me?
[16:12:34] cerulean: i don't know where to ask, and didn't wanna start at the bottom
[16:12:47] cerulean: or just anything recommended at all
[16:30:26] orbyt_: has joined #RubyOnRails
[16:43:55] shenghi: has joined #RubyOnRails
[16:53:14] xco: has joined #RubyOnRails
[16:55:54] xco: Hi I need help. I have this https://gist.github.com/xcobar/422daadfb65f4c1add7df6890cd77653. This is what I want to achieve: To be able to access `current_user` in the twitter intializer file so I can grab some tokens to create a Twitter client. I’m assuming the initializer files loads before everything else and current_user will be nil at the point it loads, I have tried doing it through a service and including ApplicationHelper in the
[16:55:54] xco: service (which is bad i guess). Question is how can i access current_user from my current setup or from a service?
[17:04:41] xco: short form of question: How do I access the session outside of the controller?
[17:06:05] xco: ActionDispatch::Request.new(ENV)
[17:06:12] xco: answered my own question
[17:06:19] xco: am i going crazy?
[17:06:32] xco: talking to myself :D
[17:23:11] cerulean: has left #RubyOnRails: ()
[17:25:30] ariedler: has joined #RubyOnRails
[17:25:44] xco: actually no, ActionDispatch::Request.new(ENV) is not what i’m looking for. question still holds! :D
[17:27:02] Exuma: has joined #RubyOnRails
[17:54:17] tdy3: has joined #RubyOnRails
[17:55:11] IGnorAND: anyone try lambda @ aws? I get Ignoring nokogiri-1.10.3 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.3
[18:12:16] unreal: has joined #RubyOnRails
[18:15:35] emptyfl4sk: has joined #RubyOnRails
[18:35:07] ellcs: has joined #RubyOnRails
[18:35:59] ellcs: has joined #RubyOnRails
[18:36:59] ellcs: has joined #RubyOnRails
[18:37:35] ellcs: has joined #RubyOnRails
[18:38:17] ellcs: has joined #RubyOnRails
[19:06:51] orbyt_: has joined #RubyOnRails
[19:15:36] emptyfl4sk: has joined #RubyOnRails
[19:27:54] orbyt_: has joined #RubyOnRails
[19:30:34] snuz: has joined #RubyOnRails
[19:38:26] havenwood: IGnorAND: https://aws.amazon.com/blogs/developer/announcing-ruby-build-support-for-aws-sam-cli/
[19:39:07] havenwood: IGnorAND: Lambda seems to work well with Ruby. :)
[19:39:59] havenwood: I've been confused by articles showing Sinatra or Rails on Lambda. Why have a serverless function be a server?
[19:45:42] uks: has joined #RubyOnRails
[19:53:27] IGnorAND: havenwood: guess I'll download sam then
[19:54:16] havenwood: IGnorAND: Or try `bundle install --deployment` and ship the vendor/ dir. I think you'd want to do that from Amazon Linux
[19:54:32] havenwood: IGnorAND: Yeah, sam is probably the easiest path.
[19:54:52] IGnorAND: I did bundle install --path vendor/bundle && zip -r $1.zip $1.rb vendor && aws-v3.rb lambda update-function-code --function-name $1 --zip-file fileb://$1.zip
[19:55:28] hd1: has joined #RubyOnRails
[19:55:37] hd1: has left #RubyOnRails: ()
[20:13:57] emptyfl4sk: has joined #RubyOnRails
[20:41:34] IGnorAND: havenwood: did you install sam etc?
[20:43:19] havenwood: IGnorAND: No, I didn't since the lambda functions I've used so far haven't actually used native extensions.
[21:25:00] Exuma: has joined #RubyOnRails
[21:28:08] orbyt_: has joined #RubyOnRails
[21:32:08] orbyt_: has joined #RubyOnRails
[21:37:53] IGnorAND: havenwood: removed python2, 3 and installed pyenv, installed the aws bundle. so much change
[21:59:54] Omnilord: has joined #RubyOnRails
[22:14:54] emptyfl4sk: has joined #RubyOnRails
[22:45:08] dgs: has joined #RubyOnRails
[22:49:09] dgs: I've got a rails 4.2 app and am having issues with caching. We use dalli/memcached, and it's working fine for stuff we cache explicitly (ie Rails.cache.set/fetch etc), but request specific query_cache isn't working. This is configured in production.rb (config.action_controller.perform_caching = true), but the rails log shows no sign of it caching (looking for CACHE keyword in log), and enabling database auditing shows dozens of identica
[22:49:10] dgs: l SELECT's per request (same query, same case, same parameters)
[22:49:49] dgs: rake middleware task indicates that QueryCache is enabled: use ActiveRecord::QueryCache
[22:50:03] dgs: is there something I need do to enable this?
[22:50:49] dgs: or am I misunderstanding what QueryCache is meant to do (I thought it should automatically cache identical selects within the same request)
[22:51:39] dgs: running memcached in verbose mode shows all the manual caching fetching/getting/missing exactly as expected - so I'm fairly sure the app is connecting to memcached fine
[22:52:59] emptyfl4sk: has joined #RubyOnRails
[23:43:23] emptyfl4sk: has joined #RubyOnRails