« Back to channel list

#RubyOnRails - 06 December 2017

« Back 1 day Forward 1 day »
[00:06:22] mr-spoon: has joined #RubyOnRails
[00:10:59] uks: has joined #RubyOnRails
[00:27:36] agent_white: has joined #RubyOnRails
[00:36:06] sevenseacat: has joined #RubyOnRails
[00:47:57] mitt3ns: has joined #RubyOnRails
[00:48:21] mcr1: has joined #RubyOnRails
[00:49:52] ResidentBiscuit: has joined #RubyOnRails
[00:55:19] roshanavand: has joined #RubyOnRails
[00:59:59] jottr_: has joined #RubyOnRails
[01:00:00] Jameser: has joined #RubyOnRails
[01:06:02] _aeris_: has joined #RubyOnRails
[01:07:00] mtkd: has joined #RubyOnRails
[01:07:56] tcopeland: has joined #RubyOnRails
[01:09:17] phon: has joined #RubyOnRails
[01:09:35] ProofTechnique: has joined #RubyOnRails
[01:28:07] drowze: has joined #RubyOnRails
[01:49:34] orbyt_: has joined #RubyOnRails
[01:50:49] Barrt: has joined #RubyOnRails
[02:01:35] Inside: has joined #RubyOnRails
[02:01:40] Inside: Hey folks!
[02:01:56] tjbp: has joined #RubyOnRails
[02:01:57] Inside: So a question about RoR. I'm running 4.1.2 at work for a couple of internal sites. They work(tm)
[02:02:08] Inside: Does it make sense to upgrade to Ruby 2.4 and Rails 5.1.2?
[02:02:34] mr-spoon: has joined #RubyOnRails
[02:05:18] fryguy: Inside: yes
[02:08:41] sevenseacat: yes! 4.1.2 is unsupported now
[02:11:11] Inside: Well, I already started the process and it's just tedious as balls
[02:11:13] jottr: has joined #RubyOnRails
[02:11:31] Inside: Some of my gems don't work :/
[02:11:59] sevenseacat: how did you start the process? are you following the upgrade guide?
[02:12:10] Inside: unfortunately I jumped the gun and didn't go to 4.2 first
[02:12:29] Inside: and my test coverage is non-existent
[02:12:50] Inside: ... this was my first rails app that I wrote and ran on my PC as a "pirate" server until I finally got IT to let me host it
[02:13:09] Inside: (erm, got IT to host it for me)
[02:13:32] Inside: oh and thanks sevenseacat, I think you were there in the beginning for me ;)
[02:14:35] Inside: thankfully this app is mostly a collection of dashboards that replaces a ton of excel sheets so it's relatively easy to check the functionality of
[02:14:49] Inside: ... it's my other app which I use for manufacturing production management that terrifies me a bit
[02:16:11] sevenseacat: well I hope that has better test coverage :D
[02:16:19] Inside: a bit better, but not nearly as well
[02:16:32] Inside: I hope to go back and fix everything up this time around
[02:17:24] Inside: (I was working as a manufacturing engineer previously with like 25% of my time spent on creating these dashboards/etc -- then I quit -- and they rehired me back after 7 months to come fix all my shit -- except to work on it full time now)
[02:29:36] cschneid: has joined #RubyOnRails
[02:39:51] DTZUZO: has joined #RubyOnRails
[02:44:36] MrCrackPotBuilde: has joined #RubyOnRails
[02:57:21] drowze: has joined #RubyOnRails
[03:08:20] cpruitt: has joined #RubyOnRails
[03:12:17] mtkd: has joined #RubyOnRails
[03:14:52] workmad3: has joined #RubyOnRails
[03:19:16] Exhiled: has joined #RubyOnRails
[03:25:24] afromankenobi: has joined #RubyOnRails
[03:59:52] drowze: has joined #RubyOnRails
[04:06:05] DaniG2k: has joined #RubyOnRails
[04:06:09] DaniG2k: Hello all. Anyone around at this time?
[04:07:24] DaniG2k: I have a question regarding transactions in Rails. In my #create method, we've had an instance where the `if @model.save; do_more_stuff; end` happened twice, concurrently
[04:07:42] DaniG2k: if I wrap it all in a transaction would this be prevented?
[04:07:54] DaniG2k: and also, is it ok to wrap if statements in a transaction?
[04:10:30] jhill_: has joined #RubyOnRails
[04:11:56] roboguy2: has joined #RubyOnRails
[04:15:34] CustosLimen: has joined #RubyOnRails
[04:17:19] _aeris_: has joined #RubyOnRails
[04:25:57] havenwood: DaniG2k: From what you've said it sounds more to me like you want to lock rather than do something in a transaction.
[04:26:19] havenwood: DaniG2k: http://api.rubyonrails.org/classes/ActiveRecord/Locking/Pessimistic.html
[04:26:32] havenwood: DaniG2k: Or synchronize on a Mutex.
[04:27:27] havenwood: DaniG2k: Or say more about the issue that's happening do to the concurrent changes?
[04:29:22] KeyJoo: has joined #RubyOnRails
[04:30:49] DmitryBochkarev: has joined #RubyOnRails
[04:44:34] DaniG2k: havenwood: let me post the code on a gist, 1 sec
[04:46:15] cschneid: has joined #RubyOnRails
[04:46:39] DaniG2k: havenwood: https://gist.github.com/DaniG2k/04688d8f61ee1dbeacab692c33731826
[04:47:11] DaniG2k: basically, lines 9 and 10 of prize_requests_controller.rb occurred at the same exact time
[04:48:15] DaniG2k: concurrently
[04:48:15] DaniG2k: causing the user to have a negative number of points which should actually never occur
[04:48:15] DaniG2k: but #track_claimed subtracts points so that's how it happened
[04:48:15] DaniG2k: I'm trying to get it to somehow lock during the @prize_request.save
[04:55:42] Technodrome: has joined #RubyOnRails
[05:03:10] agent_white: has joined #RubyOnRails
[05:03:37] DTZUZO: has joined #RubyOnRails
[05:07:14] mitt3ns: has joined #RubyOnRails
[05:09:53] _aeris_: has joined #RubyOnRails
[05:15:55] drowze: has joined #RubyOnRails
[05:17:08] _aeris_: has joined #RubyOnRails
[05:17:55] drowze: has joined #RubyOnRails
[05:23:06] conta: has joined #RubyOnRails
[05:33:07] drowze: has joined #RubyOnRails
[05:33:57] drowze: has joined #RubyOnRails
[05:36:04] DanKnox: has joined #RubyOnRails
[05:37:15] fschuindt: has joined #RubyOnRails
[05:54:15] iamarun: has joined #RubyOnRails
[05:58:36] drowze: has joined #RubyOnRails
[06:23:08] Technodrome: has joined #RubyOnRails
[06:26:33] kies: has joined #RubyOnRails
[06:46:23] mtkd: has joined #RubyOnRails
[06:48:12] mtkd: has joined #RubyOnRails
[06:49:53] mtkd: has joined #RubyOnRails
[06:54:32] mtkd: has joined #RubyOnRails
[07:10:28] mtkd: has joined #RubyOnRails
[07:18:13] workmad3: has joined #RubyOnRails
[07:32:40] srinidhi: has joined #RubyOnRails
[07:35:16] apeiros: has joined #RubyOnRails
[07:38:04] conta: has joined #RubyOnRails
[07:38:10] mtkd: has joined #RubyOnRails
[07:43:17] mtkd: has joined #RubyOnRails
[07:45:55] dviola: has joined #RubyOnRails
[07:52:24] doublemalt_: has joined #RubyOnRails
[07:52:39] MrCrackPotBuilde: has joined #RubyOnRails
[07:52:56] dionysus69: has joined #RubyOnRails
[07:57:23] Dimik: has joined #RubyOnRails
[07:58:51] dionysus69: https://gist.github.com/60f8bfcf23c39f537a0d04f717f30763 hello everyone, I am getting this error upon migration on db that has existing users. the problem exists in the find_all block and the error is Validation failed: Email is not an email. any tips appreciated!
[08:00:57] sevenseacat: seems self explanatory
[08:01:08] dminuoso: You'd think so.
[08:02:16] mtkd: has joined #RubyOnRails
[08:02:26] sevenseacat: do you have users with invalid email addresses?
[08:03:42] arBmind: has joined #RubyOnRails
[08:06:25] dionysus69: good question, I shouldn't have, how would they register in the first place :|
[08:06:28] Jameser: has joined #RubyOnRails
[08:06:46] dionysus69: but I'll go ahead and double check I suppose, I excluded that possibility at first
[08:06:51] dminuoso: dionysus69: Assumption is the mother of all debugging screwups.
[08:07:05] dionysus69: :D yep, I should have learned that the hard way by now
[08:07:38] dnyy: has joined #RubyOnRails
[08:07:59] dminuoso: dionysus69: The thing is, the error message is quite clear. Even without seeing a stack trace (which you have failed to include), Im guessing that upon .save! the validation fails for some records.
[08:08:23] dminuoso: So why didn't you already check and *look* at what those records it fails on, and see what's special about them?
[08:08:44] dminuoso: You have been around long enough to be expected to have a basic competency of debugging.
[08:09:58] dionysus69: :) to get which user it fails on I need to add puts user.email, I didn't want to change migration, always ends up me spending lots of time
[08:10:32] dminuoso: dionysus69: You dont need to touch the migration. You can fire up a rails console and just look.
[08:10:47] dminuoso: You know, something like User.all.select { |a| !a.valid? }
[08:11:17] dionysus69: just run update_all { |user| user.save! } ?
[08:11:37] dionysus69: ok I ll try that xD
[08:11:50] dminuoso: or perhaps be even more elegant: User.all.reject(&:valid?)
[08:11:55] dionysus69: never user valid? method until now I guess )
[08:13:09] dionysus69: User.all.select { |a| !a.valid? } returned empty array, hmm
[08:14:04] dionysus69: reject one too
[08:14:08] Travis-42: has joined #RubyOnRails
[08:14:16] dminuoso: dionysus69: then do it the hard way and fire up binding.pry if user.save! fails (hint you can just use `binding.pry if !user.save`)
[08:14:31] dminuoso: If you seriously also tried the reject variant...
[08:14:34] dminuoso: ACTION sighs
[08:17:14] macxim: has joined #RubyOnRails
[08:21:20] dionysus69: User.find_each { |user| break if !user.save! } doesn't break
[08:22:16] Jameser: has joined #RubyOnRails
[08:26:55] agent_white: has joined #RubyOnRails
[08:36:26] Ergo: has joined #RubyOnRails
[08:37:13] dionysus69: weird I found a user without .com at the end user@gmail
[08:37:26] dionysus69: wonder how it went around devise validator and got saved in the db
[08:37:41] dionysus69: and now the validator complained about it, 11 days later
[08:41:18] dionysus69: User.all.select { |a| !a.valid? } was empty too, that's also weird
[08:52:56] cschneid: has joined #RubyOnRails
[09:01:29] mikecmpbll: has joined #RubyOnRails
[09:04:14] Andr3as: morning everyone.. i get a NoMethodError (undefined method `inject' for #<ActionController::Parameters:0x00007f50276f3be0>
[09:04:14] Andr3as: Did you mean? inspect) with the paypal_recurring gem and rails 5.1
[09:04:42] Andr3as: anyone an idea how to handle that inject call?
[09:04:43] dminuoso: Andr3as: So look at the error message.
[09:04:54] dminuoso: Andr3as: What are you trying to call inject on?
[09:05:09] Andr3as: i try nothing, that gem probably
[09:05:22] Andr3as: found a few places wher it calls inject
[09:05:43] dminuoso: Andr3as: Ah. well in 5.1 strong params was encapsulated harder so it acts even less like a hash.
[09:05:58] dminuoso: it probably does something along the lines of params.inject(...)
[09:06:04] dminuoso: Or was it 5.0?
[09:06:33] Andr3as: yes it does.. i googled a bit and found a "dirty hack" with using ".to_unsafe_h.inject"
[09:06:40] Andr3as: but that didnt change a thing, unfortunately
[09:07:03] dminuoso: 5.0 it seems
[09:07:03] dminuoso: https://github.com/rails/rails/pull/20868
[09:07:24] Andr3as: and to google for inject is a bit of an uphill battle.. given google thinks i am looking for sql injection
[09:08:04] fschuindt: has joined #RubyOnRails
[09:09:03] dminuoso: Andr3as: The way to solve this is by just using ruby.
[09:10:00] dionysus69: so is it possible that duplicate email got registered due to race condition? applies to invalid email as well.
[09:10:35] dminuoso: dionysus69: This is why you should use database constraints to enforce constraints.
[09:11:21] dionysus69: PG::UniqueViolation: ERROR: could not create unique index "index_users_on_email"
[09:11:29] dionysus69: isn't this a db constraint?
[09:11:48] dminuoso: No this is an error that it cant create that constraint.
[09:12:05] dminuoso: For whatever reason.
[09:12:21] dionysus69: t.index ["email"], name: "index_users_on_email", unique: true
[09:12:44] mikecmpbll: has joined #RubyOnRails
[09:12:49] dionysus69: is there something I am missing? as far as I know I have db constraint atm
[09:13:33] dionysus69: or do i need to specify uniqueness on t.string "email", null: false too? like t.string "email", null: false, unique: true?
[09:15:46] dminuoso: No you dont.
[09:15:56] dminuoso: You are trying to add a database constraint.
[09:15:58] dminuoso: https://gist.github.com/anonymous/60f8bfcf23c39f537a0d04f717f30763#file-20171130193159_devise_token_auth_create_users-rb-L18
[09:16:01] acosonic: has joined #RubyOnRails
[09:16:12] dminuoso: And its failing because the data you already have dont satisfy that constraint.
[09:16:32] dionysus69: oh I see, so it didn't have it before this migration...
[09:17:12] dionysus69: the app I am working on isn't created by me so, it's weird creator would omit such constraint
[09:17:17] dionysus69: at least now it has
[09:20:26] mikecmpbll: has joined #RubyOnRails
[09:29:57] mitt3ns: has joined #RubyOnRails
[09:32:11] acosonic: has joined #RubyOnRails
[09:37:55] marr: has joined #RubyOnRails
[09:51:51] blackmesa1: has joined #RubyOnRails
[10:02:32] doublemalt_: has joined #RubyOnRails
[10:07:05] srinidhi: has joined #RubyOnRails
[10:07:18] mtkd: has joined #RubyOnRails
[10:10:03] maciuszek: has joined #RubyOnRails
[10:14:23] arBmind: has joined #RubyOnRails
[10:15:56] daxroc: has joined #RubyOnRails
[10:25:14] tjbp: has joined #RubyOnRails
[10:38:12] Sylario: has joined #RubyOnRails
[10:39:50] drowze: has joined #RubyOnRails
[10:45:25] tjbp: has joined #RubyOnRails
[10:54:10] sevenseacat: has joined #RubyOnRails
[10:58:37] apparition: has joined #RubyOnRails
[11:08:46] arBmind: has joined #RubyOnRails
[11:14:29] srinidhi: has joined #RubyOnRails
[11:18:42] lupine: has joined #RubyOnRails
[11:19:20] macxim: has joined #RubyOnRails
[11:22:13] conorbroderick: has joined #RubyOnRails
[11:27:53] fschuindt: has joined #RubyOnRails
[11:34:51] S007: has joined #RubyOnRails
[11:38:34] noocx: has joined #RubyOnRails
[11:40:28] marr: has joined #RubyOnRails
[11:46:23] lunarkitty7: has joined #RubyOnRails
[11:46:46] Jameser: has joined #RubyOnRails
[12:00:11] uksio: has joined #RubyOnRails
[12:12:23] mtkd: has joined #RubyOnRails
[12:12:32] DTZUZO: has joined #RubyOnRails
[12:15:18] Tempesta: has joined #RubyOnRails
[12:28:36] noocx: not ror, but can you tell me please if its ok or need to get rvm is a function? type rvm | head -n 1
[12:28:36] noocx: rvm is /home/noocx/.rvm/bin/rvm
[12:29:41] noocx: sorry, now its ok
[12:34:13] noocx: just .bash_profile didn't run
[12:36:34] Jameser: has joined #RubyOnRails
[12:52:28] cschneid: has joined #RubyOnRails
[13:04:55] blackmesa1: has joined #RubyOnRails
[13:06:24] truenito: has joined #RubyOnRails
[13:10:27] Barrt: has joined #RubyOnRails
[13:13:12] Technodrome: has joined #RubyOnRails
[13:26:52] Jameser: has joined #RubyOnRails
[13:42:00] mostlybadfly: has joined #RubyOnRails
[13:44:58] mikeyhew: has joined #RubyOnRails
[13:47:07] mikeyhew: Is there a way to pass command-line options/arguments to a rails application template (http://guides.rubyonrails.org/rails_application_templates.html)?
[13:50:30] Technodrome: has joined #RubyOnRails
[13:58:27] mitt3ns: has joined #RubyOnRails
[13:59:38] Barrt: has joined #RubyOnRails
[14:13:10] Technodrome: has joined #RubyOnRails
[14:24:10] safetypin: has joined #RubyOnRails
[14:24:37] mtkd: has joined #RubyOnRails
[14:30:25] mcr1: has joined #RubyOnRails
[14:35:49] dionysus69: has joined #RubyOnRails
[14:38:57] DTZUZO: has joined #RubyOnRails
[14:43:57] arBmind: has joined #RubyOnRails
[14:47:09] _ritchie_: has joined #RubyOnRails
[15:14:38] tcopeland: has joined #RubyOnRails
[15:16:13] conorbroderick: mikeyhew: What's the use case there?
[15:19:14] danguita: has joined #RubyOnRails
[15:25:56] apeiros: has joined #RubyOnRails
[15:26:30] apeiros: has joined #RubyOnRails
[15:27:22] Technodrome: has joined #RubyOnRails
[15:27:42] ravster: has joined #RubyOnRails
[15:29:28] ravster: I'm using actionmailer backed by sidekiq. When I run 'deliver_now', I get an exception, but when I run 'deliver_later', no exception is thrown and nothing shows up in the logs. How do I get exceptions in actionmailer to bubble up?
[15:29:45] ravster: I tried setting raise-delivery-errors, but it doesn't seem to work.
[15:30:55] tbuehlmann: do you deliver them at all?
[15:35:51] ravster: No, because the error was still thrown
[15:36:34] ravster: I have fixed the error, and I'm able to send emails successfully now, but I'd like to set this up so that if something goes wrong in the future, I'll get errors showing in the logs and in Sentry (so its easier to debug).
[15:48:15] cagmz: has joined #RubyOnRails
[15:48:18] KeyJoo: has joined #RubyOnRails
[16:00:31] arBmind: has joined #RubyOnRails
[16:00:48] srinidhi: has joined #RubyOnRails
[16:01:30] Exhiled: has joined #RubyOnRails
[16:02:09] arpu: has joined #RubyOnRails
[16:02:10] urk187: has joined #RubyOnRails
[16:03:15] troys: has joined #RubyOnRails
[16:03:44] urk187: has joined #RubyOnRails
[16:06:16] crova: has joined #RubyOnRails
[16:06:18] Technodrome: has joined #RubyOnRails
[16:14:09] cschneid: has joined #RubyOnRails
[16:28:30] drowze: has joined #RubyOnRails
[16:29:23] mtkd: has joined #RubyOnRails
[16:29:40] drowze: has joined #RubyOnRails
[16:31:40] ravster: has joined #RubyOnRails
[16:35:08] Puffball: has joined #RubyOnRails
[16:35:51] crova: Greetings everyone! Anyone have an idea why this works on console but not on the app: https://gist.github.com/crova/d8553b17029d53b8087e13f4a9bcd460 I have no error messages whatsoever, the routine just don't get executed. Cheers
[16:37:18] Technodrome: has joined #RubyOnRails
[16:38:14] srinidhi: has joined #RubyOnRails
[16:44:00] moei: has joined #RubyOnRails
[16:50:27] crova: nvm , I got it working, cheers
[16:52:37] fschuindt: has joined #RubyOnRails
[16:53:20] amperry: has joined #RubyOnRails
[16:55:01] dionysus69: has joined #RubyOnRails
[16:55:09] amperry: hi folks, having a problem running 'bundle install', getting error: 'error: cannot open .git/FETCH_HEAD: Permission denied' and a message: If this error persists you could try removing the cache directory '/home/<me>/.bundle/cache/git/best_in_place-4781228d838c514bcc6983421ccace8ddeb89a83'
[16:55:26] amperry: but removing the cache directory doesn't change anything
[16:55:32] drowze: has joined #RubyOnRails
[17:03:03] Exhiled: has joined #RubyOnRails
[17:03:50] one_zero: has joined #RubyOnRails
[17:04:26] francuz_: has joined #RubyOnRails
[17:04:26] francuz_: has left #RubyOnRails: ()
[17:04:26] francuz_: has joined #RubyOnRails
[17:06:39] blackmesa1: has joined #RubyOnRails
[17:07:07] noob_on_rails: has joined #RubyOnRails
[17:07:14] jnollette: has joined #RubyOnRails
[17:08:25] one_zero: has joined #RubyOnRails
[17:09:52] noob_on_rails: hey all , if i understand correctly , .uniq will return an unchanged array if there are no changes made , but uniq! will make the same array nil if no changes are made?
[17:10:16] Technodrome: has joined #RubyOnRails
[17:11:15] nogic: has joined #RubyOnRails
[17:12:49] havenwood: noob_on_rails: It won't make the Array `nil` or mutate it at all, but it will return `nil`.
[17:12:58] havenwood: >> a = []; a.uniq!; a
[17:13:30] conta: has joined #RubyOnRails
[17:13:37] noob_on_rails: if i a = [1,2,3,4,5].uniq i get >a #=> = [1,2,3,4,5]
[17:13:54] noob_on_rails: if i a = [1,2,3,4,5].uniq! i get >a #=> nil
[17:14:13] noob_on_rails: hmm yea , i phrased it
[17:15:47] conta3: has joined #RubyOnRails
[17:17:08] dminuoso: ACTION throws a crown cap at havenwood's head
[17:23:03] noob_on_rails: darn , GIL is so frustrating , why isnt there an option to override it :p
[17:28:53] dminuoso: noob_on_rails: If you dont understand the answer to that question, then you don't understand the GIL.
[17:29:08] noob_on_rails: i'd take the risk :p
[17:29:15] dminuoso: Do you know what the risk is?
[17:29:22] dminuoso: Ruby seg faulting regularly.
[17:29:49] dminuoso: Or ruby producing wrong output. Ruby having completely wrong behavior from any threads perspectiev.
[17:29:54] dminuoso: Or seg faulting.
[17:30:07] noob_on_rails: seg fault would be bad
[17:30:12] dminuoso: Yeah wouldn't it.
[17:30:24] noob_on_rails: but not so correct results would be kinda ok
[17:30:47] dminuoso: noob_on_rails: No I dont think you understand what I mean. The thing is the actual Ruby VM is not thread safe.
[17:31:00] dminuoso: So race conditions could seriously corrupt the internal ruby state and cause anything basically.
[17:31:09] dminuoso: Eventually seg faulting
[17:31:26] noob_on_rails: why is ruby even proposing threads then
[17:31:29] dminuoso: Im not talking about variables and objects as you see them, but the actual internal state of the program ruby itself.
[17:31:46] dminuoso: noob_on_rails: Because there are cases when the GVL can be unlocked, and that's every time a syscall is made.
[17:32:39] dminuoso: And the most interesting kind of syscall, is blocking syscalls, blocking IO in particular.
[17:32:52] dminuoso: noob_on_rails: Also you still get concurrency.
[17:32:56] dminuoso: Which is still a lot.
[17:33:27] noob_on_rails: i see what you mean
[17:33:55] noob_on_rails: it's just frustrating when you want to do complex/big computations you allways have to leave the rails app
[17:34:11] dminuoso: noob_on_rails: Consider JRuby perhaps.
[17:34:22] dminuoso: They offer proper threads without a disgusting global lock.
[17:34:56] noob_on_rails: never actually got the time to search about it , i have though read that JRuby can run threaded
[17:35:26] dminuoso: Well Ruby can do too (we have gotten native threads a long time ago). But they can do it without a global lock, so they can actually run 2 threads executing ruby code simultaneously.
[17:35:54] noob_on_rails: hmm , in a distributed kind of way
[17:36:13] dminuoso: Yeah. I mean ruby has that too! But it only works if some of those threads are blocking on IO
[17:36:34] dminuoso: So if you have two threads and one is waiting on a network request, then the other is unlocked and can freely run ruby code.
[17:36:59] dminuoso: Which is why things like puma (which are multithreaded) make sense, because there's a lot of time spent in IO
[17:37:30] noob_on_rails: have you every played with ruby mpi ?
[17:37:57] noob_on_rails: that's pretty awesome too , i could drop my time a lot even using Raspberries
[17:38:25] dminuoso: noob_on_rails: The threading situation in MRI will change in ruby 3x3 though.
[17:38:32] dminuoso: It wont be solved elegantly, but well enough.
[17:38:55] noob_on_rails: the thing coming in 2020 ?
[17:39:39] noob_on_rails: also i read Parallel gem , such a hacky approach lol
[17:40:01] dminuoso: I dont know about the timeline.
[17:40:47] noob_on_rails: ah let's hope for threading goodness even if it comes late :D
[17:41:25] dminuoso: noob_on_rails: If you are interested, Koichi (the ruby VM architect) talks about this in here: https://www.youtube.com/watch?v=WIrYh14H9kA
[17:41:56] noob_on_rails: im really intrested in it thanks
[17:42:51] noob_on_rails: remember the recommendation algo we were talking about the other day
[17:43:04] noob_on_rails: altogether its 16 minutes :(
[17:43:19] noob_on_rails: it's unoptimized tho , but still , can't think of a way i'd cut more than 2 mins
[17:43:46] dminuoso: Not using Ruby would be a step.
[17:43:57] noob_on_rails: im kinda ok by using sidekiq
[17:44:01] dminuoso: Direct computational performance in MRI Ruby is absolutely horrid.
[17:44:02] noob_on_rails: but think of the scale
[17:44:24] mikecmpbll: has joined #RubyOnRails
[17:44:31] dminuoso: Mostly because MRI has only a select few weak optimization in the compiler.
[17:45:17] noob_on_rails: Do you think trying to make threading safe && easy can ever work out?
[17:45:27] noob_on_rails: i mean it's a hostile environment by it's own nature :p
[17:45:33] dminuoso: It's absolutely possible..
[17:45:41] dminuoso: Either by changing the programming language and paradigms, or reimplementing.
[17:45:44] dminuoso: JRuby is perfectly thread safe.
[17:46:08] dminuoso: Ruby 3x3 does this by changing internal design.
[17:46:27] dminuoso: noob_on_rails: And other paradigms exist. Elixir/Erlang for example has 0 concurrency issues.
[17:46:30] workmad3: dminuoso: well, you can still write thread-unsafe code in jruby
[17:46:44] noob_on_rails: can you normally use JRuby and put it on rails? sorry for not googling , just asking as a part of the discussion
[17:47:04] dminuoso: noob_on_rails: Yes. You can run Rails with JRuby.
[17:47:21] noob_on_rails: O_O i'm waiting for the 'but'
[17:48:05] workmad3: (and quite easily too... threads as an approach have gotchas and a lot of places you need to be careful with them... the actor concurrency model in erlang/elixir has a lot fewer gotchas for safe operation :) )
[17:48:35] noob_on_rails: workmad3: hmmm , u just added to my homework , darn :D
[17:48:54] workmad3: noob_on_rails: the 'but' is that you need to be aware that some gems may not work... in particular, you tend to need to use JDBC db adapters instead of the standard db gems
[17:48:57] dminuoso: workmad3: Well I meant the JRuby implementation itself is thread safe.
[17:49:07] orbyt_: has joined #RubyOnRails
[17:49:13] dminuoso: So you cant just crash JRuby with a race condition of two threads accessing an array.
[17:49:24] noob_on_rails: you mean memory accessing
[17:49:27] workmad3: dminuoso: well, technically MRI is thread safe in that sense too ;)
[17:49:41] dminuoso: workmad3: Right, my point is just that it wasn't if it wasnt for the GVL.
[17:50:47] dminuoso: But your point is valid
[17:51:55] dminuoso: workmad3: I guess in a way the actor model is kind of smalltalkish.
[17:52:17] Exhiled: has joined #RubyOnRails
[17:59:45] Tempesta: has joined #RubyOnRails
[18:00:00] Dimik: has joined #RubyOnRails
[18:00:01] Tempesta: has joined #RubyOnRails
[18:15:48] amperry: got a problem with updating my Gemfile and running 'bundle install':
[18:15:50] amperry: "If this error persists you could try removing the cache directory '/home/<me>/.bundle/cache/git/best_in_place-4781228d838c514bcc6983421ccace8ddeb89a83'error: cannot open .git/FETCH_HEAD: Permission denied"
[18:16:33] noob_on_rails: amperry: why dont you remove the directory that git's talking about ?
[18:16:50] noob_on_rails: this is more of a git problem rather than a ror one if i remember correctly
[18:17:43] DrYockel: has joined #RubyOnRails
[18:18:17] truenito: has joined #RubyOnRails
[18:18:53] Exhiled: has joined #RubyOnRails
[18:24:20] dminuoso: amperry: My best guess is that at some point you used root (perhaps through sudo). Check the specified file for its owner
[18:24:54] dminuoso: In particular this directory: /home/<me>/.bundle/cache/git/best_in_place-4781228d838c514bcc6983421ccace8ddeb89a83
[18:26:02] amperry: noob_on_rails: I tried that, and it returns, with the same problem.
[18:27:05] noob_on_rails: amperry: but with the same filename ?
[18:27:35] amperry: noob_on_rails: best_in_place- some long hash
[18:28:03] dminuoso: amperry: Check the entire directory hierarchy for ownership and permissions.
[18:28:17] noob_on_rails: hmmm , odd i remember having an issue like that, following git's instructions solved it , but better go with what dminuoso is suggesting
[18:29:21] dminuoso: noob_on_rails: Except this is not a git instruction.
[18:29:52] noob_on_rails: oh true , my bad
[18:30:25] amperry: they belong to the user I'm logged in as.
[18:31:10] amperry: ah, I also missed at the top, "cannot open .git/FETCH_HEAD: Permission denied"
[18:32:38] amperry: which also belongs to me
[18:33:03] amperry: does the install command somehow run as a different user?
[18:33:54] mtkd: has joined #RubyOnRails
[18:35:02] dminuoso: amperry: What user are you executing it as?
[18:35:10] dminuoso: amperry: I still do think you may have screwed up the permissions somewhere
[18:35:18] Exhiled: has joined #RubyOnRails
[18:36:17] amperry: me, which is 'bitnami' on this system.
[18:37:03] dminuoso: amperry: find ~/.bundle ! -user bitname
[18:37:12] dminuoso: If that returns anything, fix it.
[18:37:30] amperry: that's the whole command (i.e., you're telling me to run a "find" command)?
[18:37:42] dminuoso: amperry: with some arguments, yes.
[18:38:25] dminuoso: amperry: this should not return any output.
[18:39:29] amperry: hrm... it returns quite a bit. Let me see if changing all the file ownership to me works.
[18:40:46] dminuoso: amperry: Oh and in case you copied it, I made a typo there `bitname` :-P
[18:40:52] xiljin: has joined #RubyOnRails
[18:41:57] amperry: no problem. changed (recursively) that directory, no luck.
[18:42:08] ElDoggo: has joined #RubyOnRails
[18:42:18] dminuoso: amperry: Permissions could still be off.
[18:42:23] dminuoso: Or just delete it.
[18:42:37] dminuoso: Probably faster.
[18:42:40] amperry: tried that, too
[18:43:26] dminuoso: amperry: Did it recreate those directories? As which user?
[18:43:36] dminuoso: What command are you executing to invoke bundle with?
[18:43:43] dminuoso: And what is the output of `whoami` ?
[18:43:56] amperry: bundle install; whoami => bitnami
[18:44:16] amperry: directories all have bitnami:bitnami as owner, now.
[18:44:44] dminuoso: amperry: Are you on Linux or macOS?
[18:44:59] dminuoso: Id strace it
[18:45:24] dminuoso: Perhaps the path reported is wrong
[18:45:26] ElDoggo: ActionMailer question: is it safe to override the default delivery_method in a mailer?
[18:46:08] ElDoggo: My application default is set to :sendmail
[18:46:14] ElDoggo: but I need to use :smtp in a single mailer
[18:46:17] amperry: how far up that directory (~/.bundle/cache) can I rm things safely?
[18:46:23] ElDoggo: it works, but I'm seeing some interesting errors in production on Unicorn
[18:46:54] dminuoso: amperry: You could technically delete the entirety of ~/.bundle, though there might be a config inside there.
[18:47:12] noob_on_rails: how can i make this return false if the user is not found User.first.friends.find(12312312312) , instead of ActiveRecord::RecordNotFound: Couldn't find User with 'id'=12312312312 [WHERE "friendshi....
[18:47:18] kies: has joined #RubyOnRails
[18:48:01] dminuoso: noob_on_rails: You can use find_by
[18:48:13] noob_on_rails: yea got stuck like a noob :p
[18:49:48] amperry: dminuoso: there's no config directly in the .bundle directory, but there's a ".bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/info/configuration" and a ".bundle/cache/git/best_in_place-4781228d838c514bcc6983421ccace8ddeb89a83/config"
[18:50:02] amperry: I'm guessing those will be rebuilt?
[18:50:23] dminuoso: amperry: Yeah.
[18:50:30] amperry: lemme see, then...
[18:50:40] dminuoso: Worst thing is just that you may have to refetch some gems
[18:50:48] dminuoso: (but bundle will do that for you)
[18:51:35] dminuoso: though you could fix it properly
[18:52:27] amperry: no dice; gonna comment out best_in_place and see if that works
[18:53:19] sameerynho: has joined #RubyOnRails
[18:53:28] amperry: getting farther so far...
[18:53:41] amperry: yup, 'bundle install' works without that gem
[18:54:00] amperry: but I need that gem.
[18:54:00] dminuoso: Can you enable the gem again, and strace it?
[18:54:22] dminuoso: I have a feeling that the path is reported incorrectly.
[18:55:07] amperry: strace puts out a *lot* of info... redirecting to a file. What will I look for?
[18:55:28] dminuoso: amperry: Oh interesting..
[18:55:40] dminuoso: amperry: Well, I'd look at everything. Are you by any chance using rvm?
[18:56:52] dminuoso: Have you tried the magical `rvm fix-permissions` command?
[18:57:01] mcr1: has joined #RubyOnRails
[18:57:27] amperry: nnnnnnnope
[18:57:52] amperry: do I have to 'sudo' that?
[18:58:03] amperry: or would those be the wrong permissions?
[18:58:29] dminuoso: I have no idea. RVM is black magic, hooks shell commands like `cd` and others..
[18:58:38] dminuoso: I dont use it because it causes more problems than it solves.
[18:59:49] amperry: well, trying it as 'bitnami', and didn't have permission; worried that running 'sudo' will change them to the wrong perms.
[19:00:10] dminuoso: No it shouldn't require sudo.
[19:00:18] dminuoso: rvm is a user local installation method
[19:00:28] amperry: iffff I tried running 'sudo bundle install', how fscked am I in the future?
[19:00:40] dminuoso: Probably much :P
[19:01:20] dminuoso: amperry: so the rvm fix-permissions did not solve it?
[19:01:31] havenwood: amperry: There's an `rvmsudo` command that elevates permissions without dropping Ruby-related environment variables, but it sounds like you should fix the permissions instead of randomly elevating.
[19:01:47] amperry: dminuoso: rvm fix-permissions didn't have permissions to change it.
[19:01:57] dminuoso: Yeah it sounds like your rvm setup is broken.
[19:02:05] mustmodify: has joined #RubyOnRails
[19:02:06] havenwood: amperry: Did you install RVM as a non-root user?
[19:02:07] dminuoso: For the same reason that you just used `sudo bundle install`.
[19:02:18] dminuoso: ACTION steps back.
[19:02:19] havenwood: amperry: Is bunder installed with your RVM Ruby?
[19:02:34] havenwood: amperry: gem which bundler
[19:02:51] amperry: havenwood: I did not (to the first question); how would I check (to the second)?
[19:03:08] havenwood: amperry: check: gem which bundler
[19:03:12] havenwood: amperry: and: which bundle
[19:03:14] orbyt_: has joined #RubyOnRails
[19:03:26] havenwood: amperry: If they're not your RVM Ruby, install the Bundler gem with your RVM Ruby: gem install bundler
[19:03:28] amperry: /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.15.1/lib/bundler.rb
[19:04:07] havenwood: amperry: It seems you don't have Bundler installed with your RVM Ruby so when you `bundle` it's falling back to a Bundler gem installed with a system Ruby.
[19:04:11] mustmodify: Is my authenticity token supposed to change every time I restart my app?
[19:04:24] Exhiled: has joined #RubyOnRails
[19:04:27] amperry: havenwood: why would every other gem work?
[19:04:50] havenwood: amperry: you have to install Bundler in Ruby versions before 2.5 - it didn't ship with Ruby
[19:04:54] havenwood: amperry: gem install bundler
[19:05:17] havenwood: amperry: I'd be happy to help sort this out but #ruby or #rvm would probably be better channels.
[19:05:25] dviola: has joined #RubyOnRails
[19:05:26] dminuoso: mustmodify: That depends on what session store you use.
[19:07:38] dminuoso: mustmodify: You can read about the details how CSRF is implemented here: http://guides.rubyonrails.org/security.html#cross-site-request-forgery-csrf
[19:07:50] amperry: havenwood: I'll drop by #ruby
[19:09:41] fryguy: does anybody know how `--exclude` works in `bin/rails test` in 5.0+? I can't seem to find the reference to it in rails codebase
[19:10:48] amperry: has joined #RubyOnRails
[19:11:08] dminuoso: fryguy: What does --exclude do or how is it used?
[19:11:27] dminuoso: fryguy: At any rate, I'd expect the answer to be in minitest.
[19:12:11] dminuoso: fryguy: https://github.com/seattlerb/minitest/blob/master/lib/minitest.rb#L191-L193
[19:12:14] fryguy: dminuoso: exclude is used to exclude tests from a test run, i'm not entirely sure how it's used (whether it takes filename, fileglobs, or test names) which is why i'm trying to look up the code for it since the doc is lacking
[19:12:18] fryguy: i'm looking in minitest now
[19:12:22] dminuoso: fryguy: Yup, that's minitest. Check the link.
[19:13:49] dminuoso: fryguy: The code suggests it's based on method names.
[19:14:00] fryguy: yep that's what i'm seeing too
[19:14:05] dminuoso: https://github.com/seattlerb/minitest/blob/master/lib/minitest.rb#L300-L305
[19:15:57] mattwc: has joined #RubyOnRails
[19:15:58] conta2: has joined #RubyOnRails
[19:16:31] mattwc: if I have a `parent.childen.save` is that expected to trigger the `before_save` callback on the parent?
[19:17:47] _aeris_: has joined #RubyOnRails
[19:19:23] dminuoso: mattwc: What are `parent` and `children` supposed to be?
[19:20:07] mattwc: they're models, like author and books. But I figured it out, books had an after_save callback that modified author
[19:21:39] dminuoso: What you are saying does not compute.
[19:22:09] dminuoso: At any rate, ActiveRecord::Associations::CollectionProxy do not have .save
[19:24:12] apeiros: has joined #RubyOnRails
[19:26:07] blackmesa1: has joined #RubyOnRails
[19:32:36] chouhoulis: has joined #RubyOnRails
[19:33:19] chouhoulis: has joined #RubyOnRails
[19:38:36] ravster: has joined #RubyOnRails
[19:39:21] jammanbo: has joined #RubyOnRails
[19:41:06] jammanbo: Anyone got any tips for tracking down the cause of incorrect line numbers in a stack trace?
[19:45:43] mustmodify: @mdinuoso: thanks
[19:45:58] dminuoso: jammanbo: killing spring.
[19:47:08] dminuoso: Beyond spring having a different code loaded than on your harddrive, it should not be possible for a stack trace to not fit.
[19:48:04] dminuoso: jammanbo: Normally yes. Can you share your exception and the file where it does not line up in a gist?
[19:48:43] jammanbo: Oh I see. I doubt that's it but sure I'll try anything. I think there's something in either the prawn or prawn-rails gem that is screwing it up ... The reported line is always 7 beyond the actual error (in my code). Really frustrating.
[19:49:12] LateralOctober: has joined #RubyOnRails
[19:49:31] jammanbo: Does DISABLE_SPRING=1 still suffice?
[19:50:02] dminuoso: jammanbo: Yes.
[19:50:40] dminuoso: jammanbo: Also what ruby interpreter (type/version) are you running?
[19:51:51] arBmind: has joined #RubyOnRails
[19:52:15] hailey27: has joined #RubyOnRails
[19:55:20] Technodrome: has joined #RubyOnRails
[19:57:55] dminuoso: jammanbo: If the problem still persists, please share the exception including the full stacktrace, as well as the full file where the stacktrace does not line up.
[19:58:54] conta2: has joined #RubyOnRails
[20:00:47] jammanbo: Actually, I found it. It is the prawn-rails gem. https://github.com/cortiz/prawn-rails/blob/master/lib/prawn-rails/renderer.rb#L6
[20:01:39] jammanbo: The number of lines in there determines the line number error.
[20:01:54] dminuoso: What is that..
[20:02:15] dminuoso: jammanbo: Please gist the stack trace.
[20:02:57] mustmodify: has left #RubyOnRails: ()
[20:06:03] dminuoso: If a stacktrace does not line up with actual ruby code it's a ruby bug, so I would like to see it.
[20:09:43] jammanbo: No it's grand, the problem is with the gem. prawn-rails gives lets you create .pdf.prawn templates, but the renderer is effectively prepending those lines to your template, hence when there's an error on line n of your template file, its actually on line n-7 of the template that this gem constructs.
[20:10:17] dminuoso: So I guess you're not gonna let me see the stacktrace.
[20:10:43] dminuoso: But.. I think I get what you are saying.
[20:10:51] dminuoso: So the ruby files are modified before execution?
[20:11:01] dminuoso: Or rather you are seeing stack traces on files that dont exist.
[20:11:01] jammanbo: Yeah effectively.
[20:11:15] dminuoso: jammanbo: Can I still please see the stacktrace.
[20:16:02] emerson: has joined #RubyOnRails
[20:16:37] jammanbo: There's really nothing to see. Error on line 6 of a two line file, https://pastebin.com/wcKPCQUx
[20:19:03] dminuoso: jammanbo: That stack trace is absolutely accurate.
[20:19:12] dminuoso: Had you shown this from the beginning you could have saved myself some time.
[20:21:10] jammanbo: Um, sorry... To be fair I did say 20 minutes ago that I'd figured it out ...
[20:24:54] Aherin: has joined #RubyOnRails
[20:30:59] barhum2013: has joined #RubyOnRails
[20:32:11] barhum2013: I am having an issue with the following running rspec = capybara-screenshot could not detect a screenshot driver for 'poltergeist_debug’. I have already installed gem poltergeist and phantomjs. Anybody has had a similar issue?
[20:32:17] doublemalt_: has joined #RubyOnRails
[20:33:57] dminuoso: barhum2013: poltergeist_debug is not a valid driver.
[20:34:15] dminuoso: The valid drivers can be found here: https://github.com/mattheworiordan/capybara-screenshot/blob/master/lib/capybara-screenshot.rb#L146-L193
[20:34:52] dminuoso: barhum2013: Also at this time I would point out the awesomeness of selenium chrome headless.
[20:35:21] orbyt_: has joined #RubyOnRails
[20:37:47] barhum2013: dminuoso: Hmmm, it was working before. Just had this error on a new machine I am setting up.
[20:38:52] cgfbee: has joined #RubyOnRails
[20:38:59] crova: has joined #RubyOnRails
[20:39:10] mtkd: has joined #RubyOnRails
[20:39:14] dminuoso: barhum2013: How are you configuring capybara-screenshot?
[20:42:34] barhum2013: dminuoso: I just see the following in codebase https://pasteboard.co/GX0hPFZ.png
[20:47:57] mikeyhew: has joined #RubyOnRails
[20:47:57] lurkingninja: has joined #RubyOnRails
[20:47:57] Takumo: has joined #RubyOnRails
[20:47:57] duderonomy: has joined #RubyOnRails
[20:47:57] newton: has joined #RubyOnRails
[20:47:57] Hosh: has joined #RubyOnRails
[20:47:57] Nitrodist: has joined #RubyOnRails
[20:47:58] crova: Folks, I created a scaffold named "Segment" and I'm getting error "NoMethodError" in Segments#new https://gist.github.com/crova/3cdf069c81cfdf80ccadf809c18b1bb8 anyone got any insight?
[20:48:03] uksio: has joined #RubyOnRails
[20:48:03] ProofTechnique: has joined #RubyOnRails
[20:48:03] fryguy: has joined #RubyOnRails
[20:48:03] michael_mbp: has joined #RubyOnRails
[20:48:03] n88: has joined #RubyOnRails
[20:48:03] bazzy: has joined #RubyOnRails
[20:48:03] swgillespie: has joined #RubyOnRails
[20:48:24] mtkd: has joined #RubyOnRails
[20:48:50] swgillespie: has joined #RubyOnRails
[20:48:58] uksio: has joined #RubyOnRails
[20:49:09] Takumo: has joined #RubyOnRails
[20:50:26] crova: nvm, I'm stupid, forgot something on the db
[20:51:16] michael_mbp: has joined #RubyOnRails
[20:51:47] dminuoso: crova: Next time please take the time to a) indent code properly, and b) rename files with file extensions so that syntax hilighting is automatically enabled.
[20:53:01] barhum2013: dminuoso: switchting to selenium will break many tests
[20:55:29] dminuoso: barhum2013: At any rate. You are using a driver for which capybara-screenshot has no screenshot driver.
[20:56:30] crova: @dminuoso, gotcha, thanks for the input
[21:05:40] workmad3: has joined #RubyOnRails
[21:09:24] orbyt_: has joined #RubyOnRails
[21:10:59] Exhiled: has joined #RubyOnRails
[21:15:26] barhum2013: has joined #RubyOnRails
[21:17:34] Hates_: has joined #RubyOnRails
[21:17:59] conta1: has joined #RubyOnRails
[21:23:03] barhum2013: dminuoso: Thanks for the tip, I think I will switch over and clean up this mess.
[21:25:39] orbyt_: has joined #RubyOnRails
[21:34:25] Radar: GOOD MORNING
[21:35:25] dminuoso: Radar: !ALLCAPS
[21:35:25] helpa: Radar: PLEASE DON'T USE ALL CAPS. IT'S EQUIVALENT TO SHOUTING IN SOMEONE'S EAR FROM 2 INCHES AWAY.
[21:35:51] dminuoso: Been waiting for like 3 days for this.
[21:40:10] ahrs: has joined #RubyOnRails
[21:41:07] DTZUZO: has joined #RubyOnRails
[21:52:58] fschuindt: has joined #RubyOnRails
[21:55:21] chiggins: has left #RubyOnRails: ("WeeChat 1.7.1")
[22:02:07] troys: has joined #RubyOnRails
[22:02:07] TinkerTyper: has joined #RubyOnRails
[22:02:07] sunrunner20: has joined #RubyOnRails
[22:02:07] Liothen: has joined #RubyOnRails
[22:02:07] wilornel: has joined #RubyOnRails
[22:02:07] freedrull: has joined #RubyOnRails
[22:02:07] kitallis: has joined #RubyOnRails
[22:02:07] veloutin: has joined #RubyOnRails
[22:02:07] TvL2386: has joined #RubyOnRails
[22:02:07] sung: has joined #RubyOnRails
[22:02:08] bphogan: has joined #RubyOnRails
[22:07:04] Puffball: has joined #RubyOnRails
[22:07:34] sunrunner20: has joined #RubyOnRails
[22:13:07] PresidentBiscuit: has joined #RubyOnRails
[22:15:23] Exhiled: has joined #RubyOnRails
[22:23:49] Dimik: has joined #RubyOnRails
[22:35:46] amperry: I have a model, Ledger, which belongs_to Placement, which has_one Lease and has_many Residents. For efficiency's sake, if I want to do a query that joins to ledger, is this useful --> .joins(leger: [placement: [:residents, :lease]]) <-- or is that handled automatically by the associations?
[22:37:19] amperry: that is to say, I want all of these pulled in on the query, for display in the view.
[22:38:45] drowze: has joined #RubyOnRails
[22:43:27] mtkd: has joined #RubyOnRails
[22:44:19] ahrs: has joined #RubyOnRails
[22:52:48] alexertech: has joined #RubyOnRails
[22:54:20] xploshioon: has joined #RubyOnRails
[22:55:25] workmad3: has joined #RubyOnRails
[22:57:15] Technodrome: has joined #RubyOnRails
[23:00:18] xploshioon: hello guys, I am having a problem with ransack, I have this https://gist.github.com/xploshioOn/9b6d75bd48564d8459df46d1961a1083 it seems that the request is doing good, but the query isn't done, and after clicking on search, the form is empty, even when the values are on the url, thanks
[23:00:59] xploshioon: it's like ransack is ignoring the params and not firing the search
[23:02:39] cagomez: has joined #RubyOnRails
[23:04:40] xploshioon: it can cause a problem if the model is called "Record"?
[23:04:58] blackmesa1: has joined #RubyOnRails
[23:11:02] havenwood: xploshioOn: Yeah, that's a potential problem. See: https://reservedwords.herokuapp.com
[23:11:07] Welcius: has joined #RubyOnRails
[23:12:56] mcr1: has joined #RubyOnRails
[23:13:15] Welcius: Hello! I am trying to upload a file submitted using multipart/form-data to a collection of files of a model that uses the Carrierwave gem
[23:13:42] Welcius: Anyone can give me a hand? I've been trying to find a solution for hours and I haven't found anything
[23:20:42] xploshioon: ok, thanks @havenwood, I changed the model, routes, table and all the views that work with that, but still have the problem with ransack, do you see something wrong there? thanks
[23:25:01] urk187: has joined #RubyOnRails
[23:26:47] ravster: has joined #RubyOnRails
[23:32:10] orbyt_: has joined #RubyOnRails
[23:43:38] Exhiled: has joined #RubyOnRails
[23:46:16] francuz: has joined #RubyOnRails
[23:57:47] hervie: has joined #RubyOnRails