« Back to channel list

#RubyOnRails - 20 January 2019

« Back 1 day Forward 1 day »
[00:01:47] Tempesta: has joined #RubyOnRails
[00:03:17] tdy1: has joined #RubyOnRails
[00:11:01] ariedler: has joined #RubyOnRails
[00:20:35] dviola: has joined #RubyOnRails
[00:41:36] SteenJobs: has joined #RubyOnRails
[01:28:59] mr_roybot: has joined #RubyOnRails
[01:30:28] mr_roybot: has joined #RubyOnRails
[01:33:30] nate-^: has joined #RubyOnRails
[01:45:56] Doobie__: has joined #RubyOnRails
[01:48:37] jesfre: has joined #RubyOnRails
[01:51:07] hammer065: has joined #RubyOnRails
[01:56:48] ariedler: has joined #RubyOnRails
[01:58:57] tdy1: has joined #RubyOnRails
[02:26:31] ariedler: has joined #RubyOnRails
[02:27:51] NeXTSUN: has joined #RubyOnRails
[02:41:11] nate-^: has joined #RubyOnRails
[03:16:49] jesfre: has joined #RubyOnRails
[03:36:06] tdy1: has joined #RubyOnRails
[04:02:21] Technodrome: has joined #RubyOnRails
[04:05:12] andrewray: has joined #RubyOnRails
[04:09:34] braincrash: has joined #RubyOnRails
[04:16:16] cagomez: has joined #RubyOnRails
[04:20:26] tdy1: has joined #RubyOnRails
[04:24:16] Avinash: has joined #RubyOnRails
[04:26:11] andrewray: has joined #RubyOnRails
[04:29:56] SteenJobs: has joined #RubyOnRails
[04:39:59] duderonomy: has joined #RubyOnRails
[04:40:37] uplime: has joined #RubyOnRails
[04:47:59] ariedler: has joined #RubyOnRails
[04:48:10] Technodrome: has joined #RubyOnRails
[04:52:11] Avinash: has joined #RubyOnRails
[05:15:11] Saukk: has joined #RubyOnRails
[05:18:04] cagomez: has joined #RubyOnRails
[05:30:40] tdy1: has joined #RubyOnRails
[05:45:45] Technodrome: has joined #RubyOnRails
[05:49:41] uks: has joined #RubyOnRails
[05:50:48] andrewray: Software Engineering: "Separation of concerns is important!"
[05:51:03] andrewray: Ruby on Rails: "Say no more! I have a module called Concern!"
[05:51:13] andrewray: SE: "That's not what I... jesus, what?"
[05:51:31] andrewray: RoR: "And it's a mixin! That you mix in to your own module! And that itself becomes a mixin! And it's all metaprogramming!"
[06:18:22] Jervis_: has joined #RubyOnRails
[06:31:14] reber: has joined #RubyOnRails
[06:31:52] tdy: has joined #RubyOnRails
[06:32:34] reber: has joined #RubyOnRails
[06:44:44] gambl0r3: has joined #RubyOnRails
[07:08:27] tdy: has joined #RubyOnRails
[07:45:17] Avinash: has joined #RubyOnRails
[07:48:02] segy: has joined #RubyOnRails
[08:03:33] Dbugger: has joined #RubyOnRails
[08:11:30] defsdoor: has joined #RubyOnRails
[08:12:47] segy: has joined #RubyOnRails
[08:25:55] dozzed: has joined #RubyOnRails
[08:35:45] jeromelanteri: has joined #RubyOnRails
[08:36:24] jeromelanteri: i'm trying this: https://guides.rubyonrails.org/working_with_javascript_in_rails.html (part of document about unobstrusive javascript).
[08:36:54] tdy: has joined #RubyOnRails
[08:36:58] jeromelanteri: but this seems to be wrong (or i miss something). I also use turbolinks and jquery-turbolinks with rails-5.2.2
[08:37:58] jeromelanteri: i see many post around no more maintained turbolinks gem and strange event handlers problems, with many wrong solutions (wrong because it doesn't works for me)
[08:38:24] jeromelanteri: could you please help me to make working unobstrusive coffee script on please ?
[08:38:36] RedNifre: has joined #RubyOnRails
[08:59:54] tdy: has joined #RubyOnRails
[09:14:18] mangold: has joined #RubyOnRails
[09:33:45] Avinash: has joined #RubyOnRails
[09:51:11] ur5us: has joined #RubyOnRails
[09:52:26] phaul: has joined #RubyOnRails
[10:05:55] sphalerite: has joined #RubyOnRails
[10:15:52] Dbugger: has joined #RubyOnRails
[10:17:49] Tempesta: has joined #RubyOnRails
[10:23:24] Ergo: has joined #RubyOnRails
[10:32:08] Avinash: has joined #RubyOnRails
[10:40:26] mikecmpbll: has joined #RubyOnRails
[10:47:56] RiPuk: has joined #RubyOnRails
[10:54:55] Avinash: has joined #RubyOnRails
[10:55:23] Fernando-Basso: has joined #RubyOnRails
[11:13:01] lxsameer: has joined #RubyOnRails
[11:31:35] tdy: has joined #RubyOnRails
[11:32:02] jeromelanteri: very cool, thank you.
[11:33:30] Avinash: has joined #RubyOnRails
[11:45:46] Avinash: has joined #RubyOnRails
[11:48:06] lexileo: has joined #RubyOnRails
[11:55:31] ariedler: has joined #RubyOnRails
[11:57:42] ariedler: has joined #RubyOnRails
[12:32:16] reber: has joined #RubyOnRails
[12:38:55] Jervis_: has joined #RubyOnRails
[12:51:11] RiPuk: has joined #RubyOnRails
[12:52:55] tdy: has joined #RubyOnRails
[13:03:40] tdy1: has joined #RubyOnRails
[13:13:39] Avinash: has joined #RubyOnRails
[13:32:14] RedNifre: has joined #RubyOnRails
[14:26:30] mikecmpbll: has joined #RubyOnRails
[14:34:53] mikecmpbll: has joined #RubyOnRails
[14:48:22] NeXTSUN: has joined #RubyOnRails
[14:56:02] ravenousmoose: has joined #RubyOnRails
[15:06:16] Avinash: has joined #RubyOnRails
[15:14:22] andywww: has joined #RubyOnRails
[15:14:56] andywww: Any contractors out there?
[15:15:29] andywww: I’m after a bit of advice on how to absolve myself of the responsibility of any breaches of a piece of software I’m building for an agency
[15:15:33] Dbugger: has joined #RubyOnRails
[15:28:57] Xiti: has joined #RubyOnRails
[15:43:25] ravenousmoose: has joined #RubyOnRails
[15:47:05] cagomez: has joined #RubyOnRails
[16:09:58] nir0: has joined #RubyOnRails
[16:11:59] nir0: hi guys, i've got something strange going on: Company.where({}).first # => works; @scope = Company.where({}); @scope.first # => NoMethodError (undefined method `first' for #<ActiveRecord::QueryMethods::WhereChain:0x00007fe2b8f752e0>)
[16:14:52] Dbugger: has joined #RubyOnRails
[16:31:12] Avinash: has joined #RubyOnRails
[16:32:37] cagomez: has joined #RubyOnRails
[16:33:00] ziyadb: has joined #RubyOnRails
[16:57:08] mikecmpbll: has joined #RubyOnRails
[17:05:17] conta: has joined #RubyOnRails
[17:40:08] andrewray: has joined #RubyOnRails
[17:44:38] RedNifre: has joined #RubyOnRails
[18:16:42] nate-^: has joined #RubyOnRails
[18:50:52] blackmesa: has joined #RubyOnRails
[18:53:28] blackmesa: hi all. I run 3 rails apps with postgres. For all apps I use the same database user. Is it bad practice?
[18:57:33] tdy1: has joined #RubyOnRails
[18:58:54] blackmesa: jo sorry. I use different owner for every app
[19:21:12] conta: has joined #RubyOnRails
[19:37:18] gambl0r3: has joined #RubyOnRails
[19:43:00] andrewray: has joined #RubyOnRails
[20:02:54] LunarDinosaur: has joined #RubyOnRails
[20:14:28] Technodrome: has joined #RubyOnRails
[20:22:09] LunarDinosaur: first time deploying a rails app to aws. on eb deploy, i get the error that bundler isn't included in gems. is this familiar to anyone?
[20:42:49] ur5us: has joined #RubyOnRails
[20:57:35] havenwood: LunarDinosaur: If you're using a version of Ruby <2.6, be sure to: gem install bundler
[20:58:14] havenwood: blackmesa: Three different databases or three apps sharing the same database?
[20:58:25] uplime: has joined #RubyOnRails
[21:08:25] havenwood: nir0, oh, they left. Anyways, `User.where.first` is different than `User.where({}).first`.
[21:14:51] blackmesa: havenwood: thx for the response. I just checked. I have different owners for every database
[21:15:22] havenwood: blackmesa: 👍🏽
[21:17:24] blackmesa: I need to install ruby/rails on centOS. anyone has a tip for that? Ive been using freebsd for the last years and was always pretty happy.
[21:19:02] blackmesa: nginx / passenger / ruby on rails / postgres has been my stack for years
[21:19:20] havenwood: blackmesa: Are you using SCLo software collections?
[21:19:23] havenwood: blackmesa: They have a Ruby 2.5 package for CentOS: https://www.softwarecollections.org/en/scls/rhscl/rh-ruby25/
[21:19:46] blackmesa: installing packages (ports) on freebsd was always a pleasure and up-to-date packages
[21:19:51] havenwood: blackmesa: These days, the Rails default is Puma.
[21:20:13] blackmesa: Isnt Puma for development env?
[21:20:25] havenwood: No, it's for all env.
[21:21:03] blackmesa: I did get that in the Gemfile...but I didnt really care. Is it similar to Phusion Passenger?
[21:21:20] havenwood: We use Puma in prod widely, though we also use Passenger still on some services.
[21:21:52] blackmesa: ok nice. Puma is 13 Jul 2018, the last release
[21:21:59] havenwood: blackmesa: It's similar to Phusion Passenger's standalone mode. It doesn't have Nginx/Apache modules.
[21:22:29] blackmesa: cant I use it with nginx?
[21:22:51] havenwood: yes, it's quite common to reverse proxy from Nginx to Puma.
[21:23:21] havenwood: just point Nginx at the socket that Puma is running on
[21:23:51] blackmesa: havenwood: yes I have installed the ruby 2.5 package. But right now I am trying to Install Passenger from https://www.phusionpassenger.com/library/install/nginx/install/oss/el7/
[21:24:10] blackmesa: and it installs ruby 2.0 and other old gems as dependency...
[21:25:07] blackmesa: and it wont let me install gems without "sudo". Ive never used "sudo gem install" in production
[21:25:32] blackmesa: and rbenv and rvm I also never used in production, that might could work around the sudo thing
[21:26:32] havenwood: blackmesa: CentOS choosing a sudo location for gem installs can be worked around if you want. Or you could use ruby-install without chruby.
[21:26:45] havenwood: blackmesa: It's simpler to setup Puma ¯\_(ツ)_/¯
[21:27:21] havenwood: blackmesa: CentOS happens to choose a $GEM_HOME outside your home dir.
[21:27:25] blackmesa: I will look into Puma thanks!
[21:27:45] havenwood: blackmesa: gem has a `--user-install` flag that would override CentOS default
[21:27:57] havenwood: blackmesa: --[no-]user-install Install in user's home directory instead of GEM_HOME.
[21:28:26] havenwood: blackmesa: Or you can just use the CentOS default, and use sudo. Your preference!
[21:28:44] blackmesa: The Ruby2.5 installation put files into "/usr/local/lib/ruby" which is owned by root
[21:29:57] blackmesa: thx so far. I will take a look at puma first
[21:30:40] blackmesa: centOS has already 400 packages on a fresh install. my freebsd server has around 200, that runs for years now
[21:31:00] havenwood: why the CentOS change?
[21:31:41] blackmesa: not my choice. I have to put rails apps on another server ;/
[21:31:47] havenwood: can you go to Fedora instead? :P they have a nice Ruby package like FreeBSD
[21:32:39] blackmesa: ive been around freenode and this channel for some years...the user count dropped pretty much
[21:32:46] havenwood: I'd probably try to get the CentOS Ruby 2.5 package working with Nginx and Puma. If that didn't work, I'd ruby-install, setup chruby, then hardcode the env vars and ditch chruby.
[21:33:01] havenwood: blackmesa: https://github.com/postmodern/ruby-install
[21:33:04] blackmesa: ok thx havenwood
[21:33:20] havenwood: https://github.com/postmodern/chruby
[21:33:22] havenwood: blackmesa: np, gl!
[21:36:25] orbyt_: has joined #RubyOnRails
[21:36:34] DTZUZO_: has joined #RubyOnRails
[21:46:07] havenwood: blackmesa: fwiw, if you want to compile Ruby 2.6 from source, then set env vars like chruby would, here's what I think it'd take: https://gist.github.com/havenwood/2de8bdaed96e787814adf2662cc8cd0f
[21:46:46] havenwood: threw in jemalloc for good fun :) it does tend to keep memory usage down and speed things up a bit to boot
[21:50:41] blackmesa: cool thx for the effort. will save that. would that install ruby for your local system user?
[21:53:01] havenwood: blackmesa: yes
[21:53:30] havenwood: blackmesa: just because the --prefix location would be in a user directory: https://gist.github.com/havenwood/2de8bdaed96e787814adf2662cc8cd0f#file-blackmesa-sh-L5
[21:54:08] havenwood: blackmesa: it would require sudo if you put it in a system dir, like: --prefix=/opt/rubies/ruby-2.6.0
[21:55:01] havenwood: blackmesa: just setting those env vars is all it takes to configure it as the default Ruby and make gem executables available
[21:55:20] havenwood: you can leave system Ruby around if you want - it wouldn't conflict
[21:56:54] havenwood: blackmesa: updated the gist with a nit (sudo isn't required for `make install` with a user dir
[21:57:41] havenwood: blackmesa: if you change the 2.6s to 2.5s and the 2.6.0s to 2.5.3s the same script should work for 2.5.3
[21:58:26] havenwood: blackmesa: or this is what ruby-install would do with: ruby-install ruby-2.6.0 -- --with-jemalloc
[21:58:36] Davey: has joined #RubyOnRails
[21:59:20] havenwood: and the env vars are what chruby would set with: chruby ruby-2.6.0
[22:02:48] blackmesa: thanks man. I would probably do it with ruby253
[22:03:46] havenwood: blackmesa: that makes sense! the first TEENY release is usually a good time to bump.
[22:04:26] havenwood: i'd imagine it won't be too long 'till 2.6.1
[22:05:44] fugee: has joined #RubyOnRails
[22:06:42] fugee: i'm trying to use spree_sitemap i'm getting no route matches get sitemap.xml.gz error
[22:10:56] mr_roybot: has joined #RubyOnRails
[22:14:59] blackmesa: havenwood: trying it out now
[22:25:42] nate-^: has joined #RubyOnRails
[22:29:24] fugee: has left #RubyOnRails: ("Leaving")
[22:34:37] armyriad: has joined #RubyOnRails
[23:18:05] Technodrome: has joined #RubyOnRails
[23:21:01] blackmesa: havenwood: u still there?
[23:30:31] dozzed: any ruby on rails freelance coders here? how do i find an dhire one? im a bit broke? lol
[23:37:45] lupine: end capitalism
[23:40:02] dozzed: it happened before and it didnt work
[23:40:28] dozzed: is ther a way to learn ruby on rails for non maths idiots?
[23:42:08] andrewray: rails's design is bonkers, but there's probably zero math knowledge required to build a simple website
[23:44:25] dozzed: can i build it with html5 and css and afterwards add rails? lol
[23:44:33] dozzed: i dont know backend stuff
[23:44:42] dozzed: server side is like china to me
[23:45:02] andrewray: you can build a static web page with html and css, and the use that as a template for any web framework, including rails, yes
[23:52:28] SteenJobs: has joined #RubyOnRails
[23:54:48] quazimodo: has joined #RubyOnRails