« Back to channel list

#RubyOnRails - 09 April 2017

« Back 1 day Forward 1 day »
[00:02:23] uks: has joined #RubyOnRails
[00:02:48] libastral: has joined #RubyOnRails
[00:12:16] claudevandort: has joined #RubyOnRails
[00:20:45] mostlybadfly: has joined #RubyOnRails
[00:24:59] PresidentBiscuit: has joined #RubyOnRails
[00:29:54] libastral: has joined #RubyOnRails
[00:40:29] cerulean: richardjohn:
[00:43:44] superlou: has joined #RubyOnRails
[00:45:32] aajjbb: has joined #RubyOnRails
[00:58:59] GodFather: has joined #RubyOnRails
[01:00:02] Pumukel: has joined #RubyOnRails
[01:01:49] DoctorMonocular: is there a good example project for rails 5.1+react?
[01:02:35] jgt1: has joined #RubyOnRails
[01:04:12] DoctorMonocular: using react-on-rails with asset pipeline and it's pretty gross
[01:08:34] Pumukel: has joined #RubyOnRails
[01:09:17] jdm: has joined #RubyOnRails
[01:16:24] jdm: has joined #RubyOnRails
[01:19:06] hahuang61: has joined #RubyOnRails
[01:31:23] jenrzzz: has joined #RubyOnRails
[01:33:28] alexggordon: has joined #RubyOnRails
[01:33:33] webdestroya: has joined #RubyOnRails
[01:35:36] webdestroya: has joined #RubyOnRails
[01:37:52] hfp_work: has joined #RubyOnRails
[01:40:37] byteflame: has joined #RubyOnRails
[01:46:01] webdestroya: has joined #RubyOnRails
[01:57:24] PresidentBiscuit: has joined #RubyOnRails
[02:05:44] fugee: has joined #RubyOnRails
[02:08:57] libastral: has joined #RubyOnRails
[02:09:28] Guest96: has joined #RubyOnRails
[02:14:18] Guest96: has joined #RubyOnRails
[02:14:45] Jameser: has joined #RubyOnRails
[02:18:18] xall: has joined #RubyOnRails
[02:37:53] jdelStrother: has joined #RubyOnRails
[02:39:05] spicerack: has joined #RubyOnRails
[02:39:41] Pumukel: has joined #RubyOnRails
[02:56:31] hndk: has joined #RubyOnRails
[02:57:38] cam27: has joined #RubyOnRails
[03:00:20] shinnya: has joined #RubyOnRails
[03:02:42] sevenseacat: has joined #RubyOnRails
[03:04:05] cam27: Does anyone use rails in an enterprise enviornment?
[03:19:58] hahuang61: has joined #RubyOnRails
[03:22:50] gk_1wm_su: has joined #RubyOnRails
[03:23:13] gk_1wm_su: has left #RubyOnRails: ()
[03:31:22] arefaslani: has joined #RubyOnRails
[03:31:28] Direct: has joined #RubyOnRails
[03:37:27] Direct: has left #RubyOnRails: ("Leaving...")
[03:43:59] kristofferR: has joined #RubyOnRails
[03:45:58] byteflame: has joined #RubyOnRails
[03:46:34] gk_1wm_su: has joined #RubyOnRails
[03:47:33] gk_1wm_su: has left #RubyOnRails: ()
[03:49:52] hive-mind: has joined #RubyOnRails
[03:52:08] Nezith: has joined #RubyOnRails
[03:53:50] spicerack: has joined #RubyOnRails
[04:01:19] dark_iris: has joined #RubyOnRails
[04:03:46] dark_iris: anyone there?
[04:07:17] arefaslani: has joined #RubyOnRails
[04:07:24] cerulean: dark_iris: ask away
[04:08:52] _djbkd: has joined #RubyOnRails
[04:26:03] jdm: has joined #RubyOnRails
[04:32:39] renegadeandy: has joined #RubyOnRails
[04:38:06] Nezith: has joined #RubyOnRails
[04:45:21] rubyonrailed: has joined #RubyOnRails
[04:54:43] _djbkd: has joined #RubyOnRails
[05:04:15] jenrzzz: has joined #RubyOnRails
[05:05:02] rakm: has joined #RubyOnRails
[05:05:24] Nezith: has joined #RubyOnRails
[05:08:53] bruce_lee: has joined #RubyOnRails
[05:08:53] bruce_lee: has joined #RubyOnRails
[05:11:00] alexggordon: has joined #RubyOnRails
[05:16:28] peterpp: has joined #RubyOnRails
[05:16:47] arefaslani: has joined #RubyOnRails
[05:21:02] hahuang61: has joined #RubyOnRails
[05:25:19] Technodrome: has joined #RubyOnRails
[05:39:46] ayonkhan: has joined #RubyOnRails
[05:56:27] arefaslani: has joined #RubyOnRails
[06:06:23] arBmind: has joined #RubyOnRails
[06:06:53] renegadeandy: has joined #RubyOnRails
[06:16:13] arefaslani: has joined #RubyOnRails
[06:28:38] renegadeandy: has joined #RubyOnRails
[06:32:24] NotDestru: has joined #RubyOnRails
[06:47:43] renegadeandy: has joined #RubyOnRails
[06:54:13] jusa: has joined #RubyOnRails
[06:54:31] User458764: has joined #RubyOnRails
[06:57:57] PresidentBiscuit: has joined #RubyOnRails
[07:01:57] mochiyoda: has joined #RubyOnRails
[07:03:38] darutoko: has joined #RubyOnRails
[07:09:59] nahtnam: has joined #RubyOnRails
[07:21:34] dionysus69: has joined #RubyOnRails
[07:21:52] hahuang61: has joined #RubyOnRails
[07:24:02] Mia: has joined #RubyOnRails
[07:35:20] antgel: has joined #RubyOnRails
[07:35:57] jusa: has joined #RubyOnRails
[07:39:00] arefaslani: has joined #RubyOnRails
[07:43:31] bz: has joined #RubyOnRails
[07:44:56] sunrunner20: has joined #RubyOnRails
[07:45:13] sunrunner20: any help with getting RoR running on IIS?
[07:48:30] sunrunner20: I'm trying to follow this guide: https://www.hanselman.com/blog/AnnouncingRunningRubyOnRailsOnIIS8OrAnythingElseReallyWithTheNewHttpPlatformHandler.aspx
[07:48:45] sunrunner20: but when I create the web.config the page never loads
[08:11:13] zero1one0: has joined #RubyOnRails
[08:11:19] pwnd_nsfw`: has joined #RubyOnRails
[08:13:19] Qchmqs: has joined #RubyOnRails
[08:20:37] harfangk: has joined #RubyOnRails
[08:30:30] alexggordon: has joined #RubyOnRails
[08:30:44] Guest96: has joined #RubyOnRails
[08:32:59] rgr_: has joined #RubyOnRails
[08:37:32] zpe: has joined #RubyOnRails
[08:40:05] arefaslani: has joined #RubyOnRails
[08:43:22] harfangk: has joined #RubyOnRails
[08:49:55] User458764: has joined #RubyOnRails
[09:06:23] handicraftsman: has joined #RubyOnRails
[09:06:23] handicraftsman: has joined #RubyOnRails
[09:14:23] pLaTo0n: has joined #RubyOnRails
[09:16:09] SteenJobs: has joined #RubyOnRails
[09:19:11] arefaslani: has joined #RubyOnRails
[09:20:48] jgt1: has joined #RubyOnRails
[09:21:59] srinidhi: has joined #RubyOnRails
[09:22:42] hahuang61: has joined #RubyOnRails
[09:23:38] lxsameer: has joined #RubyOnRails
[09:41:29] Axy: has joined #RubyOnRails
[09:41:29] Axy: has joined #RubyOnRails
[09:46:03] Mia: has joined #RubyOnRails
[09:46:03] Mia: has joined #RubyOnRails
[09:48:57] Axy: has joined #RubyOnRails
[09:48:57] Axy: has joined #RubyOnRails
[10:09:33] Guest96: has joined #RubyOnRails
[10:10:00] mikecmpbll: has joined #RubyOnRails
[10:13:47] kristofferR: has joined #RubyOnRails
[10:17:13] arefaslani: has joined #RubyOnRails
[10:17:40] xco: has joined #RubyOnRails
[10:17:47] xco: hello :)
[10:19:16] xco: i’d like some tips on where to look when my flash message is incrementing the error count by 1 when in fact there are n-1 errors (n = number of errors)
[10:21:20] sevenseacat: let's start with the code displaying the error message
[10:24:20] jarr0dsz: has joined #RubyOnRails
[10:24:33] xco: sevenseacat: it looks like this https://gist.github.com/siaw23/1ee06fa5718c5b3893787376fbe4c754
[10:25:37] sevenseacat: the first argument to pluralize is typically a number - what you want to pluralize the word with
[10:26:19] sevenseacat: but thats alright
[10:26:36] xco: .count should be there of course
[10:26:56] xco: so it looks like this https://gist.github.com/siaw23/1ee06fa5718c5b3893787376fbe4c754
[10:27:32] sevenseacat: and what does that output?
[10:29:24] xco: sevenseacat: outputs https://gist.github.com/siaw23/1ee06fa5718c5b3893787376fbe4c754#file-output-txt
[10:29:50] sevenseacat: there are 3 errors being printed out
[10:30:01] sevenseacat: whats the problem?
[10:30:50] xco: the problem is only email and passwords fields are being highlighted
[10:31:14] sevenseacat: because they're the only two with errors on them
[10:31:35] spicerack: has joined #RubyOnRails
[10:31:35] sevenseacat: what else do you want to be highlighted?
[10:32:55] xco: that’s what i am looking for
[10:33:23] sevenseacat: I'm not following. you have 3 errors for 2 fields, and thats exactly what the code is printing out
[10:35:54] arefaslani: has joined #RubyOnRails
[10:35:55] xco: i think it’s counting the password, and password confirmation as 2 errors
[10:36:24] sevenseacat: 1) password cant be blank 2) email cant be blank 3) email is invalid.
[10:36:31] sevenseacat: its right there in the printed out message
[10:38:30] xco: got it… thanks :)
[10:47:02] NoGodDamnIdea: has joined #RubyOnRails
[10:47:03] NoGodDamnIdea: has joined #RubyOnRails
[10:52:06] akshat: has joined #RubyOnRails
[10:58:14] PresidentBiscuit: has joined #RubyOnRails
[11:07:47] Guest96: has joined #RubyOnRails
[11:08:47] srinidhi: has joined #RubyOnRails
[11:18:26] arefaslani: has joined #RubyOnRails
[11:20:48] arefasla_: has joined #RubyOnRails
[11:24:26] hahuang61: has joined #RubyOnRails
[11:24:54] figuresofstick: has joined #RubyOnRails
[11:26:34] arefaslani: has joined #RubyOnRails
[11:27:15] handicraftsman: has joined #RubyOnRails
[11:27:15] handicraftsman: has joined #RubyOnRails
[11:27:36] arefaslani: has joined #RubyOnRails
[11:28:06] srinidhi: has joined #RubyOnRails
[11:41:02] xco: how do i find the field names of a redis model from a model file that looks like Cats < RedisModel?
[11:50:45] dretnx: has joined #RubyOnRails
[11:55:20] alexggordon: has joined #RubyOnRails
[12:07:17] yoongkang: has joined #RubyOnRails
[12:07:49] whenIdoIsudo: has joined #RubyOnRails
[12:11:54] User458764: has joined #RubyOnRails
[12:12:28] am55: has joined #RubyOnRails
[12:12:32] shinnya: has joined #RubyOnRails
[12:14:38] User458764: Hi, how to use jquery with rails 5.0.2?
[12:14:57] |RicharD|: has joined #RubyOnRails
[12:14:58] User458764: I have this problem: couldn't find file 'jquery' with type 'application/javascript'
[12:15:14] elsurudo: has joined #RubyOnRails
[12:16:04] elsurudo: Does anyone know how to add fonts (e.g font-awesome-rails) to be precompiled in Rails 5.1? I’m guessing this needs to happen in the manifest.js?
[12:27:30] Dysp: has joined #RubyOnRails
[12:42:13] jsrn_: has joined #RubyOnRails
[12:46:40] claudevandort: has joined #RubyOnRails
[12:58:21] xall: has joined #RubyOnRails
[13:01:52] Fernando-Basso: has joined #RubyOnRails
[13:07:04] byteflam1: has joined #RubyOnRails
[13:13:25] Pumukel: has joined #RubyOnRails
[13:13:43] tbuehlmann: User458764: do you have the jquery-rails gem in your Gemfile?
[13:14:13] Pumukel: has joined #RubyOnRails
[13:15:00] Pumukel: has joined #RubyOnRails
[13:15:49] Pumukel: has joined #RubyOnRails
[13:16:36] Pumukel: has joined #RubyOnRails
[13:25:17] hahuang61: has joined #RubyOnRails
[13:29:09] dionysus69: has joined #RubyOnRails
[13:30:13] spicerack: has joined #RubyOnRails
[13:31:56] keerthana: has joined #RubyOnRails
[13:38:07] meoblast001: has joined #RubyOnRails
[13:40:28] srinidhi: has joined #RubyOnRails
[13:48:45] anathematic: has joined #RubyOnRails
[13:53:09] ltd: has joined #RubyOnRails
[13:53:23] cam27: has joined #RubyOnRails
[13:56:12] jgt1: has joined #RubyOnRails
[13:56:58] cseder: has joined #RubyOnRails
[13:58:44] lightheaded: has joined #RubyOnRails
[13:58:44] libastral: has joined #RubyOnRails
[14:07:09] pLaToOn: has joined #RubyOnRails
[14:08:48] PresidentBiscuit: has joined #RubyOnRails
[14:11:37] Technodrome: has joined #RubyOnRails
[14:13:13] NoGodDamnIdea: has joined #RubyOnRails
[14:18:42] peterpp: can I create delete queries using ActiveRecord without having any objects being instantiated first?
[14:22:51] User458764: has joined #RubyOnRails
[14:23:16] DLSteve: has joined #RubyOnRails
[14:23:22] User458764: has joined #RubyOnRails
[14:24:22] tbuehlmann: peterpp, sure: YourModel.where(foo: 'bar').delete_all
[14:27:08] peterpp: tbuehlmann, oh, thanks
[14:30:52] marr: has joined #RubyOnRails
[14:34:29] lightheaded: has joined #RubyOnRails
[14:37:19] dionysus69: has joined #RubyOnRails
[14:37:58] srinidhi: has joined #RubyOnRails
[14:38:13] User458764: tbuehlmann yeah I think I have a version problem in my Gemfile
[14:39:11] ltd: has joined #RubyOnRails
[14:41:36] mikecmpbll: has joined #RubyOnRails
[14:44:22] claudevandort: has joined #RubyOnRails
[14:51:32] lightheaded: has joined #RubyOnRails
[14:56:57] jgt1: has joined #RubyOnRails
[15:01:22] ltd: has joined #RubyOnRails
[15:01:48] akshat: has joined #RubyOnRails
[15:02:19] _hs710: has joined #RubyOnRails
[15:11:22] b3l914n: has joined #RubyOnRails
[15:14:05] buckrockwell: has joined #RubyOnRails
[15:14:47] lukas_[m]: is there a nice solution to check a validation only on a specific view?
[15:15:47] byteflame: has joined #RubyOnRails
[15:15:48] naftilos76: has joined #RubyOnRails
[15:15:49] byteflam1: has joined #RubyOnRails
[15:16:26] lukas_[m]: thought this would be a common problem, but didn't find a solution, yet
[15:26:12] hahuang61: has joined #RubyOnRails
[15:35:02] irishfromua: has joined #RubyOnRails
[15:39:52] cerulean: lukas_[m]: why not just do a conditional there? validations are model-wide
[15:39:57] cerulean: app-wide i mean
[15:40:42] xall: has joined #RubyOnRails
[15:41:10] cerulean: lukas_[m]: can you skip them everywhere else using https://richonrails.com/articles/skipping-validations-in-ruby-on-rails
[15:41:52] matthewd: http://blog.arkency.com/2014/04/mastering-rails-validations-contexts/
[15:44:33] cerulean: i love akrency
[15:47:01] lightheaded: has joined #RubyOnRails
[15:48:23] pwnd_nsfw`: lukas_[m], save(validation: false)
[15:50:59] handicraftsman: pwnd_nsfw` - your nickname =\
[15:52:27] _hs710: has joined #RubyOnRails
[15:53:28] hndk: has joined #RubyOnRails
[15:54:25] lukas_[m]: thanks for the link!
[15:57:51] handicraftsman: pwnd_nsfw, i mean 'nsfw'
[15:57:58] jgt1: has joined #RubyOnRails
[16:00:09] Limix: has joined #RubyOnRails
[16:01:26] _aeris_: has joined #RubyOnRails
[16:01:35] _aeris_: Hello #rubyonrails !
[16:02:03] wbnns: has joined #RubyOnRails
[16:02:25] _aeris_: what's the way to use config.assets.prepend_path ? seems no taken into account, I try prepend_path 'foo/bar', prepend_path = 'foo/bar'…
[16:02:41] _aeris_: seems the real sprocket#prepend_path never call…
[16:02:55] _aeris_: (and assets.paths still empty at the end)
[16:04:14] cseder: has joined #RubyOnRails
[16:04:15] wbnns: Hello, I'm running OSX, and from the terminal "ruby -v" outputs 2.4.1, but "rails c" says 2.0.0.
[16:04:49] wbnns: Could someone please help me figure out how to specify what version of Ruby "rails c" uses?
[16:06:06] pwnd_nsfw: handicraftsman, what's wrong with it? lol
[16:06:39] pwnd_nsfw: I don't understand the problem.
[16:06:39] handicraftsman: Do you know wats dat lol?
[16:06:40] cerulean: are you using puts RUBY_VERSION
[16:06:51] pwnd_nsfw: It's my username, get over it
[16:06:53] cerulean: wbnns: are you using "puts RUBY_VERSION"
[16:06:59] handicraftsman: pwnd_nsfw, no, google it
[16:07:07] pwnd_nsfw: not safe for work, who cares
[16:07:15] Aherin: has joined #RubyOnRails
[16:07:22] cerulean: can we clear the chat and help this guy
[16:07:25] pwnd_nsfw: Not like I'm in here posting cheese pizza
[16:07:43] wbnns: cerulean: Hi, no, I am not.
[16:07:48] pwnd_nsfw: wbnns, are you using rbenv or rvm?
[16:07:51] pwnd_nsfw: or something similar
[16:07:55] cerulean: try that, that commands will return the ruby version used by rails c
[16:07:55] wbnns: pwnd_nsfw: rvm
[16:08:08] pwnd_nsfw: wbnns, you can put in your gemfile ruby 'versionnumber'
[16:08:28] pwnd_nsfw: Also, it's weird that they're showing two different numbers
[16:08:40] pwnd_nsfw: Try doing rvm use 2.4.1
[16:08:42] matthewd: wbnns: `gem env`, `bundle env` -- check which ruby they're seeing
[16:08:44] pwnd_nsfw: and run rails c again
[16:09:37] matthewd: _aeris_: I thought `config.assets` returned the Sprockets::Environment, so you'd be calling prepend_path on it directly
[16:10:07] _aeris_: it doesn’t return the env, but a RailiesOption :s
[16:11:09] _aeris_: and adding debug to Env, the real method is never called
[16:11:18] wbnns: cerulean matthewd pwnd_nsfw - Thanks a bunch you all, the issue is fixed now. 👍
[16:11:35] pwnd_nsfw: Are you sure though? Exit out of the terminal, and go back and try again :p
[16:11:35] matthewd: _aeris_: What version of sprockets-rails are you using? (also sprockets & rails, while we're checking)
[16:12:06] wbnns: pwnd_nsfw: Ok, yes, just confirmed - all good.
[16:12:14] _aeris_: sprockets (3.7.1)
[16:12:16] _aeris_: sprockets-rails (3.2.0)
[16:13:18] _aeris_: Sprockets::Railtie::OrderedOptions to be exact
[16:14:49] byteflam1: has joined #RubyOnRails
[16:16:16] matthewd: Ah, indeed it is
[16:16:19] irishfromua: has joined #RubyOnRails
[16:16:40] matthewd: https://github.com/rails/sprockets-rails/blob/master/lib/sprockets/railtie.rb#L127 seems relevant, though I'm not sure how public that API is :/
[16:18:40] _aeris_: and so, there is only way to append path, not prepend :s
[16:19:58] jgt1: has joined #RubyOnRails
[16:21:33] jusa: has joined #RubyOnRails
[16:21:50] ebbflowgo: has joined #RubyOnRails
[16:27:26] aajjbb: has joined #RubyOnRails
[16:29:05] SteenJobs: has joined #RubyOnRails
[16:40:13] matthewd: _aeris_: No, so you could: config.assets.configure {|env| env.prepend_path 'x/y/z' }
[16:40:37] matthewd: _aeris_: Though.. why do you need to prepend a path? :/
[16:41:00] _aeris_: overloading some assets
[16:41:28] matthewd: Overriding an application's assets from inside an engine?
[16:43:20] arBmind: has joined #RubyOnRails
[16:47:55] keerthana: has joined #RubyOnRails
[16:53:27] jusa: has joined #RubyOnRails
[16:57:17] byteflam1: has joined #RubyOnRails
[16:57:17] byteflame: has joined #RubyOnRails
[17:00:21] cerulean: people need to go back to writing really good code and calling it "cocaine" and "trollop"
[17:00:34] cerulean: where's the "dildo" and "bitch" gem, honestly
[17:00:45] cerulean: we haven't had "cum" or "masturbator"
[17:01:20] matthewd: cerulean: Please find somewhere else to have that conversation.
[17:01:28] cerulean: sorry, thought it was #ruby
[17:01:58] matthewd: I'll say the same thing there ¯\_(ツ)_/¯
[17:02:20] cerulean: i said it in a little more of a PG way
[17:07:06] cerulean: do you guys like fluentd
[17:10:27] claudevandort: has joined #RubyOnRails
[17:13:22] tildes: has joined #RubyOnRails
[17:16:48] handicraftsman: has joined #RubyOnRails
[17:17:02] _hs710: has joined #RubyOnRails
[17:18:51] Pumukel: has joined #RubyOnRails
[17:22:29] linetrace: has joined #RubyOnRails
[17:27:11] hahuang61: has joined #RubyOnRails
[17:35:28] mephistophocles: has joined #RubyOnRails
[17:37:23] DoctorMonocular: has joined #RubyOnRails
[17:40:30] armyriad: has joined #RubyOnRails
[17:41:20] cam27: has joined #RubyOnRails
[17:54:57] Aherin: has joined #RubyOnRails
[17:56:30] marr: has joined #RubyOnRails
[17:59:35] harfangk: has joined #RubyOnRails
[18:00:21] xixi: has joined #RubyOnRails
[18:05:31] jottr: has joined #RubyOnRails
[18:07:15] Technodrome: has joined #RubyOnRails
[18:10:04] duderonomy: has joined #RubyOnRails
[18:20:01] cerulean: has joined #RubyOnRails
[18:22:32] rakm: has joined #RubyOnRails
[18:24:25] User458764: has joined #RubyOnRails
[18:24:54] aajjbb: has joined #RubyOnRails
[18:29:37] PresidentBiscuit: has joined #RubyOnRails
[18:37:16] mephistophocles: has joined #RubyOnRails
[18:41:11] hndk: has left #RubyOnRails: ("Leaving")
[18:42:29] jusa: has joined #RubyOnRails
[18:43:39] lightheaded: has joined #RubyOnRails
[18:45:36] NoGodDamnIdea: has joined #RubyOnRails
[18:48:43] renegadeandy: has joined #RubyOnRails
[18:56:35] arup_r: has joined #RubyOnRails
[18:58:44] |PiP|: has joined #RubyOnRails
[18:59:05] SteenJobs: has joined #RubyOnRails
[19:01:25] Jasaka: has joined #RubyOnRails
[19:24:00] jarr0dsz: has joined #RubyOnRails
[19:28:01] hahuang61: has joined #RubyOnRails
[19:41:06] mephistophocles: has joined #RubyOnRails
[19:41:53] Guest14813: has joined #RubyOnRails
[19:44:10] SteenJobs: has joined #RubyOnRails
[19:45:36] linetrace: what is best practice for calling functions/methods in Rails 5, space delimited function/method name & parameters or function/method name w/comma delimited parameters within parentheses?
[19:45:46] peterpp: has joined #RubyOnRails
[19:49:04] baweaver: https://github.com/github/rubocop-github/blob/master/STYLEGUIDE.md
[19:52:40] matthewd: baweaver: Does that document actually answer that question?
[19:54:42] baweaver: parsed that as seattle style or no
[19:55:15] baweaver: https://github.com/bbatsov/ruby-style-guide - that one does mention some parenthesis omission
[19:55:30] matthewd: linetrace: My advice is generally to omit the parens when it's a "statement-like" invocation, but keep them if you're using the result of the call as a value
[19:57:19] nebiros_: has joined #RubyOnRails
[19:59:10] linetrace: baweaver: thanks, the first one only vaguely touches on parenthesis omission when using keyword args, looking at the 2nd now
[20:01:31] futilegames: has joined #RubyOnRails
[20:04:31] linetrace: baweaver: the 2nd article is much more explicit, only omit parens for methods with no args, Rake/Rails/RSpec, or that have keyword status
[20:05:04] baweaver: really it ends up coming down to either preference or proximity to Seattle WA
[20:05:17] linetrace: matthewd: that's certainly what I'm seeing to be popular, but finding the inconsistency confusing with aging codebases
[20:05:30] matthewd: Yeah, bbatsov's style guide has very strong opinions on most things
[20:06:01] baweaver: remember that style isn't necessarily equivalent to mandatory syntax rules
[20:06:17] linetrace: baweaver, matthewd understandable
[20:06:33] matthewd: baweaver makes a good point if you're looking to existing projects, though: a number of popular libraries are Seattle-sourced, and they do things differently there
[20:07:03] baweaver: Seattle basically is don't use parens unless necessary
[20:07:35] matthewd: Including on method definitions -- which is the strongest indication said style is in force
[20:07:59] baweaver: either that or mentions of strange pun-loving creatures like tenderlove
[20:08:13] linetrace: baweaver, matthewd haha, good to know
[20:10:06] linetrace: assume the reasoning is fewer characters typed and less chance for syntax errors, amongst others?
[20:10:55] GodFather: has joined #RubyOnRails
[20:11:06] baweaver: pretty much.
[20:11:24] matthewd: I'd argue Seattle style has more chance for syntax errors
[20:11:29] Mission-Critical: has joined #RubyOnRails
[20:11:41] baweaver: though I wouldn't make too big a deal of it. Leave the current style guide in place unless you now own the project
[20:11:46] matthewd: It is one less character typed... I think it's mostly just prettier because it's less visually dense
[20:12:01] baweaver: DSL as well
[20:13:33] Jasaka: has joined #RubyOnRails
[20:13:36] iamayam: has joined #RubyOnRails
[20:14:19] linetrace: matthewd, baweaver: thanks, that gives me a better understanding as to the reason I see so many different styles across old/new codebases and various projects
[20:16:08] linetrace: (as is always the case)
[20:16:17] b3l914n: has joined #RubyOnRails
[20:19:50] peterpp: has joined #RubyOnRails
[20:24:48] armando: has joined #RubyOnRails
[20:26:10] dionysus69: has joined #RubyOnRails
[20:27:08] PresidentBiscuit: has joined #RubyOnRails
[20:30:15] rogue_koder: has joined #RubyOnRails
[20:41:05] cerulean: any fluentd users?
[20:41:19] cerulean: what's the best plugin to just look at logs and maybe geoip ips
[20:43:06] hndk: has joined #RubyOnRails
[20:49:45] rgr: has joined #RubyOnRails
[20:51:15] Guest89413: has joined #RubyOnRails
[20:52:53] srinidhi: has joined #RubyOnRails
[20:55:03] AntiSpamMeta: has joined #RubyOnRails
[20:55:15] xtagon: has joined #RubyOnRails
[20:56:27] jaequery: has joined #RubyOnRails
[20:57:30] rakm: has joined #RubyOnRails
[20:58:21] rakm: has joined #RubyOnRails
[20:59:07] rakm: has joined #RubyOnRails
[20:59:57] rakm: has joined #RubyOnRails
[21:00:12] byteflam1: has joined #RubyOnRails
[21:00:12] byteflame: has joined #RubyOnRails
[21:00:45] rakm: has joined #RubyOnRails
[21:02:37] Technodrome: has joined #RubyOnRails
[21:03:11] AntiSpamMeta: has joined #RubyOnRails
[21:04:26] AntiSpamMeta: has joined #RubyOnRails
[21:05:57] arBmind: has joined #RubyOnRails
[21:14:37] cseder: has joined #RubyOnRails
[21:18:00] GodFather: has joined #RubyOnRails
[21:21:50] br0d1n: has joined #RubyOnRails
[21:28:06] PresidentBiscuit: has joined #RubyOnRails
[21:28:52] hahuang61: has joined #RubyOnRails
[21:35:46] sunya7a: i have a question regarding building a where query. I would like to pass both the column name and the value. I found this http://stackoverflow.com/questions/39734301/safely-pass-a-dynamic-column-name-into-an-activerecord-query-with-a-postgres-cas
[21:35:50] sunya7a: I'm wondering if there is a better solution and if the proposed one is good and safe to use
[21:39:27] br0d1n: has joined #RubyOnRails
[21:41:28] Radar: sunya7a: what does your where query look like?
[21:47:23] sunya7a: Radar: I'm thinking along these lines: quoted_column = self.name.constantize.connection.quote_column_name(column_name)
[21:47:28] sunya7a: self.name.constantize.where("#{quoted_name} like ?", "%#{ query }%")
[21:48:09] sunya7a: Radar: my column name is passed and will be 'name' or 'description'
[21:48:58] sunya7a: I'm also sharing this method via a shared module...hence the self.name.constantize (not sure if this is good practice either)
[21:51:31] GodFather: has joined #RubyOnRails
[21:52:46] keerthana: has joined #RubyOnRails
[21:53:44] ebbflowgo: has joined #RubyOnRails
[21:55:24] jusa: has joined #RubyOnRails
[22:02:20] rakm: has joined #RubyOnRails
[22:10:45] HoierM: has joined #RubyOnRails
[22:13:39] byteflam1: has joined #RubyOnRails
[22:13:39] byteflame: has joined #RubyOnRails
[22:18:39] sunrunner202: has joined #RubyOnRails
[22:24:35] SteenJobs: has joined #RubyOnRails
[22:24:38] jtd: has joined #RubyOnRails
[22:28:38] PresidentBiscuit: has joined #RubyOnRails
[22:30:34] aajjbb: has joined #RubyOnRails
[22:37:53] Toledo: has joined #RubyOnRails
[22:37:57] Toledo: has left #RubyOnRails: ()
[22:40:28] jtd: has joined #RubyOnRails
[22:40:29] Guest96: has joined #RubyOnRails
[22:42:48] jtd: has joined #RubyOnRails
[22:43:42] sunrunner20: has joined #RubyOnRails
[22:51:01] keerthana: has joined #RubyOnRails
[22:54:46] GodFather: has joined #RubyOnRails
[23:02:24] archangelg: has joined #RubyOnRails
[23:12:33] cseder: has joined #RubyOnRails
[23:12:58] DoctorMonocular: I'm having a brain fart
[23:13:55] DoctorMonocular: there's a way that models can access child properties without refering to the child, like parent.child.food, but you can access it with parent.food by telling the model to forward foo to child. What is that called again?
[23:14:38] Radar: DoctorMonocular: delegate
[23:14:54] DoctorMonocular: THANK YOU, jesus I don't know why I couldn't think of that
[23:15:08] Radar: DoctorMonocular: my paypal is paypal.me/ryanbigg just fyi
[23:16:15] DoctorMonocular: lord knows you've earned way more over the years
[23:16:37] DoctorMonocular: consider it a small token
[23:16:44] Radar: Every bit counts :D
[23:16:59] Radar: That's two coffees worth! Thanks!
[23:17:50] cam27: has joined #RubyOnRails
[23:21:47] byteflame: has joined #RubyOnRails
[23:23:20] pwnd_nsfw`: has joined #RubyOnRails
[23:27:19] Technodrome: has joined #RubyOnRails
[23:29:34] PresidentBiscuit: has joined #RubyOnRails
[23:29:54] hahuang61: has joined #RubyOnRails
[23:32:30] claudevandort: has joined #RubyOnRails
[23:34:43] Mia: has joined #RubyOnRails
[23:34:43] Mia: has joined #RubyOnRails
[23:37:30] xco: has joined #RubyOnRails
[23:37:44] jtd: has joined #RubyOnRails
[23:38:25] xco: has joined #RubyOnRails
[23:38:40] FoolsGambit: has joined #RubyOnRails
[23:39:28] xco: has joined #RubyOnRails
[23:40:04] xco: has joined #RubyOnRails
[23:40:58] xco: has joined #RubyOnRails
[23:42:34] xco: has joined #RubyOnRails
[23:44:48] ebbflowgo: has joined #RubyOnRails