« Back to channel list

#RubyOnRails - 11 April 2018

« Back 1 day Forward 1 day »
[00:00:05] duderonomy: has joined #RubyOnRails
[00:03:21] snc123: I decided to build a web app first with all the functionality I want to practice then learn about more about using Rails for API's then go from there.. any suggestions for authentication? I have been searching for an answer to this and haven't really gotten a clear answer
[00:07:44] workmad3: has joined #RubyOnRails
[00:08:41] ebsen: has joined #RubyOnRails
[00:25:31] emers2n: has joined #RubyOnRails
[00:25:53] emers2n: snc123: My IRC client timed out... If it wasn't answered... What kind of authentication are you looking for?
[00:28:03] baweaver: Hartl's book covers Devise
[00:28:09] baweaver: I'd just use that
[00:29:54] ur5us: has joined #RubyOnRails
[00:31:40] emers2n: +1 for Devise
[00:32:43] emers2n: As a newb to rails I had no problems getting Devise running... Lots of guides and tutorials out there too to follow along
[00:39:33] snc123: okay so here is where I am confused.. but would it make sense to have the user sign in/up through devise and use JWT's to pass data?
[00:40:37] snc123: i think this is where my lack of computer science degree may start to hinder me.. when it comes to how things work under the magic of rails.. i understood most things up until now
[00:40:47] opekktar_: has joined #RubyOnRails
[00:46:08] duderonomy: has joined #RubyOnRails
[00:51:54] orbyt_: has joined #RubyOnRails
[00:53:30] cagomez: has joined #RubyOnRails
[01:21:06] s2013: has joined #RubyOnRails
[01:24:39] xco: has joined #RubyOnRails
[01:29:45] orbyt_: has joined #RubyOnRails
[01:41:16] xco: has left #RubyOnRails: ()
[01:44:46] sameerynho: has joined #RubyOnRails
[01:56:36] tdy: has joined #RubyOnRails
[02:06:37] cam27: has joined #RubyOnRails
[02:07:12] workmad3: has joined #RubyOnRails
[02:16:36] ur5us: has joined #RubyOnRails
[02:19:24] andrewray: has joined #RubyOnRails
[02:20:16] jottr: has joined #RubyOnRails
[02:21:46] Saukk: has joined #RubyOnRails
[02:49:46] blackchalk: has joined #RubyOnRails
[02:50:55] ivanskie: has joined #RubyOnRails
[02:54:05] darkhanb: has joined #RubyOnRails
[02:58:39] emers2n: has joined #RubyOnRails
[03:12:30] kapil___: has joined #RubyOnRails
[03:16:37] LateralO1: has joined #RubyOnRails
[03:24:21] ur5us: has joined #RubyOnRails
[03:36:21] tdy1: has joined #RubyOnRails
[03:38:08] ur5us: has joined #RubyOnRails
[04:06:36] workmad3: has joined #RubyOnRails
[04:07:16] snc123: has joined #RubyOnRails
[04:07:47] ur5us: has joined #RubyOnRails
[04:07:52] ivanskie: anyone here using acts_as_taggable_on with :uuid ?
[04:07:59] ivanskie: its giving me a lot of grief
[04:15:09] kt: has joined #RubyOnRails
[04:43:41] KeyJoo: has joined #RubyOnRails
[04:44:40] KeyJoo: has joined #RubyOnRails
[04:50:50] MrCrackPotBuilde: how can i select this image from json api call "images"=>["https://i5.walmartimages.com/asr/106571c2-832b-4247-8557-54ebe93c9a96_1.45a720c109d0e56be9ce583e79b64933.jpeg"],
[04:51:20] MrCrackPotBuilde: @ouput['products'][0]'[images'] does work and in the console returns => nil
[04:57:57] havenwood: MrCrackPotBuilde: What is `@ouput['products'][0]`? Is it a Hash? What keys does it have? I'm sure someone here can help if you gist the actual return values.
[04:58:00] Technodrome: has joined #RubyOnRails
[04:58:11] Technodrome: anyone know a company hiring rails dev's currently?
[04:58:24] MrCrackPotBuilde: i can post a paste bin
[04:58:43] MrCrackPotBuilde: but its a ruby hash
[04:58:45] MrCrackPotBuilde: @output['products'][0]
[04:58:47] MrCrackPotBuilde: => {"url"=>"http://omgili.com/ri/.wHSUbtEfZTzBH6c9Z4cI15_sA3Hthoy48U8beRZ_m5lA7IjRC07KAl_t9PZZTUpVyIElYRPNwESkpgWrFuLtCsKQ1Apdjx_jld142pfHUAdippyPkgHob2bwpktxkzZqvVelr3L3OOq9qp5XCHXEYkx1GYb0O_awd5Z8FnemrBnhIJ4ZIOaKn7WinS9k36LajW78ScZZFngDQem4_p6BKrC02m1OhRc", "uuid"=>"bc54af0e0b4da231cad1a1352544fd3e6c234c68", "source"=>{"site_full"=>"www.walmart.com", "site"=>"walmart.com", "site_section"=>"https://www.walmart.com/", "section_title"=>"Wa
[04:58:47] MrCrackPotBuilde: lmart.com: Free 2-Day Shipping on Millions of Items", "country"=>"US"}, "name"=>"DIY Home Security for Preppers: 16 DIY Home Security Projects to Protect Your Family from Any Disaster: (Home Security Arduino, Home Security Raspberr", "description"=>"Getting Your FREE Bonus Download this book, read it to the end and see \"BONUS: Your FREE Gift\" chapter after the conclusion. DIY Home Security for Preppers (FREE Bonus Included) 16 DIY Home
[04:58:48] MrCrackPotBuilde: Security Projects To Protect Your Family From Any Disaster", "brand"=>"", "price"=>8.95, "currency"=>"$", "offer_price"=>7.46, "model"=>nil, "manufacturer"=>nil, "in_stock"=>true, "on_sale"=>true, "product_id"=>"53228544", "sku"=>nil, "mpn"=>nil, "colors"=>[], "aggregated_rating"=>nil, "best_rating"=>nil, "worst_rating"=>nil, "rating_count"=>nil, "reviews_count"=>nil, "categories"=>["equipment, appliances & supplies", "books", "house &
[04:58:53] MrCrackPotBuilde: home", "home page", "travel", "house, home & gardening", "toys-hobbies"], "width"=>nil, "height"=>nil, "weight"=>nil, "depth"=>nil, "images"=>["https://i5.walmartimages.com/asr/8db293c3-165e-4d4c-85bd-0d07390211f1_1.4f4822a5adfdb0ade9491a1a4db775e9.jpeg"], "language"=>"english", "last_changed"=>"2017-10-10T06:22:00.000+03:00", "crawled"=>"2017-10-10T06:22:00.000+03:00", "product_history"=>"/productHistory?token=b0a6c338-0c8a-4ece-82ee-b374
[04:59:00] MrCrackPotBuilde: 101d9fcb&productId=http%3A%2F%2Fomgili.com%2Fri%2F.wHSUbtEfZTzBH6c9Z4cI15_sA3Hthoy48U8beRZ_m5lA7IjRC07KAl_t9PZZTUpVyIElYRPNwESkpgWrFuLtCsKQ1Apdjx_jld142pfHUAdippyPkgHob2bwpktxkzZqvVelr3L3OOq9qp5XCHXEYkx1GYb0O_awd5Z8FnemrBnhIJ4ZIOaKn7WinS9k36LajW78ScZZFngDQem4_p6BKrC02m1OhRc"}
[04:59:09] havenwood: MrCrackPotBuilde: Use a gist, please.
[04:59:12] MrCrackPotBuilde: images is a hash key but its value is an array
[05:00:39] havenwood: Technodrome: I know the Slack Rails channel has a hiring channel that always seems active. Asking about remote or any particular locattion?
[05:01:09] Technodrome: hi havenwood , well I think he is in the bay area
[05:01:22] Technodrome: so he should be ok with local, just dont have anything for him right now
[05:01:57] havenwood: Technodrome: It seems a lot of folk are hiring Rails devs in SF.
[05:02:15] Technodrome: yeah indeed shows quite a few
[05:02:21] havenwood: Technodrome: Square is hiring in SF. :-)
[05:02:37] Technodrome: I'll tell him , isn't that where you work?
[05:03:08] havenwood: Technodrome: Feel free to point him my way, if there's anything I can help with.
[05:03:40] Technodrome: just curious but what is their expectations daily for a dev? Do you commit daily pretty much?
[05:04:59] Technodrome: i always wonder how those larger startups handle that stuff
[05:05:13] MrCrackPotBuilde: https://gist.github.com/scope2229/9a4f6dc4f84144497d76efea260df51a
[05:06:06] havenwood: Technodrome: There's not much focus on that small of a time slice, but yeah I think it's probably normal to commit something on any given day.
[05:06:40] cdabba: has joined #RubyOnRails
[05:06:57] Technodrome: well, i know at microsoft many teams have minimum commit levels or something, they expect to see >100 lines of new code per day , or 100 line of changes
[05:07:18] MrCrackPotBuilde: thats the return of @output['products'][0] i can select name brand price description anything that doesnt have an array or object as a value :(
[05:07:22] Technodrome: so there is a ton of "refectoring" always going on
[05:07:27] havenwood: Technodrome: That doesn't sound very healthy. :-O
[05:08:33] Technodrome: i just finished a pretty decent size rails project myself, well small in reality, big to me
[05:09:31] havenwood: MrCrackPotBuilde: @output['products'][0]['images'] #=> ["https://i5.walmartimages.com/asr/8db293c3-165e-4d4c-85bd-0d07390211f1_1.4f4822a5adfdb0ade9491a1a4db775e9.jpeg"]
[05:09:40] cdabba: if I have a name field for something like Car, in Rails 4, how can I correctly write this line of the Person model: has_many :cars, -> { order('cars.name') }
[05:10:15] Technodrome: i got a django project i've sorted signed up for, but i have to travel some for it, plus i would rather just work in rails I think
[05:10:23] cdabba: ex: I want Person.find(1).cars to return the cars alphabetized by car name
[05:10:24] havenwood: cdabba: Doesn't has_many take an: order:
[05:11:11] havenwood: cdabba: oh, nvm me
[05:11:18] MrCrackPotBuilde: havenwood problem is when i put that inside a image_tag it wont load
[05:11:47] MrCrackPotBuilde: im not able to loop through the products with images either
[05:17:12] LateralOctober: has joined #RubyOnRails
[05:20:54] reber: has joined #RubyOnRails
[05:23:08] MrCrackPotBuilde: another problem i come into when trying different loops and imagetags is an asset pipeline error
[05:23:24] MrCrackPotBuilde: but the image isnt in the pipeline its in the json file
[05:31:09] kurko_: has joined #RubyOnRails
[05:33:06] jottr: has joined #RubyOnRails
[05:35:02] cdabba: havenwood: I found the problem, I had it correct, but I had :inverse_of as the second argument when it should have been after the "-> { order 'cars.name' }"
[05:36:37] sidx64: has joined #RubyOnRails
[06:01:28] andrewray: has joined #RubyOnRails
[06:02:26] andrewray: has joined #RubyOnRails
[06:02:26] dionysus69: has joined #RubyOnRails
[06:03:08] andrewray: has joined #RubyOnRails
[06:03:46] andrewray: has joined #RubyOnRails
[06:04:07] s2013: has joined #RubyOnRails
[06:04:32] andrewray: has joined #RubyOnRails
[06:05:17] andrewray: has joined #RubyOnRails
[06:06:01] workmad3: has joined #RubyOnRails
[06:06:12] andrewray: has joined #RubyOnRails
[06:11:21] jottr: has joined #RubyOnRails
[06:17:28] apeiros: has joined #RubyOnRails
[06:30:32] mtkd: has joined #RubyOnRails
[06:39:00] sidx64_: has joined #RubyOnRails
[06:40:40] ss942: has joined #RubyOnRails
[06:42:55] ss942: Helllo, I have some pretty huge (at least for me) projecet from github, and I want to figure out what records in database are populated with what after sending each form (POST) in template. Any tips on where to start if I want to track it?
[06:43:45] sidx64: has joined #RubyOnRails
[06:45:25] dminuoso: ss942: Generally you could simply check out the log (you might have to set the logger level).
[06:46:01] dminuoso: ActiveRecord is configured that it will log each query it submits at DEBUG level.
[06:47:36] ss942: dminuoso: That's great! Thank you very much
[06:56:11] jottr: has joined #RubyOnRails
[06:58:28] helpa: has joined #RubyOnRails
[06:59:06] helpa: has joined #RubyOnRails
[07:00:42] Radar: has joined #RubyOnRails
[07:01:05] dminuoso: HALLO RADAR
[07:01:29] Radar: !botsnack
[07:01:29] helpa: Nom nom. Thanks, Radar!
[07:01:42] Radar: holy shit I was able to do an ubuntu upgrade without destroying my box
[07:01:54] Radar: 16.10 -> 17.04
[07:02:04] Radar: (needed an updated version of libssh for... reasons)
[07:02:11] Radar: anyway, with that done... time to head home!
[07:06:01] dminuoso: Radar: If you want to destroy your box, install an older kernel and `rm -rf --no-preserve-root /`
[07:06:21] dminuoso: And watch it brick your motherboard.
[07:07:44] ivanskie: has joined #RubyOnRails
[07:17:50] LateralO1: has joined #RubyOnRails
[07:32:35] jottr: has joined #RubyOnRails
[07:43:28] marr: has joined #RubyOnRails
[07:44:27] elcms: has joined #RubyOnRails
[07:47:59] mikecmpbll: has joined #RubyOnRails
[08:02:31] defsdoor: has joined #RubyOnRails
[08:05:24] workmad3: has joined #RubyOnRails
[08:09:17] morfin60: has joined #RubyOnRails
[08:10:41] jordansz: has joined #RubyOnRails
[08:20:37] Ergo: has joined #RubyOnRails
[08:22:59] mtkd: has joined #RubyOnRails
[08:30:44] lord4163: has joined #RubyOnRails
[08:37:04] tejasmanohar: has joined #RubyOnRails
[08:49:24] alfiemax: has joined #RubyOnRails
[08:51:07] srinidhi: has joined #RubyOnRails
[09:06:33] cschneid_: has joined #RubyOnRails
[09:11:06] rikkipitt: has joined #RubyOnRails
[09:15:45] workmad3: has joined #RubyOnRails
[09:18:32] LateralOctober: has joined #RubyOnRails
[09:18:58] mauro1254: has joined #RubyOnRails
[09:19:30] cabotto: has joined #RubyOnRails
[09:22:34] mauro1254: Hi folks. In which case is table collation specified in schema.rb? I'm asking because for certain tables it is specified, for other tables it isn't.
[09:22:56] mauro1254: Btw I'm using MySQL.
[09:30:02] srinidhi: has joined #RubyOnRails
[09:36:37] mtkd: has joined #RubyOnRails
[09:46:21] srinidhi: has joined #RubyOnRails
[09:50:11] ur5us: has joined #RubyOnRails
[09:50:20] marr: has joined #RubyOnRails
[09:54:15] ariejan: has joined #RubyOnRails
[09:57:00] one_zero: has joined #RubyOnRails
[10:00:30] drale2k_: has joined #RubyOnRails
[10:02:56] apeiros: has joined #RubyOnRails
[10:05:18] ariejan_: has joined #RubyOnRails
[10:11:40] ur5us: has joined #RubyOnRails
[10:12:41] ferr1: has joined #RubyOnRails
[10:24:21] ariejan: has joined #RubyOnRails
[10:26:22] andywww: has joined #RubyOnRails
[10:27:33] andywww: bit stumped here, forgive my sql understanding but if i were to have:
[10:27:36] andywww: PendingNotification Load (0.2ms) SELECT "pending_notifications".* FROM "pending_notifications" WHERE "pending_notifications"."user_id" = $1 [["user_id", 1]]
[10:28:19] andywww: but i wanted [["user_id", 1]] to be a different column, how would i need my association set up on the user side?
[10:28:58] andywww: SELECT "pending_notifications".* FROM "pending_notifications" WHERE "pending_notifications”.”other_id” = $1 [[“other_id", 1]]
[10:32:04] tbuehlmann: andywww: you might want to set the foreign_key option: http://guides.rubyonrails.org/association_basics.html#options-for-has-many-foreign-key
[10:34:34] andywww: sorry, what ran that was User.last.pending_notifications
[10:35:33] andywww: but the pending notifications user_id field should match up to the User’s uid rather than id
[10:37:16] tbuehlmann: have you tried using the foreign_key option?
[10:38:04] andywww: where, sorry?
[10:38:53] andywww: the PendingNotification (belongs to user) has a user_id
[10:39:41] andywww: but when i run the query from User.pending_notifications I want User.uid to match PendingNotification.user_id
[10:40:23] andywww: my understanding is foreign key changes the column i am matching User.id against on PendingNotifications
[10:40:34] andywww: but i still want it to use user_id
[10:40:41] tbuehlmann: could be this: User.has_many :pending_notifications, foreign_key: :user_id, primary_key: :uid
[10:41:11] tbuehlmann: user_id should be default, so you shouldn't need the foreign_key option then
[10:41:59] tbuehlmann: you might need it on the belongs_to to side as well, but I'm, not sure
[10:43:30] Technodrome: has joined #RubyOnRails
[10:44:10] ur5us: has joined #RubyOnRails
[10:46:34] andywww: ah it just needed rimary_key :uid on both sides
[10:46:36] andywww: thanks for that
[10:56:29] mikecmpbll: has joined #RubyOnRails
[11:00:08] apparition: has joined #RubyOnRails
[11:06:41] andywww: has left #RubyOnRails: ()
[11:12:35] jottr: has joined #RubyOnRails
[11:18:36] mikecmpbll: has joined #RubyOnRails
[11:18:59] LateralO1: has joined #RubyOnRails
[11:24:22] reber: has joined #RubyOnRails
[11:28:49] DrYockel1: has joined #RubyOnRails
[11:30:04] ur5us: has joined #RubyOnRails
[11:33:55] segy: has joined #RubyOnRails
[11:36:12] Cavallari: has joined #RubyOnRails
[11:42:35] ferr1: has left #RubyOnRails: ("WeeChat 2.1")
[11:43:52] jottr: has joined #RubyOnRails
[11:46:05] Linuus: has joined #RubyOnRails
[11:47:59] srinidhi: has joined #RubyOnRails
[11:51:44] mtkd: has joined #RubyOnRails
[12:07:28] Stanimir: has joined #RubyOnRails
[12:07:53] Stanimir: Hello, I'm a new Ruby programmer, coming from PHP. However, I have stumbled some strange errors, while installing my demo application on another PC. For example, when I try to save an object o a database and try to retirve it Ruby throws an exception : undefined method `each' for nil:NilClass
[12:07:59] Stanimir: https://gist.github.com/Stanimirdim92/2677b0d9f2ffdbd0b648a85564e9044b
[12:08:13] Stanimir: I'm using Ruby 2.4.1 and RoR 5.1.6
[12:08:37] tbuehlmann: Stanimir: can you add the error stacktrace to the gist?
[12:09:27] Stanimir: Done. Added full stack trace.
[12:10:06] Stanimir: Also when I try to use where().order() it gives me the same error on NilClass, SO i assume I haven't installed something correctly
[12:10:48] Stanimir: I ran gem install bundler rails. After that bundler install and rails server.
[12:10:51] duderonomy: has joined #RubyOnRails
[12:10:59] tbuehlmann: the error's first line is missing, isn't it?
[12:11:38] tbuehlmann: don't define a #where method on your models
[12:12:12] tbuehlmann: activerecord already defines it and overriding it results in errors like the one you're getting
[12:12:17] Stanimir: Oh. damn Robocop
[12:12:33] Stanimir: Yep that solved it.
[12:12:52] tbuehlmann: you're welcome
[12:14:03] norfumpit: has joined #RubyOnRails
[12:14:46] norfumpit: is there a way to define an ar model without a predefined connection? so you need to call establish_connection on it before use
[12:15:02] norfumpit: ive got a couple of models defined
[12:15:09] norfumpit: that can be read from multiple databases
[12:15:11] norfumpit: there is no default one
[12:15:30] norfumpit: right now the models just fail on usage because "table doesnt exist" (theyre presuming the default connection)
[12:16:25] norfumpit: i would prefer a more explicit fail there
[12:17:23] jottr: has joined #RubyOnRails
[12:17:28] rikkipitt: has joined #RubyOnRails
[12:17:42] yadnesh: has joined #RubyOnRails
[12:20:20] elcms: has joined #RubyOnRails
[12:21:55] mauro1254: Hi folks, concerning database schema file (schema.rb), how are charset & collation determined?
[12:37:15] cschneid_: has joined #RubyOnRails
[12:45:53] tcopeland: has joined #RubyOnRails
[12:51:23] MrCrackPotBuilde: has joined #RubyOnRails
[12:53:48] s2013: has joined #RubyOnRails
[13:02:47] mjolnird: has joined #RubyOnRails
[13:02:56] Technodrome: has joined #RubyOnRails
[13:03:53] dionysus69: has joined #RubyOnRails
[13:05:33] kapil___: has joined #RubyOnRails
[13:27:41] drale2k_: has joined #RubyOnRails
[13:29:49] cabotto: has joined #RubyOnRails
[13:33:27] safetypin: has joined #RubyOnRails
[13:35:50] sidx64: has joined #RubyOnRails
[13:40:59] srinidhi: has joined #RubyOnRails
[13:41:22] duderonomy: has joined #RubyOnRails
[13:48:33] cschneid_: has joined #RubyOnRails
[13:54:14] Technodrome: has joined #RubyOnRails
[13:59:43] workmad3: has joined #RubyOnRails
[14:01:14] mtkd: has joined #RubyOnRails
[14:04:50] comet23: has joined #RubyOnRails
[14:11:26] mostlybadfly: has joined #RubyOnRails
[14:12:10] mtkd: has joined #RubyOnRails
[14:14:05] mauro1254: has joined #RubyOnRails
[14:15:42] kurko_: comet23 hello
[14:19:21] jobewan: has joined #RubyOnRails
[14:20:38] kurko_: Technodrome hello
[14:20:53] Technodrome: ACTION loves the telephone game 
[14:23:14] GodFather: has joined #RubyOnRails
[14:37:42] comet23: do sites always have 7 routes when following the REST spec?
[14:42:48] cschneid_: has joined #RubyOnRails
[14:45:34] norfumpit: i got rails 5.2, im trying to create a new rails app without AR, im doing rails new -O app
[14:45:37] norfumpit: i get ar included
[14:45:39] norfumpit: is this broken?
[14:48:34] comet23: rails always uses the Rails Activerecord Postgres and Emberjs stack
[14:49:27] duderonomy: has joined #RubyOnRails
[14:51:56] Sylario: Activerecord is only 3 verb, not seven
[14:52:02] samort7: has joined #RubyOnRails
[14:53:21] Sylario: 4 if you differentiate new and create
[14:54:00] Sylario: anyway, REST in rails is not really tied into AR
[14:58:33] schneider: has joined #RubyOnRails
[14:58:45] Cavallari: has joined #RubyOnRails
[14:59:34] kurko_: norfumpit what's the -O option for?
[14:59:47] kurko_: comet23 no, sites not always have 7 routes per controller.
[15:06:12] mtkd: has joined #RubyOnRails
[15:08:12] toydestroyer: has joined #RubyOnRails
[15:15:03] s2013: has joined #RubyOnRails
[15:17:26] srinidhi: has joined #RubyOnRails
[15:24:27] timdotrb: has joined #RubyOnRails
[15:25:02] drale2k_: has joined #RubyOnRails
[15:27:56] rikkipitt: has joined #RubyOnRails
[15:28:03] jottr: has joined #RubyOnRails
[15:29:59] matthais: has joined #RubyOnRails
[15:30:22] timdotrb: Morning, all
[15:30:38] orbyt_: has joined #RubyOnRails
[15:30:40] matthais: hello, when im uploading many files at once to paperclip, unicorn kills my process after timeout before beeing processed. how can i avoid this?
[15:31:12] SteenJobs: has joined #RubyOnRails
[15:31:38] apeiros: has joined #RubyOnRails
[15:38:37] apeiros: has joined #RubyOnRails
[15:41:26] sagax: has joined #RubyOnRails
[15:44:53] andrewray: has joined #RubyOnRails
[15:50:26] timdotrb_: has joined #RubyOnRails
[15:52:44] kapil___: has joined #RubyOnRails
[15:55:31] timdotrb_: has joined #RubyOnRails
[15:55:53] SteenJobs: has joined #RubyOnRails
[16:02:11] jottr: has joined #RubyOnRails
[16:10:16] jcarl43: has joined #RubyOnRails
[16:10:49] cagomez: has joined #RubyOnRails
[16:11:09] cam27: has joined #RubyOnRails
[16:11:41] Fernando-Basso: has joined #RubyOnRails
[16:14:56] SteenJobs: has joined #RubyOnRails
[16:14:57] rikkipitt: has joined #RubyOnRails
[16:18:01] one_zero: has joined #RubyOnRails
[16:21:39] KeyJoo: has joined #RubyOnRails
[16:35:43] orbyt_: has joined #RubyOnRails
[17:00:01] armyriad: has joined #RubyOnRails
[17:02:09] uks: has joined #RubyOnRails
[17:03:06] jottr: has joined #RubyOnRails
[17:07:24] orbyt_: has joined #RubyOnRails
[17:13:17] sent-hil: has joined #RubyOnRails
[17:24:02] duderonomy: has joined #RubyOnRails
[17:24:21] harrycs: has joined #RubyOnRails
[17:26:48] Technodrome: has joined #RubyOnRails
[17:29:31] [Butch]: has joined #RubyOnRails
[17:37:22] mtkd: has joined #RubyOnRails
[17:52:16] harryv: has joined #RubyOnRails
[18:03:26] veloutin: has joined #RubyOnRails
[18:07:11] Technodrome: has joined #RubyOnRails
[18:11:34] rikkipitt: has joined #RubyOnRails
[18:13:46] orbyt_: has joined #RubyOnRails
[18:25:05] sameerynho: has joined #RubyOnRails
[18:25:08] srinidhi: has joined #RubyOnRails
[18:42:47] duderonomy: has joined #RubyOnRails
[18:42:52] chouhoulis: has joined #RubyOnRails
[18:52:06] lord4163: has joined #RubyOnRails
[18:57:41] cagomez: has joined #RubyOnRails
[18:59:28] alfiemax: has joined #RubyOnRails
[19:07:10] arBmind: has joined #RubyOnRails
[19:21:48] workmad3: has joined #RubyOnRails
[19:29:12] chouhoulis: has joined #RubyOnRails
[19:29:45] cagomez: has joined #RubyOnRails
[19:31:31] alfiemax: has joined #RubyOnRails
[19:33:39] mikecmpbll: has joined #RubyOnRails
[19:37:21] Scient: has joined #RubyOnRails
[19:39:03] cgibson: has joined #RubyOnRails
[19:40:29] cgibson: Anyone know how I can get something like this to work ??? %li{style: 'background-image': url(@post.image.url)}
[19:41:15] ellcs: has joined #RubyOnRails
[19:43:04] orbyt_: has joined #RubyOnRails
[19:43:39] sidx64: has joined #RubyOnRails
[19:45:33] cagomez: has joined #RubyOnRails
[19:46:33] sidx64_: has joined #RubyOnRails
[19:48:55] Fernando-Basso: has joined #RubyOnRails
[19:54:02] jcarl: has joined #RubyOnRails
[20:05:51] _3dwardsharp: has joined #RubyOnRails
[20:10:08] alfiemax: has joined #RubyOnRails
[20:13:20] cagomez: has joined #RubyOnRails
[20:14:07] Puffball: has joined #RubyOnRails
[20:14:14] Andr3as: hello everyone.. i am a bit stuck with generating a "cumulative sum" - i've the following gist
[20:14:15] Andr3as: https://gist.github.com/awunder/c4b8c40fdaf7101babb6d32922404efd
[20:14:41] Andr3as: anyone an idea how to achieve that?
[20:20:16] alfiemax: has joined #RubyOnRails
[20:21:18] doesntbyte_: has joined #RubyOnRails
[20:21:25] Travis-42_: has joined #RubyOnRails
[20:21:27] ecook_: has joined #RubyOnRails
[20:21:30] ewilliam_: has joined #RubyOnRails
[20:29:51] Fire-Dragon-DoL: has joined #RubyOnRails
[20:29:57] Takumo: has joined #RubyOnRails
[20:31:29] Liothen: has joined #RubyOnRails
[20:41:04] mtkd: has joined #RubyOnRails
[20:46:05] jcarl43: has joined #RubyOnRails
[21:32:37] chouhoulis: has joined #RubyOnRails
[21:33:27] rikkipitt: has joined #RubyOnRails
[21:38:26] ur5us: has joined #RubyOnRails
[21:41:29] Technodrome: has joined #RubyOnRails
[21:51:04] cagomez: is it possible to call .save on a model and not have SQL UPDATE query? ie when is a SQL update query actually made after calling .save?
[21:53:32] kurko_: cagomez what do you want to happen when .save is called?
[21:54:36] listrophy: has joined #RubyOnRails
[21:55:09] cagomez: kurko_: I have no objective in mind. I'm debugging an issue and was wondering when an UPDATE is actually issued by Rails. my assumption is that an UPDATE is only issued when a model is "dirty" (ie some attribute changed)
[21:55:30] listrophy: in order to use Service Workers correctly, the js file needs to be served from the root path without using redirects. How would I do that with webpacker?
[21:56:17] kurko_: cagomez update is called when `new_record?` is false IIRC.
[21:56:56] Ergo: has joined #RubyOnRails
[21:58:23] ellcs: has joined #RubyOnRails
[22:01:57] duderonomy: has joined #RubyOnRails
[22:10:29] Or1on: has joined #RubyOnRails
[22:11:13] orbyt_: has joined #RubyOnRails
[22:19:17] Technodrome: has joined #RubyOnRails
[22:20:40] marr: has joined #RubyOnRails
[22:28:49] rikkipitt: has joined #RubyOnRails
[22:39:39] LateralOctober: has joined #RubyOnRails
[22:53:00] listrophy: has left #RubyOnRails: ()
[23:04:07] alfiemax: has joined #RubyOnRails
[23:04:47] Exuma: has joined #RubyOnRails
[23:06:08] Exuma: Hey -- is there a way I can test to make sure SECRET_KEY_BASE is properly being used to encrypt cookies?
[23:06:29] Exuma: I ask because im upgrading to 5.2 and with all this master key business I want to make sure that cookies are properly being encrypted
[23:06:46] Exuma: I notice if i erase the RAILS_MASTER_KEY env variable and reboot the server
[23:07:00] Exuma: all the cookies still magically work. I would have suspected that cookies would be invalid then?
[23:14:09] tjbp: has joined #RubyOnRails
[23:17:39] tcopeland: has joined #RubyOnRails
[23:20:23] guacamole: has joined #RubyOnRails
[23:20:53] guacamole: does anyone know of a good tutorial for using rails 5 with redshift?
[23:25:17] cagomez: has joined #RubyOnRails
[23:26:00] cam27: has joined #RubyOnRails
[23:38:24] sameerynho: has joined #RubyOnRails
[23:40:19] kfatehi: has joined #RubyOnRails
[23:41:30] kfatehi: o/ Radar good to see you
[23:41:43] kfatehi: i hope all is well
[23:42:10] kfatehi: i'm on a rails project again :joy:
[23:43:08] Radar: all is well indeed :) I am mentoring some juniors at the moment
[23:45:11] kfatehi: that's great to hear! maybe someone knows the answer to this as i keep searching...: im using ActionDispatch::IntegrationTest and having issues `post`ing JSON params with headers. the params come through fine, but the headers do not when attempting to grab with `request.headers`. where would i find the correct docs for that `post` method? i looked thru the class and got lost at the generic https://apidock.com/rails/ActionDispatc
[23:46:24] kfatehi: the google searches led me to a rails 3 answer that apparently seems not to work (or i am making a mistake) here https://stackoverflow.com/questions/8013770/rspec-rails-3-1-integration-test-how-to-send-post-request-headers-for-mobile-h
[23:46:44] kfatehi: ACTION goes back to fiddling w/ it 
[23:46:56] Radar: kfatehi: !rule0
[23:46:56] helpa: kfatehi: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[23:47:28] kfatehi: oh nice ok will do
[23:49:19] duderonomy: has joined #RubyOnRails
[23:49:25] Exuma: Can someone explain why deleting RAILS_MASTER_KEY in production for Rails 5.2 (which I would suspect also disables/nullifies SECRET_KEY_BASE), allows all my cookies to act regularly?
[23:49:58] Exuma: I can refresh the site normally and I'm still logged in, even after the server has rebooted with an empty secret-key-base
[23:50:31] Radar: Exuma: That is not behaviour that I would expect. Nullifying SECRET_KEY_BASE means that you'd be changing its value, which should invalidate all cookies.
[23:50:39] Radar: Exuma: Are you certain that the server is picking up this change?
[23:51:11] Exuma: yes, i double checked by using a heroku console and doing "Rails.application.credentials.read" and I can see its an empty string. If I put the ENV variable back and restart, it shows up with the proper secret-key-base
[23:51:23] harryv: has joined #RubyOnRails
[23:51:34] Radar: Ok, then without some digging I am not sure why that is happening.
[23:52:11] Exuma: Ok, do you know roughly what part of rails codebase I can look in to try to figure it out?
[23:52:25] Radar: actioncontroller
[23:52:34] Radar: Too rough?
[23:53:09] Exuma: Ok, that is a start. thanks
[23:53:12] Radar: actionpack/lib/action_dispatch/middleware/cookies.rb
[23:53:58] Radar: Exuma: I think it might be worthwhile seeing if you can reproduce this behaviour locally too, in development mode. It'll at least remove Heroku from the equation.
[23:54:00] duderonomy: has joined #RubyOnRails
[23:58:23] kfatehi: figured out my issue, guess i am rusty hehe
[23:58:27] Exuma: yes, happens locally
[23:58:49] Radar: Exuma: Ok, good. So at least now you've got something you can quickly test out. Take a look at what's going on in cookies.rb and see if that makes sense.