#RubyOnRails - 26 February 2019
« Back 1 day Forward 1 day »
[02:42:34] haxx0r: i'm too stupid to make a webserver running for rails. i have 18.10 and i read passenger has issues with it so i tried puma
[02:44:12] haxx0r: i did this thing https://prograils.com/posts/capistrano-deploy-to-ubuntu-with-systemd-nginx-puma-and-rbenv but it's not working
[02:45:01] haxx0r: i only find 2019/02/26 02:43:48 [crit] 12508#12508: *1 connect() to unix:/var/www/pharmary/shared/tmp/sockets/puma.sock failed (2: No such file or directory) while connecting to upstream, client: 126.96.36.199, server: test.schauen.me, request: "GET / HTTP/1.1", upstream: "http://unix:/var/www/pharmary/shared/tmp/sockets/puma.sock:/", host: "test.
[02:48:05] haxx0r: so what's the easiest way to install a webserver? i don't care apache, nginx or whatever. i just need to have it running
[08:39:16] pavelz: hi, I am trying to render partials but vars are not being passed in, how come? other parts of the app do the same and it works ie. render "admin/user/list
[08:40:01] pavelz: locked in undefined. when I do locals, I get locals_assigns but that seems a bit inelegant
[14:30:36] prestorium: Hi all. I'm replacing a legacy API with Rails 5.2.2. This API is already being used by a client. I can't change this client. This client does a binary upload on request body. Can I handle that on Rails? I'm googling for "rails binary file upload" without success.
[14:32:05] prestorium: My goal is to make something a little bit more modern than "index.php", with close to no maintenance time. I opted for Rails mainly because it is easier (for me) to write tests using ruby/rspec.
[14:38:31] prestorium: fox_mulder_cp sorry, how can upstream help me? As far as I understand, it only group servers to be used by proxy_pass & friends... ?
[15:57:52] dviola: I have this piece of code https://gist.github.com/diegoviola/f9a99d5cc35d0813ff32212146d14f54 which returns "Rack::Timeout::RequestTimeoutException: Request waited 3ms, then ran for longer than 29997ms"
[16:55:37] yoshie902a: need help with a reasonable naming convention for a polymorphic association. I have a table called “Firm” which belongs_to :firmable, :polymorphic => true, but I keep thinking there needs to be a better name than Firmable
[21:33:05] Radar: srruby: But seriously tho: https://gist.github.com/radar/5b1a913028a23b9610663ea78df3e1c3
[21:33:28] Radar: srruby: describe is used to describe the behaviours of the class / methods. The "#permissions" thing here would be an instance method called permissions
[21:33:45] Radar: srruby: context is used to describe different... situations, contexts? When <something is different>...
[21:36:24] srruby: subject is unfortunate... They should use plain ruby instead of creating a lisp-like dsl
[23:24:04] newton: could someone point me in the right direction with inverse_of? should I be expecting the query to not make the second Person called? https://gist.github.com/jameswritescode/5c6659e89f35f385e07550d92a180be5
[23:26:22] newton: lol nvm. there was another has_many :listings hidden in some other code messing itup
[23:27:55] benlieb: controller.class.send(:_layout) will access the layout, but only if it's defined in the class with layout :layout, not if it's defined in the render cal