« Back to channel list

#RubyOnRails - 13 July 2016

« Back 1 day Forward 1 day »
[00:00:14] quazimodo: has joined #RubyOnRails
[00:03:58] rubyonrailed: has joined #RubyOnRails
[00:05:42] ferr: Yea, it is
[00:05:47] ferr: https://github.com/rails/rails/pull/18937
[00:10:25] dminuoso: has joined #RubyOnRails
[00:11:07] pwnd_nsfw`: has joined #RubyOnRails
[00:12:19] flashpoint9: has joined #RubyOnRails
[00:13:02] ProofTechnique: has joined #RubyOnRails
[00:14:15] quazimodo: has joined #RubyOnRails
[00:17:21] dalbuschat: has joined #RubyOnRails
[00:19:58] mustmodify__: has joined #RubyOnRails
[00:23:45] GodFather: has joined #RubyOnRails
[00:24:21] Dimik--: has joined #RubyOnRails
[00:24:53] cd-rum: has joined #RubyOnRails
[00:27:51] kevr: has joined #RubyOnRails
[00:28:59] Mia: has joined #RubyOnRails
[00:29:34] whathappens: has joined #RubyOnRails
[00:30:45] phrozen77: has joined #RubyOnRails
[00:31:06] ElFerna: has joined #RubyOnRails
[00:32:51] cd-rum: has joined #RubyOnRails
[00:35:09] arBmind1: has joined #RubyOnRails
[00:36:23] rubyonrailed: has joined #RubyOnRails
[00:39:30] flashpoint9: has joined #RubyOnRails
[00:42:00] qejk: has joined #RubyOnRails
[00:48:45] quazimodo: has joined #RubyOnRails
[00:50:01] blackmesa: has joined #RubyOnRails
[00:50:17] pawnbox: has joined #RubyOnRails
[00:52:11] kevr: What would I look into to find out how to disable specific actions from a base controller in a derived controller?
[00:52:28] meinside: has joined #RubyOnRails
[00:54:46] JesseH: has joined #RubyOnRails
[00:55:36] yfeldblum: has joined #RubyOnRails
[00:57:39] rafaelflores: has joined #RubyOnRails
[01:00:03] rafaelflores: has joined #RubyOnRails
[01:01:04] GodFather: has joined #RubyOnRails
[01:01:47] weaksauce: has joined #RubyOnRails
[01:04:54] quazimodo: has joined #RubyOnRails
[01:08:30] cnk: kevr: you could override them in the derived controller. OR you could just make sure that the actions you don't want to exist don't have routes to them. Or both
[01:11:34] dminuoso: has joined #RubyOnRails
[01:13:22] flashpoint9: has joined #RubyOnRails
[01:13:58] Axilla: has joined #RubyOnRails
[01:15:42] asheinfeld: has joined #RubyOnRails
[01:17:19] yfeldblum: has joined #RubyOnRails
[01:21:25] rafaelflores: has joined #RubyOnRails
[01:23:10] sevenseacat: has joined #RubyOnRails
[01:29:25] Ropeney: has joined #RubyOnRails
[01:29:49] flashpoint9: has joined #RubyOnRails
[01:29:50] Rodya_: has joined #RubyOnRails
[01:31:17] AndroidLoverInSF: has joined #RubyOnRails
[01:32:43] nersoh: has joined #RubyOnRails
[01:34:03] cpruitt: has joined #RubyOnRails
[01:35:24] rodfersou: has joined #RubyOnRails
[01:39:55] l4v2: has joined #RubyOnRails
[01:40:43] l4v2: how do I find common erb helper methods like link_to to see what built in methods Rails has?
[01:41:23] _Tariq: has joined #RubyOnRails
[01:41:42] baash05: Hey when I start rails locally I can use it on my own box.
[01:42:06] baash05: But I seem to remember that to let others on my network to access it I needed to add a flag to.
[01:42:24] christina: has joined #RubyOnRails
[01:42:25] baash05: oops to the "rails s"
[01:42:33] baash05: Anyone know what that is?
[01:43:13] l4v2: never mind I found them
[01:43:44] baash05: thanks.. One of those things you almost never need to remember.
[01:43:49] l4v2: is that a git coomand option? seavenseacat
[01:44:24] l4v2: is there more to it?
[01:44:50] l4v2: oh my bad, I’m tired, later
[01:45:07] l4v2: you were answering baash question
[01:45:18] AndroidLoverInSF: has joined #RubyOnRails
[01:45:37] baash05: Q: Did you hear about how Pokemon GO scaled their APIs?
[01:45:37] baash05: A: Turns out, they gotta cache them all.
[01:45:43] baash05: Sorry had to post it.
[01:46:16] DoctorMonocular: has joined #RubyOnRails
[01:48:04] christina: -Create an array called numbers containing the integers 1 - 10 and assign it to a variable. -Create an empty array called even_numbers. -Create a method that iterates over the array. Place all even numbers in the array even_numbers. -Print the array even_numbers.
[01:48:19] christina: Can anyone help me with this question??? :)
[01:48:48] sevenseacat: christina: what do you have so far?
[01:49:27] christina: numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] even_numbers = [ ] numbers.each { |even_numbers| puts 2,4,6,8,10 } puts even_numbers
[01:49:50] christina: Third line is wrong and I can't figure out why
[01:51:48] Rodya_: has joined #RubyOnRails
[01:52:42] christina: Any thoughts?
[01:52:43] sevenseacat: so you have a block iterating over the numbers array - meaning in turn, each number gets put into the variable between the pipes
[01:53:02] sevenseacat: you can check if the number is then even, and if it is, add it to the even_numbers array
[01:54:55] christina: that is where I get stuck I figured out I have to use modulo to get the even numbers but where do I insert it?
[01:55:14] sevenseacat: inside the block
[01:55:29] christina: tried it and came back with error
[01:55:46] sevenseacat: I don't know what you tried and I don't know what error you got
[01:56:59] christina: ok so I got some help and came to this.. numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] even_numbers = [ ] numbers.each { |x,y| if x % 2 = = 0 puts x } puts even_numbers
[01:57:10] christina: But I know I'm waaaaaaaaay off :(
[01:57:57] sevenseacat: yeah this might be better moved to #ruby because there's nothing to do with rails here
[01:58:10] sevenseacat: and trying random things definitely won't work
[01:59:18] christina: Okay thanks for the help sevenseacat
[01:59:31] moeabdol: has joined #RubyOnRails
[02:00:03] baash05: Question.. is there a way to set all @ scoped values to nil?
[02:02:09] AndroidLoverInSF: has joined #RubyOnRails
[02:04:28] baash05: Wow that was a dumb question on my part.. :)
[02:05:02] blackmesa: has joined #RubyOnRails
[02:05:37] AndroidLoverInSF: has joined #RubyOnRails
[02:06:33] AndroidLoverInSF: has joined #RubyOnRails
[02:07:42] jenrzzz: has joined #RubyOnRails
[02:07:42] jenrzzz: has joined #RubyOnRails
[02:08:02] Ebok: has joined #RubyOnRails
[02:08:20] lxsameer: has joined #RubyOnRails
[02:08:59] arooni-mobile: has joined #RubyOnRails
[02:09:18] arooni-mobile__: has joined #RubyOnRails
[02:12:20] dminuoso: has joined #RubyOnRails
[02:14:51] kies: has joined #RubyOnRails
[02:15:10] ElFerna: has joined #RubyOnRails
[02:15:27] DoctorMonocular: has joined #RubyOnRails
[02:15:40] hahuang61: has joined #RubyOnRails
[02:19:28] _Tariq: has joined #RubyOnRails
[02:26:09] benlieb: has joined #RubyOnRails
[02:26:14] phrozen77: has joined #RubyOnRails
[02:27:51] tego101: has joined #RubyOnRails
[02:31:35] cpruitt: has joined #RubyOnRails
[02:33:25] djbkd: has joined #RubyOnRails
[02:34:06] travisxcode: has joined #RubyOnRails
[02:37:31] DoctorMonocular: has joined #RubyOnRails
[02:38:34] flashpoint9: has joined #RubyOnRails
[02:38:35] FCser: has joined #RubyOnRails
[02:39:03] cd-rum: has joined #RubyOnRails
[02:40:58] cd-rum_: has joined #RubyOnRails
[02:42:52] Maletor: has joined #RubyOnRails
[02:44:55] arooni-mobile: has joined #RubyOnRails
[02:45:01] arooni-mobile__: has joined #RubyOnRails
[02:48:00] pLaTo0n: has joined #RubyOnRails
[02:49:45] rubyonrails283: has joined #RubyOnRails
[02:51:23] Axilla: has joined #RubyOnRails
[02:52:24] cd-rum: has joined #RubyOnRails
[03:00:16] xall: has joined #RubyOnRails
[03:00:34] xall: tat && exit
[03:05:48] blackmesa: has joined #RubyOnRails
[03:09:04] zacts: has joined #RubyOnRails
[03:10:34] Criten: has joined #RubyOnRails
[03:13:05] dminuoso: has joined #RubyOnRails
[03:13:15] kuroro: has left #RubyOnRails: ()
[03:13:15] Criten: has joined #RubyOnRails
[03:16:48] justrohu: has joined #RubyOnRails
[03:17:17] hahuang61: has joined #RubyOnRails
[03:17:41] treaki__: has joined #RubyOnRails
[03:24:32] rubyonrailed: has joined #RubyOnRails
[03:26:04] haohhl: has joined #RubyOnRails
[03:29:25] justrohu: has joined #RubyOnRails
[03:31:35] jishankai: has joined #RubyOnRails
[03:33:00] Caerus|Away: has joined #RubyOnRails
[03:36:02] Tempesta: has joined #RubyOnRails
[03:42:29] dopie: has joined #RubyOnRails
[03:42:34] rubyonra_: has joined #RubyOnRails
[03:43:20] zacts: has joined #RubyOnRails
[03:43:34] Maletor: has joined #RubyOnRails
[03:52:12] dopie: has joined #RubyOnRails
[03:52:48] lxsameer: has joined #RubyOnRails
[03:56:15] Polysics: has joined #RubyOnRails
[03:56:19] tycoon177: has joined #RubyOnRails
[03:56:23] Polysics: hello! still fighting assets in RAils 5
[03:56:36] Hobogrammer: has joined #RubyOnRails
[03:56:39] dopie: has joined #RubyOnRails
[03:56:43] Polysics: I am NOT running Sprockets 4, so shouldn't everything behave as usual?
[03:56:54] kevr: has joined #RubyOnRails
[03:57:39] Polysics: I have a setting in my SCSS that is getting completely ignored, resulting in font paths not being compiled with the CDN in them
[03:58:15] Polysics: I really have no idea where to start looking at this point :)
[04:01:36] SteenJobs: has joined #RubyOnRails
[04:07:03] daumie: has joined #RubyOnRails
[04:07:51] blackmesa: has joined #RubyOnRails
[04:08:17] SteenJobs: has joined #RubyOnRails
[04:13:31] dopie: has joined #RubyOnRails
[04:15:06] dminuoso: has joined #RubyOnRails
[04:16:12] xall: has joined #RubyOnRails
[04:17:20] Criten: has left #RubyOnRails: ()
[04:18:17] hahuang61: has joined #RubyOnRails
[04:21:34] benlieb: has joined #RubyOnRails
[04:22:00] visionary: has joined #RubyOnRails
[04:23:01] pvertenten: has joined #RubyOnRails
[04:25:25] pontiki: has joined #RubyOnRails
[04:38:13] rickmasta: has joined #RubyOnRails
[04:38:13] travisxcode: has joined #RubyOnRails
[04:40:20] akira616: has joined #RubyOnRails
[04:42:21] daumie: has joined #RubyOnRails
[04:42:32] dkam: has joined #RubyOnRails
[04:43:26] rubyonrailed: has joined #RubyOnRails
[04:43:27] dopie: has joined #RubyOnRails
[04:43:39] dkam: Hey guys. Upgrading to rails 5 - how do I get the stuff in lib/ to be loaded when Rails boots?
[04:44:05] alfiemax: has joined #RubyOnRails
[04:44:20] Maletor: has joined #RubyOnRails
[04:45:37] pawnbox: has joined #RubyOnRails
[04:45:43] max2: has joined #RubyOnRails
[04:47:38] pawnbox: has joined #RubyOnRails
[04:49:10] dminuoso: has joined #RubyOnRails
[04:51:58] cd-rum: has joined #RubyOnRails
[04:53:33] ur5us: has joined #RubyOnRails
[04:53:46] dopie: has joined #RubyOnRails
[04:55:13] dopie: has joined #RubyOnRails
[04:55:49] daumie: has joined #RubyOnRails
[04:57:32] conta: has joined #RubyOnRails
[05:00:00] rafaelfranca: dkam: require it
[05:00:24] rafaelfranca: require 'my_styff_in_lib'
[05:01:41] daumie: has joined #RubyOnRails
[05:03:00] dopie: has joined #RubyOnRails
[05:04:37] atomx: has joined #RubyOnRails
[05:05:31] Hyuk: has joined #RubyOnRails
[05:06:04] xcesariox: has joined #RubyOnRails
[05:08:13] Dimik--: has joined #RubyOnRails
[05:08:29] daumie: has joined #RubyOnRails
[05:08:51] blackmesa: has joined #RubyOnRails
[05:14:23] atomx: Hi, I have something like <%= #image_tag("kitten.jpg", alt: "kitten pic") %> on one of my ERBs, however Rails is telling me I have a SyntaxError? (unexpected end of input, expecting ')' )
[05:14:26] atomx: is this comment wrong?
[05:14:28] visionary: has left #RubyOnRails: ()
[05:15:00] vedu: atom_: remove the starting #
[05:17:11] Ropeney: atom_ if you want it a comment do <%#= ... %>
[05:18:53] atomx: right, that worked - thanks!
[05:19:01] hahuang61: has joined #RubyOnRails
[05:19:28] jenrzzz: has joined #RubyOnRails
[05:19:28] jenrzzz: has joined #RubyOnRails
[05:21:07] macsteps: has joined #RubyOnRails
[05:21:37] dopie: has joined #RubyOnRails
[05:23:03] dopie: has joined #RubyOnRails
[05:26:04] travisxcode: has joined #RubyOnRails
[05:27:49] macsteps: has joined #RubyOnRails
[05:29:31] yfeldblum: has joined #RubyOnRails
[05:31:02] yfeldblum: has joined #RubyOnRails
[05:39:34] tego101: has joined #RubyOnRails
[05:44:11] dminuoso: has joined #RubyOnRails
[05:45:09] Maletor: has joined #RubyOnRails
[05:49:16] SteenJobs: has joined #RubyOnRails
[05:50:14] tego101: has joined #RubyOnRails
[05:53:29] flashpoint9: has joined #RubyOnRails
[05:54:14] daumie: has joined #RubyOnRails
[05:55:04] Macaveli: has joined #RubyOnRails
[05:56:09] gemantzu: has joined #RubyOnRails
[05:57:55] tego101: has joined #RubyOnRails
[05:59:35] dopie: has joined #RubyOnRails
[06:00:21] xlegoman: has joined #RubyOnRails
[06:03:11] dionysus69: has joined #RubyOnRails
[06:03:22] netzfisch: has joined #RubyOnRails
[06:03:23] dopie: has joined #RubyOnRails
[06:07:05] ducklobster: has joined #RubyOnRails
[06:07:21] feignt: has joined #RubyOnRails
[06:07:53] dopie: has joined #RubyOnRails
[06:08:50] jtong: has joined #RubyOnRails
[06:09:37] Hyuk: has joined #RubyOnRails
[06:10:32] blackmesa: has joined #RubyOnRails
[06:11:35] moeabdol: has joined #RubyOnRails
[06:13:54] Sashimi: has joined #RubyOnRails
[06:18:44] cd-rum: has joined #RubyOnRails
[06:21:23] cd-rum_: has joined #RubyOnRails
[06:22:42] stardiviner: has joined #RubyOnRails
[06:22:48] DrYockel: has joined #RubyOnRails
[06:23:10] rocketsurgeon: has joined #RubyOnRails
[06:25:59] the_drow: has joined #RubyOnRails
[06:28:45] daumie: has joined #RubyOnRails
[06:32:43] netzfisch: has joined #RubyOnRails
[06:36:16] zacts: has joined #RubyOnRails
[06:36:46] conta: has joined #RubyOnRails
[06:38:33] Hyuk: has joined #RubyOnRails
[06:39:41] abhvl: has joined #RubyOnRails
[06:40:02] abhvl: how can i set the hr,min,sec part to 00 without modifying the date part?
[06:40:37] Pazician: has joined #RubyOnRails
[06:40:37] Pazician: has joined #RubyOnRails
[06:40:56] atomx: has joined #RubyOnRails
[06:41:34] arBmind: has joined #RubyOnRails
[06:41:37] Ratler: has joined #RubyOnRails
[06:41:37] dminca: has joined #RubyOnRails
[06:41:52] Pumukel: has joined #RubyOnRails
[06:44:17] abhvl: my timestamp column is getting modifieng just by tring to puts it?
[06:44:21] abhvl: how is that possible?
[06:44:58] xall: has joined #RubyOnRails
[06:45:54] Maletor: has joined #RubyOnRails
[06:45:59] travisxcode: has joined #RubyOnRails
[06:46:02] GoranPavlovic: has joined #RubyOnRails
[06:47:12] vedu: abhvl: code?
[06:48:47] daumie: has joined #RubyOnRails
[06:51:09] Axsuul: has joined #RubyOnRails
[06:52:12] diprotic: has joined #RubyOnRails
[06:52:12] diprotic: has joined #RubyOnRails
[06:58:11] jstransky: has joined #RubyOnRails
[06:59:12] mark_66: has joined #RubyOnRails
[06:59:19] dminuoso: has joined #RubyOnRails
[07:00:48] darutoko: has joined #RubyOnRails
[07:01:58] Dimik: has joined #RubyOnRails
[07:03:02] blackmesa: has joined #RubyOnRails
[07:04:21] AnoHito: has joined #RubyOnRails
[07:04:34] dionysus69: has joined #RubyOnRails
[07:05:49] linnal: has joined #RubyOnRails
[07:09:53] Sashimi: has joined #RubyOnRails
[07:10:18] jtong: has joined #RubyOnRails
[07:10:44] Pumukel: has joined #RubyOnRails
[07:13:57] edwinvdgraaf: has joined #RubyOnRails
[07:14:23] xpl0iter: has joined #RubyOnRails
[07:15:09] moeabdol1: has joined #RubyOnRails
[07:15:13] xpl0iter: Hi I am having issues with has_many through relations, can someone please help me with this problem: http://stackoverflow.com/questions/38332567/how-to-associate-between-2-models-which-are-not-directly-related-in-rails
[07:16:31] daumie: has joined #RubyOnRails
[07:17:19] mixnblend: has joined #RubyOnRails
[07:18:38] AndroidLoverInSF: has joined #RubyOnRails
[07:20:55] hahuang61: has joined #RubyOnRails
[07:23:48] artto: has joined #RubyOnRails
[07:24:11] AimlessRAven: has joined #RubyOnRails
[07:24:32] AimlessRAven: someone know where i can find valid google maps key
[07:24:34] AimlessRAven: js?v=3.23&key=[your API key]:32 Google Maps API error: Google Maps API error: InvalidKeyMapError
[07:24:43] AndroidLoverInSF: has joined #RubyOnRails
[07:24:44] AimlessRAven: this is error on middleman project
[07:25:17] dminuoso: AimlessRaven: Have you tried to use this google website I heard about?
[07:26:24] dminuoso: AimlessRaven: Next time google first.
[07:26:34] dminuoso: Read manuals, then google again.
[07:26:57] Pumukel: has joined #RubyOnRails
[07:27:40] moeabdol1: has joined #RubyOnRails
[07:32:52] antgel: has joined #RubyOnRails
[07:38:38] harfangk: has joined #RubyOnRails
[07:39:07] pawnbox: has joined #RubyOnRails
[07:41:24] aganov: has joined #RubyOnRails
[07:46:43] Maletor: has joined #RubyOnRails
[07:49:43] travisxcode: has joined #RubyOnRails
[07:52:43] Hyuk: has joined #RubyOnRails
[07:53:23] futilegames: has joined #RubyOnRails
[07:54:14] ngw: has joined #RubyOnRails
[07:54:52] flashpoint9: has joined #RubyOnRails
[07:57:07] artto: has joined #RubyOnRails
[07:58:47] ur5us: has joined #RubyOnRails
[07:59:09] GorillaApe: has joined #RubyOnRails
[07:59:15] GorillaApe: i am geeting error for this
[07:59:15] GorillaApe: errors.add(:base, :is_duplicate, {name: dup_fno.name})
[07:59:23] GorillaApe: undefined method `name' for #<Array:0x00144a9643c390>
[07:59:53] Axsuul: has joined #RubyOnRails
[08:00:06] sevenseacat: good to know.
[08:00:16] roshanavand: has joined #RubyOnRails
[08:00:26] AimlessRAven: hmm i upload my google map to my localhost but js says invalid key error
[08:00:29] AimlessRAven: i try to build key
[08:00:38] AimlessRAven: but there wants domain
[08:00:42] AimlessRAven: but my site is on localhost
[08:00:58] AimlessRAven: is there a way to turn on google map key on localhost
[08:01:02] finnnnnnnnnnn: has joined #RubyOnRails
[08:01:11] dminuoso: AimlessRaven: If I spend some money for an English course for you, just to not get annoyed anymore - would you attend it?
[08:06:44] harfangk: has joined #RubyOnRails
[08:07:36] armyriad: has joined #RubyOnRails
[08:07:49] dopie: has joined #RubyOnRails
[08:07:59] Sashimi: has joined #RubyOnRails
[08:08:48] arup_r: has joined #RubyOnRails
[08:09:34] AimlessRAven: ок can i generate google map key for localhost:4567
[08:11:10] jtong: has joined #RubyOnRails
[08:12:26] Macaveli: has joined #RubyOnRails
[08:13:17] jsrn: has joined #RubyOnRails
[08:14:04] vedu: GorillaApe: !code
[08:14:27] vedu: sevenseacat: why isn't ^ working :(
[08:15:59] sevenseacat: vedu: because you don't have access to use the bot
[08:18:41] atomx: has joined #RubyOnRails
[08:19:19] Axy: has joined #RubyOnRails
[08:21:32] hahuang61: has joined #RubyOnRails
[08:24:13] vedu: sevenseacat: aah :)
[08:26:02] hastur: has joined #RubyOnRails
[08:26:37] dminuoso: AimlessRaven: And again, use google.
[08:26:44] dminuoso: It will quickly provide all the answers you are looking for.
[08:26:56] dminuoso: I wonder, do you actually notice a pattern here?
[08:27:43] harfangk: has joined #RubyOnRails
[08:27:55] Mia: has joined #RubyOnRails
[08:28:36] marr: has joined #RubyOnRails
[08:28:47] fermonkus: has joined #RubyOnRails
[08:29:54] armyriad: has joined #RubyOnRails
[08:38:00] oystersauce8: has joined #RubyOnRails
[08:38:24] Pazician: has joined #RubyOnRails
[08:38:24] Pazician: has joined #RubyOnRails
[08:43:40] Mia: has joined #RubyOnRails
[08:43:56] DX2: has joined #RubyOnRails
[08:45:04] workmad3: has joined #RubyOnRails
[08:46:19] Sashimi: has joined #RubyOnRails
[08:47:29] Maletor: has joined #RubyOnRails
[08:48:11] hck89: has joined #RubyOnRails
[08:48:16] travisxcode: has joined #RubyOnRails
[08:49:22] blackmesa: has joined #RubyOnRails
[08:49:31] Sashimi: has joined #RubyOnRails
[09:00:18] der-landgraf: has joined #RubyOnRails
[09:00:41] abhvl: how to change hour, min and sec only without modifying date?
[09:01:11] jhass: http://devdocs.io/rails~4.2/date#method-i-change
[09:01:38] abhvl: jhass: .new will set new date also. i do not want to change date. ony time.
[09:01:42] dionysus69: has joined #RubyOnRails
[09:01:58] jhass: Date has no time
[09:02:06] jhass: are you talking about Time or DateTime?
[09:02:16] jhass: http://devdocs.io/rails~4.2/datetime#method-i-change
[09:02:44] abhvl: jhass: no its timestamp without time zone
[09:03:01] jhass: that's not a Ruby or Rails class
[09:03:27] abhvl: yeah right. postgres
[09:04:10] tvw: has joined #RubyOnRails
[09:04:34] arBmind: has joined #RubyOnRails
[09:05:18] Kedare: has joined #RubyOnRails
[09:05:54] jhass: can't spot a convenience function for that in https://www.postgresql.org/docs/9.5/static/functions-datetime.html or https://www.postgresql.org/docs/9.5/static/datatype-datetime.html
[09:06:49] Hyuk: has joined #RubyOnRails
[09:07:44] marahin: User creates a record through a form. Record is saved and user is redirected to #show action on this particular record. However, there is some record-data processing in the background. How do I set up actioncable 5 to ask server if the background job is done (@object.processed?), and if it returns true - it should refresh the site?
[09:07:58] marahin: actioncable in rails5*
[09:09:26] arup_r: has joined #RubyOnRails
[09:12:20] quazimodo: has joined #RubyOnRails
[09:12:49] jtong: has joined #RubyOnRails
[09:15:03] finnnnnnnnnnn: has joined #RubyOnRails
[09:16:23] snowy: has joined #RubyOnRails
[09:16:31] crova: has joined #RubyOnRails
[09:20:18] blackmesa: has joined #RubyOnRails
[09:22:32] hahuang61: has joined #RubyOnRails
[09:22:33] sergey_makagon: has joined #RubyOnRails
[09:23:34] alfiemax: in active record for using custom join_table for has_and_belongs_to_many i can just specify using the `join_table` key
[09:23:43] alfiemax: how can i acheive the same in mongoid?
[09:24:38] xcesariox: has joined #RubyOnRails
[09:27:41] abhvl: how can i change this code tempslots.collect{|os| os.trip_option_id = @new_trip.trip_options.first.id} to assign id of multiple @new_trip.trip_options to multiple os?
[09:27:49] abhvl: assuming they are in sequence
[09:29:19] Ropeney: has joined #RubyOnRails
[09:30:09] DrYockel: has joined #RubyOnRails
[09:30:24] finnnnnnnnnnn_: has joined #RubyOnRails
[09:32:58] AzaToth: has joined #RubyOnRails
[09:34:24] harfangk: has joined #RubyOnRails
[09:38:18] mdw: has joined #RubyOnRails
[09:38:45] yoongkang: has joined #RubyOnRails
[09:40:02] jmignault: has joined #RubyOnRails
[09:45:15] bookies: has joined #RubyOnRails
[09:45:43] artto: has joined #RubyOnRails
[09:47:42] yoongkang: has joined #RubyOnRails
[09:48:17] Maletor: has joined #RubyOnRails
[09:54:51] rails45: has joined #RubyOnRails
[09:55:02] yoongkang: has joined #RubyOnRails
[09:55:22] rails45: Can I use both Rack deflater and Heroku deflater or are they the same thing?
[09:55:50] yoongkang: has left #RubyOnRails: ()
[09:57:45] daffy_duck: has joined #RubyOnRails
[09:58:58] yoongkang: has joined #RubyOnRails
[10:00:00] srinidhi: has joined #RubyOnRails
[10:02:11] quazimodo: has joined #RubyOnRails
[10:02:24] quazimod1: has joined #RubyOnRails
[10:02:36] artto: has joined #RubyOnRails
[10:02:43] quazimodo: has joined #RubyOnRails
[10:04:44] artto: has joined #RubyOnRails
[10:13:52] Axilla: has joined #RubyOnRails
[10:14:21] jtong: has joined #RubyOnRails
[10:16:04] finnnnnnnnnnn: has joined #RubyOnRails
[10:16:36] Hyuk: has joined #RubyOnRails
[10:19:20] rails822: has joined #RubyOnRails
[10:19:38] harfangk: has joined #RubyOnRails
[10:20:35] DoubleMalt: has joined #RubyOnRails
[10:20:42] artto: has joined #RubyOnRails
[10:21:15] pawnbox: has joined #RubyOnRails
[10:21:45] andywww: has joined #RubyOnRails
[10:22:15] nennes: has joined #RubyOnRails
[10:23:16] lizard_: has joined #RubyOnRails
[10:23:21] jsrn: has joined #RubyOnRails
[10:23:29] pawnbox: has joined #RubyOnRails
[10:23:31] rubyonrails810: has joined #RubyOnRails
[10:23:35] hahuang61: has joined #RubyOnRails
[10:40:56] GorillaApe: i sell monkeys
[10:46:22] arup_r: GorillaApe: I need one.. I have too many banana trees
[10:48:28] mx055: has joined #RubyOnRails
[10:49:00] Maletor: has joined #RubyOnRails
[10:49:56] Mia: has joined #RubyOnRails
[10:50:54] fermonkus: has joined #RubyOnRails
[10:51:05] armyriad: has joined #RubyOnRails
[10:53:02] Axy: has joined #RubyOnRails
[10:53:02] Axy: has joined #RubyOnRails
[10:59:15] yfeldblum: has joined #RubyOnRails
[10:59:31] Sashimi: has joined #RubyOnRails
[11:05:17] bruce_lee: has joined #RubyOnRails
[11:05:17] bruce_lee: has joined #RubyOnRails
[11:05:33] pawnbox_: has joined #RubyOnRails
[11:09:02] armyriad: has joined #RubyOnRails
[11:12:45] finnnnnnnnnnn: has joined #RubyOnRails
[11:12:54] rodfersou: has joined #RubyOnRails
[11:13:09] drale2k: how did i not know about http://www.rubytapas.com/
[11:13:20] drale2k: seems great and unique content
[11:15:58] jhass: good question, if you can answer it I'm sure avdi would love to know ;)
[11:15:59] jtong: has joined #RubyOnRails
[11:17:02] armyriad: has joined #RubyOnRails
[11:18:20] flashpoint9: has joined #RubyOnRails
[11:18:23] Sashimi: has joined #RubyOnRails
[11:24:09] abhvl: "avdi" ??
[11:25:10] drale2k: Avid, the guy from rubytapas
[11:25:20] harfangk: has joined #RubyOnRails
[11:25:36] jmignault: has joined #RubyOnRails
[11:25:46] jhass: avdi is his IRC nick ;)
[11:26:22] GorillaApe: means butt plug too
[11:26:49] jhass: drale2k: seriously though, if you have something in mind that would've made you discover them earlier, I'm sure he'd love to know
[11:27:30] drale2k: hard to tell, i googled something and came across it
[11:28:23] elomatreb: The problem is that if you google "ruby screencasts", I'd imagine all you'll get is railscasts
[11:28:30] crova: has joined #RubyOnRails
[11:29:30] dminuoso: elomatreb: And the sad truth is, if you head over to #rubyonrails it's downright amazing how many people know barely how Ruby works, what a class is...
[11:29:44] dminuoso: So yeah, they are really that different community wise..
[11:29:50] dminuoso: Unrelated even.
[11:30:25] roshanavnad_: has joined #RubyOnRails
[11:30:44] GodFather: has joined #RubyOnRails
[11:34:19] blackmesa: has joined #RubyOnRails
[11:35:48] Ebok: has joined #RubyOnRails
[11:36:22] lupine: people need more ruby koans
[11:36:33] sergey_m_: has joined #RubyOnRails
[11:36:42] drale2k: dminuoso: true
[11:36:50] armyriad: has joined #RubyOnRails
[11:36:58] drale2k: elomatreb: actually gorails.com now comes before railscasts
[11:37:16] drale2k: impressive for how long railscasts is on top considering it has been so long without new content
[11:37:35] drale2k: quality stands the test of time i guess
[11:37:53] Pumukel: has joined #RubyOnRails
[11:38:02] ldnunes: has joined #RubyOnRails
[11:38:16] elomatreb: Definitely, nothing wrong with railscasts. But it isn't exactly a ruby reference
[11:49:47] Maletor: has joined #RubyOnRails
[11:50:44] FCser: has joined #RubyOnRails
[11:51:15] augcesar: has joined #RubyOnRails
[11:51:17] dkam: has joined #RubyOnRails
[11:51:50] arup_r: who stepped into 51?
[11:51:52] oystersauce8: has joined #RubyOnRails
[11:53:32] nennes: has joined #RubyOnRails
[11:53:43] harfangk: has joined #RubyOnRails
[11:58:48] xall: has joined #RubyOnRails
[11:59:02] davidklsn: has joined #RubyOnRails
[12:03:00] AimlessRAven: has joined #RubyOnRails
[12:03:19] AimlessRAven: can i use middleman deploy gem to deply middleman project to any cloud server
[12:03:41] artto_: has joined #RubyOnRails
[12:04:13] dminuoso: AimlessRaven: Did you read the README?
[12:05:12] ngw: has joined #RubyOnRails
[12:06:19] Sashimi_: has joined #RubyOnRails
[12:06:39] umdstu: has joined #RubyOnRails
[12:08:00] Rodya_: has joined #RubyOnRails
[12:11:09] Hyuk: has joined #RubyOnRails
[12:13:35] Psy-Q: has joined #RubyOnRails
[12:14:08] oystersauce8: has joined #RubyOnRails
[12:16:29] jjwright: has joined #RubyOnRails
[12:17:28] jtong: has joined #RubyOnRails
[12:18:18] jjwright_: has joined #RubyOnRails
[12:20:27] mark_661: has joined #RubyOnRails
[12:20:52] AntiSpamMeta: has joined #RubyOnRails
[12:21:47] _Tariq: has joined #RubyOnRails
[12:23:12] pawnbox: has joined #RubyOnRails
[12:26:38] xpl0iter: has joined #RubyOnRails
[12:26:51] xpl0iter: I get this error: undefined method `left_outer_joins' when trying to use it.
[12:27:02] xpl0iter: Can some one please tell me why this happens?
[12:27:03] dminuoso: Don't use it.
[12:27:15] helpa: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[12:29:00] xpl0iter: dminuoso, https://gist.github.com/platoputhur/d9024bfb016a8a94dc8e7e068dc48cb6 But I have to use it
[12:30:24] dminuoso: xpl0iter: What class is Profile?
[12:30:32] dminuoso: xpl0iter: Please attach a full stack trace.
[12:31:53] xpl0iter: dminuoso, I am using AJAX so I am getting these errors in terminal. Also if I use joins instead of left_outer_joins its working. But thats not what I want, so..
[12:32:07] xpl0iter: Also I don't know how to get the full stack trace from terminal
[12:33:59] pawnbox: has joined #RubyOnRails
[12:36:57] dvinciguerra: has joined #RubyOnRails
[12:39:20] blackmesa: has joined #RubyOnRails
[12:40:01] pawnbox_: has joined #RubyOnRails
[12:41:16] moeabdol1: has joined #RubyOnRails
[12:42:20] pawnbox: has joined #RubyOnRails
[12:44:34] orolo: has joined #RubyOnRails
[12:44:48] moeabdol2: has joined #RubyOnRails
[12:45:21] pvertenten: has joined #RubyOnRails
[12:47:02] Psy-Q: has joined #RubyOnRails
[12:48:08] pvertenten: has joined #RubyOnRails
[12:48:13] jhass: xpl0iter: left_outer_joins is new in Rails 5, make sure to use documentation for your rails version
[12:48:46] pontiki: has joined #RubyOnRails
[12:50:35] Maletor: has joined #RubyOnRails
[12:51:54] xpl0iter: jhass, thanks, I used include and it worked for me. I thought this one was new in 4. Sorry
[12:55:13] pvertenten: has joined #RubyOnRails
[12:59:29] mrbubbles: Is there an obvious thing I'm missing where a model can be called Matviews::Parameters::Cos0AveMatview but not Matviews::Parameters::IL1Matview? is it somethign to do with having a capital before the number?
[12:59:33] grillwork: has joined #RubyOnRails
[13:01:12] finnnnnnnnnnn: has joined #RubyOnRails
[13:03:39] ramortegui: has joined #RubyOnRails
[13:04:10] jhass: the table name would be i_l_1_matviews in the latter example I think
[13:04:20] jhass: not il_1_matviews
[13:05:29] alaing: has joined #RubyOnRails
[13:06:16] alaing: I'm trying to add an svg to my page but this line is not outputing anything other than object element but no content for it, object type='image/svg+xml', data="#{image_path('icons/tick-white.svg')}", class="confirmation-tick"
[13:06:30] alaing: i'm using slim as my templating engine
[13:08:26] sevenseacat: has joined #RubyOnRails
[13:11:26] pawnbox: has joined #RubyOnRails
[13:12:17] treaki__: has joined #RubyOnRails
[13:16:48] treaki__: has joined #RubyOnRails
[13:17:05] asheinfeld: has joined #RubyOnRails
[13:18:58] jtong: has joined #RubyOnRails
[13:21:06] treaki__: has joined #RubyOnRails
[13:23:07] Detch: has joined #RubyOnRails
[13:25:16] treaki__: has joined #RubyOnRails
[13:27:06] shinnya: has joined #RubyOnRails
[13:27:20] alaing: I'm trying to add an svg to my page but this line is not outputing anything other than object element but no content for it, object type='image/svg+xml', data="#{image_path('icons/tick-white.svg')}", class="confirmation-tick"
[13:27:51] alaing: i'm using slim as my templating engine
[13:30:36] nersoh_: has joined #RubyOnRails
[13:31:05] dminuoso: alaing: So have you looked at it using your Developer tools?
[13:32:04] alaing: dminuoso: yes, it outputs <object type="image/svg+xml"></object>
[13:32:13] alaing: I have this working in haml. %object{:type => 'image/svg+xml', :data => image_path('icons/tick-white.svg'), :class => "confirmation-tick"}
[13:32:23] alaing: just need to convert it for slim template
[13:33:20] dminuoso: alaing: Have you even read the introductionary sheet for SLIM?
[13:34:00] sevenseacat: yeah i see the problem, well several problems, with that line of slim
[13:34:12] elomatreb: btw: Do you really need to embed SVG using <object>? A native <svg> element is most likely a better choice
[13:34:25] alaing: elomatreb: how do i do that?
[13:35:00] alaing: sevenseacat dminuoso ah I got it working now, object type='image/svg+xml' data=image_path('icons/tick-white.svg') class="confirmation-tick"
[13:35:19] dminuoso: alaing: So next time you pick a new gem, I recommand you look at the readme first.
[13:35:38] alaing: elomatreb: interested to see how you use svg instead of object
[13:35:49] elomatreb: one second please
[13:36:00] elomatreb: You want to use an external file, right?
[13:37:12] alaing: elomatreb: yes its an svg file stores in my assets directory
[13:38:25] elomatreb: Judging by the name, you're using it as an icon. A simple <img> element with the src-attribute should work in that case, but have you though about using a more mature icon system?
[13:40:19] rafaelflores: has joined #RubyOnRails
[13:40:21] elomatreb: Further reading: https://css-tricks.com/svg-sprites-use-better-icon-fonts/ and https://css-tricks.com/svg-symbol-good-choice-icons/
[13:40:46] artto: has joined #RubyOnRails
[13:40:58] aegis3121: has joined #RubyOnRails
[13:42:43] cpruitt: has joined #RubyOnRails
[13:43:23] l4v2: has joined #RubyOnRails
[13:44:21] rubyonrailed: has joined #RubyOnRails
[13:48:20] GodFather: has joined #RubyOnRails
[13:49:04] dkam: has joined #RubyOnRails
[13:49:52] nettoweb: has joined #RubyOnRails
[13:50:36] icedp: has joined #RubyOnRails
[13:51:10] nettoweb: hey guys, Im trying to upload an rails app to heroku and I got an error with migration, because I tried to create a table with a reference to a table would be added in next migration. So it tried to add a constraint to related table and it was not created yet, giving an error.
[13:51:18] nettoweb: My question is if I have to add these tables before the table with the references?
[13:51:23] Maletor: has joined #RubyOnRails
[13:56:37] blackhuey: has joined #RubyOnRails
[13:57:31] artto: has joined #RubyOnRails
[13:58:49] mrbubbles: Has anyone used https://github.com/orgsync/active_interaction ?
[13:59:02] jtong: has joined #RubyOnRails
[13:59:02] mrbubbles: Having some compatability issues with Rails 5 :(
[14:00:43] prithaj: has joined #RubyOnRails
[14:03:56] SteenJobs: has joined #RubyOnRails
[14:05:13] blackmesa: has joined #RubyOnRails
[14:05:56] Hobogrammer: has joined #RubyOnRails
[14:05:57] mrbubbles: Ah - ActionController::Parameters returns object not a hash :(
[14:07:51] artto: has joined #RubyOnRails
[14:08:20] macsteps: has joined #RubyOnRails
[14:10:55] jtong: has joined #RubyOnRails
[14:12:45] rafaelfranca: has joined #RubyOnRails
[14:13:57] GodFather: has joined #RubyOnRails
[14:14:43] Oliphaunte: has joined #RubyOnRails
[14:15:28] eljimmy: has joined #RubyOnRails
[14:18:48] mrbubbles: Oh no it wasn't that, think it was this new permitted params thing
[14:18:56] rafaelflores: has joined #RubyOnRails
[14:19:42] mark_66: has joined #RubyOnRails
[14:20:06] czerasz: has joined #RubyOnRails
[14:20:45] finnnnnnnnnnn: has joined #RubyOnRails
[14:20:57] dvinciguerra: has joined #RubyOnRails
[14:22:11] macsteps: has joined #RubyOnRails
[14:23:18] pvertenten: has joined #RubyOnRails
[14:25:47] SteenJobs: has joined #RubyOnRails
[14:26:11] rubyonrails247: has joined #RubyOnRails
[14:26:45] rubyonrails247: hi guys...why is it that initialize method is a private method in ruby?
[14:27:01] darthdiablo: has joined #RubyOnRails
[14:27:08] rubyonrails247: even though defined in a public scope?
[14:27:42] darthdiablo: irb(main):181:0> data => <#CSV io_type:StringIO encoding:US-ASCII lineno:3 col_sep:"," row_sep:"\n" quote_char:"\"" headers:["id", "partner_id", "commission_rate", "partner_short_identifier", "bill_to", "remit_to", "billing_terms", "job_data", "created_at", "updated_at"]>
[14:27:48] lupine: presumably to signal that only ?allocate? is meant to call it
[14:27:53] darthdiablo: how do I iterate over each line for `data` instance?
[14:28:05] rubyonrails247: just created a class with an initialize method in it...can't call initialize on the class
[14:28:14] lupine: you'd call new on the class
[14:28:21] lupine: that allocates and calls initialize for you
[14:28:27] lupine: Foo.new, not Foo.initialize
[14:28:34] rubyonrails247: yh...i know lupine
[14:28:43] mustmodify: has joined #RubyOnRails
[14:28:44] rubyonrails247: i just want to know why?
[14:28:50] rubyonrails247: if there is a reason
[14:29:02] lupine: well, it's an instance method
[14:29:06] rubyonrails247: or could be that it's for cases where you don
[14:29:19] lupine: so calling initialize on the calass would never work anyway
[14:29:36] rubyonrails247: dont explicitly define it and it gets called from your parent class
[14:30:05] lupine: you can do class x ; def self.initialize ; ...; end ; end
[14:30:45] lizard2010: This makes sense, it is only called by the new class method if the object is created. ©
[14:31:04] lizard2010: Misusing the constructor like this could however lead to problems if it does more than simple variable initialization. © too
[14:32:48] xcesariox: has joined #RubyOnRails
[14:34:47] artto_: has joined #RubyOnRails
[14:36:09] fox_mulder_cp: wooow. my speech about my hosting panel based on ror+docker+pg+ansible accepted for opensource conference in Kyiv %)
[14:36:45] artto: has joined #RubyOnRails
[14:38:04] dionysus69: has joined #RubyOnRails
[14:38:34] dminuoso: has joined #RubyOnRails
[14:39:59] finnnnnnnnnnn: has joined #RubyOnRails
[14:40:07] darthdiablo: let me rephrase - if i do this in console (irb):
[14:40:08] lizard2010: ACTION poke fox_mulder_cp
[14:40:09] darthdiablo: irb(main):192:0> csv = CSV("header1,header2") => <#CSV io_type:StringIO encoding:UTF-8 lineno:0 col_sep:"," row_sep:"\n" quote_char:"\""> irb(main):193:0> csv << CSV("a,b")
[14:40:35] darthdiablo: how do i have it output back to me "header1", "header2", "a", "b" (2 rows)
[14:41:27] xall: has joined #RubyOnRails
[14:41:45] darthdiablo: (`csv` seems to be a CSV object, of StringIO type)
[14:41:57] abhvl: has joined #RubyOnRails
[14:42:14] abhvl: is there any inbult way in rails 3 to inform me whenever i tried to add new associtaion to current model?
[14:43:36] abhvl: or i have to manualy add a test for this?
[14:43:59] rafaelflores: has joined #RubyOnRails
[14:44:04] doubleemms: has joined #RubyOnRails
[14:46:28] kevr: has joined #RubyOnRails
[14:46:45] finnnnnnnnnnn: has joined #RubyOnRails
[14:47:03] fox_mulder_cp: lizard2010: hi here
[14:47:22] yardenbar: has joined #RubyOnRails
[14:48:18] alfiemax: has joined #RubyOnRails
[14:49:23] srinidhi: has joined #RubyOnRails
[14:49:28] yottanami: has joined #RubyOnRails
[14:51:09] Contigi777: has joined #RubyOnRails
[14:52:09] Maletor: has joined #RubyOnRails
[14:52:37] HalcyonicStorm: has joined #RubyOnRails
[14:53:39] hahuang61: has joined #RubyOnRails
[14:55:01] bga57: has joined #RubyOnRails
[14:55:06] yottanami: I am using pundit and hereis my ApplicationPolicy now I need to use it in my controller but what should be the name of method for policy_scope?
[14:56:44] rafaelflores: has joined #RubyOnRails
[14:57:11] Macaveli: has joined #RubyOnRails
[14:58:47] harfangk: has joined #RubyOnRails
[14:58:49] fox_mulder_cp: yottanami: read pundit docs, please. it very easy to think it :)
[14:59:10] fox_mulder_cp: yottanami: and examples.
[14:59:33] fox_mulder_cp: yottanami: apps/policies/
[14:59:47] fox_mulder_cp: model_name_policy.rb
[15:00:38] yottanami: fox_mulder_cp, But I need to use ApplicationPolicy itself in my controller
[15:01:35] fox_mulder_cp: yottanami: ApplicstionPolicy - only 'example' scaffold for u
[15:01:41] fox_mulder_cp: yottanami: https://gist.github.com/foxmuldercp/e62c898c9022692944b92f434f18c970
[15:01:49] fox_mulder_cp: one of my controller
[15:04:10] blackmesa: has joined #RubyOnRails
[15:05:03] pvertenten: has joined #RubyOnRails
[15:05:40] aegis3121: has joined #RubyOnRails
[15:05:42] polishdub: has joined #RubyOnRails
[15:06:04] yottanami: fox_mulder_cp, So in your example how you can send your model to policy_scope? I mean something like this `@posts = policy_scope(Post)`
[15:07:02] Oliphaunte: has joined #RubyOnRails
[15:07:45] yottanami: fox_mulder_cp, I mean something like this `ApplicationPolicy::Scope.new(current_user, model.all).resolve`
[15:07:48] jtong: has joined #RubyOnRails
[15:07:58] fox_mulder_cp: yottanami: policy scope - good way for filter only neede posts by user
[15:08:06] fox_mulder_cp: yottanami wait
[15:09:32] mikecmpbll: has joined #RubyOnRails
[15:09:42] yottanami: fox_mulder_cp, yes I need to filter and I will write my filter query in resolve in this example http://dpaste.com/3QN4XMH but how should I send object to resolve in my controller?
[15:10:12] efy_: has joined #RubyOnRails
[15:10:46] fox_mulder_cp: yottanami: https://gist.github.com/foxmuldercp/974ff3e45e51a977bee1911082bd41c0
[15:11:19] fox_mulder_cp: yottanami: and @web_apps = policy_scope(WebApp)
[15:11:30] fox_mulder_cp: in web_apps controller index action
[15:13:24] one_zero: has joined #RubyOnRails
[15:13:35] kuroro: has joined #RubyOnRails
[15:13:45] yottanami: fox_mulder_cp, the problem is in my example the policy_scope is nil so I have to use `scope = ApplicationPolicy::Scope.new(current_user, model.all).resolve`
[15:14:51] fox_mulder_cp: yottanami i have a hook before_action :auth_access -> { authorize (@web_app || WebApp) }
[15:14:57] kuroro: im using render_to_string(inline: "erb string") in my controller action which works on development, but when running rspec tests, i get an exception - "A template needs to have a virtual path in order to be refreshed" . Any idea what I'm doing wrong?
[15:15:08] fox_mulder_cp: after default hook before_action :set_web_app
[15:15:24] fmcgeough: has joined #RubyOnRails
[15:15:50] Sashimi: has joined #RubyOnRails
[15:17:03] silverdust: Just how many reserved words will I encounter. I create a transaction:references and now I can't have a belongs_to :transaction
[15:17:41] silverdust: Do I have to rename my transactions table now to something else I can reference
[15:18:38] macsteps: has joined #RubyOnRails
[15:18:49] fox_mulder_cp: silverdust: u add has_many into nested model?
[15:19:05] fox_mulder_cp: a has_many b, b belongs_to a
[15:19:21] fox_mulder_cp: it must be added manually
[15:20:04] Robtop__: has joined #RubyOnRails
[15:20:13] yottanami: fox_mulder_cp, and your hook will filter the object?
[15:20:30] fox_mulder_cp: silverdust: guides.rubyonrails.org/association_basics.html
[15:20:50] mdw: has joined #RubyOnRails
[15:20:59] lxsameer: has joined #RubyOnRails
[15:21:04] silverdust: fox_mulder_cp: yes but when I run rspec I get this: You tried to define an association named transaction on the model Purchase, but this will conflict with a method transaction already defined by Active Record. Please choose a different association name.
[15:21:35] stardiviner: has joined #RubyOnRails
[15:21:52] fox_mulder_cp: yottanami: @web_app = policy_scope(WebApp).find_by(id: "#{params[:id]}") in set_web_apps
[15:22:02] silverdust: Just like how type is reserved for STI I guess
[15:22:32] silverdust: Maybe transaction reference is reserved for some other thing Idk about
[15:22:32] cschneid_: has joined #RubyOnRails
[15:23:20] rafaelflores: has joined #RubyOnRails
[15:23:24] yottanami: fox_mulder_cp, and what about my code that I have not access to policy_scope?
[15:23:26] silverdust: I take out belongs_to :transaction and it works but then I can't have Transaction.nested_model_data
[15:25:19] arup_r: has joined #RubyOnRails
[15:25:23] yottanami: yottanami, Sorry I have access to policy_scope but it seems it does not call resolve
[15:26:30] fox_mulder_cp: def initialize(user, scope) @@user = @user
[15:27:00] fox_mulder_cp: yottanami: @user = user from (user, scope)
[15:27:12] fox_mulder_cp: see original applicationpolicy
[15:27:23] fox_mulder_cp: and why u use @@
[15:27:51] yottanami: fox_mulder_cp, ` user from` ???
[15:28:25] fox_mulder_cp: yottanami: see initialize from original ApplicationPolicy
[15:28:38] fox_mulder_cp: and fix your own code
[15:28:45] fox_mulder_cp: and see a result
[15:28:59] rafaelflores: has joined #RubyOnRails
[15:29:18] mustmodify: has left #RubyOnRails: ()
[15:30:34] treaki: has joined #RubyOnRails
[15:32:24] rubyonrailed: has joined #RubyOnRails
[15:33:30] finnnnnnnnnnn: has joined #RubyOnRails
[15:35:43] xall: has joined #RubyOnRails
[15:35:49] yottanami: fox_mulder_cp, I tried to fix initializer http://dpaste.com/0ERSHCM and try to debug resolve but it seems it does not called!
[15:36:12] yottanami: fox_mulder_cp, The like that I have byebug never run
[15:38:54] nratter: has joined #RubyOnRails
[15:39:35] yottanami: fox_mulder_cp, I found it. it was override in another policy file. tnx for helps
[15:40:16] theRoUS: has joined #RubyOnRails
[15:41:02] finnnnnnnnnnn_: has joined #RubyOnRails
[15:42:03] nratter: Our ApplicationController is getting pretty bloated with methods. Is there a best practice for modularizing this into different files (so the methods behave as if we they were in ApplicationController) ?
[15:47:46] mikecmpbll: nratter: use concerns/plain modules and include them in your controller
[15:48:02] mikecmpbll: rails sets up app/controllers/concerns as somewhere to plonk 'em.
[15:48:25] nratter: ok thanks!
[15:49:54] Hugo: has joined #RubyOnRails
[15:50:25] rafaelflores: has joined #RubyOnRails
[15:52:58] Maletor: has joined #RubyOnRails
[15:54:16] jtong: has joined #RubyOnRails
[15:54:30] mrbubbles: Thanks jhass - you were right :) though I'm confused, how come ruby converts AL1Test to al1_test rather than a_l1_test? do underscores only get added with 2+ digits preceeding?
[15:54:56] [Butch]: has joined #RubyOnRails
[15:56:54] Rodya_: has joined #RubyOnRails
[15:58:00] rafaelfranca: has joined #RubyOnRails
[15:58:14] fox_mulder_cp: yottanami: be carefull. debugging - bad time using ))
[15:58:47] mikecmpbll: mrbubbles : https://github.com/rails/rails/blob/f2489f493b794ee83a86e746b6240031acb8994e/activesupport/lib/active_support/inflector/methods.rb#L89
[15:59:01] mikecmpbll: i spend 30seconds to try and read that regex and got bored, but feel free to have a look yourself :p
[15:59:09] jhass: mrbubbles: ^ and it's rails, not ruby
[15:59:16] lupine: it's handy, for instance, IP becomes ip, rather than i_p
[15:59:32] mrbubbles: hehe thanks guys
[15:59:39] lupine: and, hey, it's english
[15:59:43] lupine: it's not like there are actual rules to follow
[16:00:02] yottanami: fox_mulder_cp, :D sure. It all Faalis fault :P check it maybe you like it https://github.com/yellowen/faalis
[16:01:53] fox_mulder_cp: yottanami: demo,. where is a demo>^)
[16:02:15] nratter: mikecmpbll: I'm trying to access the `request` object from inside the module I'm including in my controller, as opposed to passing it in via parameters. This doesn't seem to be possible with modules... but I'm probably doing it wrong. Any ideas?
[16:02:33] fox_mulder_cp: nratter: !gist
[16:02:46] SteenJobs: has joined #RubyOnRails
[16:03:12] fox_mulder_cp: nratter: gist your related code to gist.github.com, please
[16:04:14] mikecmpbll: nratter : if the module is included in your controller, then the included methods are no different from any methods defined in the controller.
[16:04:15] nratter: ok will do
[16:04:33] jtong: has joined #RubyOnRails
[16:05:07] yottanami: FooBarWidget, Sample project using Faalis https://github.com/omilun/news_faalis
[16:05:07] FooBarWidget: yottanami: I am currently away. My timezone is Europe/Amsterdam. Please wait until I'm back or check www.phusionpassenger.com/support.
[16:05:29] neohunter: has joined #RubyOnRails
[16:06:14] nettoweb: has joined #RubyOnRails
[16:06:33] mrbubbles: so having a model called IL1Matview in a file called il1_matview.rb works, as you've said. is there any way I can make work with in i_l1_matview.rb instead? it's just because the "i" and "l1" bits are different so it would be nice if they were separated. I also have i_ave_matview, kv_l1_matview, etc
[16:06:38] mrbubbles: Sorry to labour the point :)
[16:06:51] nratter: https://gist.github.com/nratter/b15cbd949267ebe2853be9efb7965642
[16:06:52] jtong: has joined #RubyOnRails
[16:07:28] moeabdol2: has joined #RubyOnRails
[16:07:32] nratter: undefined local variable or method `request' for SegmentModule:Module
[16:07:33] neohunter: has joined #RubyOnRails
[16:07:37] mrbubbles: Could I use an inflection for that?
[16:07:44] mikecmpbll: "A_L1Test".underscore => "a_l1_test"
[16:07:56] neohunter: Hello, its possible to store some values in the environment/development.rb
[16:08:15] neohunter: i want to store a URL that will be used, and will be different for production and for development
[16:08:49] mikecmpbll: neohunter : secrets.yml might be a handier spot for that.
[16:09:19] neohunter: mikecmpbll and how i can access it from anywhere in the app?
[16:09:32] mikecmpbll: neohunter : Rails.application.secrets.my_awesome_url
[16:11:40] nratter: that gist help?
[16:11:55] rafaelflores: has joined #RubyOnRails
[16:12:30] mikecmpbll: nratter : remove the `self.` from the method name
[16:12:30] matthewd: mrbubbles: inflect.acronym 'L1'
[16:12:45] mikecmpbll: nratter: and in your TestController just call `test` not `SegmentModule.test`
[16:13:04] JakFrist: has joined #RubyOnRails
[16:13:11] mrbubbles: BOOM you da man mikecmpbll :D
[16:13:20] mikecmpbll: mrbubbles : ;)
[16:13:29] matthewd: mrbubbles: (or, better, don't use abbreviations like that in the first place... it's quite unidiomatic)
[16:13:33] jtong: has joined #RubyOnRails
[16:14:27] mikecmpbll: nratter : have a quick read of a ruby OOP tut on include + extend, class + instance methods, that kind of thing. it would help you understand what's going on there.
[16:14:49] nratter: ok will do
[16:15:19] rafaelflores: has joined #RubyOnRails
[16:16:07] snowy: has joined #RubyOnRails
[16:17:45] jtong: has joined #RubyOnRails
[16:18:13] xcesariox: has joined #RubyOnRails
[16:18:20] jtong: has joined #RubyOnRails
[16:20:10] cnk: has joined #RubyOnRails
[16:21:30] rubyonrailed: has joined #RubyOnRails
[16:22:19] Malgorath: What do you guys think of coursera.org for paid learning? My work is going to let me do some courses and reimburse me for ones I complete.
[16:23:15] croberts_: has left #RubyOnRails: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[16:23:37] arup_r: has joined #RubyOnRails
[16:24:52] croberts: has joined #RubyOnRails
[16:24:58] Malgorath: and gals too, sorry didn't mean to exclude anyone
[16:27:13] rogue_koder: has joined #RubyOnRails
[16:27:28] cnk: Malgorath: of the online platforms, Coursera and EdX are most like regular college courses - including quality depending largely on the teacher
[16:27:36] Palsson: has joined #RubyOnRails
[16:28:36] cnk: One good thing is you can try a course out for free and then convert to certificate once you decide if you are going to do the wholle thing
[16:29:10] adavia: has joined #RubyOnRails
[16:29:23] Malgorath: cnk, didn't read about a free course but that would be nice.
[16:29:51] Malgorath: Just trying to be more then an unknown when it comes to my 'pedigree' for application development
[16:29:56] xall: has joined #RubyOnRails
[16:30:19] nersoh: has joined #RubyOnRails
[16:30:36] peterppp: has joined #RubyOnRails
[16:31:14] The_Phoenix: has joined #RubyOnRails
[16:31:21] cnk: Courses are useful. Or contributing to some open source projects
[16:31:23] pawnbox: has joined #RubyOnRails
[16:31:28] cnk: both are resume enhancers
[16:32:45] Malgorath: cnk, I'm currently working on building a custom plugin for openproject for a company and writing documentation on how to build them since the information is very VERY vague or misleading thats out there.
[16:33:02] cnk: Excellent!
[16:33:34] Malgorath: my RoR skills are getting better but I'd like some cert to dash on the side also
[16:34:15] Malgorath: cnk, do you think this is worth taking? https://www.coursera.org/specializations/ruby-on-rails
[16:34:38] Malgorath: I mean its from John Hopkins so, seems legit
[16:34:46] fermonkus: has joined #RubyOnRails
[16:35:51] yottanami: fox_mulder_cp, Sample project using Faalis https://github.com/omilun/news_faalis
[16:35:56] peterppp: if I have an A that has_many Bs, then how would I express this query using active record: select count(b.id) from a join b on a.id = b.a_id group by a.id
[16:36:32] peterppp: (in order to get the number of B's that each A has)
[16:36:47] cnk: Malgorath: I know the Johns Hopkins data science courses are well regarded but don't know anything about their rails curriculum
[16:37:48] Malgorath: okay thanks cnk
[16:38:13] peterppp: I just realized there's a thing called counter cache
[16:38:29] dvinciguerra_: has joined #RubyOnRails
[16:39:17] cnk: has joined #RubyOnRails
[16:40:11] djbkd: has joined #RubyOnRails
[16:42:33] cnk: has joined #RubyOnRails
[16:43:33] manfrin: has joined #RubyOnRails
[16:45:31] rafaelflores: has joined #RubyOnRails
[16:46:08] hightower2: has joined #RubyOnRails
[16:47:22] conta: has joined #RubyOnRails
[16:53:45] Maletor: has joined #RubyOnRails
[17:00:21] Oliphaunte: has joined #RubyOnRails
[17:02:20] barhum2013: has joined #RubyOnRails
[17:02:38] aegis3121: has joined #RubyOnRails
[17:04:15] conta: has joined #RubyOnRails
[17:04:25] arBmind: has joined #RubyOnRails
[17:07:31] diegoviola: has joined #RubyOnRails
[17:10:52] oystersauce8: has joined #RubyOnRails
[17:11:16] lxsameer: has joined #RubyOnRails
[17:12:01] macsteps: has joined #RubyOnRails
[17:12:29] centrx: has joined #RubyOnRails
[17:16:42] hahuang65: has joined #RubyOnRails
[17:17:26] nettoweb: has joined #RubyOnRails
[17:17:39] alfiemax: has joined #RubyOnRails
[17:18:19] whathappens: has joined #RubyOnRails
[17:18:58] sneakers: has joined #RubyOnRails
[17:19:26] mikecmpbll: has joined #RubyOnRails
[17:21:31] xall: /join #aws
[17:23:33] aegis3121: has joined #RubyOnRails
[17:23:48] jtong_: has joined #RubyOnRails
[17:24:29] nratter: has joined #RubyOnRails
[17:24:47] nratter: has joined #RubyOnRails
[17:24:50] DoctorMonocular: has joined #RubyOnRails
[17:30:59] hastur: has joined #RubyOnRails
[17:31:25] nratter: has joined #RubyOnRails
[17:37:06] rubyonrails893: has joined #RubyOnRails
[17:38:08] rubyonrails893: do all methods a ruby class inherits come from it
[17:38:18] rubyonrails893: do all methods a ruby class inherits come from its superclass?
[17:38:36] rubyonrails893: or some are included as modules under the hood?
[17:38:38] Rodya_: has joined #RubyOnRails
[17:38:54] kuroro: has left #RubyOnRails: ()
[17:39:00] edwinvdgraaf: has joined #RubyOnRails
[17:39:04] tparenti_: has joined #RubyOnRails
[17:39:26] rubyonrails893: im talking about methods that are not defined in a class but inherited
[17:39:32] jenrzzz: has joined #RubyOnRails
[17:39:32] jenrzzz: has joined #RubyOnRails
[17:40:01] jheathco: has joined #RubyOnRails
[17:40:28] rubyonrails893: do all methods come from its superclass or some are included via modules under the hood?
[17:40:56] jhass: not under the hood
[17:41:25] jhass: but modules provide a second way of inheritance, besides inheriting from a superclass
[17:41:57] jhass: if you want to find out where a method comes from, do object.method(:foo).owner and object.method(:foo).source_location
[17:45:41] rafaelflores: has joined #RubyOnRails
[17:46:18] kevr: has joined #RubyOnRails
[17:48:44] rubyonrails893: jhass ...cool...
[17:49:27] flujan: has joined #RubyOnRails
[17:49:37] Palsson: has joined #RubyOnRails
[17:49:45] rubyonrails893: i did that and got 2 owners of a class i randomly defined
[17:49:59] jenrzzz: has joined #RubyOnRails
[17:50:00] rubyonrails893: i got Kernel and BasicObject
[17:50:07] flujan: Hello guys, I am developing a version 2 of my app. So I need to rename all controllers and views to user the /v2/controller/action. Is there a way to do that without rewriting all routes?
[17:50:36] jhass: rubyonrails893: yes, if you don't specify an explicit superclass, it's Object, which itself inherits BasicObject and includes Kernel
[17:50:43] alfiemax: flujan, look into namespacing/scoping in routes
[17:50:46] jhass: rubyonrails893: see MyRandomClass.ancestors
[17:51:59] rubyonrails893: jhass...yh i see...
[17:55:31] arup_r: has joined #RubyOnRails
[17:55:36] arup_r: capin: Hi :)
[17:55:36] Velizar: has joined #RubyOnRails
[17:56:25] cnk: flujan: Googling for 'rails versioned api' gets a bunch of blog posts and some gems. I would look at some of those
[17:56:48] hahuang61: has joined #RubyOnRails
[17:56:53] cnk: I generally trust Pivotal Labs - https://blog.pivotal.io/labs/labs/api-versioning
[18:02:32] conta: has joined #RubyOnRails
[18:03:36] JakFrist: has joined #RubyOnRails
[18:04:33] yfeldblum: has joined #RubyOnRails
[18:07:22] pLaTo0n: has joined #RubyOnRails
[18:07:49] nickjj: what would guys say is the most idiomatic way of supplying a dynamic / URL based channel to action cable?
[18:08:42] nickjj: right now it seems like the AC javascript is loaded before jquery is ready so i can't just grab an attribute from the dom to pass into App.cable.subscriptions.create
[18:08:51] SteenJobs: i’m getting a timeout when uploading a large video with paperclip-av-transcoder…do you think that’s an nginx issue? the nginx log says “upstream timed out while reading response header from upstream”
[18:09:00] jtong: has joined #RubyOnRails
[18:09:27] bbrowning: has joined #RubyOnRails
[18:10:33] matthewd: nickjj: You can add/remove subscriptions at any time
[18:11:24] nickjj: matthewd, would it be normal to do it on a turbolinks change event? that seems to defeat the purpose tho?
[18:12:52] nickjj: basically i have 1 channel with a few "rooms" (let's just say it's a chat room) and these rooms are defined by url params
[18:13:37] nickjj: so if i navigate from room A to room B , the javascript side needs to subscribe to the new channel , so that means i would need to connect to the channel on each turbolink page change which seems expensive
[18:14:02] VeryBewitching: has joined #RubyOnRails
[18:14:04] matthewd: I'm pretty sure that's how BC3 works
[18:14:25] matthewd: You maintain a single websocket connection, but opt in/out of relevant notifications
[18:14:30] sumobob: has joined #RubyOnRails
[18:15:05] nickjj: AC is smart enough to know run the subscriptions.create() aspect of the connection but not reconnect on each turbolink page change even if the subscription is called on a page change?
[18:15:41] nickjj: i guess that's more of a turbolinks feature tho?
[18:16:34] matthewd: The connection and the subscription are separate -- subscriptions operate over the connection
[18:16:55] nickjj: ah, that threw me off because of the connected/disconnected event handlers in the subscription create method
[18:17:01] matthewd: It's a turbolinks behaviour that the connection is maintained across page loads
[18:17:38] SteenJobs: also - anyone know how to use localhost as the url for redis/resque in development? check out https://github.com/redis/redis-rb/blob/master/lib/redis/client.rb#L406 -> giving me an error since the uri scheme is obvs not redis
[18:17:58] nickjj: i guess in this case, turbolinks:load is the event to hook into since that takes care of a hard page load and TL page changes?
[18:19:42] matthewd: I think so. I'm not really across turbolinks, tbh.
[18:20:31] nickjj: oh, i did that but i'm getting whacky behavior. if i click room B the sub.create happens once, if i click room A the sub.create happens once, if i click room B the sub.create happens twice
[18:20:42] nickjj: and it keeps incrementing until infinity
[18:20:54] matthewd: SteenJobs: Why is the scheme obviously not redis? :/ It sure seems like it should be.
[18:21:00] nickjj: 1, 1, 2, 2, 3, 3, 4, 4, etc.
[18:21:34] SteenJobs: matthewd: haha yea just fixed it. didn’t realize i can do redis://localhost
[18:22:29] matthewd: nickjj: Is the click triggering two subscribes, or is it doing one more, when you're already subscribed?
[18:22:40] kevr: has joined #RubyOnRails
[18:23:06] nickjj: matthewd, i just have it console.logging in the received event handler, and i noticed it logged once, then 2 at a time, then 3 (every single time i moved onto the page)
[18:23:40] nickjj: it's kind of like the previous one isn't being closed on turbolinks:load, so it keeps opening new subscriptions
[18:24:13] roshanavnad_: has joined #RubyOnRails
[18:24:37] matthewd: Are you doing the unsubscribe?
[18:25:00] nickjj: nope, i kind of thought AC would have handled subscribing and unsubbing for me
[18:25:05] raldu: is zlib shipped with ruby by default?
[18:25:28] matthewd: It doesn't know about turbolinks, so as you're not leaving the page..
[18:25:52] nickjj: i'm not even sure where i would be doing the unsubscribe from, i guess the server side?
[18:26:18] AzaToth: has joined #RubyOnRails
[18:26:49] nickjj: the docs don't really mention how unsubscribe works
[18:27:26] davidklsn: has joined #RubyOnRails
[18:29:05] JakFrist: has joined #RubyOnRails
[18:29:17] eljimmy: has joined #RubyOnRails
[18:32:20] sol: has joined #RubyOnRails
[18:33:55] whathappens: has joined #RubyOnRails
[18:34:14] DoctorMonocular: has joined #RubyOnRails
[18:37:03] machinewar: has joined #RubyOnRails
[18:37:21] machinewar: is there a way to cal .save and explicitly not update some columns
[18:37:35] machinewar: like lock those columns on an object
[18:37:43] pawnbox: has joined #RubyOnRails
[18:40:40] akira616: has joined #RubyOnRails
[18:42:01] zacts: has joined #RubyOnRails
[18:43:15] pvertenten: has joined #RubyOnRails
[18:45:09] jstransky: has joined #RubyOnRails
[18:47:02] [Butch]: has joined #RubyOnRails
[18:47:39] DoubleMalt: has joined #RubyOnRails
[18:48:39] SteenJobs: has joined #RubyOnRails
[18:49:31] Axsuul: has joined #RubyOnRails
[18:53:38] pontiki: oh, they've left
[18:53:59] yves: has joined #RubyOnRails
[18:54:32] Maletor: has joined #RubyOnRails
[18:55:33] yfeldblum: has joined #RubyOnRails
[18:55:47] Pumukel: has joined #RubyOnRails
[18:55:58] shinnya: has joined #RubyOnRails
[18:56:40] c355E3B: has joined #RubyOnRails
[18:58:18] mixnblend: has joined #RubyOnRails
[19:01:43] SteenJobs: any recommendations for a simple rich text editor? i need to allow rich text input in our admin panel for an object’s description
[19:02:06] SteenJobs: so literally all i need is the ability for a particular text area to have rich text input
[19:02:18] pontiki: ckeditor, maybe?
[19:02:28] rubyonrailed: has joined #RubyOnRails
[19:02:55] Spami: has joined #RubyOnRails
[19:02:59] pontiki: i can't really say it's all that -- i hate them :) it's just the one i've seen in most projects i've been on
[19:03:02] bbrowning: has joined #RubyOnRails
[19:03:03] Dimik: has joined #RubyOnRails
[19:03:31] pontiki: https://github.com/galetahub/rails-ckeditor
[19:04:12] jhass: there's some bootstrap markdown wysiwig thingy
[19:04:14] SteenJobs: pontiki: https://github.com/tsechingho/ckeditor-rails ?
[19:05:00] SteenJobs: jhass: yea, i was first looking at mercury, was overkill. wysihtml5 looks decent too
[19:05:11] pontiki: SteenJobs: they appear to do the same thing
[19:05:13] blackmesa: has joined #RubyOnRails
[19:05:17] dionysus69: has joined #RubyOnRails
[19:05:24] kevr: has joined #RubyOnRails
[19:05:37] SteenJobs: pontiki: that makes it harder to choose then!!
[19:05:39] pontiki: idk, i'm not making a recommendation in either case
[19:05:50] pontiki: there's like 8 more
[19:06:32] DoctorMonocular: I feel like I'm on the edge of doing this right, but my code is shitty right now. I have a markdown string that has multiple levels of headings. I'm trying to write a method that divides that string into a nested array of strings based on those levels. I suspect I can do something clever with inject([]) to make that happen, but I'm having trouble wrapping my head around it
[19:10:25] pontiki: SteenJobs: here we go: https://www.ruby-toolbox.com/search?utf8=%E2%9C%93&q=ckeditor
[19:12:36] davidklsn: has joined #RubyOnRails
[19:13:06] norfumpit: has joined #RubyOnRails
[19:14:26] Sashimi: has joined #RubyOnRails
[19:14:32] Darmani: has joined #RubyOnRails
[19:16:19] akshat: has joined #RubyOnRails
[19:16:43] CamJN: has joined #RubyOnRails
[19:17:57] flujan: has joined #RubyOnRails
[19:20:41] tinco: hey matthewd, there's this gem that crashes because it expects a socket to be serializable with to_json, but socket inherits from Enumerable and just hangs until EOF when you call as_json on it
[19:21:32] tinco: the gem gets the socket from passengers rack env, and it just tries to dump the whole env into json
[19:21:48] tinco: do you think that's a bug of the gem, or a bug of passenger that it exposes the socket in the rack env?
[19:22:26] zacts: has joined #RubyOnRails
[19:22:33] tinco: I'm debating with my colleague, he supposes maybe ActiveSupport should exclude BasicSocket from the Enumerable#as_json
[19:22:45] matthewd: tinco: Rack includes IOs in there too, so I think I'd say it's the gem that needs to filter
[19:24:00] tinco: alright thanks, maybe it already does so then, because it doesn't crash on puma
[19:24:14] tinco: we'll investigate a little further
[19:25:47] tvon: has joined #RubyOnRails
[19:26:07] tvon: Is there an archive of rails issues pre-github?
[19:26:10] kevr: has joined #RubyOnRails
[19:27:08] mbd2: has joined #RubyOnRails
[19:27:55] tvon: Specifically, I'm trying to figure out why async subscriptions were removed from notifications, but I found the commit so I figured I'd search the old issue tracker since it's from 2010.
[19:28:23] matthewd: tvon: Depending on age, https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/overview or https://web.archive.org/web/*/dev.rubyonrails.org
[19:28:37] tvon: matthewd: Awesome, thank you
[19:28:40] HalcyonicStorm: has left #RubyOnRails: ()
[19:30:29] tvw: has joined #RubyOnRails
[19:38:58] eric_crane: has joined #RubyOnRails
[19:40:29] djbkd: has joined #RubyOnRails
[19:42:10] SteenJobs: if i’m placing the contents of app/assets/stylesheets/ into app/assets/stylesheets/main/, where would i change the filepath for the asset manifest? my app isn’t finding application.scss after doing the above
[19:42:35] zacts: has joined #RubyOnRails
[19:44:10] jenrzzz: has joined #RubyOnRails
[19:45:35] djbkd: has joined #RubyOnRails
[19:46:50] Darmani: Hey guys, how would you add an item to a cart by it's quantity?
[19:47:59] arBmind: has joined #RubyOnRails
[19:49:17] Atomic2: has joined #RubyOnRails
[19:50:41] rubyonrailed: has joined #RubyOnRails
[19:51:41] Leepoff: has joined #RubyOnRails
[19:52:34] whathappens: has joined #RubyOnRails
[19:53:11] arup_r: Darmani: by having a dropdown besides each line items? :) You will select the quantity in from dropdown
[19:53:25] arup_r: is this what you asked or the implementation?
[19:54:00] Darmani: arup_r: I meant the implementation ^.^
[19:55:57] DoctorMonocular: has joined #RubyOnRails
[19:58:55] Atomic2: has joined #RubyOnRails
[19:59:47] sypheren: has joined #RubyOnRails
[20:01:09] eljimmy: has joined #RubyOnRails
[20:09:43] apotry: has joined #RubyOnRails
[20:10:43] mrbubbles: I have the line: render :show, status: :created, location: @reading.result and I get undefined method `reading_url' - which si because the show method is in a controller API::V1::ReadingController, how do I tell it to use that namespace?
[20:11:11] DoubleMalt: has joined #RubyOnRails
[20:12:11] mrbubbles: I've tried using render: controller: '/api/v1', action: 'show' but that doesn't do it
[20:13:02] Sashimi: has joined #RubyOnRails
[20:15:53] jtong: has joined #RubyOnRails
[20:17:07] zacts|pi: has joined #RubyOnRails
[20:17:25] JakFrist: has joined #RubyOnRails
[20:17:40] marahin: It seems that turbolinks are interfering with document.ready() coffee script on my page.
[20:17:46] marahin: What should I do?
[20:19:38] whathappens: has joined #RubyOnRails
[20:20:12] SteenJobs: marahin: either use the jquery-turbolinks gem or get rid of turbolinks?
[20:20:40] marahin: SteenJobs, I am using the default gem, yes.
[20:21:02] marahin: SteenJobs, and I actually have found a solution. turbolinks:load ;)
[20:21:37] marahin: SteenJobs, oh, I just noticed jquery-turbolinks != turbolinks.
[20:21:53] marahin: SteenJobs, well what's the difference?
[20:22:04] SteenJobs: https://github.com/kossnocorp/jquery.turbolinks
[20:24:08] marahin: SteenJobs, well as I've said, instead of using .on('page:load') or $(document).ready()
[20:24:15] marahin: using .on('turbolinks:load' worked just fined
[20:24:19] marahin: and fixed my issue
[20:24:48] SteenJobs: double sweet
[20:27:01] weaksauce: has joined #RubyOnRails
[20:29:52] havenwood: hastur: #!> ArgumentError: wrong number of arguments (given 0, expected 2..3)
[20:32:13] hastur: so i have a design q: Model starts out as data from Form 1. later, users should be able to use Form 2 to add new fields to Model. these fields should not be present at model creation, but i can't figure out how to make Form 2 add new fields without making a new model... and now, Form 1 won't work because the Form 2 fields are missing from the newly created model...
[20:32:42] hastur: like i'm pretty sure i can do this whole thing with only one model in the system
[20:33:20] hastur: but i don't know how to treat Form 1 Models as a special case of Form 2 Models
[20:33:24] Cohedrin: has joined #RubyOnRails
[20:33:34] qejk: has joined #RubyOnRails
[20:35:33] tanuki4: has joined #RubyOnRails
[20:38:19] LBRapid: has joined #RubyOnRails
[20:39:34] jtong: has joined #RubyOnRails
[20:40:01] jtong: has joined #RubyOnRails
[20:43:57] LateralOctober: has joined #RubyOnRails
[20:49:27] zacts|pi: has joined #RubyOnRails
[20:55:15] Maletor: has joined #RubyOnRails
[20:56:15] aegis3121: has joined #RubyOnRails
[20:56:55] Darmani: Hey guys, I'm trying to create orders by the user_session, does this code look right?
[20:56:55] Darmani: @order = Order.find_or_create_by!(user_session
[20:57:16] clandry94: has joined #RubyOnRails
[20:58:57] jmignault: has joined #RubyOnRails
[20:59:35] hahuang61: has joined #RubyOnRails
[21:03:31] hastur: there's no )
[21:04:19] Darmani: hastur: yeah I forgot to add that.
[21:04:33] Darmani: Besides that what do you think?
[21:09:05] workmad3: has joined #RubyOnRails
[21:12:11] FooBarWidget: has joined #RubyOnRails
[21:14:00] whathappens: has joined #RubyOnRails
[21:17:21] kevr: has joined #RubyOnRails
[21:17:36] Rodya_: has joined #RubyOnRails
[21:19:07] upsell5: has joined #RubyOnRails
[21:20:43] fox_mulder_cp: hm. redis, redis.. cache, sessions..
[21:20:52] Rodya__: has joined #RubyOnRails
[21:21:13] fox_mulder_cp: and adminlte, which is cuty but slow. but i'm use dev mode...
[21:21:20] clandry94: Hi all, is there a way I can access service objects from an observer?
[21:21:31] DoctorMonocular: has joined #RubyOnRails
[21:21:59] fox_mulder_cp: clandry94 what is observer and service objects? it's a new word for me now (
[21:22:25] nersoh: has joined #RubyOnRails
[21:22:33] clandry94: @fox_mulder_cp Check out https://blog.engineyard.com/2014/keeping-your-rails-controllers-dry-with-services for service objects
[21:22:45] clandry94: observers watch models and perform actions depending on the callback
[21:24:10] roamingdog: has joined #RubyOnRails
[21:24:28] DoctorMonocular: for what it's worth fox_mulder_cp and clandry94, service objects are way more maintainable, I like them
[21:25:18] roamingd_: has joined #RubyOnRails
[21:25:48] fox_mulder_cp: DoctorMonocular: so i can try move validations and hooks to them?
[21:27:18] roamingd_: has joined #RubyOnRails
[21:29:52] cd-rum: has joined #RubyOnRails
[21:29:54] marr: has joined #RubyOnRails
[21:32:01] tvon: has joined #RubyOnRails
[21:32:06] Radar: GOOD MORNING
[21:32:36] FooBarWidget: has joined #RubyOnRails
[21:33:11] fox_mulder_cp: Radar: wow! glad to see u :)
[21:33:24] cd-rum_: has joined #RubyOnRails
[21:34:30] bruce_lee: has joined #RubyOnRails
[21:34:30] bruce_lee: has joined #RubyOnRails
[21:35:14] fox_mulder_cp: Radar: my speech about my hosting panel based on RoR for apps hosting based on docker appproved to Kyiv OopenSource conference )
[21:36:03] fox_mulder_cp: so i have a 2 month to make a basic milestone
[21:36:03] Markhor1991: has joined #RubyOnRails
[21:40:57] Radar: fox_mulder_cp: nice
[21:43:37] Polysics: has joined #RubyOnRails
[21:43:44] Polysics: hello! more Rails 5 upgrade fun!
[21:44:03] Polysics: all my specs are green but logging in generates a ActionController::InvalidAuthenticityToken error
[21:44:13] Radar: polysics: !ncnh
[21:44:13] helpa: polysics: If you don't provide any code, it becomes really difficult for us to help you. Providing code to reproduce the problem increases your chances of getting great, accurate help immensely.
[21:44:18] Polysics: I think I have deleted all the cache I could, not sure I missed anything that could make that happen
[21:44:23] nettoweb: has joined #RubyOnRails
[21:44:36] workmad3: polysics: clear your browser session
[21:45:01] sloggerkhan: has joined #RubyOnRails
[21:45:04] roamingdog: has joined #RubyOnRails
[21:47:10] Polysics: workmad3: that does not fix it, I think - I killed Chrome
[21:47:24] kevr: has joined #RubyOnRails
[21:47:28] Radar: ACTION taps mic; asks "is this thing on?"
[21:47:37] workmad3: Radar: nope
[21:47:58] Polysics: Radar: I know, I was trying to find meaningful code as the views and controllers are all inside DEvise :)
[21:48:28] Radar: polysics: And you didn't customise any of the views? And you're using the latest version of Devise?
[21:49:24] fox_mulder_cp: polysics i have some issue on devise from git foor rails 5 in chrome. FF + ms edge are ok
[21:49:43] fox_mulder_cp: polysics: *have a this issue
[21:50:52] fox_mulder_cp: polysics: in 4.2.6 all seems ok
[21:50:57] Polysics: sounds sort of worrying that the browser can affect Devise :)
[21:51:21] fox_mulder_cp: polysics: try to use safari, opera or some other browsers
[21:51:45] inkyoto: has joined #RubyOnRails
[21:51:49] fox_mulder_cp: and if it's really issue - create a bugreport to devise )
[21:52:32] inkyoto: Is the best way to deploy Rails still Git and Capistrano...?
[21:53:46] fox_mulder_cp: inkyoto: depends of. ansible, dockerizing, chef, puppet...
[21:54:02] fox_mulder_cp: tons of variants
[21:54:43] akira616: has joined #RubyOnRails
[21:54:57] inkyoto: fox_mulder_cp: gotcha. If I just wanted to do an easy but vanilla deploy to a VPS, what's best?
[21:55:28] Polysics: I'd use Heroku
[21:56:27] inkyoto: hehe, yeah, that's what I usually use
[21:56:31] fox_mulder_cp: polysics: my friend says that devise for reils 5 released
[21:56:44] inkyoto: Don't want to spend too much on this side project though
[21:56:56] LBRapid: has joined #RubyOnRails
[21:56:57] inkyoto: Especially since SSL is $20/month >_>
[21:56:58] banisterfiend: has joined #RubyOnRails
[21:56:59] fox_mulder_cp: so try use releasedv version and commit bugreport if
[21:57:04] havenwood: inkyoto: You might take a look at Mina or deliver.
[21:57:10] Polysics: Radar, I am on the latest Devise (4.2.0) using this form: https://gist.github.com/polysics/3e0d7467cf901f0497bb83d64a52dc40
[21:57:15] inkyoto: havenwood: Thanks, I'll check them out!
[21:57:21] Polysics: the partials are really just HTML
[21:57:22] havenwood: inkyoto: I think you can use a beta feature for ssl with let's encrypt for free.
[21:57:23] havenwood: inkyoto: http://nadarei.co/mina/
[21:57:28] havenwood: inkyoto: https://github.com/gerhard/deliver
[21:57:33] nettoweb: has joined #RubyOnRails
[21:57:47] Radar: polysics: what do the logs say when you make a sign in request?
[21:57:48] inkyoto: havenwood: huh, can you use that to get around Heroku's $20 SSL Endpoint?
[21:57:53] inkyoto: Brilliant, thanks!
[21:58:42] cd-rum: has joined #RubyOnRails
[21:58:52] Polysics: Radar: "Can't verify CSRF token authenticity."
[21:58:56] zacts: has joined #RubyOnRails
[21:59:55] davidklsn: has joined #RubyOnRails
[22:00:00] Radar: polysics: right. So I guess it's not submitting an authenticity_token, or if it is submitting one, then it's an old token
[22:00:04] Radar: I don't know how that could be happening
[22:00:09] Radar: code to reproduce the problem would be great
[22:00:21] Polysics: very short, also the error is really fast to appear
[22:00:33] Polysics: I can spin up a vanilla app because I really have no code here :)
[22:00:58] fox_mulder_cp: Radar: i have this bug too, with rails 5 in betas + devise < 4.2.0
[22:01:58] sypheren: has joined #RubyOnRails
[22:02:43] pawnbox: has joined #RubyOnRails
[22:03:19] adam12: Radar: You doing anything with form objects lately?
[22:03:58] Radar: adam12: yeah, I've been using Reform for them
[22:04:18] adam12: I'll have to look again at Reform. I just rolled my own with Virtus but I'm not sure how I feel about it.
[22:04:40] Polysics: what controls/makes an application regenerate its secrets (if there is such a thing)?
[22:04:49] adam12: And before that, ActiveType, but I dont' care how it assumes associations are models vs another form object. Kind of annoying.
[22:05:13] Radar: polysics: secret_key_base in config/initializers/secret_token.rb
[22:06:31] pawnbox: has joined #RubyOnRails
[22:07:12] pawnbox: has joined #RubyOnRails
[22:07:24] workmad3: polysics: hmm... zero issue for me in chrome with a fresh rails 5 app with devise added...
[22:09:41] Polysics: workmad3: I was building the same, but I would not really expect it to be broken
[22:09:42] workmad3: polysics: just to check it's not a session thing, have you tried in incognito mode? (just restarting chrome generally doesn't kill your session)
[22:09:45] Polysics: it is probably something local
[22:10:33] dvinciguerra_: has joined #RubyOnRails
[22:10:38] nogic: has joined #RubyOnRails
[22:13:28] aegis3121: has joined #RubyOnRails
[22:14:05] xall: i'm working through hartl's rails tutorial and just realized he updated it to rails 5 a few weeks back
[22:14:14] xall: this makes a lot more sense
[22:15:07] srinidhi: has joined #RubyOnRails
[22:16:53] xall: wish he would have made it more clear that it was updated
[22:17:39] cnk: has joined #RubyOnRails
[22:18:59] oystersauce8: has joined #RubyOnRails
[22:20:08] nettoweb: has joined #RubyOnRails
[22:20:37] DoctorMonocular: has joined #RubyOnRails
[22:24:50] hastur: so i'm stuck making db queries using .json from jquery ... and wondering if there's an accepted way to explicitly set a model'
[22:24:56] hastur: s attribute using a method on update or save
[22:25:08] hastur: the attr in question should be an htmlsafe string...
[22:25:24] hastur: so when the json arrives.... i can do model.as_html in js........
[22:25:41] hastur: i hate this solution so much so if there's any alternative i'm all ears
[22:25:42] nickjj: xall, the webpage says rails 5 in the title of the book
[22:26:10] dkam: has joined #RubyOnRails
[22:26:53] oryman: has joined #RubyOnRails
[22:29:00] Polysics: workmad3: I think we can rule out the browser
[22:32:20] xall: nickjj: right. i guess i wasn't aware which version when i started so seeing rails 5 didn't really jump out as something new when i looked at it
[22:33:10] newbism: has joined #RubyOnRails
[22:33:45] apotry: has joined #RubyOnRails
[22:35:50] jjwright_: has joined #RubyOnRails
[22:35:59] newbism: Hi.. I'm trying to write a class method, and then call that class method from within the class (is this possible/best practice or am I thinking of this wrong?) https://gist.github.com/anonymous/884d56392ac245f1f45dce940b28cf33
[22:36:11] nickjj: xall, did you run into a bug with the book?
[22:36:21] newbism: it works but the scope is broke
[22:36:55] Rodya_: has joined #RubyOnRails
[22:37:50] jjwright: has joined #RubyOnRails
[22:38:08] kevr: has joined #RubyOnRails
[22:38:48] xall: nickjj: nothing major but i hit a few snags where i had to mess with things to get tests to pass. i presume it must be rails 5 things
[22:38:57] workmad3: newbism: 'client' doesn't exist inside that `get_lunch` method
[22:39:49] newbism: workmad3: yeah its suppose to be apart of < SlackRubyBot::Bot
[22:40:03] nickjj: xall, rails 5 is still quite new. you may want to msg the author with a report if it's not a hassle
[22:40:10] nickjj: maybe he forgot to update some stuff, it's a big book
[22:40:25] newbism: workmad3: but SuperBot is inheriting that class and get_lunch is within that class?
[22:40:49] workmad3: newbism: it seems like it's always passed into the `match` method, which would imply it's not a class method that's generally available
[22:41:12] workmad3: newbism: and if you want to use it outside of the block you've passed to `match`, you should probably pass it along to the method you're calling ;)
[22:41:35] xall: i dont' think it's an error. it's just that the book changed to rails 5 halfway through and i didn't realize it. had i known, i would have opened the proper version of the book
[22:41:56] nickjj: ah, makes sense. yeah switching major releases mid way through is an issue
[22:42:14] apotry: has joined #RubyOnRails
[22:42:15] nickjj: no real reason to ever check the title of the book if you're on page 314
[22:42:18] xall: my fault, but i would argue it's not very clear that version changed if you are used to just opening the ebook chapter link. i'm not really scanning site when i look at it
[22:43:00] xall: also didn't realize that rails 5 just came out when i started
[22:43:43] jjwright_: has joined #RubyOnRails
[22:52:35] Jet4Fire: has joined #RubyOnRails
[22:56:04] Maletor: has joined #RubyOnRails
[23:01:22] dalbusch1t: has joined #RubyOnRails
[23:03:44] upsell5: has joined #RubyOnRails
[23:03:45] Oliphaunte: has joined #RubyOnRails
[23:05:42] xlegoman: has joined #RubyOnRails
[23:06:23] augcesar: has joined #RubyOnRails
[23:07:27] ErhardtMundt: has joined #RubyOnRails
[23:07:53] andatche: has joined #RubyOnRails
[23:09:53] agent_white: has joined #RubyOnRails
[23:10:10] dmz: has joined #RubyOnRails
[23:12:21] rodfersou: has joined #RubyOnRails
[23:13:26] rubyonrailed: has joined #RubyOnRails
[23:17:21] jstransky: has joined #RubyOnRails
[23:17:28] drale2k: i subed to rubytapas and i so hate the website
[23:17:53] drale2k: so much content but so inconvenient organized
[23:21:40] rubyonrailed: has joined #RubyOnRails
[23:23:37] pvertenten: has joined #RubyOnRails
[23:25:18] macsteps: has joined #RubyOnRails
[23:25:48] dkam: has joined #RubyOnRails
[23:26:20] arooni-mobile: has joined #RubyOnRails
[23:26:25] arooni-mobile__: has joined #RubyOnRails
[23:27:54] oystersauce8: has joined #RubyOnRails
[23:36:05] oystersauce8: has joined #RubyOnRails
[23:36:34] cnk: has joined #RubyOnRails
[23:38:16] quazimodo: has joined #RubyOnRails
[23:45:01] Jasaka: has joined #RubyOnRails
[23:45:36] i: has joined #RubyOnRails
[23:48:05] rubyonrailed: has joined #RubyOnRails
[23:50:23] rubyonrailed: has joined #RubyOnRails
[23:59:57] zacts: has joined #RubyOnRails