« Back to channel list

#RubyOnRails - 14 September 2018

« Back 1 day Forward 1 day »
[00:00:34] chouhoulis: has joined #RubyOnRails
[00:06:04] chouhoulis: has joined #RubyOnRails
[00:11:34] chouhoulis: has joined #RubyOnRails
[00:13:47] DTZUZO: has joined #RubyOnRails
[00:16:53] chouhoulis: has joined #RubyOnRails
[00:18:03] chouhoulis: has joined #RubyOnRails
[00:23:28] chouhoulis: has joined #RubyOnRails
[00:26:44] eckhardt: has joined #RubyOnRails
[00:28:48] chouhoulis: has joined #RubyOnRails
[00:34:13] chouhoulis: has joined #RubyOnRails
[00:34:53] orbyt_: has joined #RubyOnRails
[00:35:02] prettybTech: has joined #RubyOnRails
[00:38:55] chouhoulis: has joined #RubyOnRails
[00:51:39] brandoncc: has joined #RubyOnRails
[00:52:12] za1b1tsu: has joined #RubyOnRails
[01:01:09] funnel: has joined #RubyOnRails
[01:02:10] swistak35: has joined #RubyOnRails
[01:02:34] Guest48993: has joined #RubyOnRails
[01:04:51] c0san0stra: has joined #RubyOnRails
[01:04:57] Exagone313: has joined #RubyOnRails
[01:15:51] sevenseacat: has joined #RubyOnRails
[01:20:18] apeiros: has joined #RubyOnRails
[01:24:06] orbyt_: has joined #RubyOnRails
[01:30:49] Dimik: has joined #RubyOnRails
[01:37:18] alexertech: has joined #RubyOnRails
[01:37:34] fragamus: has joined #RubyOnRails
[01:39:40] alexertech: has joined #RubyOnRails
[01:51:40] za1b1tsu: has joined #RubyOnRails
[01:52:28] Saukk: has joined #RubyOnRails
[01:54:25] cpruitt: has joined #RubyOnRails
[01:55:45] jottr: has joined #RubyOnRails
[01:57:59] ariedler: has joined #RubyOnRails
[02:16:11] orbyt_: has joined #RubyOnRails
[02:43:39] kotepillar_: has joined #RubyOnRails
[02:56:09] cpruitt: has joined #RubyOnRails
[03:03:10] thortron: has joined #RubyOnRails
[03:04:44] arooni: has joined #RubyOnRails
[03:05:21] kotepillar_: has joined #RubyOnRails
[03:05:23] dblessing: has joined #RubyOnRails
[03:05:57] eean: has joined #RubyOnRails
[03:06:04] fragamus: has joined #RubyOnRails
[03:06:42] lxsameer: has joined #RubyOnRails
[03:07:17] kanzure: has joined #RubyOnRails
[03:10:19] braincrash: has joined #RubyOnRails
[03:39:46] za1b1tsu: has joined #RubyOnRails
[03:44:15] duderonomy: has joined #RubyOnRails
[03:51:03] dviola: has joined #RubyOnRails
[03:56:43] jottr: has joined #RubyOnRails
[03:59:12] ariedler: has joined #RubyOnRails
[04:09:01] cpruitt: has joined #RubyOnRails
[04:22:30] cpruitt: has joined #RubyOnRails
[04:28:27] fragamus: has joined #RubyOnRails
[04:28:47] agent_white: has joined #RubyOnRails
[04:33:06] sarmiena_: has joined #RubyOnRails
[04:33:20] Technodrome: has joined #RubyOnRails
[04:33:21] agent_white: has joined #RubyOnRails
[04:56:36] za1b1tsu: has joined #RubyOnRails
[05:00:10] cpruitt: has joined #RubyOnRails
[05:03:17] brandoncc: has joined #RubyOnRails
[05:14:38] psychoslave: has joined #RubyOnRails
[05:19:11] reber: has joined #RubyOnRails
[05:25:28] brandoncc: has joined #RubyOnRails
[05:30:52] brandoncc: has joined #RubyOnRails
[05:34:25] srinidhi: has joined #RubyOnRails
[05:36:11] kapil___: has joined #RubyOnRails
[05:39:37] Linuus: has joined #RubyOnRails
[05:40:13] cpruitt: has joined #RubyOnRails
[05:46:58] sevenseacat: time to learn allllll about webpack woo
[05:51:12] tdy: has joined #RubyOnRails
[05:53:34] lessless_: has joined #RubyOnRails
[05:56:01] brandoncc: has joined #RubyOnRails
[05:57:29] jottr: has joined #RubyOnRails
[05:59:01] tbuehlmann: sevenseacat: I failed the other day and went back to just yarn packages in my rails app :\
[05:59:22] sevenseacat: oof that's ominous
[06:00:00] sevenseacat: looking at an existing large app thats got a mix of all kinds of fronted stuff in it, aiming to standardise it all
[06:00:03] ariedler: has joined #RubyOnRails
[06:01:09] sevenseacat: first am trying to figure out what we even have atm
[06:06:00] fragamus: has joined #RubyOnRails
[06:07:40] cpruitt: has joined #RubyOnRails
[06:12:01] snickers: has joined #RubyOnRails
[06:20:53] MoritaShinobu: has joined #RubyOnRails
[06:21:43] lessless_: has joined #RubyOnRails
[06:22:52] nemesit: has joined #RubyOnRails
[06:36:31] wethu: has joined #RubyOnRails
[07:03:17] sandstrom: has joined #RubyOnRails
[07:07:09] cpruitt: has joined #RubyOnRails
[07:09:12] jenenliu: has joined #RubyOnRails
[07:10:29] Technodrome: has joined #RubyOnRails
[07:13:44] jottr: has joined #RubyOnRails
[07:15:25] Tempesta: has joined #RubyOnRails
[07:16:09] cpruitt: has joined #RubyOnRails
[07:17:50] za1b1tsu: has joined #RubyOnRails
[07:35:49] za1b1tsu: has joined #RubyOnRails
[07:45:43] fragamus: has joined #RubyOnRails
[07:45:47] cpruitt: has joined #RubyOnRails
[07:48:44] za1b1tsu: has joined #RubyOnRails
[07:59:25] cgfbee: has joined #RubyOnRails
[08:01:01] lexileo: has joined #RubyOnRails
[08:04:52] jenenliu: has joined #RubyOnRails
[08:05:32] srinidhi: has joined #RubyOnRails
[08:07:07] srinidhi: has joined #RubyOnRails
[08:07:14] lxsameer: has joined #RubyOnRails
[08:16:09] cpruitt: has joined #RubyOnRails
[08:21:01] nemesit: has joined #RubyOnRails
[08:30:34] dionysus69: I get this error during deployment, any suggestions appreciated, I cant really get what's going wrong. http://paste.debian.net/1042156/
[08:30:49] dionysus69: this is output by capistrano
[08:31:34] sevenseacat: looks like an invalid database config
[08:32:10] sevenseacat: whats on app/models/setting.rb:4 ?
[08:32:31] dionysus69: http://paste.debian.net/1042158/
[08:32:47] dionysus69: that will be, namespace Rails.env on line 4
[08:35:04] sevenseacat: not seeing that config option in the gem
[08:36:27] dionysus69: hmm I dont know, it was there for past year, just got a problem, I will try without it :)
[08:37:08] sevenseacat: does it work locally
[08:37:10] Ergo: has joined #RubyOnRails
[08:37:25] dionysus69: yes all works fine locally
[08:37:36] dionysus69: Redis connection works
[08:37:48] dionysus69: on infrustructure's side everything looks fine
[08:38:18] sevenseacat: so what does that namespace method call do locally?
[08:38:21] dionysus69: interestingly, this happens right during assets precompile step of deployment
[08:39:31] dionysus69: sevenseacat: good question
[08:39:44] dionysus69: I didnt restart server after branch merge
[08:39:48] dionysus69: so I get error on local too
[08:40:02] dionysus69: No connection pool with 'primary' found. (ActiveRecord::ConnectionNotEstablished)
[08:40:22] dionysus69: so seems you were right, some problem with database but on the other branch it worked
[08:41:11] sevenseacat: so whats the difference in the branches, to do with database config
[08:41:29] dionysus69: nothing database.yml was last updated months ago
[08:41:43] dionysus69: I just added a table or something thats it
[08:41:49] dionysus69: migration doesnt work obviously
[08:44:36] dionysus69: so when I turn off postgresql service it returns the same error so I guess it cannot even detect database's existence
[08:48:08] uksio: has joined #RubyOnRails
[08:51:49] ShekharReddy: has joined #RubyOnRails
[08:53:44] dionysus69: sevenseacat: strange, I did git reset --hard HEAD~1 and git is set to the same commit, maybe a git problem
[08:55:13] dionysus69: sevenseacat: ok I think I found it, I should have guessed
[08:55:23] lessless_: has joined #RubyOnRails
[08:55:24] dionysus69: error appeared on Rails.initialize!
[08:55:56] za1b1tsu: has joined #RubyOnRails
[08:56:01] dionysus69: so initializer had to be a problem, I have an empty initializer file and I didnt really know or remember that I cannot do that, I just thought the file would just get loaded and not expect class statement to be uncommented
[08:59:08] dionysus69: yea actually no, it fixes local but not the capistrano deployment, weird stuff
[09:16:07] za1b1tsu: has joined #RubyOnRails
[09:16:59] cgfbee: has joined #RubyOnRails
[09:38:09] cgfbee: has joined #RubyOnRails
[09:51:16] ams__: has joined #RubyOnRails
[10:11:10] Terens: has joined #RubyOnRails
[10:12:03] Terens: Would you use a concern for sending SMS or you would create a service / something else?
[10:12:36] Terens: In my current app there is a concern smsable but I am not sure if this has any downsides
[10:13:18] tbuehlmann: I'd go with a interactor/service for sending messages, yes
[10:18:47] charlielor: has joined #RubyOnRails
[10:21:32] charlielor: has joined #RubyOnRails
[10:31:05] sheepman: has joined #RubyOnRails
[10:31:35] sheepman: quick one, a method that iterates over all my model entries should go in the controller rather then the model presumably?
[10:31:49] sheepman: as it effects more then one model object?
[10:32:14] tbuehlmann: what does it do?
[10:32:48] sheepman: it loads a list of IP's and adds/removes any from the model to keep them in sync
[10:33:02] sheepman: loads a list from a text file i should of said
[10:33:02] srinidhi: has joined #RubyOnRails
[10:34:55] tbuehlmann: I wouldn't place such a method in the controller. I'd either put it in the corresponding model or have an interactor/service for it
[10:36:47] sheepman: ok, not sure what an interactor / service is tbh
[10:37:32] cgfbee: has joined #RubyOnRails
[10:37:39] tbuehlmann: start with a method in the model then
[10:38:50] charlielor: has joined #RubyOnRails
[10:41:18] sheepman: got it :) thanks tbuehlmann
[10:46:18] sheepman: also turned out having a model named Proxies is a bad idea but i couldn't see that in any docs
[10:52:06] lessless_: has joined #RubyOnRails
[10:53:41] egray: has joined #RubyOnRails
[10:55:08] ariedler: has joined #RubyOnRails
[11:01:38] tbuehlmann: sheepman: right, models should be named using the singular
[11:04:37] sheepman: even Proxy doesn't work it seems
[11:05:00] sheepman: some model methods error
[11:05:20] sheepman: I.e. NoMethodError (undefined method `reload_servers' for Proxy (call 'Proxy.connection' to establish a connection):Class)
[11:05:29] DTZUZO: has joined #RubyOnRails
[11:08:18] sheepman: oh wait, no that was me being a tool
[11:08:35] ChrisBr: has joined #RubyOnRails
[11:12:56] sonOfRa: has joined #RubyOnRails
[11:13:24] apeiros: has joined #RubyOnRails
[11:22:37] Cork: has joined #RubyOnRails
[11:32:17] charlielor: Is <%= ENV["SECRETE_KEY_BASE_DEV"] %> the correct way to retrieving value from a .env file?
[11:40:39] cpruitt: has joined #RubyOnRails
[11:46:39] charlielor: has joined #RubyOnRails
[11:50:34] charlielor: has left #RubyOnRails: ()
[12:09:37] za1b1tsu: has joined #RubyOnRails
[12:10:36] charlielor: has joined #RubyOnRails
[12:12:10] charlielor: In my secrets.yml file I have secret_key_base: <%= ENV["SECRETE_KEY_BASE_DEV"] %>. Is this the proper way of retrieving environment value from a .env file because it’s not working.
[12:12:47] charlielor: This is the error I kept getting: Missing `secret_key_base` for 'development' environment, set this value in `config/secrets.yml`
[12:13:27] tbuehlmann: do you use the dotenv-rails or dotenv gem?
[12:16:54] Cork: has joined #RubyOnRails
[12:17:02] dblessing: has joined #RubyOnRails
[12:17:18] tbuehlmann: then the .env will not be read from
[12:17:22] charlielor: So, I assumed I need that gem to work, correct?
[12:17:34] charlielor: why is it workiong on my database.yml file?
[12:17:43] tbuehlmann: it's probably not
[12:18:33] charlielor: in my database.yml I use <%= ENV.fetch('PG_HOST', 'localhost') %> instead but I also tried this syntax on secrets.yml and it’s not working there
[12:18:48] charlielor: I can vefify that it works in database.yml because if I take those values out, my site don’t load
[12:19:34] tbuehlmann: PG_HOST might be set "outside" of your rails application and is therefore available inside the process
[12:19:35] charlielor: wait, maybe you’re right…perhaps it’s not working..and only falling back to the default since my syntax does specified the default
[12:19:37] lessless_: has joined #RubyOnRails
[12:19:48] tbuehlmann: right, or that
[12:20:53] charlielor: okay, so to get this to work, I just have to get the dotenv or dotenv-rails gem. What’s the different between these two?
[12:25:25] tbuehlmann: it adds some juice like mentioned here: https://github.com/bkeepers/dotenv#note-on-load-order
[12:26:08] za1b1tsu: has joined #RubyOnRails
[12:30:33] cpruitt: has joined #RubyOnRails
[12:36:11] charlielor: has joined #RubyOnRails
[12:45:06] cpruitt: has joined #RubyOnRails
[12:57:38] cpruitt: has joined #RubyOnRails
[12:57:50] fragamus: has joined #RubyOnRails
[13:04:52] cpruitt: has joined #RubyOnRails
[13:05:06] cpruitt: has joined #RubyOnRails
[13:11:12] charlielor: has joined #RubyOnRails
[13:23:41] apeiros: has joined #RubyOnRails
[13:24:22] apeiros__: has joined #RubyOnRails
[13:34:19] charlielor: has joined #RubyOnRails
[13:36:13] charlielor: Okay, so after installed the gem dotevn and set require ‘dotevn/load’ in my applicatoin.rb file and specified Dotenv::Railtie.load in the class Application <Rails::Application, I got this error when run the application: /app/config/application.rb:23:in `<class:Application>': uninitialized constant Dotenv::Railtie (NameError)
[13:55:51] morfin: has joined #RubyOnRails
[13:56:51] ChrisBr: has joined #RubyOnRails
[13:58:04] Scient: has joined #RubyOnRails
[13:58:17] noodle: has joined #RubyOnRails
[13:58:46] glasz: has joined #RubyOnRails
[13:59:30] Psy-Q: has joined #RubyOnRails
[14:06:31] tbuehlmann: charlielor: do you really need to manually load it?
[14:06:50] charlielor: no, I don’t
[14:07:08] charlielor: I want it to autuo load
[14:08:38] charlielor: tbuehlmann: I’m following the instruction here https://github.com/bkeepers/dotenv#note-on-load-order
[14:20:54] tbuehlmann: just add dotenv-rails to your Gemfile and you should be done
[14:29:27] sarmiena_: has joined #RubyOnRails
[14:33:54] charlielor: tbuehlmann: do I need to put gem 'dotenv-rails' inside the group :development, :test ?
[14:34:43] charlielor: In the database.yml file, is this the correct syntax? <%= ENV.fetch('PG_HOST', 'localhost') %>
[14:35:30] dionysus69: has joined #RubyOnRails
[14:36:25] dionysus69: sevenseacat: https://qiita.com/masayuki14/items/27ca4764d0bcae4affea just left to translate it :D it is 4 days old so it has to be something that has changed recently
[14:38:58] tbuehlmann: charlielor: yes
[14:39:34] charlielor: awesome! it works now, thank you so much!
[14:46:33] charlielor: has joined #RubyOnRails
[15:06:13] chouhoulis: has joined #RubyOnRails
[15:36:37] charlielor: has left #RubyOnRails: ()
[15:47:24] Saukk: has joined #RubyOnRails
[15:58:57] charlielor: has joined #RubyOnRails
[15:59:16] charlielor: has left #RubyOnRails: ()
[16:02:42] srruby: has joined #RubyOnRails
[16:05:17] srruby: Any thoughts on engineyard? Is there a big advantage of heroku or engineyard over my own vps? I'm starting a project that is paying hundreds per month for engineyard for a rails server that gets only moderate use
[16:16:53] sarmiena_: has joined #RubyOnRails
[16:18:51] Technodrome: has joined #RubyOnRails
[16:20:20] [Butch]: has joined #RubyOnRails
[16:23:56] dviola: has joined #RubyOnRails
[16:30:05] Dbugger: has joined #RubyOnRails
[16:31:12] orbyt_: has joined #RubyOnRails
[16:32:06] Puffball: has joined #RubyOnRails
[16:32:17] krawchyk: has joined #RubyOnRails
[16:40:57] lxsameer: has joined #RubyOnRails
[16:45:00] orbyt_: has joined #RubyOnRails
[16:50:50] lxsameer: has joined #RubyOnRails
[16:58:14] desperek: has joined #RubyOnRails
[17:00:37] lxsameer: has joined #RubyOnRails
[17:04:26] eckhardt: has joined #RubyOnRails
[17:04:54] cagomez: has joined #RubyOnRails
[17:05:31] cagomez: has joined #RubyOnRails
[17:06:06] za1b1tsu: has joined #RubyOnRails
[17:06:12] cagomez: has joined #RubyOnRails
[17:06:51] cagomez: has joined #RubyOnRails
[17:07:37] cagomez: has joined #RubyOnRails
[17:08:14] cagomez: has joined #RubyOnRails
[17:08:15] apeiros: has joined #RubyOnRails
[17:10:54] lxsameer: has joined #RubyOnRails
[17:14:21] prettybTech: has joined #RubyOnRails
[17:17:37] eckhardt: has joined #RubyOnRails
[17:20:49] lxsameer: has joined #RubyOnRails
[17:25:59] atrius: has joined #RubyOnRails
[17:27:37] Linuus: has joined #RubyOnRails
[17:29:01] duderonomy: has joined #RubyOnRails
[17:30:48] apeiros: has joined #RubyOnRails
[17:30:50] lxsameer: has joined #RubyOnRails
[17:37:07] chouhoulis: has joined #RubyOnRails
[17:37:18] apeiros: has joined #RubyOnRails
[17:40:50] lxsameer: has joined #RubyOnRails
[17:41:59] apeiros: has joined #RubyOnRails
[17:47:58] chouhoulis: has joined #RubyOnRails
[17:50:55] lxsameer: has joined #RubyOnRails
[17:59:24] srinidhi: has joined #RubyOnRails
[18:00:49] lxsameer: has joined #RubyOnRails
[18:10:53] lxsameer: has joined #RubyOnRails
[18:17:46] tdy: has joined #RubyOnRails
[18:21:00] lxsameer: has joined #RubyOnRails
[18:22:26] snuz: has joined #RubyOnRails
[18:30:36] eckhardt: has joined #RubyOnRails
[18:30:59] lxsameer: has joined #RubyOnRails
[18:36:44] snuz: has joined #RubyOnRails
[18:40:54] lxsameer: has joined #RubyOnRails
[18:48:54] dviola: has joined #RubyOnRails
[18:51:10] lxsameer: has joined #RubyOnRails
[19:00:56] lxsameer: has joined #RubyOnRails
[19:06:58] agent_white: has joined #RubyOnRails
[19:08:58] ebsen: has joined #RubyOnRails
[19:11:06] lxsameer: has joined #RubyOnRails
[19:18:06] za1b1tsu: has joined #RubyOnRails
[19:21:01] lxsameer: has joined #RubyOnRails
[19:24:40] sameerynho: has joined #RubyOnRails
[19:26:13] sandstrom: has joined #RubyOnRails
[19:26:42] beholders_eye: has joined #RubyOnRails
[19:30:57] lxsameer: has joined #RubyOnRails
[19:59:54] npx: has joined #RubyOnRails
[20:00:08] npx: Has anyone seen this error before? "LoadError: cannot load such file -- etc"
[20:00:12] npx: Googling for it is nigh impossible
[20:13:30] baweaver: npx: You're requiring or loading a file named 'etc' somewhere.
[20:13:52] baweaver: Finding it though, that'd require knowing more about the code to say.
[20:21:15] npx: yeah I figured that much, it's nested inside of some bundler dependency
[20:21:52] npx: find . -name "*.rb" -print | xargs grep etc | grep require
[20:21:55] npx: doesn't return anything
[20:27:03] baweaver: How are you running your code?
[20:27:12] baweaver: Are you using bundler?
[20:27:24] baweaver: (potential namespace inclusion errors)
[20:27:58] baweaver: Have you added any recent gems, and know of a recent "known good state"?
[21:01:08] brandoncc: has joined #RubyOnRails
[21:08:01] npx: I've just added "etc" to my Gemfile but I've got this whole kubernetes ci/cd thing I'm kinda concurrently hacking on so we shall see hahah
[21:09:14] cagomez: has joined #RubyOnRails
[21:09:50] cagomez: has joined #RubyOnRails
[21:10:29] cagomez: has joined #RubyOnRails
[21:11:15] cagomez: has joined #RubyOnRails
[21:11:54] cagomez: has joined #RubyOnRails
[21:12:34] cagomez: has joined #RubyOnRails
[21:17:40] mrbubbles: has joined #RubyOnRails
[21:35:35] lxsameer: has joined #RubyOnRails
[21:40:47] ivanskie: has joined #RubyOnRails
[21:44:20] fragamus: has joined #RubyOnRails
[22:16:10] NeoHamled: npx: try "gem etc, require: false" ?
[22:30:03] cpruitt: has joined #RubyOnRails
[22:43:36] i8igmac: has joined #RubyOnRails
[22:44:34] i8igmac: im trying to add jquery.treeview to incorporate with ace editor so i can make changes to the currently running rails app from a webbrowser
[22:44:48] i8igmac: maybe there is a solution that works out of the box?
[23:18:41] i8igmac: some one help me plz
[23:33:01] i8igmac: or maybe, any ide's that run in the browser that would give me a tree view of the server
[23:36:17] lxsameer: has joined #RubyOnRails
[23:58:29] fragamus: has joined #RubyOnRails