« Back to channel list

#RubyOnRails - 12 May 2019

« Back 1 day Forward 1 day »
[00:00:58] cagomez: has joined #RubyOnRails
[00:12:13] gambl0re: has joined #RubyOnRails
[00:23:47] weteamsteve: has joined #RubyOnRails
[00:26:26] weteamsteve1: has joined #RubyOnRails
[00:30:17] violentE: has joined #RubyOnRails
[00:51:52] orbyt_: has joined #RubyOnRails
[00:52:32] cnsvc: has joined #RubyOnRails
[01:01:28] davidh38: has joined #RubyOnRails
[01:07:55] brool: has joined #RubyOnRails
[01:08:48] orbyt_: has joined #RubyOnRails
[01:19:02] weteamsteve: has joined #RubyOnRails
[01:21:22] weteamsteve1: has joined #RubyOnRails
[01:30:39] davidh38: has joined #RubyOnRails
[01:50:40] zacts: has joined #RubyOnRails
[01:57:34] cagomez: has joined #RubyOnRails
[02:08:22] Technodrome: has joined #RubyOnRails
[02:08:40] crankharder: has joined #RubyOnRails
[02:18:34] weteamsteve: has joined #RubyOnRails
[02:26:07] cnsvc: has joined #RubyOnRails
[02:34:43] zacts: has joined #RubyOnRails
[02:45:15] MrCrackPot: has joined #RubyOnRails
[02:45:15] bitch: has joined #RubyOnRails
[02:45:15] balo: has joined #RubyOnRails
[02:45:15] gb_away: has joined #RubyOnRails
[02:45:15] Psy-Q: has joined #RubyOnRails
[02:45:15] ferdi2005: has joined #RubyOnRails
[02:45:15] larissa: has joined #RubyOnRails
[02:45:15] LenPayne: has joined #RubyOnRails
[02:50:33] weteamsteve: has joined #RubyOnRails
[02:59:39] dtzuzu: has joined #RubyOnRails
[03:00:40] kapilp: has joined #RubyOnRails
[03:02:25] orbyt_: has joined #RubyOnRails
[03:05:50] Technodrome: has joined #RubyOnRails
[03:09:01] weteamsteve1: has joined #RubyOnRails
[03:10:23] braincrash: has joined #RubyOnRails
[03:20:19] cnsvc: has joined #RubyOnRails
[03:24:35] zacts: has joined #RubyOnRails
[03:33:55] pd09041999: has joined #RubyOnRails
[03:45:39] weteamsteve: has joined #RubyOnRails
[03:54:51] weteamsteve: has joined #RubyOnRails
[03:55:46] dandaman: has joined #RubyOnRails
[03:57:26] dandaman: hi all, I'm on rails5 and looking to finally implement a user log in for my site… I'm hoping to let people create accounts, log in through fbook, or log in through google. Is omniauth the best tool for this on rails 5?
[03:58:08] dandaman: has left #RubyOnRails: ()
[03:58:13] dandaman: has joined #RubyOnRails
[03:58:36] dandaman: err wait, am i muted?
[03:58:48] dandaman: i thought this nick was registed with nickserv
[04:08:55] cnsvc: has joined #RubyOnRails
[04:14:40] s00pcan: has joined #RubyOnRails
[04:25:51] Saukk: has joined #RubyOnRails
[04:29:18] weteamsteve1: has joined #RubyOnRails
[04:34:19] maryo_: has joined #RubyOnRails
[04:54:45] havenwood: dandaman: you're not muted
[04:56:49] cnsvc: has joined #RubyOnRails
[04:56:50] AlHafoudh: has joined #RubyOnRails
[05:06:26] maryo: has joined #RubyOnRails
[05:14:15] m_antis: has joined #RubyOnRails
[05:27:00] faitswulff: has joined #RubyOnRails
[05:30:01] boopsy: has joined #RubyOnRails
[05:30:10] boopsy: Hey there. Any compelling reason not to use Slim over ERB?
[05:50:42] cnsvc: has joined #RubyOnRails
[06:03:56] crankharder: has joined #RubyOnRails
[06:09:03] crankhar1er: has joined #RubyOnRails
[06:21:10] cnsvc: has joined #RubyOnRails
[06:22:45] zacts: has joined #RubyOnRails
[06:28:59] crankharder: has joined #RubyOnRails
[06:48:19] apparition: has joined #RubyOnRails
[06:56:04] cnsvc: has joined #RubyOnRails
[07:02:31] zacts: has joined #RubyOnRails
[07:11:26] kapilp: has joined #RubyOnRails
[07:24:45] MrCrackPotBuilde: has joined #RubyOnRails
[07:27:13] blackmesa: has joined #RubyOnRails
[07:38:23] Puffball: has joined #RubyOnRails
[07:49:13] duderonomy: has joined #RubyOnRails
[07:54:56] sirensari: has joined #RubyOnRails
[07:55:50] mikecmpbll: has joined #RubyOnRails
[08:03:27] DTZUZO: has joined #RubyOnRails
[08:25:02] AlHafoudh: has joined #RubyOnRails
[08:29:06] conta: has joined #RubyOnRails
[08:31:14] cnsvc: has joined #RubyOnRails
[08:31:16] davidh38: has joined #RubyOnRails
[08:34:23] blackmesa: has joined #RubyOnRails
[08:39:10] voker57: any idea why "rails r" does not output anything if STDOUT is redirected?
[08:57:08] sirensari: has joined #RubyOnRails
[09:01:46] pd09041999: has joined #RubyOnRails
[09:05:00] cnsvc: has joined #RubyOnRails
[09:07:53] AlHafoudh: has joined #RubyOnRails
[09:09:42] pd09041999: has joined #RubyOnRails
[09:12:31] Ergo: has joined #RubyOnRails
[09:17:02] AlHafoudh: has joined #RubyOnRails
[09:18:49] pd09041999: has joined #RubyOnRails
[09:23:00] davidh38: has joined #RubyOnRails
[09:25:28] davidh38: has joined #RubyOnRails
[09:44:11] ryouba: has joined #RubyOnRails
[09:46:35] ryouba: after `bundle --deployment` and with all gems definitely in ./vendor/bundle/, when i say, e.g. `bundle exec rails console`, it complains that the sqlite3 gem is not available (tried also removing .bundle and running `bundle --deployment` again, to no avail). what am i missing?
[09:48:09] sirensari: ryouba: why are you using --deployment
[09:49:48] ryouba: sirensari: not sure, i think i read that somewhere and then got used to it...
[09:50:00] ryouba: ACTION deletes all gems and tries again with `bundle install`
[09:50:22] sirensari: yeah idk what that even does. the docs are kinda vague
[09:51:59] cnsvc: has joined #RubyOnRails
[09:52:12] ryouba: ah i think it adds "--path vendor/bundle"
[09:52:42] DTZUZO: has joined #RubyOnRails
[09:53:34] ryouba: and "where i read it" was https://bundler.io/v1.6/deploying.html
[09:54:49] ryouba: unfortunately still the same: "Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)"
[09:55:47] ryouba: and when i say `bundle exec rails server` it boots webrick, not passenger (even though the latter is also in the Gemfile) ... it's as if rails knew nothing about its very own Gemfile
[09:58:05] sirensari: you could set your env vars and use --binstubs probably
[09:58:38] ryouba: just for fun i'll try installing the gems right into the system first
[10:01:32] ryouba: hmm wow ... that causes "WARN: Unresolved specs during Gem::Specification.reset"
[10:06:38] Dbugger: has joined #RubyOnRails
[10:16:24] szulak_: has joined #RubyOnRails
[10:20:12] szulak_: has joined #RubyOnRails
[10:50:44] blackmesa: has joined #RubyOnRails
[10:52:42] ryouba: hmm starting to think this is because of rails 4.2 not wanting to work with something that's too new on that system
[10:53:31] sirensari: ryouba: use docker
[10:55:00] lankanmon: has joined #RubyOnRails
[10:59:03] ryouba: sirensari: does that have special stuff for older rails versions?
[11:00:06] ryouba: will have to find out what the latest gem versions that still work with it are, anyways
[11:00:52] weird_error: has joined #RubyOnRails
[11:01:14] cnsvc: has joined #RubyOnRails
[11:18:46] AlHafoudh: has joined #RubyOnRails
[11:25:42] conta: has joined #RubyOnRails
[11:26:30] ryouba: great ... now the "error" is that there *is* no error but rather the page begins to load and then just sits there, continueing to load
[11:38:30] crankharder: has joined #RubyOnRails
[11:58:59] davidh38: has joined #RubyOnRails
[12:00:54] deepredsky: has joined #RubyOnRails
[12:02:56] m_antis: has joined #RubyOnRails
[12:09:02] apparition: has joined #RubyOnRails
[12:18:56] ryouba: finally! working again!
[12:19:07] ryouba: thank you for nudging me the right way, sirensari
[12:19:35] sirensari: ryouba: fa sho
[12:22:43] davidh38: has joined #RubyOnRails
[12:35:03] davidh38: has joined #RubyOnRails
[12:35:11] cnsvc: has joined #RubyOnRails
[12:40:01] AlHafoudh: has joined #RubyOnRails
[12:52:13] davidh38: has joined #RubyOnRails
[13:00:08] crankharder: has joined #RubyOnRails
[13:01:34] elsurudo: has joined #RubyOnRails
[13:03:10] elsurudo: Hi guys, ActionMailer is outputting img src’s in my image_tags in mailers like so: `//xyz.cloudfront.net/assets/...`, ie. without the schema. Turns out this doesn’t work for many email clients. `config.action_mailer.default_url_options = { host: ENV['hostname'], protocol: 'https' }` and `config.action_mailer.asset_host = "https://#{ENV['asset_host']}"` is set… Any ideas?
[13:05:01] davidh38: has joined #RubyOnRails
[13:16:12] Technodrome: has joined #RubyOnRails
[13:33:00] mikecmpbll: has joined #RubyOnRails
[13:35:32] sirensari: has joined #RubyOnRails
[13:43:58] cnsvc: has joined #RubyOnRails
[13:45:44] davidh38: has joined #RubyOnRails
[14:12:08] IsoLinCHiP: has joined #RubyOnRails
[14:14:25] IsoLinCHiP: Hi there. Can anyone give me some hints as how to go about splitting off my rails DB model into a gem, so that I can use it more easily with related command line tools or other webapps?
[14:16:40] IsoLinCHiP: Ive started with a "rails plugin new" and wanted to start moving the /app/models/*.rb there, but am now unsure as to whether I should put them under /lib or /app in the new plugin, or maybe some hybrid, so that I can more easily access them from the CLI tools I intend to build
[14:23:53] schneider: has joined #RubyOnRails
[14:26:15] universa1: has joined #RubyOnRails
[14:27:58] blackmesa: has joined #RubyOnRails
[14:31:48] cnsvc: has joined #RubyOnRails
[14:32:29] davidh38: has joined #RubyOnRails
[14:35:29] ellcs: has joined #RubyOnRails
[14:38:19] m_antis: has joined #RubyOnRails
[14:57:53] cagomez: has joined #RubyOnRails
[15:05:18] blackmesa: has joined #RubyOnRails
[15:16:16] crankharder: has joined #RubyOnRails
[15:18:51] blackmesa: has joined #RubyOnRails
[15:27:34] elsurudo: @IsoLinCHiP Definitely put them in lib. It shouldn’t be a rails app, just a gem that may require activerecord in its gemspec, for example
[15:38:06] duderonomy: has joined #RubyOnRails
[15:40:04] cnsvc: has joined #RubyOnRails
[15:41:46] IsoLinCHiP: Well, thats the way I have gotten in working right now. I put them in /lib/gemname/app/{models,helpers}/ and then required those files from /lib/gemname.rb, since the rails autoloading wasnt picking them up. It still feels hacky, but at least it seems to work.
[15:43:07] IsoLinCHiP: I moved /db/migrate/* to the root next to /lib and /config/database.yml.sample
[15:43:25] IsoLinCHiP: I have yet to see, whether rails db:migrate works
[15:45:13] weteamsteve: has joined #RubyOnRails
[16:01:32] elsurudo: Autoloading not working is to be expected – it’s not a rails app, but a gem
[16:02:59] elsurudo: Having the migrations in the gem is tricky though. You can try it, but in practice, what I’ve seen is one rails app “owning” them and running them, and also storing the schema. Then you just pin the app to a certain gem version
[16:13:05] dandaman: has joined #RubyOnRails
[16:48:47] cnsvc: has joined #RubyOnRails
[16:51:30] elsurudo: has joined #RubyOnRails
[16:51:43] MasterAsia: has joined #RubyOnRails
[16:52:27] Saukk: has joined #RubyOnRails
[16:53:04] davidh38: has joined #RubyOnRails
[16:54:30] Exuma: has joined #RubyOnRails
[16:59:50] MasterAsia: one service in my stack by default sets a cache-control/expiry of 1 year. This has been an issue because some of my users came across a cors bug which has now been cached
[17:00:06] MasterAsia: is there an easy way to bust this cache without asking them to clear it manually?
[17:09:17] Dbugger: has joined #RubyOnRails
[17:18:57] sameerynho: has joined #RubyOnRails
[17:20:14] weteamsteve: has joined #RubyOnRails
[17:23:38] Technodrome: has joined #RubyOnRails
[17:57:51] Exuma: has joined #RubyOnRails
[17:57:57] NeXTSUN: has joined #RubyOnRails
[18:01:34] davidh38: has joined #RubyOnRails
[18:02:32] cnsvc: has joined #RubyOnRails
[18:04:05] al-damiri: has joined #RubyOnRails
[18:19:48] tdy1: has joined #RubyOnRails
[18:26:27] atrius: has joined #RubyOnRails
[18:32:03] al-damiri: has joined #RubyOnRails
[18:35:28] AlHafoudh: has joined #RubyOnRails
[18:36:25] cnsvc: has joined #RubyOnRails
[18:39:07] AlHafoudh_: has joined #RubyOnRails
[18:55:43] cnsvc: has joined #RubyOnRails
[18:59:52] IsoLinCHiP: masterasia: Shouldnt the standard asset pipeline take care of invalidating old assets? As in, as soon as you make a change to the .js the hash should be recalculated and the new assets should be served on next call. No guarantees though, Im no expert. ;-)
[19:00:21] MasterAsia: Not related to the asset pipeline IsoLinCHiP, this is an outside api server
[19:00:55] IsoLinCHiP: Ok, in that case I must have misunderstood you.
[19:01:10] catbusters: has joined #RubyOnRails
[19:07:53] blackmesa: has joined #RubyOnRails
[19:10:04] atrius: has joined #RubyOnRails
[19:11:43] IsoLinCHiP: masterasia: So, you set a Cache-Control Header once with a long expiry? Maybe clone the target url to another path and setup a redirect while serving a fresh header with shorter expiry?
[19:19:51] weteamsteve: has joined #RubyOnRails
[20:03:13] ryouba: has left #RubyOnRails: ("WeeChat 1.6")
[20:27:45] cnsvc: has joined #RubyOnRails
[20:34:30] zacts: has joined #RubyOnRails
[20:50:19] Dbugger: has joined #RubyOnRails
[20:53:14] dandaman: has joined #RubyOnRails
[20:53:50] Exuma: has joined #RubyOnRails
[20:55:13] dandaman: has left #RubyOnRails: ()
[21:00:43] Technodrome: has joined #RubyOnRails
[21:01:39] ur5us: has joined #RubyOnRails
[21:09:53] ellcs: has joined #RubyOnRails
[21:25:15] zacts: has joined #RubyOnRails
[21:26:56] Exuma: has joined #RubyOnRails
[21:38:46] armyriad: has joined #RubyOnRails
[21:59:51] blackmesa: has joined #RubyOnRails
[22:02:34] zacts: has joined #RubyOnRails
[22:43:17] davidh38: has joined #RubyOnRails
[22:52:56] _aeris: has joined #RubyOnRails
[22:58:42] crankharder: has joined #RubyOnRails
[23:09:21] zacts: has joined #RubyOnRails
[23:42:46] brool: has joined #RubyOnRails
[23:45:33] zacts: has joined #RubyOnRails