« Back to channel list

#RubyOnRails - 11 May 2018

« Back 1 day Forward 1 day »
[00:14:02] dogweather: has joined #RubyOnRails
[00:22:28] dogweather: has joined #RubyOnRails
[00:25:03] cagomez: has joined #RubyOnRails
[00:28:21] LenPayne: has joined #RubyOnRails
[00:29:34] LenPayne: has joined #RubyOnRails
[00:37:27] GodFather: has joined #RubyOnRails
[01:04:56] quazimodo: has joined #RubyOnRails
[01:04:56] eckhardt: has joined #RubyOnRails
[01:12:29] kurko_: has joined #RubyOnRails
[01:12:56] rrichardsr3: has joined #RubyOnRails
[01:23:19] quazimodo: has joined #RubyOnRails
[01:24:18] _aeris_: has joined #RubyOnRails
[01:27:40] mroutis: has joined #RubyOnRails
[01:31:53] dogweather: has joined #RubyOnRails
[02:00:45] bobbobbins: has joined #RubyOnRails
[02:05:12] woohoou: has joined #RubyOnRails
[02:07:37] bobbobbins: has joined #RubyOnRails
[02:12:45] sevenseacat: has joined #RubyOnRails
[02:15:22] kapil___: has joined #RubyOnRails
[02:33:34] alfiemax: has joined #RubyOnRails
[02:37:40] Saukk: has joined #RubyOnRails
[02:45:50] orbyt_: has joined #RubyOnRails
[03:08:05] tdy: has joined #RubyOnRails
[03:12:52] dogweather: has joined #RubyOnRails
[03:32:16] mroutis: has joined #RubyOnRails
[03:33:20] Technodrome: has joined #RubyOnRails
[03:37:49] GodFather: has joined #RubyOnRails
[04:04:55] dogweather: has joined #RubyOnRails
[04:14:38] alfiemax: has joined #RubyOnRails
[04:20:22] russt: has joined #RubyOnRails
[04:21:01] dogweather: has joined #RubyOnRails
[04:28:40] roamingdog: has joined #RubyOnRails
[04:30:17] quazimodo: has joined #RubyOnRails
[04:32:03] za1b1tsu_: has joined #RubyOnRails
[04:41:31] dogweather: has joined #RubyOnRails
[05:07:46] dogweather: has joined #RubyOnRails
[05:17:34] eckhardt: has joined #RubyOnRails
[05:17:37] vedu_: has joined #RubyOnRails
[05:20:03] sagax: has joined #RubyOnRails
[05:20:17] dogweather: has joined #RubyOnRails
[05:33:10] dogweather: has joined #RubyOnRails
[05:39:57] Tempesta: has joined #RubyOnRails
[05:40:18] conta: has joined #RubyOnRails
[05:40:48] jackhum: has joined #RubyOnRails
[05:41:47] Technodrome: has joined #RubyOnRails
[05:43:35] dogweather: has joined #RubyOnRails
[05:50:29] dionysus69: has joined #RubyOnRails
[05:56:42] DoubleMalt: has joined #RubyOnRails
[06:08:40] dogweather: has joined #RubyOnRails
[06:13:09] syndikate: Does find_each respect default scope?
[06:13:56] srinidhi: has joined #RubyOnRails
[06:34:43] dogweather: has joined #RubyOnRails
[06:37:03] Technodrome: has joined #RubyOnRails
[06:47:43] dogweather: has joined #RubyOnRails
[06:50:12] mices: has joined #RubyOnRails
[06:51:20] mices: i downloaded braintree-rails-example-master.zip when i extract it i get a lot more controllers than are shown on the code pages
[06:53:22] alfiemax: has joined #RubyOnRails
[06:58:24] vedu_: has joined #RubyOnRails
[07:02:42] conta: has joined #RubyOnRails
[07:04:39] dogweather: has joined #RubyOnRails
[07:22:59] vedu_: has joined #RubyOnRails
[07:25:22] blackmesa: has joined #RubyOnRails
[07:26:20] dogweather: has joined #RubyOnRails
[07:31:03] dionysus69: has joined #RubyOnRails
[07:32:03] bitch: has joined #RubyOnRails
[07:37:55] reber: has joined #RubyOnRails
[07:42:25] ma5ter: has joined #RubyOnRails
[07:52:07] mikecmpbll: has joined #RubyOnRails
[08:03:43] dionysus69: has joined #RubyOnRails
[08:06:07] marr: has joined #RubyOnRails
[08:21:09] dionysus69: let me get this straight
[08:21:55] dionysus69: does locking have to be used inside a transaction block? and at the end of the block or whenever the object is saved, lock is expired
[08:22:45] dionysus69: cause pessimistic lock examples http://api.rubyonrails.org/v5.2.0/classes/ActiveRecord/Locking/Pessimistic.html only show locks within a transaction
[08:25:00] quazimodo: has joined #RubyOnRails
[08:26:02] Terens: has joined #RubyOnRails
[08:26:04] rmerry: has joined #RubyOnRails
[08:26:11] Terens: hello is there a way to ensure message order in actioncable ?
[08:26:26] rmerry: hey guys; in Rails 5 is there an easy way to make the json serializer (when serializing a model to json) to not output fields with a nil (null) value?
[08:27:17] Terens: it seems like each received message even not through pubsub uses a thread pool so they are out of order
[08:27:52] ellcs: has joined #RubyOnRails
[08:30:31] srinidhi: has joined #RubyOnRails
[08:33:33] dionysus69: rmerry: in my experience customizing AMS was counterproductive, just use jbuilder if you want customization
[08:35:09] rmerry: thanks for advice dionysus69
[08:39:35] vedu_: has joined #RubyOnRails
[08:57:09] dogweather: has joined #RubyOnRails
[09:04:36] jottr: has joined #RubyOnRails
[09:12:49] roamingdog: has joined #RubyOnRails
[09:18:43] ur5us: has joined #RubyOnRails
[09:19:30] vedu_: has joined #RubyOnRails
[09:22:26] dogweather: has joined #RubyOnRails
[09:26:58] jottr: has joined #RubyOnRails
[09:28:56] syndikate: Can we scope restrict_with_exception ?
[09:29:30] syndikate: I see it can be scoped on dependent: :destroy
[09:31:47] sevenseacat: syndikate: what are you trying to do
[09:33:56] syndikate: I need to have the exception only if the association has active_objects, so was wondering if I could scope it
[09:34:26] sevenseacat: what does that look like in your code, if the association has active objects?
[09:35:56] syndikate: Right now a custom method has been added to check if any active employees are present, I want to see if I can remove that custom method
[09:36:07] sevenseacat: you can't apply the restriction to a scope, but you might want to write a new association that has that scope
[09:36:13] sevenseacat: that isnt code
[09:37:00] sevenseacat: eg. you might write a new association like has_many :active_objects, dependent: :restrict_with_exception
[09:37:49] kapil___: has joined #RubyOnRails
[09:42:02] ur5us: has joined #RubyOnRails
[09:45:01] syndikate: sevenseacat, So a new association just to for this validation?
[09:45:19] sevenseacat: its not a validation if it raises an exception
[09:45:28] sevenseacat: if you want a custom validation, write a custom validation
[09:45:43] syndikate: Sorry, validation not in rails sense but making sure that no active associations exist
[09:45:55] syndikate: As per the context
[09:48:24] dogweather: has joined #RubyOnRails
[09:48:40] apeiros: dionysus69: most databases' transaction settings default to transactions *only* guaranteeing that either all operations in the transaction happen or don't happen. this does NOT protect you from concurrency issues. that's what you use locking for in that situation.
[09:48:51] apeiros: (or you change the transaction isolation level)
[09:49:27] dionysus69: yea still trying to figure out a bug in my app
[09:49:40] dionysus69: I am locking but still balance is not adding up in the end
[09:49:43] ellcs: has joined #RubyOnRails
[09:50:11] dionysus69: second transaction is waiting on first one, but either of those don't subtract from balance, subtraction happens once for 2 transactions ugh
[09:50:28] apeiros: look at the generated sql too
[09:56:14] conta: has joined #RubyOnRails
[09:58:16] vedu_: has joined #RubyOnRails
[10:00:18] ur5us: has joined #RubyOnRails
[10:01:57] ur5us: has joined #RubyOnRails
[10:09:29] ur5us: has joined #RubyOnRails
[10:09:56] dogweather: has joined #RubyOnRails
[10:11:54] arup_r: has joined #RubyOnRails
[10:16:28] quazimodo: has joined #RubyOnRails
[10:17:57] ur5us: has joined #RubyOnRails
[10:21:25] ur5us: has joined #RubyOnRails
[10:22:35] KeyJoo: has joined #RubyOnRails
[10:28:05] vedu_: has joined #RubyOnRails
[10:32:51] Fernando-Basso: has joined #RubyOnRails
[10:43:22] worldsayshi: has joined #RubyOnRails
[10:44:40] dionysus69: Model.transaction { Model.lock.find(8); sleep 3; Model.find(8).children.create(amount: 0.1, destination: "address"); Wallet.find(8).save!; sleep 60 }
[10:44:58] dionysus69: after this hits sleep 60, it still is not saved in the database
[10:45:12] dionysus69: even though I explicitly called save!
[10:46:54] kapil___: Rails changed pwd directory. How to change it to the original pwd
[10:48:24] dogweather: has joined #RubyOnRails
[10:52:41] conta: has joined #RubyOnRails
[10:54:09] quazimodo: has joined #RubyOnRails
[11:05:35] dogweather: has joined #RubyOnRails
[11:18:01] Aherin: has joined #RubyOnRails
[11:26:23] dogweather: has joined #RubyOnRails
[11:28:19] conta: has joined #RubyOnRails
[11:29:41] dici: has joined #RubyOnRails
[11:34:57] dogweather: has joined #RubyOnRails
[11:38:35] quazimodo: has joined #RubyOnRails
[11:40:06] Cavallari: has joined #RubyOnRails
[11:46:50] nzst: has joined #RubyOnRails
[11:48:10] dogweather: has joined #RubyOnRails
[12:03:09] dici: has left #RubyOnRails: ()
[12:05:25] dogweather: has joined #RubyOnRails
[12:13:01] blackmesa: has joined #RubyOnRails
[12:14:05] vedu_: has joined #RubyOnRails
[12:18:11] dogweather: has joined #RubyOnRails
[12:21:37] ellcs: has joined #RubyOnRails
[12:26:20] jackhum: has joined #RubyOnRails
[12:27:32] KeyJoo: has joined #RubyOnRails
[12:29:19] kurko_: has joined #RubyOnRails
[12:30:26] vedu_: has joined #RubyOnRails
[12:35:16] dogweather: has joined #RubyOnRails
[12:35:37] drale2k_: has joined #RubyOnRails
[12:35:52] drale2k_: is it necessary to validate the presence of a belongs_to association?
[12:36:16] drale2k_: like Picture belongs_to User, and then validate in Picture.rb presence_of User
[12:36:44] drale2k_: when a picture is created through a user object anyway
[12:37:29] Cork: drale2k_: you need to validate that the assosiation exists if you don't want it to be optional
[12:39:13] tbuehlmann: drale2k_: if you're using a newer version of rails, that's already the default for belongs_to associations
[12:39:34] drale2k_: ah ok awesome, i am on 5.2
[12:42:45] pause_: has joined #RubyOnRails
[12:43:10] pause_: Hello, anyone knows how to get values back when create!-ing a model with default DB values ?
[12:43:35] Cork: pause_: the object should contain the new values by default
[12:44:11] pause_: It does not, the SQL is: .... RETURNING "id"
[12:44:30] pause_: How can i change the returning clause ?
[12:44:39] Cork: what method are you calling?
[12:44:45] pause_: Model.create!
[12:45:09] Cork: Model.create!().id should be the id
[12:45:33] pause_: It is, but i need to call #reload in order to get the other ones
[12:45:45] Cork: weird...
[12:45:50] Cork: it shouldn't
[12:48:30] pause_: Do you know what makes a field included in the RETURNING clause ?
[12:48:42] pause_: Feels like i'll have to read some AR code today T_T
[12:49:01] Cork: depends on the database engine
[12:49:54] pause_: Mhh, so the problem may be in the pg gem
[12:53:44] pause_: Mhh neh, the interface is just an exec method with a string query parameter, no way it is pg
[12:57:50] Technodrome: has joined #RubyOnRails
[12:58:33] tbuehlmann: pause_: I stumbled over this one some weeks ago, it wasn't possible by then and I had to reload the record
[12:59:01] tbuehlmann: this only happens with non-fix defaults, string or integer defaults work properly because they are already set rails-side
[12:59:08] pause_: tbuehlmann: AR code seems to confirm that T_T
[12:59:43] tbuehlmann: I wrote a little something on this: https://github.com/tbuehlmann/til/blob/master/rails/column-defaults.md
[13:00:22] tbuehlmann: no real solution to the problem, though
[13:01:59] prahal: has joined #RubyOnRails
[13:02:32] pause_: Is there an easy way to side-load arbitrary data into a model ? Like Model.create_with_sql('INSERT ...')
[13:02:46] pause_: That's a shame, i really like to push as much stuff as i can into my beloved postgres database
[13:04:18] tbuehlmann: yup, dito. I'd also like to let it set timestamps, but well…
[13:04:33] pause_: tbuehlmann: Thanks for the help anyway :P
[13:04:41] tbuehlmann: I don't get the question yet, what do you mean with side-load?
[13:05:06] pause_: Not really side-load in this case, juste to jam some arbitrary query result into models
[13:05:35] pause_: So i can add the RETURNING clause myself and call it a day, just for this single use-case
[13:06:10] pause_: Wouldn't scale to all models at all though, maybe i should just call reload and forget about this
[13:06:19] sevenseacat: has joined #RubyOnRails
[13:07:32] tbuehlmann: you can always execute raw sql, but I don't know whether there's a method for that
[13:11:12] Sylario: has joined #RubyOnRails
[13:12:35] pause_: tbuehlmann: Time to bite the bullet and add #reload calls then. Thanks again nonetheless :-)
[13:22:48] tbuehlmann: heh, you're welcome
[13:23:56] Saukk: has joined #RubyOnRails
[13:24:14] vedu_: has joined #RubyOnRails
[13:27:30] tbuehlmann: hm, even with the RETURNING including foo it doesn't populate the model, so there's more logic in it
[13:30:01] tbuehlmann: (foo being another column)
[13:31:25] krawchyk: has joined #RubyOnRails
[13:31:55] krawchyk: has joined #RubyOnRails
[13:36:35] dionysus69: has joined #RubyOnRails
[13:37:44] ariejan: has joined #RubyOnRails
[13:46:47] roamingdog: has joined #RubyOnRails
[13:53:46] Technodrome: has joined #RubyOnRails
[14:07:09] jottr: has joined #RubyOnRails
[14:12:45] dogweather: has joined #RubyOnRails
[14:16:01] samosaphile: has joined #RubyOnRails
[14:34:40] drale2k_: has joined #RubyOnRails
[14:35:24] RougeR: has joined #RubyOnRails
[14:35:45] RougeR: hey im a noob struggling to layout a db
[14:35:45] RougeR: https://gist.github.com/CodePint/057a1521cb740bb08511e8adbebc55c6
[14:35:50] RougeR: anyone able to offer help
[14:39:46] sonOfRa: has joined #RubyOnRails
[14:43:44] dogweather: has joined #RubyOnRails
[14:44:12] JJonah: According to the docs here (http://api.rubyonrails.org/classes/ActiveSupport/Duration.html#method-c-parse), my code below should work. What am I doing wrong:
[14:44:12] JJonah: irb(main):029:0> ActiveSupport::Duration.parse('PT10S')
[14:44:12] JJonah: NoMethodError: undefined method `parse' for ActiveSupport::Duration:Class
[14:50:49] RougeR: has joined #RubyOnRails
[14:50:55] RougeR: ugh disconns please
[14:51:12] schneider: has joined #RubyOnRails
[14:54:12] nzst: RougeR: Do you have a question?
[14:55:42] RougeR: yeah, im trying to set up a relationship for the membership table
[14:55:49] RougeR: its just hard to explain what im trying to do
[14:56:10] RougeR: okay, so i have 3 types of user. route_setter, climber, gym_owner
[14:56:47] chouhoulis: has joined #RubyOnRails
[14:56:50] RougeR: a route_setter can set routes for many gyms, a gym_owner can own many gyms, a climber can attend many gyms
[14:57:23] RougeR: in the user model ive got 3 booleans called route_setter, gym_owner, climber(default: false)
[14:57:47] RougeR: im trying to create a way for us to know which users are associated with which gyms with which permissions
[14:57:48] nzst: JJonah: works for me, returns => 10 seconds
[14:58:03] RougeR: i.e you could be a route_setter at one gym and a gym_owner at another gym
[14:58:26] RougeR: im doing this through a memberships table
[14:58:41] RougeR: i dont know if ive got it right though, im a bit of a noob
[14:58:53] RougeR: ill post a new gist
[14:59:30] JJonah: nzst: thank you. i'll check my version then. must be something on my end.
[14:59:49] nzst: JJonah: i was in a rails console, Rails 5.1.6 and ruby 2.5.1
[14:59:53] tdy: has joined #RubyOnRails
[15:01:21] RougeR: https://gist.github.com/CodePint/5dea59b3670364f4e675ffca7a7ab4d4
[15:01:28] RougeR: heres the gist with models and migrations
[15:01:31] JJonah: nzst: ah, looks like this project is actually rails 4. it must be a new feature...
[15:02:45] apparition: has joined #RubyOnRails
[15:04:31] quazimodo: has joined #RubyOnRails
[15:07:53] nzst: RougeR: I'd start with some tests that cover your expectations for these relationships. Then iterate on your data model and migrations until they pass. That's how I approach these issues.
[15:09:53] RougeR: yeah ill try break it up a bit n do some tests
[15:13:48] za1b1tsu_: has joined #RubyOnRails
[15:25:46] mondongo: has joined #RubyOnRails
[15:30:39] dogweather: has joined #RubyOnRails
[15:31:29] vedu_: has joined #RubyOnRails
[15:43:05] jcarl43: has joined #RubyOnRails
[15:45:30] Technodrome: has joined #RubyOnRails
[15:46:45] cgfbee: has joined #RubyOnRails
[15:48:31] AntiSpamMeta2: has joined #RubyOnRails
[15:51:39] cagomez: has joined #RubyOnRails
[15:51:58] dogweather: has joined #RubyOnRails
[15:53:36] prahal: has joined #RubyOnRails
[15:54:26] prahal: has joined #RubyOnRails
[15:59:34] mroutis: has joined #RubyOnRails
[16:01:12] dogweather: has joined #RubyOnRails
[16:09:48] ellcs: has joined #RubyOnRails
[16:10:04] kurko_: has joined #RubyOnRails
[16:10:43] drale2k_: has joined #RubyOnRails
[16:14:55] dogweather: has joined #RubyOnRails
[16:15:16] Technodrome: has joined #RubyOnRails
[16:26:55] dogweather: has joined #RubyOnRails
[16:32:47] GodFather: has joined #RubyOnRails
[16:33:05] GodFather_: has joined #RubyOnRails
[16:36:37] srinidhi: has joined #RubyOnRails
[16:36:51] dogweather: has joined #RubyOnRails
[16:37:02] regedit: has joined #RubyOnRails
[16:38:39] gheegh: has joined #RubyOnRails
[16:39:00] regedit: why am i getting errors if i'm regex-ing for a hash/pound symbol at the end of a string, ex. /foo#$/
[16:39:09] regedit: SyntaxError: (irb):121: unterminated regexp meets end of file
[16:39:28] regedit: but /foo\#$/ seems to work
[16:39:36] regedit: reason for this?
[16:40:27] Technodrome: has joined #RubyOnRails
[16:40:57] Fernando-Basso: has joined #RubyOnRails
[16:45:48] nzst: # denotes the beginning of a comment in ruby so it needs escaped
[16:51:10] regedit: but this is in middle of a regex, you'd think that would be picked up by the compiler..
[16:51:20] regedit: parser/lexer/whatever
[16:52:26] chouhoulis: has joined #RubyOnRails
[16:57:51] chouhoulis: has joined #RubyOnRails
[17:03:24] chouhoulis: has joined #RubyOnRails
[17:07:23] mroutis: has joined #RubyOnRails
[17:14:30] chouhoulis: has joined #RubyOnRails
[17:16:14] gheegh: has joined #RubyOnRails
[17:21:08] chouhoulis: has joined #RubyOnRails
[17:22:08] gregf_: has joined #RubyOnRails
[17:24:28] chouhoulis: has joined #RubyOnRails
[17:29:02] Ryanar: has joined #RubyOnRails
[17:29:13] chouhoulis: has joined #RubyOnRails
[17:29:37] nzst: Is there a way to setup redirects in rails (301) through a crud/gui rather than modifying routes.rb and restarting the app?
[17:30:52] Technodrome: has joined #RubyOnRails
[17:32:14] Puffball: has joined #RubyOnRails
[17:32:33] brnard: has joined #RubyOnRails
[17:34:01] gheegh: has joined #RubyOnRails
[17:34:27] chouhoulis: has joined #RubyOnRails
[17:39:17] gheegh: has joined #RubyOnRails
[17:39:23] brnard: I have some trouble with ActiveStorage. I try to use it with images, which works fine for jpeg/png, but I have some trouble with tiff. Would like to get a png variant of tiff files, any thoughts or directions how this might be achievable in a smooth way?
[17:40:06] chouhoulis: has joined #RubyOnRails
[17:40:06] brnard: image.variant(format: "png") does not work, unfortunately, even though mogrify would be capable to do this
[17:40:16] brnard: mogrify/minimagick
[17:44:03] digitalfiz: has joined #RubyOnRails
[17:45:43] chouhoulis: has joined #RubyOnRails
[17:46:09] digitalfiz: trying to find the best way to go about enabling the usaged of AWS's iam rds authentication. Basically you call aws to get a token which is used as a password but the password is only valid for 15mins
[17:46:21] digitalfiz: so any new connection made after that window need a new token
[17:46:56] digitalfiz: is there some kind of middleware type direction I can go to kind of override the connecting to database part to make it grab a new token if its expired
[17:48:55] digitalfiz: maybe make my own adapter that extends the mysql adapter?
[17:51:23] chouhoulis: has joined #RubyOnRails
[17:53:11] chocoelho: has joined #RubyOnRails
[17:54:25] darkhanb: has joined #RubyOnRails
[17:55:30] orbyt_: has joined #RubyOnRails
[17:55:49] darkhanb: So gems automatically add i18n files to I18n.load_path, is there a hook or a setting to prevent that?
[17:56:10] darkhanb: I'm on Rails 4.0.1
[18:06:19] schneider: has joined #RubyOnRails
[18:17:17] tfitts: has joined #RubyOnRails
[18:36:18] vedu_: has joined #RubyOnRails
[18:39:23] kurko_: has joined #RubyOnRails
[18:41:46] MrCrackPotBuilde: has joined #RubyOnRails
[18:46:13] Ryanar: has joined #RubyOnRails
[18:47:44] GodFather_: has joined #RubyOnRails
[18:47:55] GodFather: has joined #RubyOnRails
[18:53:23] mlt-: has joined #RubyOnRails
[18:57:19] sameerynho: has joined #RubyOnRails
[18:59:24] mlt-: I am confused how a controller can return JSON type when it was not explicitly specified in the URL? I mean it has standard respond_to ...format.json ... format.html . What I am having a problem with is testing. In my Integration Test, I do xhr :get, my_controller_url, {stuff} in exactly the same way as I monitor normal behavior with Firefox's Developer Tools console on Network tab. For whatever reason, in my test, an HTML comes
[18:59:24] mlt-: back. Which is kind of "expected". What I do not get is how come JSON comes back from normal page operations. I do not see dot json in URL.
[18:59:52] mlt-: Does X-Requested-With: XMLHttpRequest request header matter?
[19:01:01] mlt-: oh... I just noticed in logs: Processing by my_controller as JS
[19:01:40] mlt-: Why does it choose to use JS? I have no such clause in respond_to
[19:02:48] nickenchuggets: has joined #RubyOnRails
[19:05:40] mlt-: I noticed that if I do in my test: xhr :get, my_controller_url(format: :json), ... . Then it works. But once again, I do not see .json in URL while using page normally...
[19:07:41] srinidhi: has joined #RubyOnRails
[19:10:18] _3by8: has joined #RubyOnRails
[19:11:22] _3by8: So I started a new Rails/Vue project but my javascript_include_tag 'application' gets the application.js file from the wrong directory...
[19:12:05] dviola: has joined #RubyOnRails
[19:16:23] blackmesa: has joined #RubyOnRails
[19:19:26] brnard: has joined #RubyOnRails
[19:19:39] Technodrome: has joined #RubyOnRails
[19:29:06] alfiemax: has joined #RubyOnRails
[19:32:37] mroutis: has joined #RubyOnRails
[19:33:45] schneider: has joined #RubyOnRails
[19:44:54] bdnelson: has joined #RubyOnRails
[19:47:40] xelkarin: has joined #RubyOnRails
[19:47:59] cagomez: has joined #RubyOnRails
[19:48:52] xelkarin: Is there an easy way to rebuild native gems without having to delete the 'vendor/bundle/ruby' directory and re-running 'bundle install --deployment'?
[19:49:42] prahal: has joined #RubyOnRails
[19:49:48] dogweather: has joined #RubyOnRails
[20:00:14] digitalfiz: has anyone ever extended the mysql adapter? I extended it but when i try to run rails -f i get an error about undefined method 'config'
[20:03:47] digitalfiz: My code is at https://github.com/digitalfiz/activerecord-auroramysql-adapter/blob/master/lib/active_record/connection_adapters/auroramysql_adapter/core.rb and the error I get is here: https://gist.github.com/digitalfiz/1aef711761bf8edb076972e56cf6dd6c
[20:04:07] digitalfiz: its a fresh rails app that was working before I set the database adapter to mine
[20:04:23] dogweather: has joined #RubyOnRails
[20:17:13] dogweather: has joined #RubyOnRails
[20:20:24] mikecmpbll: has joined #RubyOnRails
[20:29:59] dogweather: has joined #RubyOnRails
[20:32:55] uksio: has joined #RubyOnRails
[20:42:35] qnaal: has joined #RubyOnRails
[20:43:22] agent_white: has joined #RubyOnRails
[20:47:08] dogweather: has joined #RubyOnRails
[20:47:57] weaksauce: has joined #RubyOnRails
[20:50:15] chouhoulis: has joined #RubyOnRails
[20:59:57] dogweather: has joined #RubyOnRails
[21:03:34] alfiemax: has joined #RubyOnRails
[21:04:11] dviola: has joined #RubyOnRails
[21:21:17] dogweather: has joined #RubyOnRails
[21:34:28] ellcs: has joined #RubyOnRails
[21:37:01] mroutis: has joined #RubyOnRails
[21:52:46] mroutis: has joined #RubyOnRails
[21:57:22] samosaphile: has joined #RubyOnRails
[22:01:20] Linuus: has joined #RubyOnRails
[22:02:40] eckhardt: has joined #RubyOnRails
[22:06:14] dblessing: has joined #RubyOnRails
[22:07:56] GodFather: has joined #RubyOnRails
[22:11:17] cschneid_: has joined #RubyOnRails
[22:11:52] gheegh: has joined #RubyOnRails
[22:22:13] alfiemax: has joined #RubyOnRails
[22:23:43] GodFather_: has joined #RubyOnRails
[22:28:51] orbyt_: has joined #RubyOnRails
[22:34:18] dogweather: has joined #RubyOnRails
[22:46:02] dionysus69: has joined #RubyOnRails
[22:54:21] alfiemax: has joined #RubyOnRails
[22:55:26] dogweather: has joined #RubyOnRails
[23:05:44] conceivably: has joined #RubyOnRails
[23:07:10] conceivably: Hi. Is there a way to attach a file to a record using ActiveStorage when the file is already on S3?
[23:07:57] conceivably: Currently I'm downloading the file, then attach it, and ActiveStorage reapploads it, which obviously is rather suboptimal.
[23:23:36] G: has joined #RubyOnRails
[23:35:12] RougeR: has joined #RubyOnRails
[23:35:15] RougeR: https://gist.github.com/CodePint/c25fd8c04bbb4fc4962e3cefead78e2b
[23:35:59] RougeR: how would i go about setting setting a field on the route so that the current_user is the owner
[23:38:56] weaksauce: has joined #RubyOnRails
[23:46:32] alfiemax: has joined #RubyOnRails
[23:58:16] prahal: has joined #RubyOnRails