« Back to channel list

#RubyOnRails - 26 November 2018

« Back 1 day Forward 1 day »
[00:01:06] dopie: has joined #RubyOnRails
[00:01:25] bambanx: has joined #RubyOnRails
[00:01:51] dopie: How can I create a user which uses password_digest without a password? I keep on getting PG::NotNullViolation: ERROR: null value in column "password_digest"
[00:28:16] jottr: has joined #RubyOnRails
[00:31:57] gambl0re: has joined #RubyOnRails
[00:39:04] jottr: has joined #RubyOnRails
[00:47:22] sevenseacat: has joined #RubyOnRails
[01:18:04] jaddison: has joined #RubyOnRails
[02:13:53] Saukk: has joined #RubyOnRails
[02:40:04] jottr: has joined #RubyOnRails
[02:40:27] Exuma: has joined #RubyOnRails
[02:50:52] jottr: has joined #RubyOnRails
[03:02:21] kapil____: has joined #RubyOnRails
[03:02:44] DTZUZO: has joined #RubyOnRails
[03:14:01] hahuang6-: has joined #RubyOnRails
[04:09:03] braincrash: has joined #RubyOnRails
[04:35:18] jaddison: has joined #RubyOnRails
[04:37:45] Exuma: has joined #RubyOnRails
[04:51:50] jottr: has joined #RubyOnRails
[05:05:33] jaddison: has joined #RubyOnRails
[05:16:45] Jervis_: has joined #RubyOnRails
[05:24:09] uks: has joined #RubyOnRails
[05:28:07] kristofferR: has joined #RubyOnRails
[05:58:25] za1b1tsu: has joined #RubyOnRails
[05:58:30] dionysus69: has joined #RubyOnRails
[06:11:04] ariedler: has joined #RubyOnRails
[06:21:06] conta: has joined #RubyOnRails
[06:24:19] elcontrastador: is there a way i can termporarily disable sprockets while in "design" mode? It's annoying AF to wait for assets to compile each reload
[06:25:14] sevenseacat: they only compile when there are changes, no?
[06:25:25] sevenseacat: seeing out of date files would suck
[06:40:12] mangold: has joined #RubyOnRails
[06:46:09] OrangeManBad: has joined #RubyOnRails
[06:47:10] yottanami: has joined #RubyOnRails
[06:47:47] yottanami: Is there any solution to create an automatic REST api from model entities?
[06:52:44] jottr: has joined #RubyOnRails
[07:03:38] jottr: has joined #RubyOnRails
[07:17:46] Aherin: has joined #RubyOnRails
[07:23:59] dionysus69: yottanami: scaffolds are pretty automatic ^.^
[07:31:20] yottanami: dionysus69, Does Scaffolds helps to create REST API?
[07:31:21] elcontrastador: @sevenseacat: i'm designing...every time i change css, it changes
[07:32:30] sevenseacat: that sounds like expected behaviour
[07:32:51] sevenseacat: if you disable sprockets, your CSS won't compile and you won't see the changes you're making
[07:33:52] Aherin: has joined #RubyOnRails
[07:34:47] lomex: has joined #RubyOnRails
[07:54:43] srinidhi: has joined #RubyOnRails
[08:07:34] dionysus69: yottanami: yes, if you pass correct params while generating scaffolds, it will create full working MVC. in case you already have models you can generate scaffold_controller which creates controllers + views, you still need to manually pass in model attributes see bin/rails generate scaffold_controller HighScore game:string score:integer https://guides.rubyonrails.org/command_line.html#rails-generate
[08:08:25] dionysus69: in your case you will get jbuilder views if you are using default rails --api mode
[08:11:37] OrangeManBad: has joined #RubyOnRails
[08:21:56] ariedler: has joined #RubyOnRails
[08:24:59] mangold: has joined #RubyOnRails
[08:51:14] pd09041999: has joined #RubyOnRails
[08:59:31] JamieD: has joined #RubyOnRails
[09:02:27] supergeek: has joined #RubyOnRails
[09:04:30] jottr: has joined #RubyOnRails
[09:14:11] lomex: has joined #RubyOnRails
[09:14:36] mikecmpbll: has joined #RubyOnRails
[09:15:22] jottr: has joined #RubyOnRails
[09:17:58] karunamon_: has joined #RubyOnRails
[09:21:25] sphalerite_: has joined #RubyOnRails
[09:23:56] lypsis_: has joined #RubyOnRails
[09:24:14] universal: has joined #RubyOnRails
[09:24:49] Fire-Dragon-DoL-: has joined #RubyOnRails
[09:26:09] TheMoonMaster: has joined #RubyOnRails
[09:28:48] mangold: has joined #RubyOnRails
[09:30:57] cnsvc: has joined #RubyOnRails
[09:31:20] lunarkitty7: has joined #RubyOnRails
[09:31:38] Majadon: has joined #RubyOnRails
[09:34:14] lomex: has joined #RubyOnRails
[09:34:32] Jervis_: has joined #RubyOnRails
[09:40:00] sameerynho: has joined #RubyOnRails
[09:47:45] ausmat: has joined #RubyOnRails
[09:53:02] gregf_: has joined #RubyOnRails
[09:58:25] roshanavand: has joined #RubyOnRails
[10:02:18] _aeris_: has joined #RubyOnRails
[10:13:27] roshanavand: has joined #RubyOnRails
[10:20:16] nicolasb: has joined #RubyOnRails
[10:23:00] ariedler: has joined #RubyOnRails
[10:28:45] jottr: has joined #RubyOnRails
[10:33:00] ariedler: has joined #RubyOnRails
[10:38:26] roshanavand: has joined #RubyOnRails
[10:38:47] kristofferR: has joined #RubyOnRails
[10:39:50] mangold: has joined #RubyOnRails
[10:47:16] _aeris: has joined #RubyOnRails
[10:47:22] conta: has joined #RubyOnRails
[10:57:51] conta: has joined #RubyOnRails
[11:02:47] cnsvc: has joined #RubyOnRails
[11:06:43] ldnunes: has joined #RubyOnRails
[11:30:56] kapil____: has joined #RubyOnRails
[11:34:51] blackmesa: has joined #RubyOnRails
[11:45:42] lomex: has joined #RubyOnRails
[11:50:36] mangold: has joined #RubyOnRails
[11:55:08] ariedler: has joined #RubyOnRails
[12:00:51] lankanmon: has joined #RubyOnRails
[12:02:28] conta: has joined #RubyOnRails
[12:02:50] pd09041999: has joined #RubyOnRails
[12:05:06] conta: has joined #RubyOnRails
[12:08:53] cnsvc: has joined #RubyOnRails
[12:08:55] Ergo: has joined #RubyOnRails
[12:14:15] lexileo: has joined #RubyOnRails
[12:28:39] GodFather: has joined #RubyOnRails
[12:46:20] lomex: has joined #RubyOnRails
[12:59:51] LightStalker: has joined #RubyOnRails
[13:03:47] Aherin: has joined #RubyOnRails
[13:14:31] cnsvc: has joined #RubyOnRails
[13:23:13] pd09041999: has joined #RubyOnRails
[13:39:21] mostlybadfly: has joined #RubyOnRails
[13:43:38] Gargron: has joined #RubyOnRails
[13:44:29] Gargron: How can I set statement_timeout for every query/transaction if I am using pgbouncer with transaction pool mode?
[13:51:26] mangold: has joined #RubyOnRails
[13:57:00] za1b1tsu: has joined #RubyOnRails
[14:00:00] blackmesa: has joined #RubyOnRails
[14:08:57] alan_w: has joined #RubyOnRails
[14:15:20] emers2n: has joined #RubyOnRails
[14:17:20] emers2n: Got a question I've been racking by brain over... I use find to get an active record relation. Then I use a .each to iterate over each object. How the fuck do I end up with records still in @articles? https://dpaste.de/xgMa
[14:19:44] emers2n: I'm left with 2/5 objects after running .each to delete object... If I run the .each again, I'm left with 1 object, and again I'm left with 0
[14:24:36] lomex: has joined #RubyOnRails
[14:25:27] crankhar1er: has joined #RubyOnRails
[14:26:26] Xiti: has joined #RubyOnRails
[14:28:19] brycesenz: has joined #RubyOnRails
[14:32:13] blackmesa: has joined #RubyOnRails
[14:40:26] JamieD: has joined #RubyOnRails
[14:41:48] uks: has joined #RubyOnRails
[14:44:20] cnsvc: has joined #RubyOnRails
[15:24:52] pd09041999: has joined #RubyOnRails
[15:46:41] cnsvc: has joined #RubyOnRails
[15:48:15] maryo: has joined #RubyOnRails
[15:54:11] ariedler: has joined #RubyOnRails
[16:10:27] conta: has joined #RubyOnRails
[16:11:33] tubbo: emers2n: what version of rails is that?
[16:14:04] emers2n: @tubbo It is 5.2.1. Instead of trying to run a .each, I've went with .reject, which is achieving the desired results
[16:14:24] tubbo: emers2n: `reject` won't actually remove the records from the DB though
[16:14:28] tubbo: it'll just omit them from the array
[16:14:54] emers2n: That's all I was trying to do, filter them from the active record relation variable
[16:14:57] tubbo: i asked about what version of rails you were running because you're using a very old syntax there, `find(:all)` instead of just `all`...
[16:15:13] tubbo: emers2n: so you weren't trying to delete the records from the DB?
[16:16:54] emers2n: No. To be completely up front I was searching through my Shopify blog posts using the API: "@articles = ShopifyAPI::Article.find(:all, :params => {:limit => 250})". After that was retrieved, I wanted to search them by title and remove articles that don't match title (As API doesn't allow this).
[16:17:41] emers2n: Thank you for your response though!
[16:20:06] emers2n_: has joined #RubyOnRails
[16:25:47] gavit: has joined #RubyOnRails
[16:34:48] jaddison: has joined #RubyOnRails
[16:38:17] jaddison: has joined #RubyOnRails
[16:43:29] mangold: has joined #RubyOnRails
[16:47:02] srinidhi: has joined #RubyOnRails
[16:49:20] cnsvc: has joined #RubyOnRails
[17:08:27] mostlybadfly: has joined #RubyOnRails
[17:11:24] lomex: has joined #RubyOnRails
[17:11:39] kapil____: has joined #RubyOnRails
[17:16:58] Jervis_: has joined #RubyOnRails
[17:17:27] Guest21835: has joined #RubyOnRails
[17:20:45] lexileo: has joined #RubyOnRails
[17:44:33] maryo: has joined #RubyOnRails
[17:51:31] cnsvc: has joined #RubyOnRails
[17:53:07] orbyt_: has joined #RubyOnRails
[17:58:19] lomex: has joined #RubyOnRails
[17:59:44] Dbugger: has joined #RubyOnRails
[18:01:27] reber: has joined #RubyOnRails
[18:01:32] reber__: has joined #RubyOnRails
[18:06:17] blackmesa: has joined #RubyOnRails
[18:10:15] eckhardt: has joined #RubyOnRails
[18:18:14] Puffball: has joined #RubyOnRails
[18:18:49] orbyt_: has joined #RubyOnRails
[18:26:04] gambl0re: has joined #RubyOnRails
[18:26:16] conta2: has joined #RubyOnRails
[18:29:19] blackmesa: has joined #RubyOnRails
[18:31:52] brycesenz: has joined #RubyOnRails
[18:46:44] Puffball: has joined #RubyOnRails
[18:47:23] kristofferR: has joined #RubyOnRails
[18:48:40] chouhoulis: has joined #RubyOnRails
[18:51:21] lxsameer: has joined #RubyOnRails
[18:52:46] cnsvc: has joined #RubyOnRails
[18:53:22] mikecmpbll: has joined #RubyOnRails
[18:54:15] crankhar1er: has joined #RubyOnRails
[19:02:17] orbyt_: has joined #RubyOnRails
[19:03:22] mochiyoda_: has joined #RubyOnRails
[19:24:39] Sylario: has joined #RubyOnRails
[19:25:03] Sylario: I am trying to figure out AMS(active model serializer) relations
[19:26:04] Sylario: When I have a Parent and CHildren serializer, how do I make AMS embedd the child in the answer instead of only referencing it?
[19:26:21] Sylario: And also, if it's possible how do I make it optionnal
[19:27:21] Sylario: https://github.com/rails-api/active_model_serializers/blob/v0.10.6/docs/general/serializers.md#associations
[19:43:30] pbodev1: has joined #RubyOnRails
[19:43:54] NivenHuH: has joined #RubyOnRails
[19:46:56] WA9ACE: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[19:52:08] blackmesa: has joined #RubyOnRails
[19:57:02] Terens: has joined #RubyOnRails
[19:57:45] conta: has joined #RubyOnRails
[19:58:10] mostlybadfly: has joined #RubyOnRails
[19:59:52] blackmesa1: has joined #RubyOnRails
[20:00:52] cnsvc: has joined #RubyOnRails
[20:09:30] gavit: has joined #RubyOnRails
[20:13:30] NivenHuH: has joined #RubyOnRails
[20:25:18] Milos: has joined #RubyOnRails
[20:31:03] buyfn: has joined #RubyOnRails
[20:35:13] jaddison: has joined #RubyOnRails
[20:42:18] Fernando-Basso: has joined #RubyOnRails
[20:51:19] safetypin: has joined #RubyOnRails
[20:52:02] ausmat: has joined #RubyOnRails
[20:55:29] blackmesa: has joined #RubyOnRails
[20:59:21] snowy: has joined #RubyOnRails
[21:09:24] orbyt_: has joined #RubyOnRails
[21:15:45] beowuff: has joined #RubyOnRails
[21:18:57] snowy: has joined #RubyOnRails
[21:30:49] snowy: has joined #RubyOnRails
[21:46:30] dviola: has joined #RubyOnRails
[21:54:20] snowy: has joined #RubyOnRails
[21:56:04] chouhoulis: has joined #RubyOnRails
[21:56:19] ariedler: has joined #RubyOnRails
[21:56:23] defsdoor: has joined #RubyOnRails
[22:01:44] NivenHuH: has joined #RubyOnRails
[22:14:00] snowy: has joined #RubyOnRails
[22:18:55] orbyt_: has joined #RubyOnRails
[22:19:49] snowy: has joined #RubyOnRails
[22:24:34] alan_w: has joined #RubyOnRails
[22:29:01] lupine: has joined #RubyOnRails
[22:29:55] eclm: has joined #RubyOnRails
[22:31:56] borodin: has joined #RubyOnRails
[22:32:13] gambl0re: has joined #RubyOnRails
[22:36:29] mlt-: has joined #RubyOnRails
[22:37:17] orbyt_: has joined #RubyOnRails
[22:43:50] GodFather: has joined #RubyOnRails
[22:50:53] NivenHuH: has joined #RubyOnRails
[22:51:23] orbyt_: has joined #RubyOnRails
[22:54:19] agent_white: has joined #RubyOnRails
[23:04:26] NivenHuH: has joined #RubyOnRails
[23:14:53] gambl0re: has joined #RubyOnRails
[23:24:22] NivenHuH: has joined #RubyOnRails
[23:31:27] jottr: has joined #RubyOnRails
[23:32:07] jaddison: has joined #RubyOnRails
[23:35:10] ariedler: has joined #RubyOnRails
[23:39:56] greengriminal: has joined #RubyOnRails
[23:50:53] ur5us: has joined #RubyOnRails
[23:59:02] SteenJobs: has joined #RubyOnRails
[23:59:03] srruby: has joined #RubyOnRails
[23:59:53] SteenJobs: hey all - in the docs for `update_all`, https://apidock.com/rails/v4.2.7/ActiveRecord/Relation/update_all, it mentions the values won’t go through AR’s type-casting behavior - would this cause an issue if updating a bool property when using mysql?