« Back to channel list

#RubyOnRails - 06 December 2015

« Back 1 day Forward 1 day »
[00:02:24] kegan_: so i forgot to add the --bootstrap argument to the simple_form initializer, and then the wrapper for the horizontal-form, which i tried before but did not work due to the aforementioned issue
[00:02:35] kegan_: in case anyone is a dumbass like myself and runs into the same problem
[00:04:30] monoprotic: has joined #RubyOnRails
[00:04:31] monoprotic: has joined #RubyOnRails
[00:04:40] kegan_: to be clear, just adding the form-horizontal class to the html of the simple_form isn't enough
[00:07:04] ElSif: has joined #RubyOnRails
[00:07:34] elton: has joined #RubyOnRails
[00:08:20] honestemu: has joined #RubyOnRails
[00:08:46] honestemu1: has joined #RubyOnRails
[00:09:15] shibabu: has joined #RubyOnRails
[00:10:51] monoprotic: has joined #RubyOnRails
[00:10:51] monoprotic: has joined #RubyOnRails
[00:14:14] versatiletech: has joined #RubyOnRails
[00:14:14] shibabu: has joined #RubyOnRails
[00:15:52] ktchup: has joined #RubyOnRails
[00:19:56] annlewis: has joined #RubyOnRails
[00:20:00] shanemcd_: has joined #RubyOnRails
[00:22:21] jessemcgilallen: has joined #RubyOnRails
[00:22:48] hardtail: has joined #RubyOnRails
[00:26:39] Maletor: has joined #RubyOnRails
[00:29:53] pyemkey: has joined #RubyOnRails
[00:30:29] jetpackjoe: has joined #RubyOnRails
[00:34:01] sucks: has joined #RubyOnRails
[00:36:52] shibabu: has joined #RubyOnRails
[00:37:29] sucks: has joined #RubyOnRails
[00:37:53] Sawbones: has joined #RubyOnRails
[00:39:27] owenjones: has joined #RubyOnRails
[00:41:15] Sawbones: has joined #RubyOnRails
[00:41:30] _Tariq: has joined #RubyOnRails
[00:42:18] maloik: has joined #RubyOnRails
[00:43:30] shibabu: has joined #RubyOnRails
[00:53:03] jmrepetti: has joined #RubyOnRails
[00:53:32] sucks: has joined #RubyOnRails
[00:54:42] jmrepetti: has joined #RubyOnRails
[00:56:11] versatiletech: Which CSS frameworks are very fast for prototyping with common UI components that you'd use in a web app to help me quickly build an MVP, and responsive? I've looked at Bootstrap, Foundation, Semantic, and Kube. A lot here have worked in the startup space so I though I'd ask for your experiences.
[00:57:00] FooMunki: has joined #RubyOnRails
[00:57:14] jetpackjoe: has joined #RubyOnRails
[00:58:36] sucks_: has joined #RubyOnRails
[00:58:52] alindeman: has joined #RubyOnRails
[00:59:06] chipotle: has joined #RubyOnRails
[01:00:30] Rodya_: has joined #RubyOnRails
[01:01:09] jhill: has joined #RubyOnRails
[01:01:22] upgrayeddd: has joined #RubyOnRails
[01:01:43] KensoDev: has joined #RubyOnRails
[01:02:46] maloik: has joined #RubyOnRails
[01:03:50] kfrz: has joined #RubyOnRails
[01:04:18] ascarter: has joined #RubyOnRails
[01:04:31] aandrew: has joined #RubyOnRails
[01:04:38] aandrew: hello everyone
[01:05:19] aandrew: I'm running a redmine 2.6.6 install with rails 3.2.22 and ruby 1.9.3-p194
[01:05:43] aandrew: trying to use a new plugin (redmine-git-hosting) and I'm getting an error 500. the log is telling me that 'chomp' doesn't exist
[01:05:56] aandrew: my question is is this because of my ruby version (1.9.3)?
[01:08:50] elton: has joined #RubyOnRails
[01:08:51] ktchup: has joined #RubyOnRails
[01:12:35] bronson: has joined #RubyOnRails
[01:12:53] jacksparrow007: has joined #RubyOnRails
[01:13:03] hardtail: has joined #RubyOnRails
[01:13:18] sucks: has joined #RubyOnRails
[01:16:43] centrx: aandrew, Pretty sure chomp is in Ruby 1.9
[01:16:55] centrx: aandrew, http://ruby-doc.org/core-1.9.3/String.html#method-i-chomp
[01:16:55] jhass: aandrew: no, it's because you ignored half of the error message
[01:17:30] aandrew: ActionView::Template::Error (undefined method `chomp' for nil:NilClass)
[01:17:33] aandrew: is the whole error
[01:18:10] jhass: so you have nil where you expect a string
[01:19:33] alindeman: has joined #RubyOnRails
[01:20:35] sankaber: has joined #RubyOnRails
[01:20:41] annlewis: has joined #RubyOnRails
[01:21:51] stannard: has joined #RubyOnRails
[01:23:11] juddey: has joined #RubyOnRails
[01:24:27] greg: has joined #RubyOnRails
[01:25:13] greg: when do we expeect rails 5 to be publiclly released?
[01:25:41] shibabu: has joined #RubyOnRails
[01:27:26] Maletor: has joined #RubyOnRails
[01:27:54] B1n4r10: has joined #RubyOnRails
[01:27:59] Sawbones: has joined #RubyOnRails
[01:28:38] rhizome: it was released yesterday, didn't you hear?
[01:29:40] owenjones: has joined #RubyOnRails
[01:30:08] beast: has joined #RubyOnRails
[01:31:05] greg: it says it releses in month of dec..
[01:34:26] rhizome: it'll be in the topic when it drops
[01:36:46] ktchup: has joined #RubyOnRails
[01:39:05] versatiletech: has joined #RubyOnRails
[01:39:42] _djbkd: has joined #RubyOnRails
[01:40:51] maloik: has joined #RubyOnRails
[01:43:30] annlewis: has joined #RubyOnRails
[01:44:08] workmad3_: has joined #RubyOnRails
[01:47:12] versatiletech: has joined #RubyOnRails
[01:49:40] aandrew: thanks guys, I figured out I was just being stupid in other areas :-)
[01:50:08] rhizome: has joined #RubyOnRails
[01:50:29] jhass: aandrew: like running no longer officially supported ruby versions? :P
[01:51:14] aandrew: jhass: I'm a scared little child when touching anything on my redmine install. I'll eventually upgrade :-)
[01:51:32] Trynemjoel: has joined #RubyOnRails
[01:51:37] one_zero: has joined #RubyOnRails
[01:55:00] jacksparrow007: has joined #RubyOnRails
[01:55:21] ktchup: has joined #RubyOnRails
[01:56:56] RegulationD: has joined #RubyOnRails
[01:58:41] Sawbones: has joined #RubyOnRails
[01:58:43] nickenchuggets: has joined #RubyOnRails
[02:00:45] KensoDev: has joined #RubyOnRails
[02:01:01] FailBit: has joined #RubyOnRails
[02:01:12] FailBit: demorgan's laws
[02:02:27] _djbkd: has joined #RubyOnRails
[02:02:31] aandrew: has left #RubyOnRails: ()
[02:04:33] rhizome: has joined #RubyOnRails
[02:05:29] Sawbones: has joined #RubyOnRails
[02:09:29] elton: has joined #RubyOnRails
[02:13:35] KensoDev_: has joined #RubyOnRails
[02:15:40] Bryan: has joined #RubyOnRails
[02:16:41] mdowd: has joined #RubyOnRails
[02:17:21] maloik: has joined #RubyOnRails
[02:18:23] user1138: has joined #RubyOnRails
[02:19:31] user1138: has joined #RubyOnRails
[02:20:27] sikurus10: has joined #RubyOnRails
[02:24:00] rhizome: has joined #RubyOnRails
[02:24:41] kegan_: has joined #RubyOnRails
[02:25:52] versatiletech: has joined #RubyOnRails
[02:26:30] alindeman: has joined #RubyOnRails
[02:26:52] diprotic: has joined #RubyOnRails
[02:26:52] diprotic: has joined #RubyOnRails
[02:28:10] Maletor: has joined #RubyOnRails
[02:31:55] pyemkey: has joined #RubyOnRails
[02:35:34] Trynemjoel: has joined #RubyOnRails
[02:36:45] Sawbones: has joined #RubyOnRails
[02:37:32] maloik: has joined #RubyOnRails
[02:38:15] ewnd9_: has joined #RubyOnRails
[02:38:59] diegoviola: has joined #RubyOnRails
[02:40:05] versatiletech: has joined #RubyOnRails
[02:40:13] FailBit: <JoeyH3> From what I understand, node.js is only pleasant when under the influence of mood-altering drugs
[02:43:10] Aasha: has joined #RubyOnRails
[02:44:02] alindeman: has joined #RubyOnRails
[02:44:55] wsewolod: has joined #RubyOnRails
[02:45:12] Sawbones: has joined #RubyOnRails
[02:45:22] mdowd: has joined #RubyOnRails
[02:45:55] wsewolod: has joined #RubyOnRails
[02:45:56] maloik: has joined #RubyOnRails
[02:47:15] Beverage: has joined #RubyOnRails
[02:47:26] monoprotic: has joined #RubyOnRails
[02:47:26] monoprotic: has joined #RubyOnRails
[02:49:32] Aasha: has joined #RubyOnRails
[02:51:01] annlewis: has joined #RubyOnRails
[02:53:58] hardtail: has joined #RubyOnRails
[02:54:31] Rumbles: has joined #RubyOnRails
[02:54:45] threeminutemonta: has joined #RubyOnRails
[02:56:19] Rumbles: hi, can anyone advise how to run a rails console in a sandbox which restricts the user from accessing system commands? http://superuser.com/questions/1009250/forcing-a-user-on-login-in-to-a-rails-console-and-prevent-them-access-system-co
[02:59:38] wsewolod: has joined #RubyOnRails
[03:04:44] diegoviola: FailBit: lol
[03:05:12] diegoviola: I just don't like JS
[03:06:31] maloik: has joined #RubyOnRails
[03:06:35] diegoviola: I'm working on this rails app, and I've been working really hard at it that it's almost finished, but I know the dude I'm working with is a node guy and he will want to rewrite it in nodejs
[03:06:41] diegoviola: for v2 or something
[03:07:28] diegoviola: nothing against that, I just don't see what the point of that is, and I don't want to duplicate work just because...
[03:08:02] Pupeno: has joined #RubyOnRails
[03:08:02] Pupeno: has joined #RubyOnRails
[03:10:08] elton: has joined #RubyOnRails
[03:12:59] SteenJobs: has joined #RubyOnRails
[03:13:33] SalexW: has joined #RubyOnRails
[03:14:04] Potatomound: has joined #RubyOnRails
[03:16:06] dmz: has joined #RubyOnRails
[03:16:06] dmz: has joined #RubyOnRails
[03:18:32] drbayer: has joined #RubyOnRails
[03:20:32] maloik: has joined #RubyOnRails
[03:24:33] stannard: has joined #RubyOnRails
[03:26:04] versatiletech: has joined #RubyOnRails
[03:26:21] claytonzaugg: has joined #RubyOnRails
[03:28:11] shibabu: has joined #RubyOnRails
[03:29:03] Maletor: has joined #RubyOnRails
[03:31:00] hardtail: has joined #RubyOnRails
[03:31:50] jacksparrow007: has joined #RubyOnRails
[03:32:07] Grundell: has joined #RubyOnRails
[03:33:46] SteenJobs: has joined #RubyOnRails
[03:34:06] arup_r: has joined #RubyOnRails
[03:34:19] kfrz: has joined #RubyOnRails
[03:34:35] rgrmatt: has joined #RubyOnRails
[03:37:01] jscheel: has joined #RubyOnRails
[03:38:21] quazimodo: has joined #RubyOnRails
[03:40:36] xcesariox: has joined #RubyOnRails
[03:42:16] owenjones: has joined #RubyOnRails
[03:43:36] maloik: has joined #RubyOnRails
[03:44:18] hardtail: has joined #RubyOnRails
[03:51:41] annlewis: has joined #RubyOnRails
[03:55:11] hello9: has joined #RubyOnRails
[03:56:56] Potatomound: has joined #RubyOnRails
[03:57:45] user1138: has joined #RubyOnRails
[03:58:06] jacksparrow007: has joined #RubyOnRails
[03:58:41] hello9: How can I get only records that are distinct across all attributes besides ID? So if there is a model with say 3 attributes and an ID, i want to exclude the records where the 3 attributes are all identical
[03:58:48] maloik: has joined #RubyOnRails
[04:00:03] beilabs: has joined #RubyOnRails
[04:00:13] FooMunki: has left #RubyOnRails: ()
[04:03:22] yfeldblum: has joined #RubyOnRails
[04:09:39] hardtail: has joined #RubyOnRails
[04:10:57] elton: has joined #RubyOnRails
[04:11:53] versatiletech: has joined #RubyOnRails
[04:14:10] annlewis: has joined #RubyOnRails
[04:15:49] braincrash: has joined #RubyOnRails
[04:15:54] shibabu: has joined #RubyOnRails
[04:19:03] maloik: has joined #RubyOnRails
[04:23:50] Sawbones: has joined #RubyOnRails
[04:24:28] elton: has joined #RubyOnRails
[04:24:32] arup_r: hello9: use .distince method with an argument list
[04:25:02] nyaa: has joined #RubyOnRails
[04:25:28] versatiletech: has joined #RubyOnRails
[04:25:37] hello9: arup_r, do you mean distinct?
[04:25:45] arup_r: ah. yes.. typo
[04:25:46] hello9: im using rails 2, so no distinct ;(
[04:26:00] arup_r: ok. What RDBMS you are using ?
[04:26:20] arup_r: postgresql, mysql .. what ?
[04:26:47] slash_me: hello9: sorry to hear that... can you try this: http://stackoverflow.com/a/5009520/1152759
[04:27:08] arup_r: ^^ that will help
[04:27:09] rhizome: has joined #RubyOnRails
[04:27:35] arup_r: slash_me: (slash_nick) bye.
[04:28:37] bronson: has joined #RubyOnRails
[04:29:46] Maletor: has joined #RubyOnRails
[04:30:15] kfrz: has joined #RubyOnRails
[04:33:11] Darkman738: has joined #RubyOnRails
[04:33:39] pyemkey: has joined #RubyOnRails
[04:36:19] bulldawgden: has joined #RubyOnRails
[04:39:30] Tarellel: has joined #RubyOnRails
[04:44:12] safetypin: has joined #RubyOnRails
[04:45:32] camilasan: has joined #RubyOnRails
[04:45:50] beilabs: has joined #RubyOnRails
[04:47:23] troys: has joined #RubyOnRails
[04:50:34] blackhuey: has joined #RubyOnRails
[04:52:33] shibabu: has joined #RubyOnRails
[04:52:45] yatish27: has joined #RubyOnRails
[04:53:59] speaking1ode: has joined #RubyOnRails
[04:54:06] jscheel: has joined #RubyOnRails
[04:59:56] blackhuey: has left #RubyOnRails: ()
[05:00:40] blackhuey: has joined #RubyOnRails
[05:03:53] maloik: has joined #RubyOnRails
[05:05:55] rhizome: has joined #RubyOnRails
[05:06:12] hello9: how can I run raw SQL on an array of records?
[05:08:15] mdowd: has joined #RubyOnRails
[05:08:23] SteenJobs: has joined #RubyOnRails
[05:13:53] The_Phoenix: has joined #RubyOnRails
[05:14:35] rhizome: are you sure that's what you want to do
[05:18:37] SteenJobs: has joined #RubyOnRails
[05:19:35] rubyonrailed: has joined #RubyOnRails
[05:20:01] K_r3aPeR: has joined #RubyOnRails
[05:22:30] annlewis: has joined #RubyOnRails
[05:22:45] K_r3aPeR: has joined #RubyOnRails
[05:24:04] maloik: has joined #RubyOnRails
[05:26:05] owenjones: has joined #RubyOnRails
[05:26:34] sikurus10: has joined #RubyOnRails
[05:26:37] sparr: has joined #RubyOnRails
[05:30:35] Maletor: has joined #RubyOnRails
[05:32:46] K_r3aPeR: has joined #RubyOnRails
[05:32:58] baweaver: has joined #RubyOnRails
[05:37:32] elton: has joined #RubyOnRails
[05:39:41] beilabs: has joined #RubyOnRails
[05:39:43] maloik: has joined #RubyOnRails
[05:40:55] K_r3aPeR: has joined #RubyOnRails
[05:42:26] diegoviola: SELECT * from correspondencies WHERE date_trunc('day', ts_signature) = date_trunc('day', ts_print) AND EXTRACT(hour FROM ts_signature) <= 19SELECT * from correspondencies WHERE date_trunc('day', ts_signature) = date_trunc('day', ts_print) AND EXTRACT(hour FROM ts_signature) <= 19
[05:42:30] diegoviola: how do I say AND EXTRACT(hour FROM next day of ts_signature) <= 19
[05:44:41] kegan_: is it better to directly override values in bootstrap-variables.scss
[05:44:44] kegan_: or just have another import
[05:44:45] kegan_: that does so
[05:44:51] kegan_: typically?
[05:46:33] nickenchuggets: has joined #RubyOnRails
[05:47:18] ibouvousaime: has joined #RubyOnRails
[05:47:42] mostlybadfly: has joined #RubyOnRails
[05:47:51] K_r3aPeR: has joined #RubyOnRails
[05:48:57] towski_: has joined #RubyOnRails
[05:49:04] Oliphaunte: has joined #RubyOnRails
[05:50:02] Oliphaunte: has joined #RubyOnRails
[05:52:10] kfrz: has joined #RubyOnRails
[05:54:09] beilabs: has joined #RubyOnRails
[05:54:26] maloik: has joined #RubyOnRails
[05:57:36] elton: has joined #RubyOnRails
[05:58:26] Sawbones: has joined #RubyOnRails
[05:59:57] yashinbasement: has joined #RubyOnRails
[06:00:42] SteenJobs: has joined #RubyOnRails
[06:00:59] yashinbasement: HI people can any one guide me what's the best way to read .grib2 files in rails
[06:02:21] xcesariox: has joined #RubyOnRails
[06:03:44] jacksparrow007: has joined #RubyOnRails
[06:04:07] pontiki: no idea what grib is. anything in rubygems?
[06:04:23] lxsameer: has joined #RubyOnRails
[06:05:45] beilabs: has joined #RubyOnRails
[06:06:37] yashinbasement: yeah I tried for days to get around to the existing gem , but It always has a problem with the installation and worst part is there is not much help
[06:06:50] yashinbasement: out there for the existing gems
[06:07:03] beilabs: has joined #RubyOnRails
[06:07:18] yashinbasement: But I was thinking If someone has expereince and I need to some advice also in this thinking
[06:07:23] pontiki: gem owners not responding?
[06:07:37] elton: has joined #RubyOnRails
[06:08:10] yashinbasement: I was thinking that I can read file with python script as there are good lib to read such files and somehow I need that result in my rails app
[06:08:34] yashinbasement: what's the best way to do so!
[06:09:28] pontiki: well, idk, i don't know what it does, but maybe you can write some python to do an ETL and stick it in your rails app that way? like can it transform into CSV, JSON, or something like that?
[06:09:58] maloik: has joined #RubyOnRails
[06:10:41] beilabs: has joined #RubyOnRails
[06:11:59] pontiki: then you could have a quick importer from a CSV file and copy it into a temp table
[06:12:54] Potatomound: has joined #RubyOnRails
[06:13:21] DavidDudson: has joined #RubyOnRails
[06:14:20] pontiki: are the .grib2 files coming in from a user?
[06:15:29] moeabdol: has joined #RubyOnRails
[06:16:58] SteenJobs: has joined #RubyOnRails
[06:17:34] yashinbasement: no I am downloading them from a website
[06:18:28] yashinbasement: and you are right, it would be easy to read json or csv but I am not aware of ruby or python program that does that , in fact I reseached that earlier
[06:19:08] cornerma1: has joined #RubyOnRails
[06:19:40] _3by8: has joined #RubyOnRails
[06:22:10] yardenbar: has joined #RubyOnRails
[06:22:40] xybre: JSON parsing ships with Ruby
[06:23:09] annlewis: has joined #RubyOnRails
[06:24:18] Rodya_: has joined #RubyOnRails
[06:26:13] pontiki: i'm really quite sure it's in python as well
[06:27:11] pontiki: what is .grib2 used for?
[06:27:16] pontiki: or by, for that matter
[06:29:44] djbkd: has joined #RubyOnRails
[06:29:46] pontiki: is it this: http://www.nws.noaa.gov/mdl/NDFD_GRIB2Decoder/ ?
[06:30:17] maloik: has joined #RubyOnRails
[06:31:21] Maletor: has joined #RubyOnRails
[06:36:29] framling: has joined #RubyOnRails
[06:37:36] shibabu: has joined #RubyOnRails
[06:40:44] xybre: I'm guessing weather data
[06:41:36] xybre: YAML is also a superset of JSON, so considering that every Ruby project uses YAML for configuration, there's obviously support for it.
[06:42:22] owenjones: has joined #RubyOnRails
[06:43:07] pontiki: that would be what noaa does :)
[06:44:51] xybre: pontiki: I didn't click the link, I'm having bandwidth issues remember :D also I don't remember what NOAA stands for
[06:44:52] Oliphaunte: has joined #RubyOnRails
[06:44:59] yashinbasement: yes you are rught it's used for storing data in matrix format
[06:45:48] maloik: has joined #RubyOnRails
[06:47:25] ascarter: has joined #RubyOnRails
[06:50:59] SteenJobs: has joined #RubyOnRails
[06:53:42] beilabs: has joined #RubyOnRails
[06:54:52] mary5030: has joined #RubyOnRails
[06:58:37] maloik: has joined #RubyOnRails
[06:59:09] baweaver: has joined #RubyOnRails
[07:01:28] ss_much: has joined #RubyOnRails
[07:05:07] sbhatore: has joined #RubyOnRails
[07:08:42] rubyonrailed: has joined #RubyOnRails
[07:08:47] elton: has joined #RubyOnRails
[07:09:37] johnflux: has joined #RubyOnRails
[07:10:34] maloik: has joined #RubyOnRails
[07:13:32] Pazician: has joined #RubyOnRails
[07:14:48] SteenJobs: has joined #RubyOnRails
[07:18:45] Cervajz: has joined #RubyOnRails
[07:21:18] Cervajz_: has joined #RubyOnRails
[07:24:00] annlewis: has joined #RubyOnRails
[07:24:00] ibouvousaime: has joined #RubyOnRails
[07:24:36] Ashi107: has joined #RubyOnRails
[07:26:00] maloik: has joined #RubyOnRails
[07:26:09] mdowd: has joined #RubyOnRails
[07:31:30] jacksparrow007: has joined #RubyOnRails
[07:32:09] Maletor: has joined #RubyOnRails
[07:32:12] pyemkey: has joined #RubyOnRails
[07:34:05] norc: has joined #RubyOnRails
[07:35:07] Pupeno: has joined #RubyOnRails
[07:44:55] SteenJobs: has joined #RubyOnRails
[07:45:57] Oliphaunte: has joined #RubyOnRails
[07:46:49] srinidhi: has joined #RubyOnRails
[07:46:51] srinidhi: has joined #RubyOnRails
[07:51:02] AzaToth: has joined #RubyOnRails
[07:51:31] SteenJobs: has joined #RubyOnRails
[07:54:12] pyemkey: has joined #RubyOnRails
[07:54:45] benhuda: has joined #RubyOnRails
[07:56:16] darutoko: has joined #RubyOnRails
[07:57:25] cac: has joined #RubyOnRails
[07:58:01] annlewis: has joined #RubyOnRails
[07:58:59] B1n4r10: has joined #RubyOnRails
[08:04:35] ibouvousaime: has joined #RubyOnRails
[08:06:05] cac: has joined #RubyOnRails
[08:06:37] SteenJobs: has joined #RubyOnRails
[08:08:18] jmrepetti: has joined #RubyOnRails
[08:09:10] K_r3aPeR: has joined #RubyOnRails
[08:09:36] elton: has joined #RubyOnRails
[08:11:15] cac: has joined #RubyOnRails
[08:13:44] _3by8: has joined #RubyOnRails
[08:14:16] blackmesa: has joined #RubyOnRails
[08:15:41] pyemkey: has joined #RubyOnRails
[08:16:33] DoubleMalt: has joined #RubyOnRails
[08:16:38] benhuda: has joined #RubyOnRails
[08:17:53] bronson: has joined #RubyOnRails
[08:20:13] reber: has joined #RubyOnRails
[08:21:23] K_r3aPeR: has joined #RubyOnRails
[08:22:17] nickenchuggets: has joined #RubyOnRails
[08:22:17] nickenchuggets: has joined #RubyOnRails
[08:24:49] maloik: has joined #RubyOnRails
[08:28:20] dionysus69: has joined #RubyOnRails
[08:29:37] jscheel: has joined #RubyOnRails
[08:30:46] cac: has joined #RubyOnRails
[08:30:56] TeamColt_: has joined #RubyOnRails
[08:31:13] berserk_ren: has joined #RubyOnRails
[08:32:52] Maletor: has joined #RubyOnRails
[08:32:54] pulgalipe: has joined #RubyOnRails
[08:34:45] sevenseacat: has joined #RubyOnRails
[08:40:25] shibabu: has joined #RubyOnRails
[08:40:40] bronson: has joined #RubyOnRails
[08:41:04] rromanchuk: has joined #RubyOnRails
[08:41:05] rromanch_: has joined #RubyOnRails
[08:41:50] digneety: has joined #RubyOnRails
[08:42:18] K_r3aPeR: has joined #RubyOnRails
[08:43:32] rubyonrailed: has joined #RubyOnRails
[08:45:47] jmrepetti: has joined #RubyOnRails
[08:46:13] shibabu: has joined #RubyOnRails
[08:46:33] collink: has joined #RubyOnRails
[08:46:55] collink: hey, anyone have much experience with SPAs using RoR and Angular?
[08:49:27] collink: I'm trying to get past a hurdle with RoR's asset pipeline and my templates
[08:49:39] collink: my Angular templates, that is
[08:54:44] cac: has joined #RubyOnRails
[08:56:48] pyemkey: has joined #RubyOnRails
[08:57:22] cac: has joined #RubyOnRails
[08:57:28] norc: collink: Instead of asking whether there is anyone, just present your problem and ask a question
[08:57:29] jmrepetti: has joined #RubyOnRails
[08:57:30] Grundell: has joined #RubyOnRails
[08:59:44] norc: I thought fun was not allowed here. Now I remember, that was ##c++ though.
[09:00:28] shibabu: has joined #RubyOnRails
[09:00:55] K_r3aPeR: has joined #RubyOnRails
[09:02:44] BoogyWookie: has joined #RubyOnRails
[09:04:25] collink: well, I'm using the angular-rails-templates gem, and using rails' asset pipeline to include the application. The only part of my application that's not getting included are the views, and I can't for the life of me figure out why...
[09:05:23] annlewis: has joined #RubyOnRails
[09:09:48] maloik: has joined #RubyOnRails
[09:09:49] pyemkey_: has joined #RubyOnRails
[09:14:07] Pazician: has joined #RubyOnRails
[09:14:37] cac: has joined #RubyOnRails
[09:15:17] mdowd: has joined #RubyOnRails
[09:16:07] ewnd9_: has joined #RubyOnRails
[09:18:50] norc: I have a seperate environments/staging.rb and environments/production.rb - is there an elegant way to have the staging use whatever is specified in production.rb?
[09:19:44] norc: (The only difference between them is the deployment host - so I want them to behave exactly the same)
[09:20:16] sevenseacat: require production.rb in staging.rb ?
[09:20:16] annlewis: has joined #RubyOnRails
[09:20:50] drbayer: has joined #RubyOnRails
[09:24:49] pyemkey: has joined #RubyOnRails
[09:25:34] blackmesa: has joined #RubyOnRails
[09:25:53] K_r3aPeR: has joined #RubyOnRails
[09:31:17] kmckelvin: has joined #RubyOnRails
[09:33:38] Maletor: has joined #RubyOnRails
[09:34:26] pyemkey: has joined #RubyOnRails
[09:35:02] maloik: has joined #RubyOnRails
[09:35:22] Pupeno: has joined #RubyOnRails
[09:37:27] berserk_ren: has joined #RubyOnRails
[09:37:30] armyriad: has joined #RubyOnRails
[09:37:48] pyemkey: has joined #RubyOnRails
[09:39:48] moeabdol: has joined #RubyOnRails
[09:40:37] Oliphaunte: has joined #RubyOnRails
[09:40:39] adac: has joined #RubyOnRails
[09:44:10] pyemkey: has joined #RubyOnRails
[09:46:55] marr: has joined #RubyOnRails
[09:47:35] otherj: has joined #RubyOnRails
[09:50:25] maloik: has joined #RubyOnRails
[09:51:25] bronson: has joined #RubyOnRails
[09:51:36] Rumbles: has joined #RubyOnRails
[09:55:43] shapeshifter: How can I disable asset digest for specific subdirectories? It seems like there's the global config.assets.digest and it's possible to configure asset_path('specific-file', :digest => false) but I can't find an option to disable digest for whole directories.
[09:56:13] arBmind: has joined #RubyOnRails
[10:02:24] Meow-J: has joined #RubyOnRails
[10:04:53] sevenseacat: has joined #RubyOnRails
[10:06:26] lapide_viridi: has joined #RubyOnRails
[10:10:29] Pupeno: has joined #RubyOnRails
[10:10:53] elton: has joined #RubyOnRails
[10:13:25] pyemkey_: has joined #RubyOnRails
[10:19:00] pyemkey: has joined #RubyOnRails
[10:20:56] tildes: has joined #RubyOnRails
[10:21:02] annlewis: has joined #RubyOnRails
[10:23:09] srinidhi: has joined #RubyOnRails
[10:23:14] mikecmpbll: has joined #RubyOnRails
[10:24:42] yfeldblum: has joined #RubyOnRails
[10:31:34] Rumbles: can anyone suggest how I would sandbox a rails process, so that a user can connect to a machine and have access to a rails console, but no system commands? I've posted in detail here: http://serverfault.com/questions/741073/forcing-a-user-on-remote-connection-in-to-a-rails-console-and-prevent-them-acc
[10:31:48] jacksparrow007: has joined #RubyOnRails
[10:34:28] Maletor: has joined #RubyOnRails
[10:35:16] Sylario: has joined #RubyOnRails
[10:39:17] SteenJobs: has joined #RubyOnRails
[10:39:27] FailBit: you can't but you can use e.g. hoosegow
[10:42:13] wldcordeiro: has joined #RubyOnRails
[10:44:06] tfitts: has joined #RubyOnRails
[10:48:16] sikurus10: has joined #RubyOnRails
[10:49:09] paulodiniz: has joined #RubyOnRails
[10:50:31] The_Phoenix1: has joined #RubyOnRails
[10:54:15] Rumbles: that's not something I have heard of before FailBit
[10:56:17] Rumbles: are you referring to this FailBit ? https://github.com/github/hoosegow
[11:01:39] bronson: has joined #RubyOnRails
[11:02:38] shibabu: has joined #RubyOnRails
[11:04:00] mdowd: has joined #RubyOnRails
[11:04:37] sandstrom: has joined #RubyOnRails
[11:11:38] elton: has joined #RubyOnRails
[11:15:02] Pazician: has joined #RubyOnRails
[11:15:32] alphaatom: has joined #RubyOnRails
[11:18:07] Pazician: has joined #RubyOnRails
[11:21:30] SalexW: has joined #RubyOnRails
[11:21:47] annlewis: has joined #RubyOnRails
[11:27:04] snowy: has joined #RubyOnRails
[11:28:06] maloik: has joined #RubyOnRails
[11:28:21] paulodiniz: has joined #RubyOnRails
[11:31:22] Fernando-Basso: I have these routes defined. I need help creating a route for an ajax request that doesn't clash with other ones already working: https://gist.github.com/FernandoBasso/f995bb30d26d657a0a1e
[11:31:22] Wizek: has joined #RubyOnRails
[11:31:23] Grundell: has joined #RubyOnRails
[11:33:03] Fernando-Basso: If I place the commented lines after `resources` (plural), the ajax one is ignored. If I place it above, then it messes with the `resources` ones.
[11:35:13] Maletor: has joined #RubyOnRails
[11:36:02] Oliphaunte: has joined #RubyOnRails
[11:36:34] B1n4r10: has joined #RubyOnRails
[11:37:01] matthewd: Fernando-Basso: Why are you trying to put it outside the existing resource definition? :/
[11:37:33] Fernando-Basso: matthewd: If I put it inside, it seems it always creates a route requiring an :id.
[11:38:39] matthewd: Fernando-Basso: Look into the difference between member and collection routes
[11:39:38] Fernando-Basso: It is creating:
[11:39:41] Fernando-Basso: is_page_name_available_user_page GET /user/pages/:id/is_page_name_available(.:format) user/pages#is_page_name_available
[11:43:25] Fernando-Basso: As I figure from reading the docs, member routes always require an :id. Collection routes are for what I need in this case, it seems. I'll try.
[11:45:56] johnny5: has joined #RubyOnRails
[11:46:10] pyemkey: has joined #RubyOnRails
[11:53:33] big|bad|wolf: has joined #RubyOnRails
[11:57:18] yardenbar: has joined #RubyOnRails
[11:59:39] kies: has joined #RubyOnRails
[12:03:34] bronson: has joined #RubyOnRails
[12:03:47] The_Phoenix: has joined #RubyOnRails
[12:05:42] Cervajz: has joined #RubyOnRails
[12:06:22] benhuda: has joined #RubyOnRails
[12:09:57] quazimodo: has joined #RubyOnRails
[12:10:30] snowy: has joined #RubyOnRails
[12:14:56] atomical: has joined #RubyOnRails
[12:15:57] pyemkey: has joined #RubyOnRails
[12:17:47] tknz: has joined #RubyOnRails
[12:21:12] zpe: has joined #RubyOnRails
[12:22:19] shibabu: has joined #RubyOnRails
[12:22:43] annlewis: has joined #RubyOnRails
[12:28:58] Bryan: has joined #RubyOnRails
[12:30:18] paulodiniz: has joined #RubyOnRails
[12:30:44] snowy: has joined #RubyOnRails
[12:32:38] jacksparrow007: has joined #RubyOnRails
[12:34:30] snowy: has joined #RubyOnRails
[12:34:53] FooMunki: has joined #RubyOnRails
[12:35:05] Fernando-Basso: matthewd: It worked. Thanks for pointing me out aobut member vs collection.
[12:35:57] Maletor: has joined #RubyOnRails
[12:37:02] iateadonut: has joined #RubyOnRails
[12:40:16] Wizek|2: has joined #RubyOnRails
[12:40:16] snowy: has joined #RubyOnRails
[12:40:29] pyemkey: has joined #RubyOnRails
[12:43:19] Wizek: has joined #RubyOnRails
[12:46:04] sandstrom: has joined #RubyOnRails
[12:46:24] Wizek|2: has joined #RubyOnRails
[12:46:37] afroboy: has joined #RubyOnRails
[12:51:44] elton: has joined #RubyOnRails
[12:52:49] mdowd: has joined #RubyOnRails
[12:53:31] ewnd9_: has joined #RubyOnRails
[12:54:52] towski_: has joined #RubyOnRails
[12:59:31] pyemkey: has joined #RubyOnRails
[13:00:22] kleinerdrache: has joined #RubyOnRails
[13:02:42] kleinerdrache: hi there.. i have trouble with tests when changeing a model...
[13:02:51] kleinerdrache: # Permalink instead of ID
[13:02:51] kleinerdrache: before_create do |article|
[13:02:51] kleinerdrache: article.permalink = _permalink
[13:03:10] speaking1ode: has joined #RubyOnRails
[13:03:13] big|bad|wolf: has joined #RubyOnRails
[13:03:32] kleinerdrache: this works in development and production but not on test... why?
[13:04:16] bronson: has joined #RubyOnRails
[13:05:27] kleinerdrache: the permalink field in the table is nil, ...
[13:05:52] pyemkey: has joined #RubyOnRails
[13:10:16] pyemkey: has joined #RubyOnRails
[13:12:12] aurails: has joined #RubyOnRails
[13:16:21] kleinerdrache: has left #RubyOnRails: ("ERC (IRC client for Emacs 24.5.1)")
[13:16:39] Croves: has joined #RubyOnRails
[13:16:48] Croves: Why do I keep getting Permission denied everytime I run `rails server`? I don't want to run it as root...
[13:17:09] Croves: Why do I keep getting Permission denied everytime I run `rails server`? I don't want to run it as root...
[13:17:32] Hates_: Croves: what's the full error that you're getting?
[13:17:37] berserk_ren: chmod -R 777 to project folder? :}
[13:18:42] Croves: Hates_ This is the full error http://pastebin.com/Gb46jDu5
[13:19:07] Croves: berserk_ren It's not a good security practice to chmod 777 the whole project
[13:19:33] roshanavand: has joined #RubyOnRails
[13:20:15] Papierkorb: problem is obvious. read the error message.
[13:20:27] berserk_ren: i know, but for dev it's helps sometimes =)
[13:20:44] Papierkorb: berserk_ren: please NEVER advise anyone to do that
[13:20:51] Croves: Ok, I changed the user in my project
[13:21:05] Croves: rails create my project folder to `root` user
[13:21:08] Papierkorb: berserk_ren: white the ugo+rw is tedious, especially the +w, the ugo+x part can break stuff
[13:21:09] berserk_ren: Papierkorb, ok =)
[13:21:28] anantnfc: has joined #RubyOnRails
[13:21:34] zpe: has joined #RubyOnRails
[13:22:17] Croves: Also, everytime I change my source code I need to reload the rails server?
[13:22:18] Papierkorb: It's not even a security thing. making everything executable is way beyond a "bad idea"
[13:23:31] annlewis: has joined #RubyOnRails
[13:24:29] Croves: Papierkorb No? Because I'm running rails server and I'm getting the `Access denied for user 'root'@'localhost'`. I put my password in database.yml but it's not working yet
[13:24:39] Croves: I had to restart rails server
[13:24:47] Papierkorb: fix your permissions.
[13:24:50] d0nn1e: has joined #RubyOnRails
[13:25:12] Papierkorb: file permissions, and probably DB permissions too.
[13:25:31] B1n4r10: has joined #RubyOnRails
[13:26:27] jhass: sounds like start by reinstalling your computer :P
[13:30:56] Oliphaunte: has joined #RubyOnRails
[13:32:20] aurails: Is it worth to use React and Rails ?
[13:33:03] pwnd_nsfw: aurails, sure, if you're client is like "yo dawg, I want rails with react"
[13:33:54] aurails: I mean if I have to make the decision
[13:34:19] Papierkorb: Depends on the project requirements. In general "Why not?"
[13:35:24] aurails: Ok I see, great, thanks :)
[13:35:54] Papierkorb: There's the react-rails gem iirc
[13:36:45] Papierkorb: aurails: you want to use therubyracer gem for JS on the server if you go with that (on MRI), don't use the nodejs backend.
[13:36:45] Maletor: has joined #RubyOnRails
[13:36:57] pyemkey: has joined #RubyOnRails
[13:38:50] sandstrom: has joined #RubyOnRails
[13:39:02] aurails: therubyracer is part of Rails by default, no ?
[13:39:03] rubyonrails510: has joined #RubyOnRails
[13:39:32] ArTiSTiX: has joined #RubyOnRails
[13:39:48] Phoop__: has joined #RubyOnRails
[13:39:53] alindeman: has joined #RubyOnRails
[13:40:04] Killerkeksdose_: has joined #RubyOnRails
[13:40:52] tw1sted_: has joined #RubyOnRails
[13:41:01] RTG`: has joined #RubyOnRails
[13:41:14] knight-: has joined #RubyOnRails
[13:41:24] Davey_: has joined #RubyOnRails
[13:41:25] Davey_: has joined #RubyOnRails
[13:41:25] Papierkorb: aurails: not sure, just check that the gem is in your Gemfile and it'll be used
[13:41:27] targaf_: has joined #RubyOnRails
[13:41:33] mhenrixon_: has joined #RubyOnRails
[13:41:35] funnel_: has joined #RubyOnRails
[13:41:43] styx_: has joined #RubyOnRails
[13:41:47] hoodow_: has joined #RubyOnRails
[13:41:48] hoodow_: has joined #RubyOnRails
[13:41:50] tekku: has joined #RubyOnRails
[13:42:10] aurails: No, I checked and it's not by default
[13:42:37] Pro|: has joined #RubyOnRails
[13:43:20] silverdust: has joined #RubyOnRails
[13:43:32] differentreality: has joined #RubyOnRails
[13:43:35] Symbiosisz: has joined #RubyOnRails
[13:43:36] Papierkorb: TL;DR why: therubyracer embeds the V8 engine into the process (and is thus quite fast), the nodejs backend *starts* a nodejs process for each invocation (and is thus really slow). react-rails can do something they call 'prerendering', where they render the JS components on the server, thus you want to have a fast JS runner for this.
[13:43:42] samuelkadolph: has joined #RubyOnRails
[13:43:48] waldi_: has joined #RubyOnRails
[13:44:32] bl0m1: has joined #RubyOnRails
[13:45:19] martinbjeldbak: has joined #RubyOnRails
[13:45:20] matt_d: has joined #RubyOnRails
[13:45:40] sptq: has joined #RubyOnRails
[13:45:50] maxmanders: has joined #RubyOnRails
[13:46:06] thomasfedb: has joined #RubyOnRails
[13:46:06] thomasfedb: has joined #RubyOnRails
[13:46:20] nickenchuggets: has joined #RubyOnRails
[13:46:21] nickenchuggets: has joined #RubyOnRails
[13:46:55] spectra: has joined #RubyOnRails
[13:47:11] IceBear: has joined #RubyOnRails
[13:47:16] aurails: so therubyracer with react-rails is best
[13:47:22] failasLStoRM: has joined #RubyOnRails
[13:47:53] LiamW: has joined #RubyOnRails
[13:47:58] Shidash: has joined #RubyOnRails
[13:48:33] FailBit: I fucking hate freenode
[13:48:44] FailBit: piece of shit network netsplits every day
[13:49:12] KorriX: has joined #RubyOnRails
[13:50:18] Sylario: has joined #RubyOnRails
[13:50:58] paulodiniz: has joined #RubyOnRails
[13:51:09] roshanavand: has joined #RubyOnRails
[13:52:42] jhass: FailBit: sponsor a (bunch of) better server(s)
[13:53:00] elton: has joined #RubyOnRails
[13:53:12] Majadon: has joined #RubyOnRails
[13:53:53] FailBit: the other networks I know run most everything of GCE/DO and split about 10 times a year
[13:54:49] FailBit: freenode will almost certainly nothave objections, naturally
[13:54:57] FailBit: autocorrect fff
[13:55:27] pwnd_nsfw: s/*/lol nerd
[13:56:06] jlpeters: has joined #RubyOnRails
[13:56:07] FailBit: netsplits are srs bsns
[13:56:35] barttenbrinke: has joined #RubyOnRails
[13:56:37] FailBit: for me they're mostly annoying, and dismissing notifications from ZNC about splits every day is tiring
[13:58:37] ruid: has joined #RubyOnRails
[13:58:37] ruid: has joined #RubyOnRails
[14:00:17] Phoop___: has joined #RubyOnRails
[14:01:04] feignt: has joined #RubyOnRails
[14:06:11] Mia: has joined #RubyOnRails
[14:06:11] Mia: has joined #RubyOnRails
[14:07:28] nickenchuggets: has joined #RubyOnRails
[14:07:29] nickenchuggets: has joined #RubyOnRails
[14:07:30] Shidash: has joined #RubyOnRails
[14:08:56] netzfisch: has joined #RubyOnRails
[14:10:28] iamdevnul_: has joined #RubyOnRails
[14:10:35] srinidhi: has joined #RubyOnRails
[14:12:00] jandresen: has joined #RubyOnRails
[14:12:58] user1138_: has joined #RubyOnRails
[14:14:36] ibouvousaime: has joined #RubyOnRails
[14:14:47] shibabu: has joined #RubyOnRails
[14:16:10] Meow-J: has joined #RubyOnRails
[14:16:43] iateadonut: has joined #RubyOnRails
[14:17:14] dcope: do delayed job jobs execute from the rails application directory?
[14:18:15] leslie: has joined #RubyOnRails
[14:18:16] leslie: has joined #RubyOnRails
[14:18:49] doublemalt_: has joined #RubyOnRails
[14:19:22] pyemkey: has joined #RubyOnRails
[14:21:35] pyemkey: Hello, I have general question. Let's say I use devise and I don't have idea how to start modules: confirmable, recoverable. Where do you guys start with testing these modules?
[14:21:59] Cohedrin: has joined #RubyOnRails
[14:22:03] elektronaut: has joined #RubyOnRails
[14:22:08] tbuehlmann: pyemkey, the modules itself are already tested in the devise project
[14:22:53] sandstrom: has joined #RubyOnRails
[14:23:11] wsewolod: has joined #RubyOnRails
[14:24:05] annlewis: has joined #RubyOnRails
[14:24:27] A124: has joined #RubyOnRails
[14:24:30] roshanavand: has joined #RubyOnRails
[14:25:52] pyemkey: has joined #RubyOnRails
[14:26:26] alindeman: has joined #RubyOnRails
[14:26:40] pyemkey: tbuehlmann: Sure, you are right. My question was not precise. Imagine that you make some customization and you want to have confidence that these customization does not break feature. For example I do some change in sending message. I will use different route for person who is going back from "password recovery".
[14:26:46] Denarii: has joined #RubyOnRails
[14:27:14] tbuehlmann: I'd go with an integration test then
[14:28:08] pyemkey: I have covered sign up part. I'm newbie with testing. I would like to work on habit to start using testing first approach
[14:28:42] pyemkey: I use standard configuration rspec + capybara
[14:28:52] pyemkey: and love it ;)
[14:30:02] jgt: has joined #RubyOnRails
[14:30:13] jmrepetti: has joined #RubyOnRails
[14:30:15] pyemkey: Can you share your experience with testing
[14:30:58] tbuehlmann: phew, that's a task
[14:31:16] tbuehlmann: first thing you could do is read up on integration testing
[14:31:33] tbuehlmann: http://guides.rubyonrails.org/testing.html#integration-testing
[14:31:59] tbuehlmann: named "feature spec" in rspec: https://www.relishapp.com/rspec/rspec-rails/docs/feature-specs/feature-spec
[14:32:07] pyemkey: Don't make me wrong. I don't want you to write some test for me. I only would like to read how others use tests.
[14:32:25] pyemkey: some hints
[14:33:29] jacksparrow007: has joined #RubyOnRails
[14:35:43] FooMunki: has joined #RubyOnRails
[14:37:17] roshanav_: has joined #RubyOnRails
[14:37:32] Maletor: has joined #RubyOnRails
[14:41:33] mdowd: has joined #RubyOnRails
[14:42:53] arBmind: has joined #RubyOnRails
[14:44:53] stannard: has joined #RubyOnRails
[14:45:10] pyemkey: has joined #RubyOnRails
[14:46:42] LightStalker: has joined #RubyOnRails
[14:47:55] roshanavand: has joined #RubyOnRails
[14:49:34] soahccc: has joined #RubyOnRails
[14:50:18] trbox____: has joined #RubyOnRails
[14:50:43] ebryn: has joined #RubyOnRails
[14:53:28] benlakey: has joined #RubyOnRails
[14:53:43] elton: has joined #RubyOnRails
[14:55:03] meoblast001: has joined #RubyOnRails
[14:55:55] waldi_: has joined #RubyOnRails
[14:57:26] alindeman: has joined #RubyOnRails
[14:57:29] DLSteve: has joined #RubyOnRails
[14:58:18] solenoids: has joined #RubyOnRails
[14:59:48] roshanavand: has joined #RubyOnRails
[15:02:13] Cervajz: has joined #RubyOnRails
[15:05:01] jscheel: has joined #RubyOnRails
[15:05:18] rgrmatt_: has joined #RubyOnRails
[15:06:05] bronson: has joined #RubyOnRails
[15:09:14] DLSteve: has joined #RubyOnRails
[15:09:17] roshanavand: has joined #RubyOnRails
[15:11:48] netzfisch: has joined #RubyOnRails
[15:12:30] yatish27: has joined #RubyOnRails
[15:12:34] GreatDanton: has joined #RubyOnRails
[15:12:43] jscheel: has joined #RubyOnRails
[15:14:11] B1n4r10: has joined #RubyOnRails
[15:14:58] zly: has joined #RubyOnRails
[15:15:03] pyemkey: has joined #RubyOnRails
[15:15:19] alindeman: has joined #RubyOnRails
[15:16:28] DarkBushido: has joined #RubyOnRails
[15:19:20] moeabdol: has joined #RubyOnRails
[15:23:10] yardenbar: has joined #RubyOnRails
[15:23:14] nfk|laptop: has joined #RubyOnRails
[15:23:44] alindeman: has joined #RubyOnRails
[15:24:13] user1138: has joined #RubyOnRails
[15:24:21] akshat: has joined #RubyOnRails
[15:24:37] w0rd-driven: has joined #RubyOnRails
[15:26:03] Oliphaunte: has joined #RubyOnRails
[15:26:46] Croves: has joined #RubyOnRails
[15:27:42] hackeron: has joined #RubyOnRails
[15:27:55] rickmasta: has joined #RubyOnRails
[15:28:55] kmckelvin: has joined #RubyOnRails
[15:29:52] monoprotic: has joined #RubyOnRails
[15:29:53] monoprotic: has joined #RubyOnRails
[15:30:43] solenoids: has joined #RubyOnRails
[15:32:57] owenjones: has joined #RubyOnRails
[15:34:20] netzfisch: has joined #RubyOnRails
[15:34:47] sankaber: has joined #RubyOnRails
[15:36:37] Oliphaunte: has joined #RubyOnRails
[15:38:21] Maletor: has joined #RubyOnRails
[15:42:22] Shoutsid: has joined #RubyOnRails
[15:43:07] iateadonut: has joined #RubyOnRails
[15:43:49] netzfisch: has joined #RubyOnRails
[15:46:07] rgrmatt: has joined #RubyOnRails
[15:46:30] _Tariq: has joined #RubyOnRails
[15:49:08] upgrayeddd: has joined #RubyOnRails
[15:49:20] Pazician: has joined #RubyOnRails
[15:49:27] rgrmatt: has joined #RubyOnRails
[15:53:22] moeabdol: has joined #RubyOnRails
[15:54:32] elton: has joined #RubyOnRails
[15:55:07] iateadonut: has joined #RubyOnRails
[15:57:32] jmrepetti: has joined #RubyOnRails
[15:59:30] adavia: has joined #RubyOnRails
[16:01:59] corioliss: has joined #RubyOnRails
[16:01:59] krainboltgreene: has joined #RubyOnRails
[16:02:02] jandresen_: has joined #RubyOnRails
[16:03:58] Cohedrin: looking into caching solutions for rails, more specifically query caching
[16:04:09] Cohedrin: was wondering if anyone had any solutions they really loved
[16:04:27] rgrmatt: has joined #RubyOnRails
[16:05:24] twilling: has joined #RubyOnRails
[16:07:43] fox_mulder_cp: Cohedrin: redis, memcache?
[16:07:51] Cohedrin: yeah, would like to use redis
[16:07:56] Cohedrin: I guess question was more of
[16:08:21] Cohedrin: rails.cache works pretty well, and is fairly easy to use
[16:08:33] fox_mulder_cp: if created question created properly, it contains a 80% of it's answer..
[16:09:33] Cohedrin: in bit of a rush right now
[16:09:40] Cohedrin: database is getting bent over atm
[16:09:55] Cohedrin: so basically, heres the issue:
[16:10:54] Cohedrin: we have a couple actions in the app that run a _ton_ of queries. Its obvs not great that is doing that, and it could be optimized, but for now the database is getting bent over by this
[16:11:32] Cohedrin: so was going to just cache the data short term, is rails.cache about as easy/good as its going to get, or is there a better solution in a gem?
[16:12:42] Croves: has joined #RubyOnRails
[16:13:51] Hates_: Cohedrin: the easiest step might be to just add some fragment caching to the frontend side of things
[16:14:03] Cohedrin: do you mean with http headers?
[16:14:14] Hates_: Cohedrin: no you can cache a section of a view
[16:14:16] atomical_: has joined #RubyOnRails
[16:14:23] Hates_: Cohedrin: http://guides.rubyonrails.org/caching_with_rails.html#fragment-caching
[16:14:25] Cohedrin: we don't use views, its a rails/ember app
[16:14:31] Cohedrin: so rails end is just a json api
[16:14:32] Hates_: Cohedrin: ah, ignore that then
[16:14:56] Cohedrin: yeah looked like a good solution when I saw it, unfortunatly no :(
[16:15:08] Cervajz: has joined #RubyOnRails
[16:15:25] ewnd9_: has joined #RubyOnRails
[16:15:38] Hates_: Cohedrin: perhaps using the deprecated action caching could be a quick short term solution https://github.com/rails/actionpack-action_caching
[16:15:57] Hates_: Cohedrin: depends on how each request differs or if they are always the same
[16:16:09] Cervajz_: has joined #RubyOnRails
[16:16:20] Cohedrin: hmm... Why was this deprecated?
[16:16:37] moeabdol: has joined #RubyOnRails
[16:16:51] rgrmatt: has joined #RubyOnRails
[16:17:39] Hates_: Cohedrin: I believe because of better fragment caching techniques, which doesn't apply in your case
[16:17:45] Cervajz__: has joined #RubyOnRails
[16:18:26] Hates_: Cohedrin: action caching wont work if you need to handle different parameter values, it only works if every request is the same
[16:18:49] fox_mulder_cp: has joined #RubyOnRails
[16:19:36] Cohedrin: gotcha. Yeah unfortunately that doesn't work either lol
[16:19:46] Cohedrin: looks like I'll have to use rails.cache
[16:19:52] Cohedrin: which isn't terrible, just not optimal
[16:19:52] qejk: has joined #RubyOnRails
[16:20:07] Cohedrin: hey, still better than doing it in php :D
[16:20:14] Cohedrin: thanks for the advice guys
[16:20:35] Hates_: hope it goes well!
[16:21:22] netzfisch: has joined #RubyOnRails
[16:21:49] rgrmatt: has joined #RubyOnRails
[16:22:46] Grundell: has joined #RubyOnRails
[16:22:48] mdowd: has joined #RubyOnRails
[16:24:20] byte_gambler: has joined #RubyOnRails
[16:25:37] annlewis: has joined #RubyOnRails
[16:27:51] webdestroya: has joined #RubyOnRails
[16:28:13] rubyonrailed: has joined #RubyOnRails
[16:29:00] rgrmatt: has joined #RubyOnRails
[16:30:27] roshanavand: has joined #RubyOnRails
[16:30:30] Croves: has joined #RubyOnRails
[16:34:26] jacksparrow007: has joined #RubyOnRails
[16:34:59] Rodya_: has joined #RubyOnRails
[16:36:16] herminiotorres: has joined #RubyOnRails
[16:36:57] n1lo: has joined #RubyOnRails
[16:37:21] kitallis: has joined #RubyOnRails
[16:37:22] rgrmatt: has joined #RubyOnRails
[16:37:25] Sceko: has joined #RubyOnRails
[16:37:26] Sceko: has joined #RubyOnRails
[16:39:05] _Tariq: has joined #RubyOnRails
[16:39:15] Maletor: has joined #RubyOnRails
[16:41:12] roshanavand: has joined #RubyOnRails
[16:44:09] andatche: has joined #RubyOnRails
[16:47:14] rgrmatt: has joined #RubyOnRails
[16:49:03] berserk_ren: has joined #RubyOnRails
[16:50:15] cabotto: has joined #RubyOnRails
[16:52:43] ethe: has joined #RubyOnRails
[16:52:57] roshanav_: has joined #RubyOnRails
[16:53:12] paulodiniz: has joined #RubyOnRails
[16:56:39] otherj: has joined #RubyOnRails
[16:57:05] zeyn: has joined #RubyOnRails
[16:57:42] hackeron_: has joined #RubyOnRails
[16:59:01] _Tariq: has joined #RubyOnRails
[16:59:31] owenjones: has joined #RubyOnRails
[16:59:38] zeyn: Hello everyone, I have a problem with RSpec. I set up everything correctly but every time I'm getting error that method is not defined while it is definend in it's file and class. What can be the problem?
[16:59:39] rromanch_: has joined #RubyOnRails
[17:02:10] roshanavand: has joined #RubyOnRails
[17:02:58] B1n4r10: has joined #RubyOnRails
[17:03:43] sandstrom: has joined #RubyOnRails
[17:04:44] nofxx: has joined #RubyOnRails
[17:04:45] nofxx: has joined #RubyOnRails
[17:04:53] tbuehlmann: zeyn, hard to say. have some code?
[17:05:51] zeyn: Hmm, I think it's prohibited to post code here...
[17:05:56] Coldblackice: has joined #RubyOnRails
[17:06:13] matthewd: zeyn: !gist
[17:06:13] helpa: zeyn: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[17:07:47] bronson: has joined #RubyOnRails
[17:09:17] zeyn: First: https://gist.github.com/macak99/c0f40ece804a8ba93278
[17:09:31] zeyn: Second: https://gist.github.com/macak99/f3bbcabc087f5135a1a0
[17:10:43] cabotto: zeyn, i think you need a ? on the method name in the test
[17:10:57] paulodiniz: has joined #RubyOnRails
[17:11:52] zeyn: how stupid of me, thanks
[17:13:26] roshanavand: has joined #RubyOnRails
[17:13:43] bratsche: has joined #RubyOnRails
[17:14:04] m3_del: has joined #RubyOnRails
[17:14:36] ewnd9_: has joined #RubyOnRails
[17:15:01] moeabdol: has joined #RubyOnRails
[17:15:35] chubijs: has joined #RubyOnRails
[17:16:15] wildlander: has joined #RubyOnRails
[17:20:49] paulodiniz: has joined #RubyOnRails
[17:20:55] Hates_: zeyn: you probably also want be_truthy
[17:22:06] jhill: has joined #RubyOnRails
[17:24:21] drbayer: has joined #RubyOnRails
[17:24:50] jacksparrow007: has joined #RubyOnRails
[17:25:50] greengriminal: has joined #RubyOnRails
[17:26:23] annlewis: has joined #RubyOnRails
[17:27:04] jmrepetti: has joined #RubyOnRails
[17:28:32] berserk_ren: has joined #RubyOnRails
[17:29:01] paulodiniz: has joined #RubyOnRails
[17:32:13] rgrmatt: has joined #RubyOnRails
[17:32:15] hotpancakes: has joined #RubyOnRails
[17:35:07] moeabdol: has joined #RubyOnRails
[17:35:34] dopieee: has joined #RubyOnRails
[17:37:14] berserk_ren: has joined #RubyOnRails
[17:37:39] rubyonrailed: has joined #RubyOnRails
[17:38:05] rgrmatt: has joined #RubyOnRails
[17:38:46] tw1sted_: has left #RubyOnRails: ()
[17:39:26] tw1sted: has joined #RubyOnRails
[17:39:52] Maletor: has joined #RubyOnRails
[17:41:51] iateadonut: has joined #RubyOnRails
[17:41:57] cac: has joined #RubyOnRails
[17:43:36] cydrobolt: has joined #RubyOnRails
[17:43:37] cydrobolt: has joined #RubyOnRails
[17:44:57] zeyn: There was an error with be_true -> it had to be be true
[17:45:28] jtdowney: has joined #RubyOnRails
[17:45:29] jtdowney: has joined #RubyOnRails
[17:45:31] zeyn: Rails 4 in Action has some mistakes
[17:46:06] the_ruler: has joined #RubyOnRails
[17:46:32] lorn: has joined #RubyOnRails
[17:46:42] rickmasta: has joined #RubyOnRails
[17:47:27] jmrepetti: has joined #RubyOnRails
[17:55:24] yardenbar: has joined #RubyOnRails
[17:55:49] elton: has joined #RubyOnRails
[17:59:00] sparr: has joined #RubyOnRails
[17:59:43] diegoviola: has joined #RubyOnRails
[18:00:11] netzfisch: has joined #RubyOnRails
[18:01:25] sankaber: has joined #RubyOnRails
[18:03:35] diegoviola: my dashboard index feels to dirty this way: https://gist.github.com/diegoviola/79cb527e5a1a7755dde3
[18:03:38] diegoviola: any way to improve it?
[18:07:29] hardtail: has joined #RubyOnRails
[18:08:08] Croves: has joined #RubyOnRails
[18:10:20] Yomero2: has joined #RubyOnRails
[18:11:32] jgt: has joined #RubyOnRails
[18:13:02] Oliphaunte: has joined #RubyOnRails
[18:13:06] rgrmatt: has joined #RubyOnRails
[18:13:57] DanKnox: has joined #RubyOnRails
[18:16:12] B1n4r10: has joined #RubyOnRails
[18:18:07] mcr-credil: has joined #RubyOnRails
[18:18:55] Aswebb_: has joined #RubyOnRails
[18:22:25] rgrmatt: has joined #RubyOnRails
[18:22:31] elektronaut: has joined #RubyOnRails
[18:24:23] kegan_: has joined #RubyOnRails
[18:26:48] simplyianm: has joined #RubyOnRails
[18:27:08] annlewis: has joined #RubyOnRails
[18:27:56] zpe: has joined #RubyOnRails
[18:29:22] big|bad|wolf: has joined #RubyOnRails
[18:33:19] ewnd9_: has joined #RubyOnRails
[18:33:41] tildes: has joined #RubyOnRails
[18:34:10] maxx88: has joined #RubyOnRails
[18:35:42] chouhoulis: has joined #RubyOnRails
[18:39:49] tvw: has joined #RubyOnRails
[18:40:31] rhizome: all of your tr's can be done with partials
[18:40:42] Maletor: has joined #RubyOnRails
[18:41:04] sbhatore: has joined #RubyOnRails
[18:46:56] hotpancakes: has joined #RubyOnRails
[18:47:26] braincrash: has joined #RubyOnRails
[18:52:25] lapide_viridi: has joined #RubyOnRails
[18:54:38] corioliss_: has joined #RubyOnRails
[18:56:35] elton: has joined #RubyOnRails
[18:56:59] diegoviola: can you give me an example
[18:59:43] diegoviola: rhizome: you mean move the <tr> inside partials?
[18:59:49] ewnd9_: has joined #RubyOnRails
[18:59:51] diegoviola: or the <table> itself
[19:00:01] rhizome: diegoviola: instead of the .each, do render @whatever
[19:00:47] bronson: has joined #RubyOnRails
[19:02:02] sandstrom: has joined #RubyOnRails
[19:02:24] lacrymology: has joined #RubyOnRails
[19:02:45] hnanon: has joined #RubyOnRails
[19:03:18] hnanon: I'm getting an error in my controller: Validation failed: Email has already been taken
[19:03:54] hnanon: Why doesn't the error present itself in the view. The view includes the code to show the errors.
[19:04:12] adac: has joined #RubyOnRails
[19:05:12] greengriminal: has joined #RubyOnRails
[19:05:19] FailBit: you're using a bang! save
[19:05:30] FailBit: use regular #save or #update_attributes
[19:05:33] FailBit: not #save!
[19:05:40] Fridtjof: has joined #RubyOnRails
[19:07:31] hnanon: Failbit: Thanks.
[19:07:58] rickmasta: has joined #RubyOnRails
[19:08:46] rubyonrailed: has joined #RubyOnRails
[19:09:02] FailBit: I don't what the bejeezus this style guide is on (https://github.com/bbatsov/ruby-style-guide) but it makes waay more sense to define the bang version to delegate to non-bang
[19:09:17] RegulationD: has joined #RubyOnRails
[19:10:07] diegoviola: rhizome: as in, to render a partial you mean?
[19:14:49] matthewd: FailBit: Define the non-allocating mutator in terms of the method that allocates and returns a new object? :/
[19:15:32] FailBit: I always used bang to represent failure, not mutation
[19:15:38] diegoviola: rhizome: sorry, you mean to move the each inside the partial?
[19:15:39] FailBit: if bang means mutation than sure
[19:16:03] blackmesa: has joined #RubyOnRails
[19:17:32] r0bby_: has joined #RubyOnRails
[19:18:02] wsewolod: has joined #RubyOnRails
[19:19:13] hardtail: has joined #RubyOnRails
[19:20:21] ur5us: has joined #RubyOnRails
[19:20:54] annlewis: has joined #RubyOnRails
[19:24:02] rgrmatt: has joined #RubyOnRails
[19:24:33] srinidhi: has joined #RubyOnRails
[19:25:04] rhizome: diegoviola: the render does the .each, move the inside stuff
[19:25:14] roshanavand: has joined #RubyOnRails
[19:25:17] norc: has joined #RubyOnRails
[19:25:25] yashinbasement: has joined #RubyOnRails
[19:25:43] rhizome: https://robots.thoughtbot.com/rendering-collections-in-rails
[19:26:24] B1n4r10: has joined #RubyOnRails
[19:29:17] debster: has joined #RubyOnRails
[19:30:19] Fridtjof: has joined #RubyOnRails
[19:30:28] christiandsg: has joined #RubyOnRails
[19:31:20] xardion: has joined #RubyOnRails
[19:33:54] rubyonrailed: has joined #RubyOnRails
[19:36:35] roshanav_: has joined #RubyOnRails
[19:37:50] safetypin: has joined #RubyOnRails
[19:40:05] debster: has joined #RubyOnRails
[19:40:33] cac: has joined #RubyOnRails
[19:41:25] Maletor: has joined #RubyOnRails
[19:41:26] ap4y: has joined #RubyOnRails
[19:46:27] nyaa: has joined #RubyOnRails
[19:53:37] cac: has joined #RubyOnRails
[19:53:40] Potatomound: has joined #RubyOnRails
[19:55:58] diegoviola: rhizome: so something like this? https://gist.github.com/diegoviola/be6ac6a197ad67f837d8
[19:56:32] havenwood: has joined #RubyOnRails
[19:57:18] rhizome: yep. then you can combine all of those idential tables into a loop
[19:57:29] elton: has joined #RubyOnRails
[19:57:32] rubyonrailed: has joined #RubyOnRails
[19:57:42] diegoviola: I feel this gives me less control
[19:59:25] diegoviola: what if I want to add a special column on special departments table and not on the sedex table?
[19:59:50] diegoviola: since doing render @special_departments and render @foo will use the same _correspondence.html.erb partial
[20:00:19] norc: diegoviola: Have some helper method that allows you build a table from a collection.
[20:03:56] norc: diegoviola: I think a decorator for ShippingItem (or whatever your model is) could be useful here.
[20:04:03] hardtail: has joined #RubyOnRails
[20:04:55] chridal: has joined #RubyOnRails
[20:05:57] diegoviola: ok so I call a helper method where I build table for sedex, and do the same for the other ones
[20:08:53] Oliphaunte: has joined #RubyOnRails
[20:09:03] ewnd9_: has joined #RubyOnRails
[20:09:40] netzfisch: has joined #RubyOnRails
[20:09:41] Ademan: has joined #RubyOnRails
[20:09:56] Ademan: has left #RubyOnRails: ()
[20:11:18] kfrz: has joined #RubyOnRails
[20:12:24] norc: diegoviola: Or dry it up in your partial. Maybe something along these lines
[20:12:44] FailBit: https://gist.github.com/liamwhite/cd8bfe518e5cfb2f7fe5 how do I even start refactoring this
[20:12:54] norc: diegoviola: https://gist.github.com/anonymous/bd0085e6a38d95cb3d13
[20:13:16] FailBit: I'm proud of my appcontroller now but this is a mess
[20:13:34] norc: This is just quickly written up pseudo to give you an impression of how you can use a single partial a bit more dynamically. Or build it in a helper yeah.
[20:13:39] diegoviola: norc: what is local?
[20:13:54] _Tariq: has joined #RubyOnRails
[20:14:07] FailBit: local_assigns
[20:14:27] FailBit: #local_assigns returns a hash containing the available local variables to the partial
[20:14:49] norc: diegoviola: http://api.rubyonrails.org/classes/ActionView/PartialRenderer.html
[20:15:26] norc: Also note for ease of writing I used HAML, you would have to write it with ERB if you wanted to go that way. :)
[20:15:50] FailBit: >not using slim
[20:17:26] droptone: Question: Does anyone have any clue why this code would work perfectly in rails console but not in the controller action of the same project?: https://gist.github.com/anonymous/b2fa6c277556f61c2870
[20:17:46] droptone: in rails console, it saves the datetime without subtracting the UTC offset
[20:17:51] droptone: but if I do it in rails console it works perfectly.
[20:18:07] hotpancakes: has joined #RubyOnRails
[20:19:47] Oliphaunte: has joined #RubyOnRails
[20:20:11] hnanon: For my new action in my subscriptions controller I'm getting the error: uninitialized constant Account
[20:20:48] hnanon: https://gist.github.com/anonymous/6e20db3a6116f4c92b9e
[20:20:59] hnanon: Full trace ^
[20:21:19] norc: hnanon: Gist your sorcery controller around line 151
[20:21:26] FailBit: did you follow rails naming convention?
[20:21:36] FailBit: if not, const_missing does not work correctly
[20:21:41] diegoviola: norc: the thing is, I'm not sure I can use a single table like this on my partial, as I might have to add and remove columns from each table/collection
[20:21:46] annlewis: has joined #RubyOnRails
[20:21:50] FailBit: your models are not automagically loaded in rails
[20:21:53] hnanon: I renamed my Account model to User model.
[20:21:55] FailBit: they are loaded when you reference them
[20:22:03] FailBit: hnanon: then rename your account.rb file to user.rb
[20:22:15] hnanon: I must have missed something.
[20:22:16] FailBit: restarted spring?
[20:22:22] norc: diegoviola: You can render a partial, and pass arguments into that partial. The idea is that you specify the columns as arugments to the partial.
[20:22:29] norc: So the partial dynamically decides which columns to present.
[20:22:33] hnanon: Restarted webrick
[20:22:34] droptone: why the hell isn't this working.
[20:22:47] norc: hnanon: Restart spring.
[20:23:09] droptone: My understanding is timezone.now would return the current time as per the timezone specified.
[20:23:13] droptone: Using ActiveSupport::timeZone
[20:23:27] hnanon: norc: How?
[20:23:35] FailBit: spring stop
[20:23:40] droptone: Regardless, even when I determine and += the UTC offset, it still saves the UTC time.
[20:24:10] FailBit: timezones are finicky
[20:24:20] norc: hnanon: Spring really does not like if you rename things under the Hood. :)
[20:24:21] FailBit: I avoid them wherever possible, frontend clocks are <3
[20:24:38] hnanon: norc, restarted. Same error.
[20:24:50] norc: hnanon: Gist the code around line 151 as I asked then
[20:24:58] norc: Of your sorcery controller
[20:25:00] hnanon: norc, that's the sorcery gem.
[20:25:06] droptone: Yeah, I'm aware how screwed Time Zones are.
[20:25:18] greengriminal: has joined #RubyOnRails
[20:25:18] hnanon: I haven't touched it.
[20:25:29] droptone: But the issue here is, for some reason, this code is working perfectly in rails console, as it always has, but in my controller, the value being committed to tag_if_cl_inv_dt is the UTC time.
[20:25:35] droptone: Despite the following code being present: https://gist.github.com/anonymous/b2fa6c277556f61c2870
[20:25:36] hnanon: Sorcery, by default does use User for its model.
[20:25:58] hnanon: But I changed that Account when first installing it.
[20:26:00] droptone: That exact code works exactly as designed in rails console, but in my controller action, it saves the UTC time
[20:26:13] hnanon: There must be a setting somewhere in the sorcery config.
[20:26:15] artX000: has joined #RubyOnRails
[20:26:17] norc: hnanon: Did you change the initializer after renaming_
[20:26:29] hnanon: Looking through it now.
[20:26:52] norc: config/initializers/sorcery.rb.
[20:27:28] paulodiniz: has joined #RubyOnRails
[20:27:46] hnanon: norc: Found it: There is this line at the bottom: config.user_class = "Account"
[20:27:52] hnanon: I'm commenting it out.
[20:28:58] safetypin: has joined #RubyOnRails
[20:29:04] diegoviola: norc: that's coo, I didn't know I could do that, thanks
[20:29:08] diegoviola: norc: I'll give it a try
[20:30:03] Rodya_: has joined #RubyOnRails
[20:30:46] kfrz: has joined #RubyOnRails
[20:31:03] hnanon: norc, Changing Account to User on that line then restarting did the trick.
[20:31:11] hnanon: Thanks: norc and Failbit.
[20:31:52] FailBit: I don't want to sound desperate or anything, just think it was overlooked earlier
[20:32:04] FailBit: how do I start refactoring this https://gist.github.com/liamwhite/cd8bfe518e5cfb2f7fe5
[20:34:04] Cohedrin: anyone here played with rails built in caching for queries?
[20:34:31] FailBit: query caching is automatic. I recommend you not touch it.
[20:35:27] Cohedrin: not per request caching
[20:35:29] quazimodo: has joined #RubyOnRails
[20:35:37] Radar: GOOD MORNING
[20:35:46] Cohedrin: as in, I want to cache across requests
[20:35:54] FailBit: use memcached
[20:36:02] _Tariq: has joined #RubyOnRails
[20:36:04] FailBit: or redis if you're into masochism
[20:36:09] Cohedrin: Using redis yes... that wasn't my question :D
[20:36:30] Cohedrin: when I store the result of a query.. It just stores the query
[20:36:32] stannard: has joined #RubyOnRails
[20:36:35] Cohedrin: as in, when I fetch it
[20:36:41] Cohedrin: it still makes the query
[20:36:48] Cohedrin: .. which isn't so useful
[20:36:54] yashinbasement: has joined #RubyOnRails
[20:37:08] FailBit: don't store the query
[20:37:15] FailBit: store its results by calling #to_a
[20:37:28] Cohedrin: was hopping I could avoid that
[20:37:41] FailBit: with caching? lol no
[20:37:50] Cohedrin: god. damnit.
[20:38:13] BoogyWookie: has joined #RubyOnRails
[20:38:16] FailBit: what's your usecase?
[20:38:22] Cohedrin: ok. so assuming I need to store the array, is there a simple way I'm not aware of to turn it back into a query?
[20:38:47] Cohedrin: usecase: I'm lazy and don't want to change all the methods that use this to use only array methods instead of activerecord relation methods
[20:38:57] FailBit: how expensive is your query
[20:39:07] Cohedrin: avg response time for this request is 17 seconds
[20:39:11] Cohedrin: so not great
[20:39:12] FailBit: it's not so far fetched you could make it faster with indexes in the right places
[20:39:32] FailBit: 17 seconds? that sounds like a table scan
[20:39:38] Cohedrin: why yes it is
[20:39:44] Cohedrin: I just wanna point out
[20:39:48] Cohedrin: theres clearly better ways of doing this
[20:39:49] Cohedrin: but right now
[20:39:52] norc: FailBit: First the responders at the bottom are almost identical.
[20:39:52] diegoviola: how do I pass the arguments to the partial
[20:39:52] Cohedrin: the database is dying
[20:40:05] Cohedrin: so need a patch while we work out a better long term solution
[20:40:14] FailBit: take the site down for a few minutes, add an index, bring it up
[20:40:16] lmdrx: has joined #RubyOnRails
[20:40:23] FailBit: or use CREATE INDEX CONCURRENTLY for postgresql
[20:40:35] Cohedrin: not that simple unfortunately, don't wanna go into the specfics because its pretty convoluted
[20:40:47] Cohedrin: but for right now, we can't just add the indexes
[20:41:16] FailBit: give me a few minutes
[20:41:22] jacksparrow007: has joined #RubyOnRails
[20:41:33] FailBit: are they indexed on ID?
[20:41:44] FailBit: (/whatever primary key)
[20:41:59] rhizome: so basically you have a 2.x that you're trying to avoid upgrading?
[20:42:06] leslie: has joined #RubyOnRails
[20:42:07] leslie: has joined #RubyOnRails
[20:42:11] Cohedrin: rhizome: me?
[20:42:19] Maletor: has joined #RubyOnRails
[20:43:21] Cohedrin: yeah they're indexed on id
[20:43:24] wsewolod: has joined #RubyOnRails
[20:43:32] norc: Cohedrin: What database are you running on?
[20:43:53] norc: Cohedrin: Can you gist the generated query plans_
[20:44:03] Cohedrin: query plans?
[20:44:08] norc: explain analyze
[20:44:08] Cohedrin: I'm not familiar with that term
[20:44:10] FailBit: @query = ExpensiveCollection.where(id: Rails.cache.fetch("holy-shit", expires_in: 60.minutes) { some_really_expensive_query.to_a }.map(&:id))
[20:44:14] FailBit: Cohedrin: ^
[20:44:37] FailBit: that should save you until you can index it
[20:44:53] norc: Cohedrin: Because before you start caching to fix things, its best to identify what the actual problem is.
[20:45:03] FailBit: I belive he's aware
[20:45:13] FailBit: desperate times call for desperate measures
[20:45:21] norc: If he doesn't know about query plans he clearly hasn't looked deeply into his database enough.
[20:45:28] Cohedrin: failbits got the right idea :D
[20:45:46] Cohedrin: ok norc, I'm not familiar with that term. Please excuse me :D
[20:45:47] FailBit: norc: 15:40:46 Cohedrin | but for right now, we can't just add the indexes
[20:45:56] diegoviola: Radar: you can just ask me what happened
[20:46:03] diegoviola: Radar: what do you mean "that never happens"
[20:46:06] norc: FailBit: You are simply presuming that this is because of the "lack of an index".
[20:46:09] Radar: diegoviola: !offtopic
[20:46:09] helpa: diegoviola: Your question is considered off topic for #rubyonrails, you'll have to ask in a different chatroom.
[20:46:22] rhizome: Cohedrin: yes. querying as array rather than AR is a 2.x thing, maybe 3.0.
[20:46:51] hotpancakes: has joined #RubyOnRails
[20:46:52] norc: Cohedrin: http://www.postgresql.org/docs/9.3/static/sql-explain.html -- you can use this tool to look at what kind of query plan PostgreSQL generates, at the estimated costs - this can identify *why* exactly your database is slow.
[20:47:00] FailBit: rhizome: but... he's not querying an array
[20:47:12] FailBit: or not intending to anyways
[20:47:29] FailBit: he's trying to cache an extremely expensive query and to do that you need to load the results into an array
[20:47:34] rhizome: acting upon query objects as
[20:48:04] norc: Cohedrin: Just take the expensive SELECT statement, and prepend "EXPLAIN ANALYZE" - and use this website to paste the result http://explain.depesz.com/
[20:48:32] rhizome: not sure how converting to an array messes with expiration, but i guess that's an exercise
[20:49:31] FailBit: norc: you can also use Foo.where(???).explain
[20:49:44] norc: FailBit: Neat. Wasn't aware. :)
[20:50:25] norc: FailBit: I'm forced to use Oracle on all web applications, this greatly reduces the fun. :(
[20:51:13] rhizome: oracle can be fun in other ways
[20:51:27] FailBit: I don't have a job as a coder
[20:51:32] FailBit: that means I can literally do whatever I want
[20:55:01] hnanon: https://gist.github.com/anonymous/bc0486058f07fc136200
[20:55:19] hnanon: My subscriptions param is essentially empty...
[20:55:54] hnanon: But I'm not sure how to use @subscription in my create without the params.
[20:58:06] elton: has joined #RubyOnRails
[20:58:18] corioliss_: has joined #RubyOnRails
[20:58:25] ratmav: has joined #RubyOnRails
[20:59:02] zpe: has joined #RubyOnRails
[20:59:31] nettoweb: has joined #RubyOnRails
[21:02:59] lmdrx: has joined #RubyOnRails
[21:03:12] cac: has joined #RubyOnRails
[21:03:26] Radar: hnanon: ^
[21:03:28] Bryan: has joined #RubyOnRails
[21:05:07] bronson: has joined #RubyOnRails
[21:07:20] kitallis: has joined #RubyOnRails
[21:11:19] Radar: hnanon: Ping?
[21:16:59] kitsuneyo: has joined #RubyOnRails
[21:19:57] FooMunki: has joined #RubyOnRails
[21:20:18] cac: has joined #RubyOnRails
[21:20:31] raunicolae: has joined #RubyOnRails
[21:21:13] lmdrx: has joined #RubyOnRails
[21:22:28] annlewis: has joined #RubyOnRails
[21:23:04] ibouvousaime: has joined #RubyOnRails
[21:23:37] drbayer: has joined #RubyOnRails
[21:24:45] FailBit: norc: any other ideas as to what to tackle
[21:25:04] FailBit: clearly there's a lot of ... stuff ... going on in taht controller
[21:25:21] FailBit: I can move around the respond_to to contain the conditionals but that makes it even uglier
[21:25:24] FailBit: if not shorter
[21:26:02] bergs: has joined #RubyOnRails
[21:26:20] norc: FailBit: Just keep a single responder.
[21:26:30] norc: The only difference is whatever flash contains.
[21:26:34] rgrmatt: has joined #RubyOnRails
[21:27:25] moeabdol: has joined #RubyOnRails
[21:28:40] FailBit: norc: gist updated
[21:28:47] norc: FailBit: Another thing is maybe using current_user.try(:method) rather than current_user.method if current_user (and then refactor it into &. once you switch 2.3)
[21:29:31] FailBit: 2.3 will be "soon" I take it
[21:29:36] FailBit: I'm on 2.2.3 now
[21:29:48] norc: Christmas.
[21:30:03] norc: Though Rails provides you with .try until you get there.
[21:30:10] FailBit: what will the syntax be
[21:30:18] norc: current_user&.method
[21:30:31] FailBit: wow that looks even worse
[21:30:38] norc: it is extremely compact.
[21:31:40] BoogyWookie: has joined #RubyOnRails
[21:31:49] norc: FailBit: It gets a lot better when you do something like current_user&.group&.name.upcase
[21:31:58] norc: Try doing that with conditionals or try.
[21:32:05] kitsuneyo: has joined #RubyOnRails
[21:32:55] FailBit: gist updated again
[21:33:07] FailBit: I saw another thing with the notice and factored out the formats in the responder
[21:33:34] juddey: has joined #RubyOnRails
[21:33:41] jessemcgilallen: has joined #RubyOnRails
[21:34:35] annlewis: has joined #RubyOnRails
[21:34:59] FailBit: swapped out the inc_stat for an after_create callback in the model
[21:35:21] norc: FailBit: https://gist.github.com/anonymous/53c5d4683fffeb893f3d
[21:35:27] norc: Also I was thinking like this with the responders.
[21:35:32] norc: (Also included some trys)
[21:35:36] diegoviola: https://gist.github.com/diegoviola/79cb527e5a1a7755dde3
[21:35:41] diegoviola: I'm still confused as to how to refactor this :(
[21:35:52] FailBit: that's not meaningful complexity
[21:36:25] FailBit: yes, I can use #try, but it doesn't really help make it simpler
[21:36:30] _Tariq: has joined #RubyOnRails
[21:36:40] norc: FailBit: Ignore it then. That was just me doing to look at it.
[21:36:42] FailBit: gist updated again
[21:36:44] moeabdol: has joined #RubyOnRails
[21:36:48] norc: Relevant part is about the responder at the bottom
[21:37:05] FailBit: right, doing
[21:38:18] kitsuneyo: has joined #RubyOnRails
[21:38:27] FailBit: I can have comments know how to log themselves, moving to model
[21:38:29] sparr: has joined #RubyOnRails
[21:38:29] norc: FailBit: Next thing, i18n those flash messages. ;-)
[21:39:33] norc: Also I would probably hide the redis behind an interface
[21:39:37] norc: beyond that it looks kinda fine
[21:42:16] Grundell: has joined #RubyOnRails
[21:42:47] ChanServ: -b *!*@unaffiliated/mices
[21:42:55] norc: FailBit: Why do you keep that huge chunk of code in the top of the block to respond_to though?
[21:43:08] Radar: -q mices!*@*
[21:43:17] Maletor: has joined #RubyOnRails
[21:43:18] FailBit: Radar: ohboy.jpg
[21:43:29] FailBit: norc: nerfed it a bit ago
[21:43:41] Radar: -q rushed!*@*
[21:43:45] FailBit: https://gist.github.com/liamwhite/cd8bfe518e5cfb2f7fe5
[21:43:45] norc: Ah alright. :)
[21:43:46] FailBit: I now have this
[21:44:07] FailBit: also, dear god the other coders
[21:44:15] FailBit: they insist on using 'and', 'or', and 'not'
[21:44:21] FailBit: even when it inconveniences them
[21:44:27] Radar: FailBit: Fire them
[21:44:38] FailBit: they 'hired' me
[21:44:49] Radar: FailBit: Usurp them.
[21:45:04] FailBit: they also live in the UK, so unless you know someone over there with a flamethrower I think I'd be out of luck trying to fire them
[21:45:09] christiandsg: has joined #RubyOnRails
[21:45:19] Radar: I know people in the UK but I don't know if they have a flame thrower.
[21:46:11] norc: FailBit: You make it sound like they are the same. :-)
[21:46:38] FailBit: they wrap them in parens when the behavior is unexpected
[21:46:51] jetpackjoe: has joined #RubyOnRails
[21:47:07] norc: Hilarious. When you have to use parens, you are using the wrong type usually. ;-)
[21:47:10] Hates_: I'm in the UK, I'll sort them out
[21:47:19] Cache_Money: has joined #RubyOnRails
[21:47:39] norc: FailBit: I mean Im not really an expert either, but at least Im trying to improve. :)
[21:47:44] FailBit: one works at BBC R&D, the other works at a vidya company somewhere
[21:47:57] matthewd: FailBit: I think I'd expect cancan (I assume?) to be handling the commenting_allowed condition
[21:48:00] Hates_: unlucky :P
[21:49:21] FailBit: is it a universal truth that coders will deride each others' code for being inferior no matter what
[21:49:49] Radar: FailBit: I try to make a point of _not_ deriding people's code.
[21:49:57] Radar: "Don't hate them for what they don't know", etc.
[21:50:29] norc: FailBit: Here you are, talking about these things after being so hurtful to me, saying bad things about HAML. :(
[21:51:37] cac: has joined #RubyOnRails
[21:51:44] threeminutemonta: has joined #RubyOnRails
[21:52:06] elton: has joined #RubyOnRails
[21:54:28] threeminutemonta: has left #RubyOnRails: ()
[21:54:35] FailBit: matthewd: thanks for the tip
[21:54:50] FailBit: https://gist.github.com/liamwhite/cd8bfe518e5cfb2f7fe5
[21:54:54] FailBit: I think that's much better
[21:55:19] big|bad|wolf: has joined #RubyOnRails
[21:55:38] kitsuneyo: has joined #RubyOnRails
[21:56:13] norc: FailBit: If you are into that thing you could follow that rails scaffold pattern moving the strong params into a seperate method.
[21:56:37] norc: But that only makes sense if its a convention.
[21:56:54] FailBit: that's the only action that uses it
[21:57:15] FailBit: typically I would
[21:57:21] norc: Personally I would still do it - but that is just preference I suppose.
[21:58:01] norc: Seperates the method into logical chunks.
[21:58:06] _Tariq: has left #RubyOnRails: ()
[21:58:36] _Tariq: has joined #RubyOnRails
[21:59:28] greengriminal: has joined #RubyOnRails
[22:02:14] Oliphaunte: has joined #RubyOnRails
[22:02:27] _Tariq: I am using rails-sass and my asset-url is not working
[22:02:28] _Tariq: https://gist.github.com/tra38/4ba9b06d467a3e7a3820
[22:03:31] rickmasta: has joined #RubyOnRails
[22:05:38] User458764: has joined #RubyOnRails
[22:06:13] versatiletech: has joined #RubyOnRails
[22:06:25] FailBit: ow https://gist.github.com/liamwhite/d9ba1bf6c4a31f1cab34
[22:06:28] arBmind: has joined #RubyOnRails
[22:07:02] FailBit: half of that doesn't even work
[22:07:12] raunicolae: has left #RubyOnRails: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[22:08:54] threeminutemonta: has joined #RubyOnRails
[22:09:09] Hates_: _Tariq: you don't use the asset helpers when importing
[22:09:16] Hates_: _Tariq: just give it the path to the file
[22:09:31] bronson: has joined #RubyOnRails
[22:10:19] norc: FailBit: Considering the code quality, are you sure these guys can handle more than one action refactored a day?
[22:12:01] _Tariq: Uh, Hates_, where do I find the "path" to the file in question
[22:12:13] _Tariq: It is located in a new plugins folder in my assets folder
[22:12:41] _Tariq: So I wrote "@import url("/assets/plugins/jquery.fs.scroller/jquery.fs.scroller.css");" but that, of course doesn't work
[22:12:56] kitsuneyo: has joined #RubyOnRails
[22:13:18] FailBit: one person wrote the majority of the code over a few weekends
[22:13:18] norc: _Tariq: @import "path/module";
[22:13:28] FailBit: the other has been trying to keep it running for years
[22:13:33] FailBit: code quality has kind of slipped in the process
[22:14:07] FailBit: anyway, I'm branched
[22:14:08] rhizome: check in the extractions first, then refactor like "oh, just cleaning up some stuff"
[22:14:50] unreal_: has joined #RubyOnRails
[22:14:59] Oliphaunte: has joined #RubyOnRails
[22:15:00] FailBit: that diff would already be like 2000 lines
[22:15:15] FailBit: I already went through a lot of garbage and even ran rubocop on a few files
[22:15:24] rhizome: break it down into tiny steps so they don't freak out :)
[22:15:28] FailBit: my appcontroller makes me proud
[22:15:49] FailBit: it hasn't looked this good since the initial commit
[22:17:14] _Tariq: GET http://localhost:3000/assets/plugins/jquery.fs.selecter/jquery.fs.selecter.css
[22:17:20] _Tariq: And then GET http://localhost:3000/assets/plugins/jquery.fs.scroller/jquery.fs.scroller.css 404 (Not Found)
[22:17:29] _Tariq: As in, both are errors
[22:17:32] _Tariq: but the pathname seems correct
[22:17:39] _Tariq: so I just don't know the correct pathname it seems
[22:17:39] bratsche: has joined #RubyOnRails
[22:17:52] norc: FailBit: My favorite refactor was a bash script by a sysadmin who actually managed to blindly accept parameters and interpolate it into a plain rm -rf command. He managed to tear down the production radius server dealing with the bulk of authentication on network equipment (TACACS)
[22:18:05] netzfisch: has joined #RubyOnRails
[22:18:07] norc: And still kept using it for years.
[22:18:31] FailBit: next time manipulate it so that he gets /* caught in there
[22:19:00] norc: As I said, he managed to do it himself. :-)
[22:19:09] _Tariq: This is annoying, because i know rails have the tendency to stuff a bunch of numbers
[22:19:12] _Tariq: to the end of a file
[22:19:22] _Tariq: So even if the file is called jquery.fs.selecter.css locally
[22:19:27] _Tariq: They're both CSS files aren't they?
[22:19:39] _Tariq: why not just copy them into the main pipeline
[22:19:43] _Tariq: rather than importing them
[22:20:19] norc: _Tariq: The numbers is just fingerprinting by sprockets to bust basically any cache mechanism.
[22:20:32] _Tariq: Yeah, destroy the plugin entirely and separate the CSS and JS files into its own pipelines
[22:20:40] _Tariq: may seem saner than dealing with this issue
[22:20:43] ascarter: has joined #RubyOnRails
[22:20:51] _Tariq: norc: So Ruby itself won't care about the numbers
[22:21:38] kitsuneyo: has joined #RubyOnRails
[22:22:50] Oliphaunte: has joined #RubyOnRails
[22:23:02] norc: _Tariq: Yup. Also the asset pipeline can minify or compress your assets. Usually you end up with very few css/js assets in production - all of that is basically why we have sprockets.
[22:23:50] _Tariq: So will the pipeline fail if the css/js is already minifed?
[22:24:28] norc: It shouldn't, and you shouldn't minify your assets either if you can help it.
[22:24:48] _Tariq: Er, why is that?
[22:25:53] norc: Because by letting the asset pipeline deal with it, you can keep readable assets in your folders, while being able to dynamically change the compressor at any time
[22:26:20] _Tariq: So replace the minifed with the normal version in the future
[22:26:22] Oliphaunte: has joined #RubyOnRails
[22:27:52] christiandsg: has joined #RubyOnRails
[22:28:13] _Tariq: Now, I'm just with assets that are not loading properly
[22:28:19] _Tariq: but in the HTML
[22:28:27] _Tariq: let me see if I can use the asset-url helpers now
[22:29:26] norc: _Tariq: Just make sure you throw out all your require/require tree statements in your assets
[22:29:49] norc: They are kinda useless and just cause issues.
[22:30:03] atomical: has joined #RubyOnRails
[22:30:23] _Tariq: Also, when loading the file, I notice there's a bunch of javascript and css files in my generated HTML
[22:30:38] _Tariq: is that normal?
[22:30:51] norc: _Tariq: Look at your application layout template.
[22:31:29] norc: _Tariq: And by require/require_tree I mean the statements that look like //= require_tree . or *= require_tree . in your application.css.scss or application.js
[22:31:42] norc: Remove any such require directives.
[22:32:40] norc: For sass at least.
[22:33:13] bronson: has joined #RubyOnRails
[22:33:16] _Tariq: Uh doing that breaks everything
[22:33:25] _Tariq: I removed it from application.css
[22:33:44] collink__: has joined #RubyOnRails
[22:33:57] norc: Yes, that is a good thing. Now you can use @import to control whatever you want to import.
[22:35:15] FailBit: https://gist.github.com/liamwhite/d9ba1bf6c4a31f1cab34 much better
[22:35:20] annlewis: has joined #RubyOnRails
[22:35:32] meoblast001: has joined #RubyOnRails
[22:36:06] FailBit: I'll come back to the edited_at thing later.
[22:36:10] Cohedrin: hey friends
[22:36:12] FailBit: that can be destroyed
[22:36:17] Cohedrin: database is less on fire
[22:36:18] norc: _Tariq: When you bring some full library you can use @import "foo/*" or @import "foo/**/*" to completely load a sub directory - but this needs to be done in a controlled manner.
[22:36:24] FailBit: Cohedrin: did everything asplode yet?
[22:36:38] FailBit: or did my hack duct-tape the misery out
[22:36:43] Cohedrin: well response time is down to 300ms
[22:36:46] norc: _Tariq: If you keep a require_tree statement there, it will end up loading things in the wrong order, causing issues later on.
[22:36:54] Cohedrin: acutally did a slightly different approach
[22:37:03] Cohedrin: the root cause wasn't a bad query
[22:37:06] Cohedrin: just a really big query
[22:37:12] dopie: https://gist.github.com/staycreativedesign/22e87008f83f2266412d
[22:37:14] Cohedrin: caching still fixed though
[22:37:20] dopie: I'm getting a type mismatch
[22:37:27] dopie: options_from_select
[22:37:41] Cohedrin: does anyone here know for sure if after_commit keeps the database connection allocated?
[22:37:51] Cohedrin: after_create does I think
[22:37:53] norc: _Tariq: Either way, if you can - use singular imports every time.
[22:37:58] Cohedrin: not sure about after_commit though
[22:38:47] norc: Cohedrin: In standard configuration rails keeps a ConnectionPool
[22:39:06] Cohedrin: yeah, sorry that was a bad question
[22:39:24] Cohedrin: so backstory: after a certian model is saved, we spin up a docker container
[22:39:27] Cohedrin: which takes some time
[22:39:55] Cohedrin: so I _think_ putting that in the after_save callback is wasting database time
[22:40:15] Cohedrin: by keeping the connection to itself for ~ 30 seconds
[22:40:49] Cohedrin: anyone have ideas on how I can verify this is indeed the problem/ if anyone knows for sure that isnt the case
[22:41:36] rhizome: what is the problem?
[22:41:52] rhizome: 30s? use a job
[22:42:14] jacksparrow007: has joined #RubyOnRails
[22:42:46] Cohedrin: Yeah, we can use a job, I'm not looking for a solution here, I just want to make sure that this is the problem
[22:42:50] Cohedrin: before I "fix" it
[22:43:10] roshanavand: has joined #RubyOnRails
[22:43:20] _Tariq: norc: Okay, I will focus on importing and removing minified js/css files later
[22:43:43] norc: dopie: pass vip_ids rather than vips.
[22:43:45] _Tariq: I'm just now worried about the assets/ico folder that appears not to be loaded
[22:44:01] Maletor: has joined #RubyOnRails
[22:44:27] norc: dopie: vip: obj makes Rails assume you are passing a VIP object. vip_id: obj makes Rails assume you are passing an id.
[22:44:51] norc: Same thing for pluralized.
[22:45:14] atomical_: has joined #RubyOnRails
[22:45:35] norc: _Tariq: Indeed. For ico you can use a glob import directive safely.
[22:45:47] norc: Things just tend to get extremely messy with CSS.
[22:45:53] _Tariq: Well, I have it in HTML
[22:45:54] _Tariq: <link rel="shortcut icon" href= "/assets/ico/favicon.png">
[22:45:55] _Tariq: Like this
[22:46:02] _Tariq: it doesn't really work, because of sprockets
[22:46:05] norc: Oh wait silly.
[22:46:55] FailBit: things get messy with CSS if you are reluctant to add styles, markup, or both
[22:47:11] FailBit: if you are willing to sacrifice that, you can honestly write elegant stylesheets
[22:47:15] shibabu: has joined #RubyOnRails
[22:47:19] norc: FailBit: I meant things get messy with CSS when using glob import directives or require_tree.
[22:47:28] FailBit: well, that's not CSS
[22:47:28] rhizome: Cohedrin: verify it by commenting it out
[22:47:38] norc: FailBit: Fair enough. SASS.
[22:47:41] Cohedrin: fair enouhg
[22:47:53] norc: _Tariq: No it will work.
[22:48:04] rhizome: if it's only slow by doing that thing, then something in that thing yadda yadda
[22:48:08] _Tariq: But it doesn't...? I'm not seeing any icon
[22:48:15] _Tariq: in my chrome window
[22:48:17] raunico3: has joined #RubyOnRails
[22:48:27] norc: _Tariq: Is your webserver configured to serve assets?
[22:48:37] _Tariq: ...I don't know
[22:48:44] norc: What is your webserver? Webrick?
[22:49:03] FailBit: https://gist.github.com/liamwhite/a3093d1415eacfb8d82d
[22:49:08] FailBit: I'm gonna go out on a limb and say this is 2 actions
[22:49:24] xardion: has joined #RubyOnRails
[22:49:38] quazimodo: has joined #RubyOnRails
[22:49:49] pjbugz: has joined #RubyOnRails
[22:49:58] norc: FailBit: Entire redis details leaking all over your controllers. I like it.
[22:50:15] pyemkey: has joined #RubyOnRails
[22:50:47] jetpackjoe: has joined #RubyOnRails
[22:50:55] kfrz: has joined #RubyOnRails
[22:50:55] norc: _Tariq: Which environment are you running in? Development?
[22:51:07] _Tariq: Development
[22:51:10] pjbugz: anyone know the rails way to suppress routing errors from production log files?
[22:51:32] pjbugz: mine are full of requsets for paths from the site that previously used my domain name.
[22:51:50] Radar: Probably robots.
[22:52:00] rhizome: pjbugz: catchall route at the end of your routes
[22:52:00] Radar: Modify robots.txt to deny access to those paths
[22:52:35] FailBit: norc: I know, it's beautiful
[22:52:46] norc: pjbugz: You could have a final match route that matches anything and redirect it to a 404.
[22:53:10] norc: pjbugz: Which probably isnt such a bad idea, since anything you dont have predefined routes for is not something that should exist.
[22:53:11] Bryan: has joined #RubyOnRails
[22:53:34] pjbugz: rhizome: thanks. knew it'd be something simple.
[22:53:39] pjbugz: norc: thanks also.
[22:53:55] roshanavand: has joined #RubyOnRails
[22:53:58] pjbugz: Radar: thanks, but there are so many different ones all the time.
[22:54:28] hotpancakes: has joined #RubyOnRails
[22:54:50] edwinvdgraaf: has joined #RubyOnRails
[22:55:27] norc: _Tariq: Is the webserver serving other static assets?
[22:55:38] _Tariq: I don't know
[22:55:43] _Tariq: Like, I really don't know
[22:55:48] _Tariq: Um, I wrote this code now
[22:55:51] _Tariq: config.serve_static_assets = true
[22:55:57] _Tariq: It doesn't seem to impact anything
[22:57:05] FailBit: norc: I have no idea what I want to do with our "auditing system"
[22:57:14] FailBit: which involves an irc bot pushing actions to a channel
[22:57:32] FailBit: with ruby code that looks golfed
[22:58:06] norc: FailBit: Why do I have a feeling your company is also ISO/IEC 27001 certified.
[22:58:18] bryanl: has joined #RubyOnRails
[22:58:43] FailBit: what company
[22:58:50] christiandsg: has joined #RubyOnRails
[22:58:52] FailBit: this isn't some professional rails app
[22:59:21] FailBit: this is the source code to "a certain site" powered by this rails project (booru-on-rails)
[22:59:38] FailBit: google if you're bored or I haven't told you what site I run
[23:00:11] sarink: has joined #RubyOnRails
[23:00:32] versatiletech: has joined #RubyOnRails
[23:00:35] tildes: has joined #RubyOnRails
[23:00:38] hnanon: has joined #RubyOnRails
[23:01:01] yfeldblum: has joined #RubyOnRails
[23:01:13] banister: has joined #RubyOnRails
[23:01:13] hnanon: Anyhere familiar with Stripe and stripe.js?
[23:02:05] SiliconDon: has joined #RubyOnRails
[23:02:14] hnanon: I have this: https://gist.github.com/anonymous/a68a47e9188ff9c1a14d
[23:02:19] Radar: hnanon: y u no answer my previous questions?
[23:02:28] hnanon: Radar: When?!
[23:02:33] hnanon: I didn't see them.
[23:02:41] Radar: Approx 1hr ago
[23:02:45] Radar: http://imgur.com/hPBxEV4
[23:02:50] norc: _Tariq: Okay lets recap. Can you gist your generating erb/haml/slim template and your server log for a request that gives you trouble?
[23:03:16] hnanon: Radar: I think I just stepped away right before you sent that.
[23:03:21] norc: FailBit: Looks fancy - I might even sign up next week on friday.
[23:03:23] Radar: hnanon: OK.
[23:03:27] Radar: hnanon: I know stuff about Stripe.
[23:03:33] hnanon: I ended up doing something different.
[23:03:34] norc: At 11pm. After getting hammered on our christmas party.
[23:03:40] Radar: https://gist.github.com/anonymous/a68a47e9188ff9c1a14d#file-stirpe-rb-L9 that line is craaaaaazy
[23:03:56] roshanavand: has joined #RubyOnRails
[23:04:06] hnanon: Radar: It's a subscription service.
[23:04:17] Radar: hnanon: Well aware.
[23:04:31] hnanon: If a user registers today, they're "trialing" until the end of the month.
[23:04:41] hnanon: They're first invoice is on the coming 1st.
[23:04:47] Radar: 1.month.from_now.beginning_of_month.to_i
[23:04:52] Radar: That is how I would write it.
[23:04:53] Ropeney: has joined #RubyOnRails
[23:05:40] _Tariq: https://gist.github.com/tra38/d46bacbf4f181080dd1f
[23:05:49] Radar: hnanon: Regarding earlier conversation: doesn't your client "ping" when you get named in a message?
[23:06:06] _Tariq: and I don't see any shortcut icon in my Chrome
[23:06:08] cashnguns: has joined #RubyOnRails
[23:06:08] _Tariq: I just see a blank page
[23:06:21] _Tariq: instead of a thingy
[23:06:22] norc: _Tariq: Please edit the gist and include the server log.
[23:06:56] hnanon: Radar: I have my sound off and I closed my laptop probably right after you sent your message.
[23:07:03] Radar: hnanon: ok.
[23:07:40] hnanon: Radar: That source line in my gist...
[23:07:58] _Tariq: Would this work, norc? https://gist.github.com/tra38/d46bacbf4f181080dd1f
[23:08:00] hnanon: It's not saving the card info at Stripe.
[23:08:18] ponky: has joined #RubyOnRails
[23:08:31] hnanon: In some older code that I have, I have "card" instead of "source" but their docs seem to be using source now.
[23:09:51] norc: _Tariq: The asset in question is never requested. Which browser are you using?
[23:10:43] norc: _Tariq: Use a Shift-Reload, see if that does the trick.
[23:10:44] collink__: I'm having some weird issue with Rails...I'm trying to setup a new Rails project, and it keeps segfaulting when I try to run `rails s` or like `rake db:create` and stuff.
[23:10:46] sankaber: has joined #RubyOnRails
[23:11:30] norc: collink__: Which operating system? How is your Ruby installed?
[23:11:31] _Tariq: It doens't work, norc
[23:11:37] _Tariq: I'm going to have to abandon worrying about this for now
[23:11:43] chridal: has joined #RubyOnRails
[23:12:09] jetpackjoe: has joined #RubyOnRails
[23:12:12] collink__: norc: OS X Yosemite. I honestly don't remember how it's installed...been a while. I know I have RVM though.
[23:12:32] norc: collink__: Do a quick gist of your bug screen
[23:13:00] kitsuneyo: i have this array of hashes: [{"long_name"=>"Greater Manchester", "short_name"=>"Gt Man", "types"=>["administrative_area_level_2", "political"]}, {"long_name"=>"England", "short_name"=>"England", "types"=>["administrative_area_level_1", "political"]}, {"long_name"=>"United Kingdom", "short_name"=>"GB", "types"=>["country", "political"]}] - i want to select the value of long_name where the key 'types' includes 'country'.
[23:13:23] kitsuneyo: i'm trying to figure out the ruby, i think i need select, but i can't quite figure it out
[23:13:31] Radar: kitsuneyo: Show us what you have got so far.
[23:13:51] norc: _Tariq: Well, this is just Safari being nasty about its cache.
[23:13:52] collink__: norc: https://gist.github.com/anonymous/2ba58717bf75885ebe1d
[23:14:00] _Tariq: I went to Chrome
[23:14:12] _Tariq: and I still don't see the favicon
[23:14:39] norc: _Tariq: Update your gist to show the server log.
[23:15:02] sevenseacat: has joined #RubyOnRails
[23:15:10] norc: And try visiting host/assets/ico/favicon.png
[23:15:13] norc: See if that serves it.
[23:15:27] norc: If so it is definitely not sprockets.
[23:15:54] _Tariq: SDid this: https://gist.github.com/tra38/d46bacbf4f181080dd1f
[23:15:56] FailBit: norc: the code was never released to the public as was once advertised because the guy in charge thinks that doing so will leave us extremely vulnerable
[23:15:59] FailBit: I aim to change that
[23:16:17] kitsuneyo: Radar, something like this: array.select{|c| c['types' == 'country'].long_name
[23:16:24] kitsuneyo: i know that isn't correct ruby
[23:16:29] norc: collink__: Do you have any ffi libraries loaded? I see fiddle in your loaded features.
[23:16:39] hnanon: Stripes' doc say the following about "source": The source can either be a token, like the ones returned by our Stripe.js, or a dictionary containing a user???s credit card details (with the options shown below).
[23:16:50] hnanon: I'm passing the token.
[23:16:51] kitsuneyo: sorry i meant array.select{|c| c['types' == 'country']}.long_name
[23:16:58] Radar: kitsuneyo: array.map { |c| c['types'] } might get you a better idea.
[23:17:04] _Tariq: No route matches [GET] "/assets/ico/favicon.png"
[23:17:06] FailBit: also, for having the most horrendous image model code ever
[23:17:07] _Tariq: I have to go
[23:17:09] collink__: norc: ...not intentionally...I'm just getting back into ruby after a few years...not really sure what FFI is haha
[23:17:18] kitsuneyo: let me try that Radar
[23:17:54] sevenseacat: happy monday \o/
[23:18:14] Radar: sevenseacat: Good morning. Did you have a good weekend?
[23:18:26] Radar: I think it involved some flying?
[23:18:27] sevenseacat: not bad. currently chillaxing in sydney.
[23:18:33] bryanl: has joined #RubyOnRails
[23:20:00] kitsuneyo: sevenseacat, what does that have to do with Rails?
[23:20:15] sevenseacat: kitsuneyo: absolutely nothing!
[23:21:26] kitsuneyo: well, this is a rails channel, so... :P
[23:21:38] Radar: kitsuneyo: easy there, tiger.
[23:21:47] ruid: has joined #RubyOnRails
[23:23:13] kitsuneyo: i'm just kidding... that is exactly what sevenseacat said to me the other day though!
[23:23:26] sevenseacat: Radar: all good :)
[23:23:36] collink__: norc: any ideas?
[23:24:03] norc: collink__: Yes.
[23:24:16] collink__: norc: lay 'em on me. :)
[23:24:55] norc: collink__: Most likely its a mismatch between your compiled ruby version and some gem
[23:25:07] norc: But that is just a random guess.
[23:25:12] collink__: norc: makes sense...any way to figure out which?
[23:25:37] norc: collink__: You can just empty your gemset, make a new and bundle install
[23:25:51] norc: See if that solves your issue.
[23:25:53] collink__: norc: empty my gemset?
[23:26:13] norc: collink__: https://rvm.io/gemsets/emptying
[23:26:24] sevenseacat: has joined #RubyOnRails
[23:26:27] kies: has joined #RubyOnRails
[23:26:43] christiandsg: has joined #RubyOnRails
[23:27:04] cac: has joined #RubyOnRails
[23:27:15] norc: collink__: In particular this probably is just debug_inspector, but you might as well get a full fresh set before you get another crash.
[23:28:28] collink__: norc: you're the man, that seems to have sorted it
[23:29:17] Radar: RVM? whoops!
[23:29:34] diegoviola: do yourself and your computer a favor and use chruby/ruby-install
[23:29:43] Radar: collink__: rvm implode --force
[23:29:53] Radar: Then http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/:
[23:30:16] collink__: Radar: are you telling me I shouldn't be using RVM
[23:30:26] Radar: collink__: Correct. It has fallen out of fashion.
[23:30:32] norc: collink__: We get a new Ruby version management system every year.
[23:30:40] norc: Now its chruby.
[23:30:52] jtdowney: has joined #RubyOnRails
[23:30:53] jtdowney: has joined #RubyOnRails
[23:31:20] collink__: Radar, norc: might as well be on the new hotness...gonna implode this puppy like an old Vegas hotel
[23:31:44] kitsuneyo: has joined #RubyOnRails
[23:31:47] norc: Those cool kids today, showing off their newest iPhone, sneakers and chruby.
[23:32:16] Radar: collink__: gg
[23:32:21] diegoviola: you might still have some leftovers after rvm implode, check with ls -a
[23:32:41] collink__: diegoviola: assuming you mean ~/.rvm ?
[23:33:06] johnflux: has joined #RubyOnRails
[23:33:07] johnflux: has joined #RubyOnRails
[23:33:08] diegoviola: I always check ~/.config ~/.local ~/.cache/ etc. for leftovers
[23:33:49] diegoviola: those leftovers shouldn't have any effect after you implode, though
[23:36:06] annlewis: has joined #RubyOnRails
[23:36:17] iateadonut: has joined #RubyOnRails
[23:38:21] diegoviola: Radar: do you have any ideas how to refactor this view? I just don't like the multiples tables there: https://gist.github.com/diegoviola/79cb527e5a1a7755dde3
[23:38:36] Radar: Put them into partials?
[23:39:59] banister: has joined #RubyOnRails
[23:40:23] hnanon: So my stripe_card_token is not a persisted param...
[23:40:47] hnanon: But I'm getting: Unpermitted parameter: stripe_card_token
[23:40:49] Radar: hnanon: You've got to stop treating IRC like it's email.
[23:40:55] diegoviola: Radar: yeah I tried that with <%= render @sedexes %>, <%= render @special_departments %> and I can use the same correspondences/_correspondence.html.erb, but the thing with that is that some tables have a special "status" column and some others don't
[23:41:17] hnanon: Radar: Advise me.
[23:41:19] diegoviola: Radar: even though that status is just a helper method
[23:41:20] Radar: diegoviola: Sigh. <%= render "department_tables" %>
[23:41:21] Radar: hnanon: I am.
[23:41:29] Radar: diegoviola: Then in the partial, you put one of the tables.
[23:41:29] hnanon: I don't understand.
[23:41:41] Radar: hnanon: Your last message was at 10:16.
[23:41:44] Radar: It's now 10:40.
[23:41:49] diegoviola: Radar: yeah I'll do that
[23:41:57] elton: has joined #RubyOnRails
[23:42:00] Radar: hnanon: Show us your code.
[23:42:13] Radar: hnanon: View and controller.
[23:42:36] diegoviola: Radar: sorry about that :p
[23:42:41] hnanon: Ok, 1 sec.
[23:43:10] collink__: Radar: why is ruby-install telling me that 2.2.2/2.2.3 are unsupported versions?
[23:43:11] hnanon: Radar: Normally if I don't get a response, I'll toil for a little bit then report back any new findings.
[23:43:19] Radar: collink__: Did you follow the guide?
[23:43:29] Radar: collink: what commands are you running that tell you that?
[23:44:18] collink__: Radar: durr...can't read...missed part of the command... T_T
[23:44:25] Radar: collink: np
[23:44:41] jetpackjoe: has joined #RubyOnRails
[23:44:48] Maletor: has joined #RubyOnRails
[23:45:02] sevenseacat: has joined #RubyOnRails
[23:46:28] debster: has joined #RubyOnRails
[23:47:32] hnanon: Radar: https://gist.github.com/anonymous/7bf0566340308f9dcd83
[23:48:32] Radar: hnanon: https://gist.github.com/anonymous/7bf0566340308f9dcd83#file-sub-js-L12
[23:48:36] Radar: What even is this
[23:48:46] Radar: hnanon: $('#card_token').val(token)
[23:49:04] Radar: <input type=hidden' id='card_token' name='card_token'>, aka <%= hidden_field_tag 'card_token' %>
[23:49:06] kitsuneyo: has joined #RubyOnRails
[23:49:17] Radar: hnanon: If it's not a persisted parameter, why is it being passed through along with the subscription params?
[23:49:29] Radar: After making that change, then you'll need to reference the right parameter here: https://gist.github.com/anonymous/7bf0566340308f9dcd83#file-controller-rb-L4
[23:50:32] _Tariq: has joined #RubyOnRails
[23:50:41] SalexW: has joined #RubyOnRails
[23:51:09] kitsuneyo: Radar, i got it with select{|t| t['types'][0] == 'country'}.first['long_name']
[23:51:27] Radar: kitsuneyo: Good :) We would've also accepted t['types'].include?('country')
[23:51:46] kitsuneyo: oh that's better i think Radar :D thanks
[23:52:48] hnanon: Radar: That did it.
[23:52:57] Radar: hnanon: Great :)
[23:53:16] kitsuneyo: now it doesn't rely on a specific position in the array
[23:53:27] hnanon: I have no idea why I was trying to pass it as part of the subscription params, when I knew it wasn't supposed to be persisted.
[23:53:51] Radar: kitsuneyo: that's right
[23:54:06] hnanon: Radar: A while back you said you strip out turbolinks for every project? Is that correct?
[23:54:26] Radar: hnanon: yes
[23:54:49] hnanon: Do you advise that, in general?
[23:55:25] Radar: http://logs.ryanbigg.com/RubyOnRails?date=2015-10-11#4302794
[23:55:30] Radar: Please refer to previous discussion.
[23:56:29] hnanon: I remember now.
[23:57:27] jgt1: has joined #RubyOnRails
[23:57:58] edwinvdgraaf: has joined #RubyOnRails