« Back to channel list

#RubyOnRails - 04 February 2019

« Back 1 day Forward 1 day »
[00:04:25] orbyt_: has joined #RubyOnRails
[00:06:54] dogweather: has joined #RubyOnRails
[00:32:09] beholders_eye: has joined #RubyOnRails
[00:32:46] cnsvc: has joined #RubyOnRails
[00:36:34] roshanavand1: has joined #RubyOnRails
[00:38:37] roshanavand1: has joined #RubyOnRails
[00:40:48] roshanavand1: has joined #RubyOnRails
[00:50:50] dogweather: has joined #RubyOnRails
[01:46:35] fragamus: has joined #RubyOnRails
[01:46:44] hahuang6-: has joined #RubyOnRails
[02:17:40] cnsvc: has joined #RubyOnRails
[02:56:50] Saukk: has joined #RubyOnRails
[03:01:05] skryking: has joined #RubyOnRails
[03:15:24] gambl0r3: has joined #RubyOnRails
[03:18:48] dogweather: has joined #RubyOnRails
[03:20:11] Technodrome: has joined #RubyOnRails
[03:40:13] orbyt_: has joined #RubyOnRails
[03:40:43] fragamus: has joined #RubyOnRails
[03:43:03] barhum2013: has joined #RubyOnRails
[03:58:14] sevenseacat: has joined #RubyOnRails
[04:09:24] braincrash: has joined #RubyOnRails
[04:09:43] srinidhi: has joined #RubyOnRails
[04:36:52] mangold: has joined #RubyOnRails
[05:16:26] karthick: has joined #RubyOnRails
[05:24:51] karthick: has joined #RubyOnRails
[05:27:45] karthick: has joined #RubyOnRails
[05:50:22] uks: has joined #RubyOnRails
[05:54:32] jamiew: has left #RubyOnRails: ("bye")
[06:22:02] conta: has joined #RubyOnRails
[06:25:28] kapil____: has joined #RubyOnRails
[06:49:40] quazimodo: has joined #RubyOnRails
[07:01:36] Dbugger: has joined #RubyOnRails
[07:25:21] srinidhi: has joined #RubyOnRails
[08:01:47] w0rd-driven: has joined #RubyOnRails
[08:18:40] srinidhi: has joined #RubyOnRails
[08:45:10] blackmesa1: has joined #RubyOnRails
[08:46:26] blackmesa: has joined #RubyOnRails
[08:49:57] mikecmpbll: has joined #RubyOnRails
[09:07:42] mikecmpbll: has joined #RubyOnRails
[09:15:07] liya: has joined #RubyOnRails
[09:19:04] liya: dionysus69, can you suggest some good resources for learning ruby?
[09:26:47] Guest16678: has joined #RubyOnRails
[09:29:53] mangold: has joined #RubyOnRails
[09:33:40] jhass: has joined #RubyOnRails
[09:38:42] tdy: has joined #RubyOnRails
[09:42:50] srinidhi: has joined #RubyOnRails
[09:43:31] Ergo: has joined #RubyOnRails
[09:52:11] fox_mulder_cp: liya: official ruby site :)
[09:52:49] fox_mulder_cp: liya: and codecademy, as for me - pretty interactive learing web site for rubym railt, and other languages and techs
[09:53:16] fox_mulder_cp: liya btw - ask all people, not concrete persone :)
[09:56:18] reber: has joined #RubyOnRails
[10:08:28] Jervis_: has joined #RubyOnRails
[10:37:47] dionysus69: liya: you can also join #ruby channel on freenode, if you want to learn rails and ruby at the same time I recommend https://www.railstutorial.org/
[10:41:28] sevenseacat: please don't learn ruby and rails at the same time
[10:42:56] sevenseacat: please take the time out to learn some basic ruby before diving into rails
[10:47:22] dionysus69: I have to agree ^.^
[11:08:22] conta: has joined #RubyOnRails
[11:28:46] octos: has joined #RubyOnRails
[11:50:38] lankanmon: has joined #RubyOnRails
[12:28:31] octos: has joined #RubyOnRails
[12:37:25] za1b1tsu: has joined #RubyOnRails
[12:38:40] octos: has joined #RubyOnRails
[12:39:00] octos: has joined #RubyOnRails
[12:43:46] octos: has joined #RubyOnRails
[12:44:06] octos: has joined #RubyOnRails
[12:48:50] octos: has joined #RubyOnRails
[12:50:58] Guest16678: has joined #RubyOnRails
[12:54:08] octos: has joined #RubyOnRails
[12:59:00] octos: has joined #RubyOnRails
[13:04:05] octos: has joined #RubyOnRails
[13:04:27] octos: has joined #RubyOnRails
[13:19:40] Guest16678: has joined #RubyOnRails
[13:24:26] octos: has joined #RubyOnRails
[13:59:38] ariedler: has joined #RubyOnRails
[14:04:41] kapil____: has joined #RubyOnRails
[14:10:24] gambl0r3: has joined #RubyOnRails
[14:14:01] liya: yea.. i did join #ruby but this one seems more active(?)
[14:14:51] liya: the guides/books referred in official site are all not straight forward.. except the official tour
[14:15:24] liya: i did pick up a book called "the well grounded rubyist"
[14:16:49] liya: the guides in official site are good tho.. just a bit unconventional
[14:20:33] fox_mulder_cp: liya: try to learn ruby at codecademy
[14:21:47] liya: they have good interactive tutorials.. but only cover the most used stuff
[14:22:01] fox_mulder_cp: by the way - windows and ruby with rails, or windows and another laguage like python it's a very hard experience for newbies, because all gems or pips oriented for linux/unix/mac environment and some times can't work properly at win-based OS
[14:22:41] liya: im on linux so not a problem
[14:22:43] fox_mulder_cp: so your application sometimes can't work properly because gems partially failed, or can't compiled
[14:23:02] liya: i think they work fine but are slow most of the time
[14:23:18] liya: most of the software can be ported to windows
[14:24:24] fox_mulder_cp: liya: i try to use rails, django at win-based, and i have a problem when some gem's can't compiled with some requrements which is not ported
[14:24:53] liya: cygwin? or msys2?
[14:24:57] fox_mulder_cp: by the way - ubuntu emulator at win10 - is a goodf idea or hyper-v vm for that
[14:25:09] liya: just use docker
[14:25:16] liya: well it does use hyper-v
[14:25:43] liya: or just stick with linux
[14:25:44] fox_mulder_cp: docker it's a bad idea for permanent vm with env for developing
[14:26:19] liya: same goes with windows..(again.. just stick with *nix)
[14:26:48] liya: cuz you never run rails/django in windows most of the time in production
[14:27:10] liya: fox_mulder_cp, should i also check django or stick with rails?
[14:31:00] fox_mulder_cp: liya: oh. if you use Linux - u can use rbenv, as example
[14:32:57] lankanmon: has joined #RubyOnRails
[14:34:22] alan_w: has joined #RubyOnRails
[14:35:49] liya: fox_mulder_cp, still a newbie in ruby here.. it will be a long time before i even start touching $ gem ...
[14:41:10] IGnorAND: @liya active?
[14:42:09] liya: ACTION wonders why
[14:43:14] srinidhi: has joined #RubyOnRails
[15:03:22] srinidhi: has joined #RubyOnRails
[15:10:05] conta: has joined #RubyOnRails
[15:15:00] mikecmpbll: has joined #RubyOnRails
[15:18:13] ams__: has joined #RubyOnRails
[15:26:49] NoGodDamnIdea: has joined #RubyOnRails
[15:30:49] gambl0r3: has joined #RubyOnRails
[15:31:39] liya: why is the '.' operator a message passing operator and not method invocation operator
[15:34:01] Saukk: has joined #RubyOnRails
[15:42:22] gambl0r3: has joined #RubyOnRails
[15:50:45] Guest16678: has joined #RubyOnRails
[15:54:21] gambl0r3: has joined #RubyOnRails
[15:58:55] Guest16678: has joined #RubyOnRails
[16:02:27] gambl0r3: has joined #RubyOnRails
[16:16:04] orbyt_: has joined #RubyOnRails
[16:19:12] gambl0r3: has joined #RubyOnRails
[16:19:16] phon: has joined #RubyOnRails
[16:20:06] conta: has joined #RubyOnRails
[16:24:01] Guest16678: has joined #RubyOnRails
[16:40:20] Dbugger: has joined #RubyOnRails
[17:01:04] GodFather: has joined #RubyOnRails
[17:06:56] beholders_eye: has joined #RubyOnRails
[17:13:59] agent_white: has joined #RubyOnRails
[17:20:58] blackmesa: has joined #RubyOnRails
[17:22:20] gambl0re: has joined #RubyOnRails
[17:42:14] IGnorAND: @liya cause it looks like the channel is a bit dead :)
[17:46:39] IGnorAND: I have a model which has several has_many relationships. I'd like a view with the list of the primary model with a SELECT DISTINCT order by created of all the submodels. Is this a normal thing to do? It seems easier to create a view in the DB and a 'seperate' model for this view.
[17:48:23] IGnorAND: Employee has_many DriverLicense, many HealthInsurance etc. They all have an expiration date. I'd like to see when someone has a expired driverlicense, insurance etc
[17:52:11] orbyt_: has joined #RubyOnRails
[17:58:43] mikecmpbll: has joined #RubyOnRails
[18:01:42] octos: has joined #RubyOnRails
[18:03:33] mostlybadfly: has joined #RubyOnRails
[18:04:49] NeXTSUN: has joined #RubyOnRails
[18:05:09] duderonomy: has joined #RubyOnRails
[18:37:03] conta2: has joined #RubyOnRails
[18:39:21] snuz: has joined #RubyOnRails
[18:43:39] andrewray: has joined #RubyOnRails
[18:49:33] syndikate: I am trying to understand the new Zeitwerk Gem and how it fixes the current issue. Have been going through the code and current Auto Load issues, but failing to understand. Can anybody give me few pointers here please?
[18:56:56] crankharder: has joined #RubyOnRails
[18:57:44] cnsvc: has joined #RubyOnRails
[19:06:52] Doddlin: has joined #RubyOnRails
[19:07:20] cousine: has joined #RubyOnRails
[19:15:43] cousine: has left #RubyOnRails: ()
[19:16:45] IGnorAND: @syndikate Doesn't https://github.com/fxn/zeitwerk#motivation anwser your question?
[19:19:40] Technodrome: has joined #RubyOnRails
[19:31:25] mello: has joined #RubyOnRails
[19:33:17] reber: has joined #RubyOnRails
[19:43:15] andrewray: I have a grape api mounted inside a rails engine. I can get the engine to reload, but not the grape API. has anyone dealt with this nightmare?
[19:49:04] Linuus`: has joined #RubyOnRails
[19:50:35] alex_takitani: has joined #RubyOnRails
[19:50:55] havenwood: alex_takitani: hi
[19:51:08] alex_takitani: Can someone help me debug an weird migration problem?
[19:51:15] havenwood: alex_takitani: What's the problem?
[19:51:18] alex_takitani: I'm upgrading an app from rails 4
[19:51:36] alex_takitani: I have a simple rename_column
[19:51:47] alex_takitani: on a migration and it says that the column doesn't exists
[19:51:59] alex_takitani: rename_column(:restricoes_acessos, :unidade, :campus)
[19:52:09] alex_takitani: PG::UndefinedColumn: ERROR: column "unidade" of relation "restricoes_acessos" does not exist
[19:52:10] alex_takitani: : ALTER TABLE "restricoes_acessos" DROP "unidade"
[19:52:22] alex_takitani: if I run the ddl into postgres
[19:52:45] alex_takitani: sooooo weird, maybe a Rails bug I think
[19:52:55] alex_takitani: and it worked before on another table
[19:53:42] lxsameer: has joined #RubyOnRails
[19:53:56] alex_takitani: I did something stupid :)
[19:54:06] alex_takitani: Thanks anyway !
[19:56:16] havenwood: andrewray: Say more about how the mounted API isn't reloading? Like reloading a request or hot code reloading? What do you expect? What is it doing?
[19:59:13] conta: has joined #RubyOnRails
[20:00:14] blackmesa: has joined #RubyOnRails
[20:01:05] IGnorAND: ACTION wonders what a mounted API is
[20:01:48] blackmesa1: has joined #RubyOnRails
[20:04:55] havenwood: IGnorAND: You can "mount" one Rack app inside another.
[20:05:22] IGnorAND: ow cool, I just barely made one rack app with an api :)
[20:18:19] andrewray: has joined #RubyOnRails
[20:18:22] andrewray: havenwood: in my engine routes I have mount MyEngine::API => 'path'. when I change api.rb, it does not reload the change
[20:19:05] andrewray: I'm using this hacky solution in my main app, which works for the main app grape api. https://github.com/ruby-grape/grape/issues/131#issuecomment-10413342
[20:19:38] havenwood: andrewray: Some suggested solutions in this thread, if you haven't seen it: https://github.com/ruby-grape/grape/issues/131
[20:19:52] andrewray: but it doesn't work when I include that in an initializer in my rails engine. the fileUpdaterCheck block *is* called when I change the api file, but the change isn't reflected in the API when I load the page
[20:20:19] andrewray: havenwood: yeah i'm struggin with why that's not working in the engine
[20:23:15] andrewray: In my engine, I can see that callback getting called, and Rails.application.reload_routes! is execurting
[20:24:08] IGnorAND: I have a model which has several has_many relationships. I'd like a view with the list of the primary model with a SELECT DISTINCT order by created of all the submodels. Is this a normal thing to do? It seems easier to create a view in the DB and a 'seperate' model for this view.
[20:24:14] IGnorAND: Employee has_many DriverLicense, many HealthInsurance etc. They all have an expiration date. I'd like to see when someone has a expired driverlicense, insurance etc
[20:25:44] andrewray: I can see my Engine.routes.draw block being called again when I change the grape API file
[20:25:54] andrewray: so the mount API is getting called again I assume
[20:26:17] andrewray: but what I don't see is my api.rb file itself getting re-executed
[20:28:41] uksio: has joined #RubyOnRails
[20:29:37] gambl0re: has joined #RubyOnRails
[20:32:28] andrewray: My grape api file lives in lib/api/file.rb
[20:32:39] andrewray: I have Engine.root/lib/api added to autoload_paths
[20:39:54] andrewray: ok, this is weird, new grape api paths I add in the file do auto reload
[20:39:57] andrewray: but existing ones don't
[20:43:24] Fernando-Basso: has joined #RubyOnRails
[20:45:34] conta: has joined #RubyOnRails
[20:48:07] andrewray: ah, it was ActiveSupport::Dependencies.explicitly_unloadable_constants that was missing
[20:48:19] andrewray: auto reloading is not a well designed feature in rails :P
[20:54:05] jgpawletko: has joined #RubyOnRails
[20:54:30] andrewray: all I had to do was rtm
[20:59:24] conta: has joined #RubyOnRails
[21:01:17] ellcs: has joined #RubyOnRails
[21:12:01] orbyt_: has joined #RubyOnRails
[21:12:39] agent_white: has joined #RubyOnRails
[21:19:27] andrewray: hmm now i'm getting "LoadError (Unable to autoload constant MyEngine::API, expected /file/path/api.rb to define it" - but that file path exists and does define that module with the correct namespace
[21:20:29] andrewray: what's weird is that the file path it points to exists and does define the thing. the logging I have at the top of that file never executes
[21:21:20] andrewray: that same constant loads fine inside the file itself..
[21:23:20] gambl0re: has joined #RubyOnRails
[21:33:20] conta: has joined #RubyOnRails
[21:43:24] andrewray: what I wouldn't give for a sane require system with statically analyzable file resolution like all other dynamic language ecosystems have mature to :P
[21:49:17] tdy: has joined #RubyOnRails
[21:53:25] elcontrastador: has joined #RubyOnRails
[21:57:26] jrgriffiniii: has joined #RubyOnRails
[22:05:26] blackmesa1: HI all. I want the id of the records when I use "Job.select(:this_id, :that_id)"
[22:05:35] blackmesa1: this way I get nil for every id
[22:06:13] blackmesa1: #<Job:0x00007fb0a7a373c0 id: nil, this_id: 196, that_id: 2>,
[22:06:28] blackmesa1: why is id nil for all records when I use select
[22:08:28] lexileo: has joined #RubyOnRails
[22:15:11] orbyt_: has joined #RubyOnRails
[22:41:15] roshanavand: has joined #RubyOnRails
[22:53:53] torbo: has joined #RubyOnRails
[22:55:02] torbo: Anyone else run into an issue where ruby-graphql consumes multiple GB of RAM for a single large graphql query requesting 10k+ objects?
[22:58:04] cnsvc: has joined #RubyOnRails
[23:25:04] tfitts: has joined #RubyOnRails
[23:47:25] Technodrome: has joined #RubyOnRails
[23:54:09] phaul: has joined #RubyOnRails