#RubyOnRails - 04 February 2019
« Back 1 day Forward 1 day »
[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
[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/
[14:14:51] liya: the guides/books referred in official site are all not straight forward.. except the official tour
[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:43] fox_mulder_cp: so your application sometimes can't work properly because gems partially failed, or can't compiled
[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:57] fox_mulder_cp: by the way - ubuntu emulator at win10 - is a goodf idea or hyper-v vm for that
[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 ...
[15:31:39] liya: why is the '.' operator a message passing operator and not method invocation operator
[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
[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?
[19:16:45] IGnorAND: @syndikate Doesn't https://github.com/fxn/zeitwerk#motivation anwser your question?
[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:52:09] alex_takitani: PG::UndefinedColumn: ERROR: column "unidade" of relation "restricoes_acessos" does not exist
[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?
[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: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:48:07] andrewray: ah, it was ActiveSupport::Dependencies.explicitly_unloadable_constants that was missing
[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: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
[22:05:26] blackmesa1: HI all. I want the id of the records when I use "Job.select(:this_id, :that_id)"
[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?