« Back to channel list

#RubyOnRails - 29 June 2018

« Back 1 day Forward 1 day »
[00:04:28] Technodrome: has joined #RubyOnRails
[00:08:15] atrius: has joined #RubyOnRails
[00:12:39] HeyoRockbreaker: has joined #RubyOnRails
[00:12:51] HeyoRockbreaker: Hey, how is everyone
[00:13:32] eckhardt: has joined #RubyOnRails
[00:16:18] cagomez: has joined #RubyOnRails
[00:22:19] lxsameer: has joined #RubyOnRails
[00:32:01] jhack: has joined #RubyOnRails
[00:33:41] guillec: has joined #RubyOnRails
[00:45:09] orbyt_: has joined #RubyOnRails
[00:45:46] tdy: has joined #RubyOnRails
[00:51:30] chouhoulis: has joined #RubyOnRails
[00:59:44] lunarkitty7: has joined #RubyOnRails
[01:02:24] lxsameer: has joined #RubyOnRails
[01:04:43] jottr: has joined #RubyOnRails
[01:18:33] jhack: has joined #RubyOnRails
[01:26:44] fragamus: has joined #RubyOnRails
[01:32:06] cagomez: has joined #RubyOnRails
[01:37:44] jhack: has joined #RubyOnRails
[01:39:53] jottr: has joined #RubyOnRails
[01:42:13] lxsameer: has joined #RubyOnRails
[01:47:45] moei: has joined #RubyOnRails
[01:54:01] workmad3: has joined #RubyOnRails
[01:57:23] lxsameer: has joined #RubyOnRails
[02:07:16] lxsameer: has joined #RubyOnRails
[02:27:10] guillec: has joined #RubyOnRails
[02:46:06] Puffball: has joined #RubyOnRails
[02:47:11] lxsameer: has joined #RubyOnRails
[02:47:21] kapil___: has joined #RubyOnRails
[02:47:50] roamingdog: has joined #RubyOnRails
[02:51:34] duper: has joined #RubyOnRails
[03:10:17] braincrash: has joined #RubyOnRails
[03:12:19] sevenseacat: has joined #RubyOnRails
[03:29:51] vedu_: has joined #RubyOnRails
[03:31:28] drale2k_: has joined #RubyOnRails
[03:32:10] lxsameer: has joined #RubyOnRails
[03:40:45] jottr: has joined #RubyOnRails
[03:42:48] jcarl43: has joined #RubyOnRails
[03:54:11] workmad3: has joined #RubyOnRails
[04:04:28] orbyt_: has joined #RubyOnRails
[04:05:19] buhrmi: im awesome, thanks, and you?
[04:12:09] lxsameer: has joined #RubyOnRails
[04:17:33] Torrieri: has joined #RubyOnRails
[04:33:07] psychoslave: has joined #RubyOnRails
[05:00:23] fox_mulder_cp: has joined #RubyOnRails
[05:02:15] lxsameer: has joined #RubyOnRails
[05:03:34] Technodrome: has joined #RubyOnRails
[05:07:12] lxsameer: has joined #RubyOnRails
[05:07:14] benlieb: has joined #RubyOnRails
[05:09:06] Jittler: has joined #RubyOnRails
[05:11:32] Jittler: Got a local -> github -> heroku app that's ready to go live and it's built on postgresql but the client's hosting doesn't support pg.. and does support sqlite3. I've done sqlite3 -> pg but never the reverse. I could use some reassurance I'm on the right track: swap `gem 'pg'` for `gem 'sqlite3'` in the Gemfile, google up a sqlite3 database.yml (whatever rails' defaults is, then customized for the live db), and I'm good, right?
[05:15:38] regedit: has joined #RubyOnRails
[05:27:49] DTZUZO: has joined #RubyOnRails
[05:32:27] reber: has joined #RubyOnRails
[05:33:46] lunarkitty7: has joined #RubyOnRails
[05:41:37] jottr: has joined #RubyOnRails
[05:47:09] lxsameer: has joined #RubyOnRails
[05:54:24] workmad3: has joined #RubyOnRails
[05:55:00] srinidhi: has joined #RubyOnRails
[06:14:02] apeiros_: has joined #RubyOnRails
[06:24:08] roamingdog: has joined #RubyOnRails
[06:32:12] lxsameer: has joined #RubyOnRails
[06:52:20] zmo: has joined #RubyOnRails
[06:57:08] barhum2013: has joined #RubyOnRails
[06:59:31] dionysus69: has joined #RubyOnRails
[07:04:09] jackhum: has joined #RubyOnRails
[07:05:09] apeiros_: has joined #RubyOnRails
[07:15:09] DrYockel: has joined #RubyOnRails
[07:17:14] lxsameer: has joined #RubyOnRails
[07:19:49] dionysus70: has joined #RubyOnRails
[07:28:58] jackhum: has joined #RubyOnRails
[07:34:08] za1b1tsu: has joined #RubyOnRails
[07:35:38] noob_on_rails: has joined #RubyOnRails
[07:36:24] Puffball_: has joined #RubyOnRails
[07:37:09] lxsameer: has joined #RubyOnRails
[07:39:24] baash05: has joined #RubyOnRails
[07:42:26] jottr: has joined #RubyOnRails
[07:52:55] jackhum_: has joined #RubyOnRails
[07:58:04] deathwishdave: has joined #RubyOnRails
[07:58:48] tdy: has joined #RubyOnRails
[08:07:48] apeiros_: has joined #RubyOnRails
[08:09:08] apeiros_: has joined #RubyOnRails
[08:11:57] dionysus69: has joined #RubyOnRails
[08:35:08] ynonp: has joined #RubyOnRails
[08:53:52] workmad3: has joined #RubyOnRails
[08:56:26] jottr: has joined #RubyOnRails
[08:56:46] Torrieri: has joined #RubyOnRails
[08:59:27] Ergo: has joined #RubyOnRails
[08:59:45] deathwishdave: has joined #RubyOnRails
[09:14:46] sandstrom: has joined #RubyOnRails
[09:34:00] roamingdog: has joined #RubyOnRails
[09:36:01] anikras: Hi, I am using a this web to include my banner in rails
[09:36:14] anikras: https://cookieconsent.insites.com/download/
[09:36:24] anikras: where i need to include this script ?
[09:36:48] anikras: in _footer.html.erb ?
[09:37:08] duderonomy: has joined #RubyOnRails
[10:00:48] conta: has joined #RubyOnRails
[10:11:55] srinidhi: has joined #RubyOnRails
[10:17:14] dionysus69: I am using redis gem, but I can't find the logs for it, how can I check access logs?
[10:22:48] sandstrom: has joined #RubyOnRails
[10:24:55] jottr: has joined #RubyOnRails
[10:26:55] apparition: has joined #RubyOnRails
[10:27:03] srinidhi: has joined #RubyOnRails
[10:27:35] tbuehlmann: dionysus69: no idea about the logfile but you can monitor what's happening using $ redis-cli monitor
[10:33:00] cschneid: has joined #RubyOnRails
[10:45:05] deathwishdave: has joined #RubyOnRails
[10:48:32] desperek: has joined #RubyOnRails
[10:55:23] dustinm`: has joined #RubyOnRails
[11:08:38] uks: has joined #RubyOnRails
[11:12:27] guillec: has joined #RubyOnRails
[11:17:08] apeiros_: has joined #RubyOnRails
[11:31:23] ynonp: has joined #RubyOnRails
[11:33:38] dionysus69: ok thanks tbuehlmann that did it :)
[11:33:57] johndunn: has joined #RubyOnRails
[11:52:25] fragamus: has joined #RubyOnRails
[12:00:31] psychoslave: has joined #RubyOnRails
[12:01:48] argoneus: has joined #RubyOnRails
[12:06:53] funnel: has joined #RubyOnRails
[12:12:28] fragamus: has joined #RubyOnRails
[12:16:05] psychoslave: has joined #RubyOnRails
[12:16:37] cagomez: has joined #RubyOnRails
[12:17:27] crankharder: has joined #RubyOnRails
[12:17:55] dblessing: has joined #RubyOnRails
[12:48:36] conta1: has joined #RubyOnRails
[13:06:40] Sylario: has joined #RubyOnRails
[13:11:36] johndunn: has left #RubyOnRails: ()
[13:30:51] Technodrome: has joined #RubyOnRails
[13:33:58] guillec: has joined #RubyOnRails
[13:36:54] drale2k_: has joined #RubyOnRails
[13:41:42] drale2k_: I am using ActiveStorage and i am linking my image with "image_tag rails_blob_path(screenshot.attachment)" which creates a relative path like "src="/rails/active_storage/blobs/eyJfcm../screenshot.jpg"
[13:42:07] drale2k_: but it is not showing because i get an CSP error, that it is trying to request the image from HTTP instead of HTTPS, even though the whole site runs on HTTPS
[13:43:54] drale2k_: is it recommended to link assets with absolute urls?
[13:44:06] noob_on_rails: has joined #RubyOnRails
[13:49:01] conta1: has joined #RubyOnRails
[13:51:32] modwizcode: has joined #RubyOnRails
[13:56:28] Saukk: has joined #RubyOnRails
[14:04:35] jottr: has joined #RubyOnRails
[14:18:04] Saukk: has joined #RubyOnRails
[14:18:57] guillec: has joined #RubyOnRails
[14:22:42] Saukk: has joined #RubyOnRails
[14:23:57] konsolebox: has joined #RubyOnRails
[14:24:36] theRoUS: has joined #RubyOnRails
[14:24:59] theRoUS: RoR 5 routing question: i have some resources under the namespace(:puppet) block (e.g., :manifest), but i'd like to redirect two special routes to a controller *not* in that namespace.
[14:25:13] theRoUS: for example, `get("/puppet/manifests/upload(:.format)")` should use the top-level uploads#webupload controller/action, and `post("/puppet/manifests/upload(:.format)")` should use the top-level uploads#upload controller/action.
[14:25:40] theRoUS: however, everything i've tried has either given an error compiling the routes, or has used the `puppet/manifests#{webupload,upload}` controller/action
[14:25:40] theRoUS: how do i reference a controller in a different, or superiour, namespace ?
[14:29:20] jottr: has joined #RubyOnRails
[14:29:45] shiru: has joined #RubyOnRails
[14:31:55] Saukk: has joined #RubyOnRails
[14:38:34] _aeris_: has joined #RubyOnRails
[14:47:15] jackhum_: has joined #RubyOnRails
[14:48:57] samosaphile: has joined #RubyOnRails
[14:49:00] mostlybadfly: has joined #RubyOnRails
[15:00:56] theRoUS: basically, i want get('/puppet/manifests/upload(:.format)' to get handled by toplevel controller action 'uploads#webupload'
[15:01:45] theRoUS: but using the #get and #post methods inside config/routes.rb is forcing it to 'puppet/uploads#erbupload'
[15:02:05] theRoUS: s/erb/web/
[15:12:30] srinidhi: has joined #RubyOnRails
[15:19:08] orbyt_: has joined #RubyOnRails
[15:21:16] fmcgeough: has joined #RubyOnRails
[15:22:38] jliberman: has joined #RubyOnRails
[15:27:37] jliberman: Hey folks, I have a rails 5 app connecting to psql database inside a vagrant VM. Rails DB tasks like `rails db:structure:dump` appear to be using my host's version of pg_dump (10.4) not the VM's (9.6). Is it possible to have them use the VM's version without changing my host setup?
[15:30:51] barhum2013: has joined #RubyOnRails
[15:31:35] guillec: has joined #RubyOnRails
[15:39:38] orbyt_: has joined #RubyOnRails
[15:40:27] cagomez: has joined #RubyOnRails
[15:41:11] drale2k_: has joined #RubyOnRails
[15:43:14] cagomez: why specify a default empty string in this migration? https://github.com/thoughtbot/guides/blob/master/style/rails/migration.rb#L6
[15:43:48] barhum2013: has joined #RubyOnRails
[15:46:45] tbuehlmann: cagomez: is this surprising to you? if so, why?
[15:47:41] cagomez: tbuehlmann: my thoughts are that if a user passes in a null value for the column, the DB should not insert. so I'm wondering why the default empty string is even there
[15:49:32] jliberman: I think it's just meant to be an example of the syntax/style not meant to be scrutinized on its efficacy. clearly the author believed the opposite; if the user passes in null substitute for empty string
[15:59:01] jackhum_: has joined #RubyOnRails
[16:01:57] ElFerna: has joined #RubyOnRails
[16:08:53] argoneus: has joined #RubyOnRails
[16:11:00] jackhum: has joined #RubyOnRails
[16:13:39] jcarl43: has joined #RubyOnRails
[16:14:18] theRoUS: has joined #RubyOnRails
[16:14:18] Lauer: has joined #RubyOnRails
[16:14:18] merpnderp: has joined #RubyOnRails
[16:14:18] Liothen: has joined #RubyOnRails
[16:14:18] sonOfRa: has joined #RubyOnRails
[16:14:18] Cork: has joined #RubyOnRails
[16:14:18] Fridtjof: has joined #RubyOnRails
[16:15:38] Liothen: has joined #RubyOnRails
[16:16:39] jmay: has joined #RubyOnRails
[16:17:53] tdy: has joined #RubyOnRails
[16:18:32] fragamus: has joined #RubyOnRails
[16:25:00] markh: has joined #RubyOnRails
[16:38:38] [Butch]: has joined #RubyOnRails
[16:42:15] uksio: has joined #RubyOnRails
[16:43:34] ephemer0l_: has joined #RubyOnRails
[16:55:52] eckhardt: has joined #RubyOnRails
[17:05:58] za1b1tsu: has joined #RubyOnRails
[17:08:44] Technodrome: has joined #RubyOnRails
[17:22:03] jottr: has joined #RubyOnRails
[17:22:21] mholmes: has joined #RubyOnRails
[17:28:02] Xiti: has joined #RubyOnRails
[17:34:48] ynonp: has joined #RubyOnRails
[17:37:09] lxsameer: has joined #RubyOnRails
[17:40:27] cagomez: has joined #RubyOnRails
[17:41:43] wilornel: has joined #RubyOnRails
[17:42:09] benlieb: has joined #RubyOnRails
[17:44:39] cagomez_: has joined #RubyOnRails
[17:45:23] fryguy: has joined #RubyOnRails
[17:47:12] lxsameer: has joined #RubyOnRails
[17:52:29] Xiti: has joined #RubyOnRails
[17:55:14] cagomez: has joined #RubyOnRails
[17:57:15] lxsameer: has joined #RubyOnRails
[18:01:16] sameerynho: has joined #RubyOnRails
[18:02:14] barhum2013: has joined #RubyOnRails
[18:02:55] mjolnird: has joined #RubyOnRails
[18:02:57] planigan: has joined #RubyOnRails
[18:03:20] urkle: has joined #RubyOnRails
[18:03:25] lunarkitty7: has joined #RubyOnRails
[18:03:44] barhum2013: has joined #RubyOnRails
[18:04:28] vedu_: has joined #RubyOnRails
[18:05:20] guillec: has joined #RubyOnRails
[18:05:42] ynonp: has joined #RubyOnRails
[18:06:04] ponzii: has joined #RubyOnRails
[18:07:04] ponzii: Now that create-react-app does everything with minimal webpack/babel fiddling what is the use case for webpacker in Rails?
[18:07:17] lxsameer: has joined #RubyOnRails
[18:09:03] argoneus: has joined #RubyOnRails
[18:09:34] cjohnson: ponzii: er, what?
[18:09:51] cjohnson: react and webpack are entirely different tools
[18:10:06] cjohnson: webpacker is for wrapping webpack up in a convenient railsy way
[18:10:16] guillec: has joined #RubyOnRails
[18:10:17] ponzii: cjohnson: I mean if you're intending to go with --webkack=react
[18:10:41] cjohnson: webpacker also runs and proxies things to webpack-dev-server
[18:10:45] Technodrome: has joined #RubyOnRails
[18:10:51] cjohnson: I don't see how create-react-app solves that problem
[18:11:02] ponzii: cjohnson: Just curious
[18:11:30] cjohnson: There may be some degree of overlap but no I don't see one as replacing the other
[18:12:00] ponzii: cjohnson: What does proxying to webpack-dev-server get me? I haven't used it.
[18:12:33] cjohnson: You haven't used webpack-dev-server?
[18:12:49] jmay: Are there any known issues with query caching in Rails 5 (5.1.6)? I’m seeing cases where the server is using cached data to build views even after database has been updated. Query cache is supposed to be wiped following each request. This is only happening on Heroku, never in local dev (using puma-dev), so maybe something to do with differences in how Rails server threading works on Heroku vs elsewhere?
[18:13:06] cjohnson: It gives you the ability to visit the same asset url in dev vs prod and in dev it proxies to webpack-dev-server but in prod it hits the compiled packs
[18:13:15] ponzii: cjohnson: No, I've only finished one React app and it had Clojure on the back-end.
[18:17:09] lxsameer: has joined #RubyOnRails
[18:18:23] cjohnson: webpack-dev-server is a tool that lets you edit the source files and have the packs be regenerated on the fly
[18:18:29] cjohnson: very handy for development
[18:20:01] ponzii: cjohnson: Right. So it looks like I'd better include --webpack=react.
[18:21:48] Xiti: has joined #RubyOnRails
[18:26:16] jottr: has joined #RubyOnRails
[18:27:17] lxsameer: has joined #RubyOnRails
[18:30:29] work_: has joined #RubyOnRails
[18:31:03] chouhoulis: has joined #RubyOnRails
[18:36:44] work_: Hi, I just install Ruby on Rails and I get the following warning after running `gem install rails --no-document` :
[18:36:48] work_: https://www.irccloud.com/pastebin/iSuJeN70/
[18:37:16] lxsameer: has joined #RubyOnRails
[18:41:28] cagomez: has joined #RubyOnRails
[18:43:38] duderonomy: has joined #RubyOnRails
[18:47:32] lxsameer: has joined #RubyOnRails
[18:55:35] duderono_: has joined #RubyOnRails
[18:57:11] lxsameer: has joined #RubyOnRails
[18:57:41] cagomez: has joined #RubyOnRails
[19:00:08] cagomez: has joined #RubyOnRails
[19:00:52] ephemer0l: has joined #RubyOnRails
[19:07:08] jmay: has joined #RubyOnRails
[19:07:31] lxsameer: has joined #RubyOnRails
[19:07:41] duderonomy: has joined #RubyOnRails
[19:11:13] weaksauce: has joined #RubyOnRails
[19:12:52] benlieb: has joined #RubyOnRails
[19:15:48] barhum2013: has left #RubyOnRails: ()
[19:17:26] lxsameer: has joined #RubyOnRails
[19:17:58] duderonomy: has joined #RubyOnRails
[19:25:00] planigan: has joined #RubyOnRails
[19:27:17] lxsameer: has joined #RubyOnRails
[19:32:29] mostlybadfly: has joined #RubyOnRails
[19:37:23] lxsameer: has joined #RubyOnRails
[19:38:00] duderonomy: has joined #RubyOnRails
[19:39:44] bradleyprice: has joined #RubyOnRails
[19:39:48] drale2k_: has joined #RubyOnRails
[19:43:40] agent_white: has joined #RubyOnRails
[19:45:14] benlieb: has joined #RubyOnRails
[19:45:53] sandstrom: has joined #RubyOnRails
[19:47:12] lxsameer: has joined #RubyOnRails
[19:48:45] agent_white: has left #RubyOnRails: ()
[19:50:30] duderonomy: has joined #RubyOnRails
[19:57:22] lxsameer: has joined #RubyOnRails
[20:07:27] lxsameer: has joined #RubyOnRails
[20:08:43] cagomez: has joined #RubyOnRails
[20:09:03] Technodrome: has joined #RubyOnRails
[20:12:45] drale2k_: I am on a https site, linking an image with a relative path "<img src="/rails/active_storage/blobs/..../>" but i get a CSP error "Refused to load the image 'http://....."
[20:12:55] drale2k_: why is it trying to load the image from HTTP?
[20:13:42] drale2k_: i have never seen this behaviour before so i think it's rails related. Not sure though
[20:17:28] lxsameer: has joined #RubyOnRails
[20:18:33] drale2k_: posted issue here https://stackoverflow.com/questions/51108860/csp-relative-img-src-on-https-site-tries-to-link-to-http-image
[20:27:08] jottr: has joined #RubyOnRails
[20:27:16] lxsameer: has joined #RubyOnRails
[20:37:25] lxsameer: has joined #RubyOnRails
[20:47:22] lxsameer: has joined #RubyOnRails
[20:49:48] Xiti`: has joined #RubyOnRails
[20:51:11] apeiros_: has joined #RubyOnRails
[20:54:40] lxsameer: has joined #RubyOnRails
[21:02:18] lxsameer: has joined #RubyOnRails
[21:03:22] jcarl43: has joined #RubyOnRails
[21:05:55] Omnilord: has joined #RubyOnRails
[21:06:09] roamingdog: has joined #RubyOnRails
[21:11:18] duderonomy: has joined #RubyOnRails
[21:12:29] lxsameer: has joined #RubyOnRails
[21:18:04] rrichardsr3: has joined #RubyOnRails
[21:28:38] apeiros_: has joined #RubyOnRails
[21:29:58] n0f3: has joined #RubyOnRails
[21:36:14] GodFather: has joined #RubyOnRails
[21:42:55] cagomez: has joined #RubyOnRails
[21:43:15] cagomez: has joined #RubyOnRails
[21:52:18] lxsameer: has joined #RubyOnRails
[21:57:12] agent_white: has joined #RubyOnRails
[21:57:17] agent_white: has left #RubyOnRails: ()
[22:02:27] lxsameer: has joined #RubyOnRails
[22:09:53] FernandoBasso: has joined #RubyOnRails
[22:17:28] lxsameer: has joined #RubyOnRails
[22:28:01] jottr: has joined #RubyOnRails
[22:28:03] jmay: has joined #RubyOnRails
[22:47:37] jottr: has joined #RubyOnRails
[22:54:53] jmay: has joined #RubyOnRails
[22:57:16] lxsameer: has joined #RubyOnRails
[23:12:31] lxsameer: has joined #RubyOnRails
[23:24:37] Xiti: has joined #RubyOnRails
[23:37:57] roamingdog: has joined #RubyOnRails
[23:44:02] jmay: has joined #RubyOnRails
[23:52:12] lxsameer: has joined #RubyOnRails