#RubyOnRails - 05 August 2017
« Back 1 day Forward 1 day »
[04:52:56] MasterAsia: I used source_location and apparently it is coming from abstract_controller in actionpack but that led nowhere
[07:59:43] ImmoveableOne: I want to log the parameters of every controller I have, I know that this may be done using set_trace_func, but when I do that i application controller, it enters an infinite loop.
[08:35:24] ImmoveableOne: Sorry, I asked that some time ago, its not visible now. I want to log for every function I've written in my rails app.
[08:38:05] ImmoveableOne: I also want to cover all helper functions, actually I want to auto document these yard style.
[14:19:55] melkor: I am trying to upgrade to ruby 2.3 but I cannot compile 'passenger-install-apache2' because my vps doesn't have enough memory and it won't let me create/use swap space.
[14:21:01] melkor: Is there anything I can do? I am trying an older version of passenger 5.0.30, and if this works that is great, but I'd prefer to use the recommended versions.
[14:22:47] melkor: 5.0.30 didn't work. Ill try 5.0.28 which is installed in another spot with an old ruby.
[16:03:13] durango: Having an issue with rails 5 atm https://gist.github.com/durango/d24d01fa19f763639cec44d4e7173429 any idea why I keep getting errors for devise routes?
[18:00:10] haolez: I'm a beginner and I'm trying to use a Rails 4 app for my business (https://github.com/harrystech/prelaunchr), but when deploying it, I get a desktop-oriented view when accessing on mobile... is there a convention for this type of config in rails? I'm trying to find out on my own how to debug this, but it is a little overwhelming for me right now
[18:35:41] ych: hey, i'm using sidekiq+activejob. I have a prepared job that i serialize and store the hash in db (postgres). then, i want to deserialize and perform. i didn't find any documentation on how to deserialize and perform. when I'm doing serialized_job.perform - it says i'm missing N arguments (given 0, expected N).. any idea?
[22:06:55] apeiros: wasn't there something where if you have e.g. all your controllers in `Foo::xxxController` but you wanted to do your routes like `xxx` instead of `foo/xxx`?
[22:07:17] apeiros: I mean I can write `resources :xxx, controller: "foo/xxx"`, but if I want to avoid the controller param?
[22:09:33] matthewd: I very possibly may have just made that up, but hopefully it's at least in the right direction
[22:32:41] apeiros: scope module: "foo" do resources :bar; end --> /bars with Foo::BarsController :)
[22:34:47] apeiros: (I thought it was a good idea if I had a /controllers/api/ dir, to also have a /controllers/ui/ dir)
[23:56:53] jscheel: I’m confused about association callbacks and the push method. If a Movie has_many Reviews, and I call `movie.reviews << review`, why do my association callbacks not get called?