« Back to channel list

#RubyOnRails - 22 December 2015

« Back 1 day Forward 1 day »
[00:00:39] nocontrol: has joined #RubyOnRails
[00:00:51] agit0: has joined #RubyOnRails
[00:02:14] blackmesa: has joined #RubyOnRails
[00:02:27] nocontrol: has joined #RubyOnRails
[00:04:15] nocontrol: has joined #RubyOnRails
[00:06:05] nocontrol: has joined #RubyOnRails
[00:07:55] nocontrol: has joined #RubyOnRails
[00:09:46] kpollich: has joined #RubyOnRails
[00:09:50] nocontrol: has joined #RubyOnRails
[00:10:19] nyaa: has joined #RubyOnRails
[00:11:40] nocontrol: has joined #RubyOnRails
[00:12:17] shibabu: has joined #RubyOnRails
[00:12:53] marr: has joined #RubyOnRails
[00:13:29] nocontrol: has joined #RubyOnRails
[00:14:52] Coldblackice: has joined #RubyOnRails
[00:15:13] nocontrol: has joined #RubyOnRails
[00:16:10] ur5us: has joined #RubyOnRails
[00:17:06] nocontrol: has joined #RubyOnRails
[00:18:53] nocontrol: has joined #RubyOnRails
[00:20:46] nocontrol: has joined #RubyOnRails
[00:21:34] lacrymology: how to test that a scope is called with rspec?
[00:22:04] lacrymology: I tried expect(Model).to receive(:scope_name) but that's failing with somethng like unexistent method
[00:22:23] lacrymology: I mean, when the controller actually tries to call the scope, it doesn't exist
[00:22:34] nocontrol: has joined #RubyOnRails
[00:24:15] codeurge: has joined #RubyOnRails
[00:24:27] nocontrol: has joined #RubyOnRails
[00:25:18] xardion: has joined #RubyOnRails
[00:25:56] Hazim: has joined #RubyOnRails
[00:26:16] nocontrol: has joined #RubyOnRails
[00:28:05] nocontrol: has joined #RubyOnRails
[00:29:54] nocontrol: has joined #RubyOnRails
[00:30:51] duncannz: has joined #RubyOnRails
[00:31:45] nocontrol: has joined #RubyOnRails
[00:32:03] ascarter: has joined #RubyOnRails
[00:32:26] ellisTAA: has joined #RubyOnRails
[00:33:39] nocontrol: has joined #RubyOnRails
[00:35:22] nocontrol: has joined #RubyOnRails
[00:36:38] snguyen: has joined #RubyOnRails
[00:37:21] nocontrol: has joined #RubyOnRails
[00:37:40] build22: has joined #RubyOnRails
[00:39:01] nocontrol: has joined #RubyOnRails
[00:40:19] build22: has joined #RubyOnRails
[00:40:52] nocontrol: has joined #RubyOnRails
[00:42:45] nocontrol: has joined #RubyOnRails
[00:44:34] nocontrol: has joined #RubyOnRails
[00:46:24] nocontrol: has joined #RubyOnRails
[00:47:19] FailBit: I think it's a method_missing?
[00:47:21] FailBit: I'm not positive
[00:47:28] FailBit: might be mixin for QueryMethods
[00:47:56] shibly: gem update, doesn't it update rails?
[00:48:04] Radar: shibly: Depends on how you're using it.
[00:48:11] Radar: shibly: How did you install Ruby in the end, out of interest?
[00:48:15] nocontrol: has joined #RubyOnRails
[00:48:16] owenjones: has joined #RubyOnRails
[00:48:42] shibly: ruby-install ruby 2.2.4
[00:49:16] shibly: Removed RVM, i think, rvm is not bad
[00:49:27] shibly: I worked with rvm before
[00:49:45] FailBit: rvm is what it is
[00:49:57] shibly: gem install rails, Installing ri documentation for rails-4.2.5, it's taking time, why?
[00:50:04] nocontrol: has joined #RubyOnRails
[00:50:09] FailBit: because it's got a lotta docs
[00:50:25] FailBit: ftr I don't knock any particular ruby installation manager as long as the end result is ruby
[00:50:42] FailBit: I had to get this one guy who knows about jack shit about rails
[00:50:45] FailBit: to stop using system ruby
[00:50:54] FailBit: (1.9.x) with modern rails
[00:51:00] Radar: FailBit: heh
[00:51:11] Radar: shibly: you can stop it from running and run it again with --no-ri --no-rdoc
[00:51:16] Radar: That'll skip the documentation generation.
[00:51:32] Radar: You could be cool (like me) and have a ~/.gemrc with this line: gem: "--no-ri --no-rdoc"
[00:51:54] nocontrol: has joined #RubyOnRails
[00:52:57] lacrymology: actually my problem seems to be with concerns. i'm getting errors when expecting methods defined in included concerns to be called
[00:53:08] ElFerna: has joined #RubyOnRails
[00:53:16] FailBit: yay mixin fun
[00:53:28] FailBit: mostly though
[00:53:36] Pazician: has joined #RubyOnRails
[00:53:46] nocontrol: has joined #RubyOnRails
[00:54:05] FailBit: include and extend are methods of inheritance and both valid ways to define methods on objects
[00:55:33] nocontrol: has joined #RubyOnRails
[00:55:37] lacrymology: FailBit: yes, but.. there's some black magic goin on, and for some reason rspec patching the class breaks it. and I don't know how to test what I want to test
[00:55:57] DLSteve: has joined #RubyOnRails
[00:56:05] lacrymology: I just want to make sure that a controller calls a scope on the model with certain values
[00:56:44] lacrymology: I pass in dates, dates need be converted to the right timezone (depending on parentobject.time_zone), I want to make sure the scope is called with the right objects
[00:57:03] sevenseacat: has joined #RubyOnRails
[00:57:25] nocontrol: has joined #RubyOnRails
[00:57:41] lacrymology: I gave up on the scope and decided to make sure that a) the method that parses the date object returns the right values (that worked), and then that calling the endpoint actually calls that method (currently failing)
[00:58:16] atomical: has joined #RubyOnRails
[00:59:03] bousquet: has joined #RubyOnRails
[00:59:15] nocontrol: has joined #RubyOnRails
[00:59:15] nerium: has joined #RubyOnRails
[01:00:16] nerium: I???m getting ???ActionView::MissingTemplate??? errors on rrandom occasions. They appear maybe 1 out of 100k page reloads. Has anyone seen them before?
[01:00:25] nerium: Here???s the full error message https://gist.github.com/oleander/13d00cf7ed1c68b6ef7b
[01:00:54] sevenseacat: nerium: because its a request for a text format
[01:01:05] nocontrol: has joined #RubyOnRails
[01:01:25] nerium: sevenseacat: Aha, the header says ???text/plain"
[01:01:35] gavit: meh, my rgeo still doesnt work :(
[01:02:14] FailBit: nerium: I see them on random deploys
[01:02:16] nerium: sevenseacat: The error message is generated by the Chrome 9.0.597.98 browser. Isn???t that a bit strange?
[01:02:35] nerium: FailBit: Yeah, very old
[01:02:54] nocontrol: has joined #RubyOnRails
[01:03:05] nerium: How can I fix this? I should return 404, not 500 (as it does now)
[01:04:29] FailBit: does your action respond to text/plain?
[01:04:35] Oliphaunte: has joined #RubyOnRails
[01:04:46] nocontrol: has joined #RubyOnRails
[01:06:04] nerium: FailBit: No
[01:06:33] nocontrol: has joined #RubyOnRails
[01:06:54] nyaa: has joined #RubyOnRails
[01:07:07] FailBit: I think it's supposed to return an error code for invalid format if the controller does not respond to the format
[01:07:14] sepandb: has joined #RubyOnRails
[01:07:15] FailBit: I can't remember
[01:08:24] nocontrol: has joined #RubyOnRails
[01:10:11] nocontrol: has joined #RubyOnRails
[01:11:39] owenjones: has joined #RubyOnRails
[01:12:04] nocontrol: has joined #RubyOnRails
[01:13:53] nocontrol: has joined #RubyOnRails
[01:15:42] nocontrol: has joined #RubyOnRails
[01:16:34] lessless: has joined #RubyOnRails
[01:17:33] nocontrol: has joined #RubyOnRails
[01:17:56] mrbubbles: has joined #RubyOnRails
[01:19:22] nocontrol: has joined #RubyOnRails
[01:21:22] nocontrol: has joined #RubyOnRails
[01:23:11] nocontrol: has joined #RubyOnRails
[01:23:35] mheld: has joined #RubyOnRails
[01:24:52] nocontrol: has joined #RubyOnRails
[01:25:08] ascarter: has joined #RubyOnRails
[01:25:21] mheld: anybody know of any good rails/js outsourcing firms?
[01:25:31] Radar: reinteractive
[01:25:38] Radar: sevenseacat works there so you know it's good
[01:26:43] nocontrol: has joined #RubyOnRails
[01:27:17] mheld: I've never worked with folks in .au
[01:27:41] sevenseacat: we're awesome. mate.
[01:28:06] Radar: Fact: only the most badass aussies can survive living in Australia.
[01:28:16] Radar: Modern day Spartans.
[01:28:31] nocontrol: has joined #RubyOnRails
[01:28:33] Radar: We just had FOUR DAYS of +40 celcius temperatures in Melbourne.
[01:28:44] Radar: Most people (well, the British mainly) would _die_ in such heat.
[01:30:08] benlieb: has joined #RubyOnRails
[01:30:21] nocontrol: has joined #RubyOnRails
[01:30:52] sevenseacat: so I'm building a search feature in my app. client has requested that searching should also search by related words, eg. a search for 'food' should also match results including 'eat', 'dine', 'cook', etc.
[01:31:15] sevenseacat: ACTION scratching head
[01:31:32] rhizome: tagged content, queries find both text and tag matches
[01:31:46] ur5us: has joined #RubyOnRails
[01:31:48] rhizome: or some kind of mapping, or recco engine
[01:31:54] pr1meshock: has joined #RubyOnRails
[01:32:05] rhizome: a taxonomy is implicated
[01:32:05] sankaber: has joined #RubyOnRails
[01:32:10] nocontrol: has joined #RubyOnRails
[01:32:30] doctorly: has joined #RubyOnRails
[01:33:59] nocontrol: has joined #RubyOnRails
[01:34:14] cassioscabral: has joined #RubyOnRails
[01:35:46] nocontrol: has joined #RubyOnRails
[01:37:03] Hans267: Speaking of awesome places to live, anyone here live in PDX?
[01:37:15] sankaber: has joined #RubyOnRails
[01:37:39] nocontrol: has joined #RubyOnRails
[01:39:27] nocontrol: has joined #RubyOnRails
[01:40:02] sankaber: has joined #RubyOnRails
[01:41:20] nocontrol: has joined #RubyOnRails
[01:43:01] Pupeno: has joined #RubyOnRails
[01:43:10] nocontrol: has joined #RubyOnRails
[01:45:01] nocontrol: has joined #RubyOnRails
[01:45:54] treaki_: has joined #RubyOnRails
[01:46:01] upsell5: has joined #RubyOnRails
[01:46:47] nocontrol: has joined #RubyOnRails
[01:48:40] nocontrol: has joined #RubyOnRails
[01:50:31] nocontrol: has joined #RubyOnRails
[01:52:18] nocontrol: has joined #RubyOnRails
[01:54:10] nocontrol: has joined #RubyOnRails
[01:54:23] ascarter: has joined #RubyOnRails
[01:54:42] yfeldblum: has joined #RubyOnRails
[01:55:56] nocontrol: has joined #RubyOnRails
[01:57:47] nocontrol: has joined #RubyOnRails
[01:59:39] nocontrol: has joined #RubyOnRails
[02:00:11] Trynemjoel: has joined #RubyOnRails
[02:01:08] mary5030: has joined #RubyOnRails
[02:01:25] nocontrol: has joined #RubyOnRails
[02:01:37] gavit: require 'rgeo/geos/factory' is failing of my rgeo gem
[02:01:51] gavit: It seems to be caused by /usr/local/rbenv/versions/2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
[02:03:17] nocontrol: has joined #RubyOnRails
[02:05:08] nocontrol: has joined #RubyOnRails
[02:06:57] nocontrol: has joined #RubyOnRails
[02:08:50] nocontrol: has joined #RubyOnRails
[02:10:39] nocontrol: has joined #RubyOnRails
[02:12:27] nocontrol: has joined #RubyOnRails
[02:13:17] sepandb: has joined #RubyOnRails
[02:13:32] one_zero: has joined #RubyOnRails
[02:14:19] nocontrol: has joined #RubyOnRails
[02:14:25] sepandb: has left #RubyOnRails: ()
[02:15:07] shibabu: has joined #RubyOnRails
[02:15:28] markh: has joined #RubyOnRails
[02:16:05] nocontrol: has joined #RubyOnRails
[02:16:15] Oliphaunte: has joined #RubyOnRails
[02:16:27] rhizome: gavit: do you have to require that far down?
[02:17:57] nocontrol: has joined #RubyOnRails
[02:18:17] Coldblackice: has joined #RubyOnRails
[02:19:48] nocontrol: has joined #RubyOnRails
[02:20:45] krz: has joined #RubyOnRails
[02:21:10] dmarr: has joined #RubyOnRails
[02:21:38] nocontrol: has joined #RubyOnRails
[02:22:19] dmarr: getting some trouble with minimagick gem: https://gist.github.com/5d19d82fb400d08d3f32
[02:23:00] FailBit: that's not trouble with minimagick
[02:23:14] FailBit: you didn't specify what command produced that anyways
[02:23:29] nocontrol: has joined #RubyOnRails
[02:23:34] pawnbox: has joined #RubyOnRails
[02:24:22] blackmesa: has joined #RubyOnRails
[02:24:51] dmarr: getting that running https://github.com/marr/localpic2/blob/master/test/workers/image_filter_test.rb
[02:25:16] dmarr: https://github.com/marr/localpic2/blob/master/app/workers/image_filter.rb#L29
[02:25:16] nocontrol: has joined #RubyOnRails
[02:25:38] FailBit: it's not a problem in MiniMagick
[02:26:14] FailBit: http://www.imagemagick.org/Usage/color_mods/#sepia-tone
[02:26:21] FailBit: it's a problem in your version of convert
[02:27:08] nocontrol: has joined #RubyOnRails
[02:27:11] dmarr: would the version `convert` runs from a shell different than the one used with bundle exec?
[02:28:02] corioliss: has joined #RubyOnRails
[02:28:36] dmarr: ok, so `convert -list command' from shell does include '+sepia-tone' yet the output from `bundle exec convert -list command` does not.
[02:28:56] nocontrol: has joined #RubyOnRails
[02:29:00] doctorly: has joined #RubyOnRails
[02:29:08] dmarr: the gem must not be using my system verison
[02:29:17] dmarr: of the imagemagick binary
[02:29:49] dmarr: s/the gem/my application
[02:30:47] nocontrol: has joined #RubyOnRails
[02:30:57] rhizome: bundle exec which convert
[02:32:53] dmarr: sorry, the bundle exec does show the same thing (-sepia-tone, +sepia-tone).
[02:33:57] wethu: has joined #RubyOnRails
[02:35:27] dmarr: so back to square one. FailBit when I run the command manually it's ok
[02:35:45] rhizome: does the gem log the command?
[02:37:08] owenjones: has joined #RubyOnRails
[02:39:12] dmarr: found the issue, just pushed up the fix. uses builder.merge! ['-sepia-tone', '80%']
[02:39:26] dmarr: instead of builder << '-sepia-tone 80%'
[02:39:36] stannard: has joined #RubyOnRails
[02:39:58] dmarr: https://github.com/minimagick/minimagick#appending
[02:40:41] dmarr: also rhizome i am not sure where to find that log
[02:42:29] smathy: has joined #RubyOnRails
[02:47:12] idefine_: has joined #RubyOnRails
[02:47:23] hfp_work: has joined #RubyOnRails
[02:51:55] maxx88: has joined #RubyOnRails
[02:54:28] momomomomo: has joined #RubyOnRails
[02:54:40] Pazician: has joined #RubyOnRails
[02:55:16] Oliphaunte: has joined #RubyOnRails
[02:58:15] Rodya_: has joined #RubyOnRails
[02:59:58] rhizome: logs/development.log
[03:01:34] flashpoint9: has joined #RubyOnRails
[03:02:36] sekrit: has joined #RubyOnRails
[03:05:25] djbkd: has joined #RubyOnRails
[03:08:41] nyanz: has joined #RubyOnRails
[03:10:03] cassioscabral_: has joined #RubyOnRails
[03:10:36] idefine_: has joined #RubyOnRails
[03:12:23] Jasaka: has joined #RubyOnRails
[03:16:37] idefine: has joined #RubyOnRails
[03:20:32] bronson: has joined #RubyOnRails
[03:20:53] gambl0re: has joined #RubyOnRails
[03:22:49] joshkovach: has joined #RubyOnRails
[03:24:34] Coldblackice: has joined #RubyOnRails
[03:24:49] smathy: has joined #RubyOnRails
[03:25:30] kpollich: has joined #RubyOnRails
[03:30:55] pawnbox: has joined #RubyOnRails
[03:31:14] mary5030: has joined #RubyOnRails
[03:32:37] owenjones: has joined #RubyOnRails
[03:34:10] bronson: has joined #RubyOnRails
[03:36:52] chouhoulis: has joined #RubyOnRails
[03:43:22] StevenXL: has joined #RubyOnRails
[03:43:23] StevenXL: has joined #RubyOnRails
[03:47:50] stannard: has joined #RubyOnRails
[03:50:32] n00bDev: has joined #RubyOnRails
[03:50:37] pawnbox: has joined #RubyOnRails
[03:57:03] snguyen: has joined #RubyOnRails
[03:59:16] dmarr: interesting that the command seems to be the same if i use << or .merge!
[04:01:14] dmarr: is that most likely a library issue or just an idiomatic thing
[04:01:23] arooni: has joined #RubyOnRails
[04:01:24] treaki__: has joined #RubyOnRails
[04:02:12] blackmesa: has joined #RubyOnRails
[04:02:25] matthewd: dmarr: seems != is... so it's an issue with whatever's giving you that impression
[04:05:17] dmarr: that part in the appending section about `convert << "-resize" << "500x500"` vs `convert << "-resize 500x500"` is just a ruby thing? Is there more reading on that I can do somewhere
[04:05:22] wethu: has joined #RubyOnRails
[04:06:08] DavidDudson: has joined #RubyOnRails
[04:07:55] matthewd: dmarr: If you passed "-resize 500x500" as a single parameter in your shell, it would work just as poorly
[04:08:00] ascarter: has joined #RubyOnRails
[04:08:00] shibly: has joined #RubyOnRails
[04:08:18] shibly: How can i un-install ruby through ruby-install?
[04:08:21] user083: has joined #RubyOnRails
[04:08:25] dmarr: matthewd: thats not what I was noticing
[04:08:37] dmarr: with the -sepia-tone 80%
[04:08:52] matthewd: > as a single parameter
[04:09:07] reckoner: has joined #RubyOnRails
[04:09:21] shibly: Radar, Are you there?
[04:09:21] dmarr: matthewd: i don't know what you mean by single parameter in shell
[04:09:27] Radar: shibly: Always
[04:09:28] Radar: Except when I am not.
[04:09:40] matthewd: dmarr: As a quoted string
[04:09:41] shibly: #RubyOnRails set by Radar at Mon Nov 16 04:28:05 2015 , is it your laptop or server?
[04:09:49] Radar: shibly: Neither.
[04:09:50] dmarr: like convert foo.jpg -sepia-tone 80% test.jpg
[04:09:52] reckoner: radar, whoa. what have you been up to since your Spree days?
[04:09:53] Radar: shibly: I am just the channel operator here.
[04:09:58] Radar: reckoner: I now work at marketplacer.com
[04:10:06] dmarr: isnt that using -sepia-tone 80% as a single parameter?
[04:10:27] Radar: reckoner: But before that and after Spree I helped develop lifx.com's cloud stuff
[04:10:29] reckoner: interesting
[04:10:39] matthewd: dmarr: convert foo.jpg "-sepia-tone 80%" test.jpg
[04:10:42] reckoner: Solidus isn't the same
[04:10:45] Radar: reckoner: less community management, more team building / team leading
[04:10:56] dmarr: matthewd: yeah you right
[04:10:57] Radar: reckoner: Isn't the same? How so?
[04:11:23] dmarr: i don't understand what merge does to achieve that
[04:11:26] reckoner: i meant it's not the same without you re: community
[04:11:36] Radar: reckoner: oh, thanks :) That means a lot.
[04:12:17] shibly: gem uninstall rails , will it un-install rails and all gems?
[04:12:27] Radar: shibly: Just the Rails gem
[04:12:29] Radar: shibly: !xy
[04:12:29] helpa: shibly: It seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[04:12:38] Radar: shibly: Please explain what you're trying to do exactly and we'll help you.
[04:13:15] shibly: I am trying to know some little things now.
[04:13:18] atumzin: has joined #RubyOnRails
[04:14:42] shibly: Gem commands, installing/uninstalling ruby and rails etc.
[04:14:52] shibly: I have used rails 3 before
[04:15:11] shibly: I have developed my personal blog with rails before, i know basics of rails
[04:15:40] lacuna: has joined #RubyOnRails
[04:15:41] lacuna: has joined #RubyOnRails
[04:15:42] Radar: I am not sure what exactly it is that you need help with right now.
[04:15:50] Radar: Please be less vague if you want actual help.
[04:16:06] shibly: Right now, i am using windows,
[04:16:15] shibly: Is it possible to install rails on windows
[04:16:37] shibly: Has anyone done that?
[04:16:42] braincrash: has joined #RubyOnRails
[04:18:27] Kn|t3: has joined #RubyOnRails
[04:19:38] owenjones: has joined #RubyOnRails
[04:19:57] brupm: has joined #RubyOnRails
[04:21:51] idefine: has joined #RubyOnRails
[04:22:41] shibly: sevenseacat, Through this? http://railsinstaller.org/en
[04:22:53] shibly: Or installing standalone ruby.exe
[04:22:53] nyaa: has joined #RubyOnRails
[04:22:55] sevenseacat: I'd use rubyinstaller
[04:23:09] pawnbox: has joined #RubyOnRails
[04:23:24] Radar: ACTION sees Windows; nopes out
[04:26:26] lacuna: has joined #RubyOnRails
[04:26:27] lacuna: has joined #RubyOnRails
[04:33:56] LightStalker: has joined #RubyOnRails
[04:35:40] mices: have trouble getting country select to work, i saw the examples from the links in the readme but they're all for either vanilla, formtastic, simple-form i don't even know what those things are, i'm trying to use it in a devise form https://gist.github.com/mices/4a5576fac07537150bb2
[04:36:17] sevenseacat: thats a vanilla form.
[04:36:26] sevenseacat: remove the "user" part
[04:37:18] chouhoulis: has joined #RubyOnRails
[04:38:46] dmarr: anyone know of a good way to test that a worker acted on a file properly? I was hoping to follow the sidekiq guidelines
[04:38:56] the_nick_me: has joined #RubyOnRails
[04:39:13] dmarr: my worker is just an example but https://github.com/marr/localpic2/blob/master/test/workers/image_filter_test.rb#L12
[04:39:40] crystal77: has joined #RubyOnRails
[04:41:22] idefine: has joined #RubyOnRails
[04:42:28] mices: sevenseacat: ty
[04:42:50] mices: sevenseacat: i dunno how they expected me to figure that out
[04:42:58] sevenseacat: by looking at the examples given
[04:43:03] sevenseacat: and comparing them to your code
[04:43:22] mices: the examples all use "user", "country"
[04:43:45] mices: well i shouldn't say, i'm not looking at them right now
[04:44:22] sevenseacat: https://github.com/scudco/country_select_test/blob/master/app/views/welcome/_vanilla_form.html.erb really?
[04:44:52] sevenseacat: that took me 1min and 19sec to find
[04:44:57] tfittsy: has joined #RubyOnRails
[04:44:58] dmarr: and what is the syntax with the two ::
[04:44:58] dmarr: image = ::MiniMagick::Image.open(path)
[04:45:39] matthewd: dmarr: It's a top-level constant reference
[04:46:07] mices: sevenseacat: yes, i see now, i'm looking at the vanilla too, they're using country_code instead of country but it's the same thing
[04:46:08] matthewd: dmarr: What are the sidekiq guidelines you were hoping to follow?
[04:48:07] bronson: has joined #RubyOnRails
[04:50:36] dmarr: matthewd: using the Sidekiq::Testing.inline! method
[04:50:46] Oliphaunte: has joined #RubyOnRails
[04:51:21] shibly: I have installed rails on windows successfully. This helps: http://stackoverflow.com/questions/8100891/the-json-native-gem-requires-installed-build-tools
[04:51:32] dmarr: I assume there are best practices for testing an async function that would alter a file's contents
[04:51:52] shibly: Installed rubyinstaller.exe then DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe , rails install json, bundle install
[04:52:05] shibly: http://rubyinstaller.org/downloads
[04:52:10] sevenseacat: ACTION upvotes the answers that say 'follow the instructions'
[04:53:22] shibly: I didn't upvote, but that was the answer
[04:53:22] brupm: has joined #RubyOnRails
[04:54:03] owenjones: has joined #RubyOnRails
[04:54:08] yfeldblum: has joined #RubyOnRails
[04:55:44] Pazician: has joined #RubyOnRails
[04:55:59] shibly: sevenseacat, Are you and Radar the same person?
[04:56:17] sevenseacat: at least, I hope not.
[04:56:43] shibly: Ryan Bigg
[04:56:56] sevenseacat: that'd be awkward explaining it to his wife and my fiance.
[04:57:13] centrx: has joined #RubyOnRails
[04:58:10] shibly: sevenseacat, Are you Ryan Bigg ?
[04:58:21] sevenseacat: that's Radar.
[04:58:44] shibly: http://stackoverflow.com/users/560215/sevenseacat , here Rails 4 in Action
[04:58:45] braincra-: has joined #RubyOnRails
[04:58:55] sevenseacat: correct, we both co-authored the book.
[04:59:09] sevenseacat: the book did have 4 authors :)
[04:59:34] shibly: Are you Steve Klabnik?
[04:59:43] sevenseacat: nope. I'm Rebecca Skinner.
[05:00:19] treaki_: has joined #RubyOnRails
[05:00:39] Kn|t3: has joined #RubyOnRails
[05:00:44] DavidDudson: has joined #RubyOnRails
[05:00:48] bga57: has joined #RubyOnRails
[05:01:19] nyaa: has joined #RubyOnRails
[05:01:38] tildes: has joined #RubyOnRails
[05:03:10] mary5030: has joined #RubyOnRails
[05:05:25] DavidDudson: has joined #RubyOnRails
[05:05:53] styx_: has joined #RubyOnRails
[05:14:22] makenoise: has joined #RubyOnRails
[05:15:04] jessemcgilallen: has joined #RubyOnRails
[05:17:05] atumzin: has joined #RubyOnRails
[05:18:42] Denis_: has left #RubyOnRails: ()
[05:19:52] shibabu: has joined #RubyOnRails
[05:19:53] reckoner: has left #RubyOnRails: ()
[05:20:53] ^Denis: has joined #RubyOnRails
[05:21:22] doublemalt_: has joined #RubyOnRails
[05:22:31] inferno5677: has joined #RubyOnRails
[05:23:11] arup_r: has joined #RubyOnRails
[05:23:35] baweaver: has joined #RubyOnRails
[05:25:16] brupm: can anybody read this?
[05:25:33] brupm: bga57 thanks :)
[05:26:05] brupm: nickserv was complaining I wasn't registered
[05:26:10] bga57: any time :)
[05:26:45] shaileshg: has joined #RubyOnRails
[05:27:53] brupm: ok, back to work
[05:29:11] inferno5677: has joined #RubyOnRails
[05:38:22] chouhoulis: has joined #RubyOnRails
[05:38:51] pawnbox: has joined #RubyOnRails
[05:43:40] rickmasta: has joined #RubyOnRails
[05:46:35] owenjones: has joined #RubyOnRails
[05:47:22] lacuna: has joined #RubyOnRails
[05:47:23] lacuna: has joined #RubyOnRails
[05:49:39] lessless: has joined #RubyOnRails
[05:49:49] Hazim: has joined #RubyOnRails
[05:51:40] qwrobins: has joined #RubyOnRails
[05:56:18] wethu: has joined #RubyOnRails
[05:59:52] ur5us: has joined #RubyOnRails
[06:02:12] blackmesa: has joined #RubyOnRails
[06:03:49] shibabu: has joined #RubyOnRails
[06:07:03] ascarter: has joined #RubyOnRails
[06:07:46] SteenJobs: has joined #RubyOnRails
[06:10:16] idefine: has joined #RubyOnRails
[06:11:15] lxsameer: has joined #RubyOnRails
[06:13:45] Oliphaunte: has joined #RubyOnRails
[06:14:30] nyanz: has joined #RubyOnRails
[06:14:57] ur5us: has joined #RubyOnRails
[06:15:19] tfittsy: has left #RubyOnRails: ()
[06:16:52] owenjones: has joined #RubyOnRails
[06:21:22] lacuna: has joined #RubyOnRails
[06:21:23] lacuna: has joined #RubyOnRails
[06:22:03] darutoko: has joined #RubyOnRails
[06:23:33] bronson: has joined #RubyOnRails
[06:23:42] snguyen: has joined #RubyOnRails
[06:24:53] snguyen: has joined #RubyOnRails
[06:26:11] pawnbox: has joined #RubyOnRails
[06:28:29] makenoise: has left #RubyOnRails: ()
[06:30:03] idefine: has joined #RubyOnRails
[06:33:23] celly: has joined #RubyOnRails
[06:34:46] yardenbar: has joined #RubyOnRails
[06:34:49] ellisTAA: has joined #RubyOnRails
[06:36:06] jessemcgilallen: has joined #RubyOnRails
[06:38:13] ellisTAA: has joined #RubyOnRails
[06:39:07] chouhoulis: has joined #RubyOnRails
[06:42:34] teclator: has joined #RubyOnRails
[06:42:52] tagrudev: has joined #RubyOnRails
[06:43:40] stannard: has joined #RubyOnRails
[06:43:52] krz: has joined #RubyOnRails
[06:44:23] hahuang61: has joined #RubyOnRails
[06:44:29] ellisTAA: has left #RubyOnRails: ()
[06:47:19] nyaa: has joined #RubyOnRails
[06:47:50] pawnbox_: has joined #RubyOnRails
[06:48:58] pawnbox__: has joined #RubyOnRails
[06:53:59] nocontrol: has joined #RubyOnRails
[06:54:10] zanzarel: has joined #RubyOnRails
[06:58:17] ur5us: has joined #RubyOnRails
[06:58:50] sevenseacat: has joined #RubyOnRails
[06:59:03] czerasz: has joined #RubyOnRails
[06:59:41] idefine: has joined #RubyOnRails
[06:59:44] Oliphaunte: has joined #RubyOnRails
[07:10:24] pawnbox: has joined #RubyOnRails
[07:11:11] nocd: has joined #RubyOnRails
[07:11:47] nyaa: has joined #RubyOnRails
[07:14:55] agent_white: has joined #RubyOnRails
[07:15:21] nyaa: has joined #RubyOnRails
[07:16:21] dmarr: I'm getting an aws error when I try to modify an image stored with refile/s3 backend: https://github.com/marr/localpic2/blob/master/app/workers/image_filter.rb#L18
[07:16:31] dmarr: the error is: Aws::S3::Errors::XAmzContentSHA256Mismatch: The provided 'x-amz-content-sha256' header does not match what was computed.
[07:17:34] Pazician: has joined #RubyOnRails
[07:18:37] solars: has joined #RubyOnRails
[07:25:43] tildes: has joined #RubyOnRails
[07:27:02] ewnd9: has joined #RubyOnRails
[07:32:14] blackmesa: has joined #RubyOnRails
[07:33:12] moeabdol1: has joined #RubyOnRails
[07:35:16] tetraktys: has joined #RubyOnRails
[07:37:32] pawnbox: has joined #RubyOnRails
[07:37:48] ankitkulshrestha: has joined #RubyOnRails
[07:38:21] ankitkulshrestha: How to port an app built against system ruby to the one installed using rbenv
[07:39:17] idefine_: has joined #RubyOnRails
[07:39:22] matthewd: ankitkulshrestha: You shouldn't need to do anything
[07:39:51] chouhoulis: has joined #RubyOnRails
[07:39:58] yfeldblum: has joined #RubyOnRails
[07:40:38] lyoshajapan: has joined #RubyOnRails
[07:41:38] lyoshajapan: Greetings! I have a strange question. I have a before_save callback that sets an attribute of a model to false or true based on a condition. but if it returns false, the callback returns false, and wont allow the record to be saved
[07:42:11] matthewd: lyoshajapan: In < 5.0, callbacks returning false is a signal to abort
[07:43:08] matthewd: So after you set the attribute, add a 'true', so the callback won't return false
[07:43:11] lyoshajapan: whats an elegant way of writing this code rather then doing something like true if (post.pending = false)
[07:43:30] tibra: has joined #RubyOnRails
[07:43:41] lyoshajapan: matthewd: i tried that,.. but it kinda looks hacky
[07:44:00] lyoshajapan: matthewd: I was wondering if there is anyone who knows a better way of doing it
[07:44:13] tibra_: has joined #RubyOnRails
[07:44:23] matthewd: No, that's the right thing to do
[07:44:45] dmarr: would I just delete the header ?seems like something refile/s3 would have support for
[07:45:56] lyoshajapan: matthewd: Thanks Matthewd!
[07:46:39] artto: has joined #RubyOnRails
[07:47:35] nocontrol: has joined #RubyOnRails
[07:48:03] lessless: has joined #RubyOnRails
[07:48:26] ankitkulshrestha: has joined #RubyOnRails
[07:49:04] ankitkulshrestha: How to port a rails app built against system ruby to the one built using rbenv
[07:51:56] benhuda: has joined #RubyOnRails
[07:52:02] snguyen: has joined #RubyOnRails
[07:52:04] rhizome: there's nothing more secure about a one-page pdf than an image, right?
[07:52:21] rhizome: ankitkulshrestha: shouldn't matter much, as long as versions are within operating range
[07:53:22] shibly: has joined #RubyOnRails
[07:53:47] ankitkulshrestha: both of them are the same version 2.2.3
[07:54:15] ankitkulshrestha: rhizome: what env manager do you use personally?
[07:54:18] matthewd: ankitkulshrestha: You shouldn't need to do anything
[07:54:36] shibly: I got error, following this: http://guides.rubyonrails.org/getting_started.html
[07:54:49] shibly: ExecJS::ProgramError in Welcome#index
[07:55:07] sevenseacat: shibly: the error will give you a link to visit
[07:55:11] sevenseacat: you need to install a JS runtime
[07:55:16] ankitkulshrestha: shilby: did you create index.html.erb?
[07:55:22] ankitkulshrestha: what does the stacktrace say?
[07:55:34] shibly: ankitkulshrestha, Yes
[07:55:43] shibly: rails generate controller welcome index
[07:56:38] shibly: sevenseacat, I didn't get any link
[07:56:52] sevenseacat: shibly: whats the full error?
[07:56:57] shibly: Are you talking about this: app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___929111509_50459388'
[07:57:26] sevenseacat: the bit before that
[07:57:32] shibly: https://bpaste.net/show/4ab7b454bfc1
[07:57:48] sevenseacat: thats a different one
[07:59:02] idefine: has joined #RubyOnRails
[07:59:41] matthewd: Oh, yeah, we saw that at an installfest recently... I think we just deleted the application.js include tag to get past it :|
[07:59:49] shibly: What to do? Which js package to install?
[07:59:58] sevenseacat: http://stackoverflow.com/questions/28312460/object-doesnt-support-this-property-or-method-rails-windows-64bit seems relevant
[07:59:59] build22: has joined #RubyOnRails
[08:00:11] sevenseacat: coffeescript incompatibility, it suggests
[08:00:30] Cervajz: has joined #RubyOnRails
[08:01:08] shibly: sevenseacat, for me?
[08:01:30] ankitkulshrestha: okay one more thing. How the heck do I use 'ri' utility for accesing ruby docs?
[08:02:47] shibly: sevenseacat, Done, i had to add gem 'coffee-script-source', '1.8.0' to Gemfile
[08:02:59] sevenseacat: ankitkulshrestha: just `ri methodname`, eg. `ri String#split`, no?
[08:03:05] matthewd: If it's a jscript incompatibility, I guess installing a different runtime would also fix it
[08:04:22] Cervajz_: has joined #RubyOnRails
[08:04:56] bmalum: has joined #RubyOnRails
[08:05:00] ankitkulshrestha: sevenseacat: it shows nothing known about the methodname. e.g ri String#split: nothing known
[08:05:20] sevenseacat: did you install the ruby docs when you installed ruby? it works here
[08:06:12] [dmp]: has joined #RubyOnRails
[08:07:15] ankitkulshrestha: I just did rbenv install 2.2.3
[08:07:44] ankitkulshrestha: I didn't pass the --no-rdoc argument
[08:09:08] waka: has joined #RubyOnRails
[08:10:27] ankitkulshrestha: sevenseacat: Any pointers?
[08:10:42] sevenseacat: ankitkulshrestha: I'm googling it, you can google it too :)
[08:11:56] shibly: has joined #RubyOnRails
[08:12:22] matthewd: ankitkulshrestha: `which ri`
[08:12:22] shibly: I have welcome controller with index action, now i want to add another action and view, what's the command?
[08:12:28] shibly: rails generate ?
[08:12:33] sevenseacat: shibly: check the getting started guide :)
[08:13:32] shibly: Is there anything , rails generate controller welcome doit ?
[08:13:59] shibly: There is welcome controller already
[08:14:06] sevenseacat: shibly: if you already have the controller, you can just add another action inside it
[08:14:20] shibly: sevenseacat, By hand?
[08:14:20] sevenseacat: ankitkulshrestha: looks like you need to regenerate the docs.... looking how to do that with rbenv
[08:14:25] sevenseacat: shibly: ....yes.
[08:14:37] sevenseacat: shibly: you do have to write code.
[08:14:47] the_nick_me: has joined #RubyOnRails
[08:14:58] shibly: But is there any command to do this automatically?
[08:15:45] sevenseacat: pretty sure I just answered that question.
[08:16:08] matthewd: shibly: To add two lines to your controller, and create an empty file?
[08:16:11] ankitkulshrestha: sevenseacat: I'm on it too
[08:16:17] sevenseacat: matthewd: apparently so.
[08:19:06] armyriad: has joined #RubyOnRails
[08:21:31] celly: has joined #RubyOnRails
[08:23:24] comrad: has joined #RubyOnRails
[08:27:45] armyriad: has joined #RubyOnRails
[08:28:11] ankitkulshrestha: sevenseacat: You got anything?
[08:28:22] sevenseacat: nope. and im not familiar with rbenv, so
[08:28:35] matthewd: ankitkulshrestha: Run `which ri`
[08:28:39] idefine: has joined #RubyOnRails
[08:29:10] krz: has joined #RubyOnRails
[08:29:57] armyriad: has joined #RubyOnRails
[08:30:04] ankitkulshrestha: matthewd: It's /urs/local/bin/ri
[08:30:27] sevenseacat: now that sounds like a problem
[08:31:15] armyriad: has joined #RubyOnRails
[08:31:24] ankitkulshrestha: sevenseacat: Is it really necessary to use rbenv in the first place?
[08:31:43] ankitkulshrestha: or for that matter any environment mangager?
[08:31:43] sevenseacat: i would recommend always using a version manager.
[08:32:00] ankitkulshrestha: version manager is 'git' right?
[08:32:08] lyoshajapan: has joined #RubyOnRails
[08:32:20] ankitkulshrestha: my bad, I got that
[08:32:31] ankitkulshrestha: which one do you use?
[08:33:29] ankitkulshrestha: okay I'll look into that, I'm using zsh
[08:33:48] artto: has joined #RubyOnRails
[08:33:53] sevenseacat: mmmm unrelated
[08:34:21] bronson: has joined #RubyOnRails
[08:34:28] sevenseacat: your problem is that ri is using a system ri, not the ri that rbenv would have installed
[08:34:49] czerasz: has joined #RubyOnRails
[08:35:04] ankitkulshrestha: oh so that's why it shows up nothing
[08:36:25] agent_wh1te: has joined #RubyOnRails
[08:36:36] agit0: has joined #RubyOnRails
[08:37:09] mrbubbles: has joined #RubyOnRails
[08:37:29] sadaf2606: has joined #RubyOnRails
[08:39:58] agent_wh1te: has left #RubyOnRails: ()
[08:40:39] chouhoulis: has joined #RubyOnRails
[08:42:46] ur5us: has joined #RubyOnRails
[08:42:50] arup_r: has joined #RubyOnRails
[08:43:30] sandstrom: has joined #RubyOnRails
[08:43:34] edwinvdgraaf: has joined #RubyOnRails
[08:43:54] fairyeye: has joined #RubyOnRails
[08:44:32] fcser_: has joined #RubyOnRails
[08:45:57] Sylario: has joined #RubyOnRails
[08:46:49] curses: has joined #RubyOnRails
[08:48:36] gregf_: has joined #RubyOnRails
[08:49:21] LambdaSource: has joined #RubyOnRails
[08:49:47] leeky: has joined #RubyOnRails
[08:51:57] blackhuey: has joined #RubyOnRails
[08:52:50] ur5us_: has joined #RubyOnRails
[08:56:14] ewnd9: has joined #RubyOnRails
[08:57:07] tildes: has joined #RubyOnRails
[08:58:09] sandstrom: has joined #RubyOnRails
[09:01:33] snowy: has joined #RubyOnRails
[09:02:14] zpe: has joined #RubyOnRails
[09:02:30] Elion: has joined #RubyOnRails
[09:02:30] Elion: has joined #RubyOnRails
[09:02:45] blackmesa: has joined #RubyOnRails
[09:03:12] lacrymology: has joined #RubyOnRails
[09:05:39] mark2: has joined #RubyOnRails
[09:05:43] snowy: has joined #RubyOnRails
[09:05:51] zpe_: has joined #RubyOnRails
[09:06:08] sadaf2605: has joined #RubyOnRails
[09:07:24] srinidhi: has joined #RubyOnRails
[09:09:26] lyoshajapan: has joined #RubyOnRails
[09:10:12] jsrn_: has joined #RubyOnRails
[09:10:13] quazimodo: has joined #RubyOnRails
[09:11:49] pawnbox: has joined #RubyOnRails
[09:12:03] shibabu: has joined #RubyOnRails
[09:13:17] ubiks: has joined #RubyOnRails
[09:13:45] Snowy_: has joined #RubyOnRails
[09:14:54] marr: has joined #RubyOnRails
[09:17:30] pawnbox: has joined #RubyOnRails
[09:19:08] pawnbox: has joined #RubyOnRails
[09:20:22] AimlessRAven: has joined #RubyOnRails
[09:20:50] Bloomer: has joined #RubyOnRails
[09:21:10] AimlessRAven: Hello all, i have 1 question. I have select box with selected value = f.association :user, selected: params[:user_id]
[09:21:17] AimlessRAven: why when i mark this field as hidden
[09:21:21] AimlessRAven: value dont send ?
[09:23:41] agoldboi: has joined #RubyOnRails
[09:24:15] zpe: has joined #RubyOnRails
[09:29:37] teclator: has joined #RubyOnRails
[09:30:52] drptbl: has joined #RubyOnRails
[09:33:20] zpe: has joined #RubyOnRails
[09:34:38] puria: has joined #RubyOnRails
[09:34:53] pawnbox: has joined #RubyOnRails
[09:37:52] pr1meshock: has joined #RubyOnRails
[09:40:35] LambdaSource: has joined #RubyOnRails
[09:41:22] chouhoulis: has joined #RubyOnRails
[09:42:45] pawnbox: has joined #RubyOnRails
[09:43:51] emilkarl: has joined #RubyOnRails
[09:46:28] AimlessRAven: has joined #RubyOnRails
[09:46:44] Palsson: has joined #RubyOnRails
[09:46:49] |RicharD|: has joined #RubyOnRails
[09:46:59] AimlessRAven: hello all, i have this association = f.association :user, selected: params[:user_id], this add user_id value by default selected. but when i mark this field as: :hidden
[09:47:03] AimlessRAven: value dont keep
[09:47:18] |RicharD|: anyone has tried rails 5 ? it works with devise/cancancan and other commons gems ?
[09:48:00] sevenseacat: given its only a beta, i wouldnt count on it. nor would i try actually using it to build an app.
[09:49:19] |RicharD|: I will use rails 4
[09:49:36] |RicharD|: but actioncable doesn't work on older versions right ?
[09:49:48] sevenseacat: correct, it is only in rails 5.
[09:50:05] matthewd: +1... if you have an existing app, please do have a go at updating to try it out.. but I wouldn't be starting any real work on it until it's at least rc
[09:50:20] matthewd: On the other hand, it works for Basecamp ??\_(???)_/??
[09:50:27] blackmesa: has joined #RubyOnRails
[09:50:48] matthewd: .. but they don't use things like devise
[09:50:48] ql6wlld: has joined #RubyOnRails
[09:51:26] LambdaSource: has joined #RubyOnRails
[09:51:38] AzaToth: has joined #RubyOnRails
[09:52:28] rodfersou: has joined #RubyOnRails
[09:52:39] sevenseacat: they also have the know-how and skills to fix problems at the source
[09:52:56] WeiJunLi: has joined #RubyOnRails
[09:56:22] czerasz: has joined #RubyOnRails
[09:57:34] idefine: has joined #RubyOnRails
[09:59:01] tbuehlmann: |RicharD|, I successfully tested actioncable using rails 4
[09:59:14] |RicharD|: um I will give a try
[09:59:23] |RicharD|: but maybe it's better use pusher.com/layer.com
[10:00:59] matthewd: |RicharD|: If you're already familiar with Rails (so you'll know whether you're doing something wrong, or it is), and you just want to experiment with ActionCable (on something you won't get serious about until rc), then playing with the beta would be a reasonable choice
[10:02:07] sevenseacat: ACTION wisely keeping trap shut
[10:02:08] |RicharD|: yes I'm familiar with rails
[10:02:23] |RicharD|: but I need to get done something of serious :D
[10:02:28] |RicharD|: (a work for a client)
[10:02:43] |RicharD|: the problem is that the work is long-term ... about 6 months
[10:04:40] ElFerna: has joined #RubyOnRails
[10:05:57] matthewd: sevenseacat: It's not much of a beta if no-one tries it :)
[10:06:05] sevenseacat: this is true.
[10:06:54] matthewd: |RicharD|: So, that doesn't seem unreasonable... you just need to enter into it aware of the fact that it *is* a beta, and consequently there are likely to be rough edges / broken things
[10:07:16] matthewd: Realistically, IMO, you're less likely to experience pain on a new app than you are doing an upgrade
[10:07:30] |RicharD|: k, I will give it a try
[10:08:16] matthewd: .. though gem compatibility may be interesting. I've had to fork a number of things just to fix their dependencies... but not had to make many actual code changes.
[10:09:42] celly: has joined #RubyOnRails
[10:11:45] atomical: has joined #RubyOnRails
[10:11:50] DaniG2k: has joined #RubyOnRails
[10:11:53] drptbl: has joined #RubyOnRails
[10:13:17] waka: has joined #RubyOnRails
[10:15:00] lyoshajapan: has joined #RubyOnRails
[10:17:23] idefine: has joined #RubyOnRails
[10:23:14] puria: has joined #RubyOnRails
[10:23:58] arup_r: has joined #RubyOnRails
[10:25:34] nfk|laptop: has joined #RubyOnRails
[10:31:09] zamerick_: has joined #RubyOnRails
[10:33:02] tvw: has joined #RubyOnRails
[10:33:27] M-shine: has joined #RubyOnRails
[10:36:04] srinidhi: has joined #RubyOnRails
[10:36:23] arBmind: has joined #RubyOnRails
[10:36:46] bronson: has joined #RubyOnRails
[10:37:26] Phoop: has joined #RubyOnRails
[10:37:59] krz: has joined #RubyOnRails
[10:38:12] emilkarl: If Im developing a little js thingy for a rails app that will do ajax post to update records. Could I avoid ???Can't verify CSRF token authenticity??? but not skip verify_authenticity_token? (It live inside the app???)
[10:39:03] sevenseacat: sure, if you provide the authenticity token.
[10:40:41] emilkarl: that is true
[10:40:54] lyoshajapan: has joined #RubyOnRails
[10:41:11] ql6wlld: has joined #RubyOnRails
[10:41:14] emilkarl: so I should generate one on the server side, send to the js and then use it in the requests?
[10:41:29] emilkarl: or could I generate one in the js itself?
[10:41:38] sevenseacat: no, you should read the one thats already on the HTML page when you make the JS request
[10:41:52] sevenseacat: or you should use rails' js helper methods, which will automatically append it
[10:42:09] chouhoulis: has joined #RubyOnRails
[10:42:44] emilkarl: if there is no rails form on the page there is no tolen
[10:42:58] emilkarl: but I could generate one with the helper and use it
[10:44:40] emilkarl: I got it as a meta elemtn
[10:45:42] build22_: has joined #RubyOnRails
[10:46:15] sevenseacat: thats the one
[10:46:49] defsdoor: has joined #RubyOnRails
[10:47:05] idefine: has joined #RubyOnRails
[10:49:49] ubiks: ACTION is loving Rails
[10:50:07] sevenseacat: good to hear :D
[10:51:28] emilkarl: sevenseacat: thanks
[10:51:46] |RicharD|: someone has tried to use web pack with rails ?
[10:52:01] ubiks: seriously, I have a background in film studies... when I decided to finally go Rails in May, I had studied some Python and Ruby previously but still, it seemed very overwealthming. And it still does, but once you do the same routine three or four times and get comfy with it, it is all about following tutorials and going step by step. This is not related with any issue but I had to say it. Thanks for building this framework!
[10:52:33] fexilal: has joined #RubyOnRails
[10:52:50] sevenseacat: oh yeah it can be very overwhelming, but there's a plethora of good tutorials out there :) its a very powerful framework
[10:53:22] jacksparrow007: has joined #RubyOnRails
[10:53:32] Pupeno: has joined #RubyOnRails
[10:53:32] Pupeno: has joined #RubyOnRails
[10:53:48] sevenseacat: ubiks: what tutorials have you been using?
[10:53:54] akshat: has joined #RubyOnRails
[10:55:25] ubiks: Michael Hartl's Rails Tutorial is good to follow and to later on do specific things; also Ruby on Rails by Santiago Ponce Moreno; RailsCast is awesome; yesterday, a brief blog on polymorphic belongs_to; and lots of StackOverflow
[10:55:49] raj___: has joined #RubyOnRails
[10:56:26] sevenseacat: (I was secretly hoping for a mention of Rails 4 in Actin, but ah well :P)
[10:56:29] ubiks: "convention over configuration" is a great choice; there is almost a way to do anything so no improvising, no need to master anything; just read what others do and adapt it to your needs
[10:56:38] ubiks: haha did you write that one?
[10:56:44] sevenseacat: i co-wrote it, yes
[10:56:50] ubiks: i was about to buy it
[10:56:59] ubiks: like two days ago
[11:00:19] sevenseacat: I can save you your money if you'd like :P
[11:00:20] shibly: has joined #RubyOnRails
[11:00:28] shibly: When would we get rails 5?
[11:00:44] sevenseacat: shibly: the first beta came out last Friday, so, unknown
[11:00:54] schu: has joined #RubyOnRails
[11:02:10] the_nick_me: has joined #RubyOnRails
[11:02:11] ubiks: am looking where to buy it for Spain
[11:02:22] ubiks: used book: 25euro; delivery cost: 22 x)
[11:02:40] sevenseacat: ubiks: do you have a github account?
[11:02:42] Fire-Dragon-DoL: ubiks: digital version?
[11:03:01] ubiks: i think so, why?
[11:03:18] ubiks: Fire-Dragon-DoL: i want paper
[11:03:31] sevenseacat: ubiks: I can give you access to the manuscript on github
[11:03:38] sevenseacat: that wont help with paper, though
[11:03:52] Fire-Dragon-DoL: you can print the github repository, maybe
[11:03:52] sevenseacat: unless you want to print it, but please, think of the environment
[11:03:53] ubiks: ACTION rushes into GitHub
[11:04:02] sevenseacat: ubiks: if you send me your github name, i'll add you
[11:04:41] ubiks: I think my github is g@ubik.bz
[11:04:52] sevenseacat: username, not email
[11:05:03] ubiks: UbikTransmedia
[11:06:06] ubiks: sevenseacat, thank you very much
[11:06:09] sevenseacat: you should have an email from github now, linking you to our repo - you can simply read the book online (or build pdfs/epubs/whatever locally if you like)
[11:06:42] idefine: has joined #RubyOnRails
[11:07:13] sevenseacat: there are very minor differences between the manuscript and the printed book, but not many
[11:07:51] ubiks: you mean like updated stuff?
[11:08:37] sevenseacat: nah just word rearrangements and the like, by the publisher's 'proofreaders'
[11:08:56] shibabu: has joined #RubyOnRails
[11:09:30] ubiks: hum I don't see any new repository nor participation in my account
[11:09:40] ubiks: ACTION enters meditating-jedi mode
[11:09:44] sevenseacat: did you get an email from github?
[11:10:02] mdw: has joined #RubyOnRails
[11:10:08] sevenseacat: ACTION pokes Github a bit
[11:13:35] lyoshajapan: has joined #RubyOnRails
[11:16:21] tibra: has joined #RubyOnRails
[11:16:21] quazimodo: has joined #RubyOnRails
[11:17:08] build22_: has left #RubyOnRails: ()
[11:17:38] tibra: has joined #RubyOnRails
[11:18:17] USvER: has joined #RubyOnRails
[11:19:21] ubiks: ACTION finds the repo
[11:19:25] tibra_: has joined #RubyOnRails
[11:19:26] ubiks: thanks sevenseacat :D
[11:19:36] sevenseacat: np :) any questions, ask away
[11:19:59] LambdaSource: has joined #RubyOnRails
[11:20:06] ubiks: it surprises me that.. the book is a ror project?
[11:20:12] sevenseacat: you might be ahead of a lot of the content in it, but it never hurts for a second opinion
[11:20:31] sevenseacat: its not - you might have found the examples repo
[11:20:45] sevenseacat: this is the one for the book - https://github.com/rubysherpas/rails_4_in_action
[11:20:56] ubiks: no i mean.. the rake ra4i:pdf command...
[11:21:15] ubiks: it is surprising that you can handle a book that way
[11:21:31] sevenseacat: aye, that will generate you a nice 600-pageish pdf if you like that
[11:21:44] alphaatom: has joined #RubyOnRails
[11:21:46] sevenseacat: or just read it on github, which i think is easier
[11:22:29] ubiks: thanks you very much ^^
[11:23:10] ewnd9: has joined #RubyOnRails
[11:24:39] mdw: Hey people, if you use GitLab or GitHub Issues - I've just released an App that does that! http://somerobots.com/trident.html
[11:25:23] mdw: :) :) thanks!
[11:26:23] Abhijit: has joined #RubyOnRails
[11:26:46] shanemcd: has joined #RubyOnRails
[11:27:07] worknick: has joined #RubyOnRails
[11:27:46] worknick: this is my code to click on like button using act as votable https://gist.github.com/wrknck/bc90fc996b09133a24da the button works but the javascript code to show the updated like count do not work.
[11:28:20] sevenseacat: define 'do not work'
[11:28:36] worknick: current like count 0. i click on it. still the count is 0. it should be 1.
[11:28:53] worknick: if i manually refresh the page then it shows the updated count.
[11:29:22] sevenseacat: are there any js errors on the page?
[11:29:23] sandstrom: has joined #RubyOnRails
[11:29:23] worknick: i am following this http://stackoverflow.com/questions/28948037/rails-acts-as-votable-ajax-issue
[11:29:31] worknick: no errors in firebug.
[11:30:03] Janno: mdw: thats awesome, any plans to bring this on android?
[11:30:10] worknick: the js code is at end in <script> tag in my view.html.erb
[11:30:34] worknick: do i need to compile asset? let me try that.
[11:30:44] sevenseacat: no, dont do that
[11:30:49] sevenseacat: does any of the js work? ie. the loading part
[11:31:46] worknick: tried precompile. that does not help. all other js used for all other functionality works well.
[11:32:24] pawnbox: has joined #RubyOnRails
[11:32:25] sevenseacat: now delete the files you just precompiled
[11:32:28] mdw: janno I don't have the skills to do an Android port :( This app will be for iOS, and there's more feature's I'm working on!
[11:32:40] sevenseacat: does the 'loading' part of that js work?
[11:32:48] ql6wlld: has joined #RubyOnRails
[11:33:27] nfk|laptop: has joined #RubyOnRails
[11:34:03] worknick: no idea. i dont have those classes.
[11:34:13] worknick: but i am not getting any errorns in firebug.
[11:34:18] worknick: for any js.
[11:34:44] sevenseacat: ok, so if you're not getting the 'loading' class added, then its not working
[11:34:50] acosonic__: has joined #RubyOnRails
[11:35:05] acosonic__: Hi all, how can I see rail???s application logs trough windows event viewer?
[11:35:09] sevenseacat: is the js wrapped in a $(document).on("ready page:load", function() {}); ?
[11:35:18] sevenseacat: acosonic__: dear lord. why?
[11:35:48] worknick: $( document ).ready(function() {
[11:36:13] acosonic__: sevenseacat: writing some text, and want this for Microsoft worshipers :) they want to see evertything trough Microsoft tools...
[11:36:20] sevenseacat: worknick: can you update it to be what i said?
[11:36:29] worknick: just a second.
[11:37:09] AntiSpamMeta: has joined #RubyOnRails
[11:38:08] worknick: sevenseacat: put all the js inside $(document).on("ready page:load", function() { still its not updating. do i need to define this class "loading " in my css somewhere?
[11:38:22] sevenseacat: if you want it to do something, then yes
[11:38:30] worknick: sevenseacat: also the js is operating on "like" class but how does it know which like to update since there is no id?
[11:38:31] sevenseacat: can you gist the javascript as it stands now
[11:38:39] sevenseacat: it operates on all of them
[11:39:10] worknick: sevenseacat: full js added https://gist.github.com/wrknck/bc90fc996b09133a24da
[11:39:37] worknick: sevenseacat: ideally it should only operate on the one which was just clicked?
[11:39:47] acosonic__: so, nobody did that? send logs to windows server???s logging api or something????
[11:40:17] sevenseacat: worknick: it will. are you familiar with js?
[11:40:20] ElFerna: has joined #RubyOnRails
[11:40:28] worknick: sevenseacat: yes. basic.
[11:41:32] sevenseacat: a lot of the existing code deviates from how things would be done in rails, is why i ask
[11:41:34] sevenseacat: is the form actually making a remote request?
[11:42:10] worknick: yes. the like button functionality works. i can confirm from select * from votes in db;
[11:42:22] worknick: only the view count part has problem.
[11:42:28] sevenseacat: thats not what i asked
[11:42:48] worknick: firebug shows request made to that method with 200 k
[11:42:54] chouhoulis: has joined #RubyOnRails
[11:44:35] pawnbox: has joined #RubyOnRails
[11:45:08] sevenseacat: if that code was being run, it would give a js error, so its not being run at all
[11:45:15] worknick: sevenseacat i think its not making AJAX call because firebug do not show it as ajax call
[11:45:27] sevenseacat: well does your page reload
[11:46:45] Fire-Dragon-DoL: acosonic__: well, microsoft has been changing a lot lately
[11:46:55] worknick: simple on button click console.log works though. for testing sevenseacat
[11:47:01] blackmesa: has joined #RubyOnRails
[11:47:10] acosonic__: Fire-Dragon-DoL: Microsoft sux I don???t doubt that :(
[11:47:22] sevenseacat: worknick: i dont know how thats related, but okay
[11:47:26] Fire-Dragon-DoL: acosonic__: no I was saying that it's improving atually, they don't suck
[11:48:07] pawnbox: has joined #RubyOnRails
[11:48:38] Fire-Dragon-DoL: acosonic__: They have some stuff that are terrible, but others are really good. I still believe windows is best consumer OS so far
[11:48:42] acosonic__: Fire-Dragon-DoL: really, so how does it relate to rails? Also any ideas about my question?
[11:48:59] worknick: sevenseacat: is there a way to refresh <%= pa.get_upvotes.size %> from jq?
[11:49:01] acosonic__: Fire-Dragon-DoL: yeah, but windows 7??? :)
[11:49:11] worknick: sevenseacat: if possible i can put it inside the on button click.
[11:49:29] sevenseacat: worknick: i presumed you knew thats what your code is trying to do
[11:49:57] Fire-Dragon-DoL: acosonic__: I honestly don't know, but this gem might fit: https://github.com/djberg96/win32-eventlog
[11:50:14] worknick: sevenseacat: no. i thought that remote call is doing everything and the current jq only only puts the data given to it by that call. i was asking something different. to do all this from jq fully. istead of rails.
[11:50:40] sevenseacat: worknick: i think that would be a very strange thing to do
[11:50:55] sevenseacat: given you need rails to actually record the vote
[11:51:46] sevenseacat: i dont know why your code isnt working, and its quite hard to debug it remotely without being able to see it
[11:52:06] sevenseacat: for all i know you've got the js on the wrong page or something, its not typically to include js in views
[11:52:55] acosonic__: Fire-Dragon-DoL: yeah, coolio I remembered I stumbled upon something like that??? Thanks!
[11:53:23] krz: has joined #RubyOnRails
[11:53:45] puria: has joined #RubyOnRails
[11:54:55] Fire-Dragon-DoL: I just fixed a bug while on the highest point of an EPIC song. Felt like saving the world, lol
[11:55:36] fexilal: are you going to tell us what the song was?
[11:56:31] worknick: sevenseacat: ok
[11:56:36] pawnbox: has joined #RubyOnRails
[11:57:27] artto: has joined #RubyOnRails
[11:57:51] celly: has joined #RubyOnRails
[11:57:58] Fire-Dragon-DoL: fexilal: the problem is, I don't know, I extracted it from a youtube video. I'm actually looking for the song title
[11:58:20] Fire-Dragon-DoL: fexilal: https://www.youtube.com/watch?v=IIHyXsgdqHE
[11:58:20] srinidhi: has joined #RubyOnRails
[12:01:01] pawnbox: has joined #RubyOnRails
[12:01:38] big|bad|wolf: has joined #RubyOnRails
[12:01:46] Papierkorb: Fire-Dragon-DoL: if you have a smartphone, use some app like shazam to get the songs name
[12:02:01] Fire-Dragon-DoL: Papierkorb: good idea
[12:03:45] tildes: when would you use be_routable instead of routes_to?
[12:04:57] sevenseacat: when you dont care where it routes to, just that it does
[12:05:00] cassioscabral: has joined #RubyOnRails
[12:05:23] chridal: Say I have a model X that belongs to a model Y and model Y belongs to model Z. What are your thoughts on having user_id on both model X and Y, despite X linking to model Z via Y?
[12:05:35] sevenseacat: i wouldnt do it
[12:05:41] sevenseacat: its extra work to maintain that extra link
[12:05:44] doodlehaus: has joined #RubyOnRails
[12:06:13] chridal: I'm thinking about potential performance gains through not having to look up that extra table to get them
[12:06:20] chridal: But I can't measure anything, so...
[12:07:23] sandstrom: has joined #RubyOnRails
[12:07:27] sevenseacat: i would worry about that if it becomes a performance problem.
[12:08:25] chridal: Yea. I don't know why I keep getting stuck in that kind of thinking despite not having any specific data to measure.
[12:08:43] chridal: I pre-optimize constantly.
[12:09:13] chridal: Bad habits die hard, I guess.
[12:10:04] Papierkorb: chridal: I only would do so if it's most likely that the model containing the user_id isn't already cached at that point (or is needed later on anyway), AND if the view is required often (tons of times during a really common request).
[12:11:03] chridal: It wouldn't necessarily be cached at that point in many of the requests I can think of, but I can't measure it now because it isn't deployed to production. Also, there aren't any views since it's an API.
[12:11:53] blackmesa: has joined #RubyOnRails
[12:12:34] Papierkorb: chridal: Then the JSON data is your view. Wild guess, but there's a good chance that you'll embed the rerefenced models (or parts of) into it. So you need to query the data anyway, and at that point, who cares
[12:13:00] ferr: has joined #RubyOnRails
[12:15:44] chridal: Indeed. I'll still have to measure this in prod though. So I just need to make a habit of not thinking too far into these thoughts.
[12:20:46] nyaa: has joined #RubyOnRails
[12:22:53] czerasz: has joined #RubyOnRails
[12:24:10] big|bad|wolf: has joined #RubyOnRails
[12:28:31] hardtail: has joined #RubyOnRails
[12:28:39] pawnbox: has joined #RubyOnRails
[12:31:39] doodlehaus: has joined #RubyOnRails
[12:35:37] Palsson: has joined #RubyOnRails
[12:35:42] idefine_: has joined #RubyOnRails
[12:36:57] thorgi: has joined #RubyOnRails
[12:38:29] Elion: has joined #RubyOnRails
[12:38:45] pawnbox: has joined #RubyOnRails
[12:39:17] bronson: has joined #RubyOnRails
[12:39:28] tibra: has joined #RubyOnRails
[12:40:28] upsell5: has joined #RubyOnRails
[12:41:01] gavit: rhizome: what do you mean with 'do you have to require that far down?'?
[12:41:04] FooMunki: has joined #RubyOnRails
[12:42:38] sankaber: has joined #RubyOnRails
[12:43:36] chouhoulis: has joined #RubyOnRails
[12:44:00] gavit: rhizome: https://github.com/rgeo/rgeo/issues/26
[12:48:10] pawnbox: has joined #RubyOnRails
[12:49:49] silverdust: What's the difference between FactoryGirl::build and FactoryGirl.build ?
[12:49:55] KorriX_: has left #RubyOnRails: ()
[12:50:58] matthewd: silverdust: Nothing, apart from one being a somewhat archaic spelling
[12:51:42] silverdust: which is archaic?
[12:51:44] AntiSpamMeta: has joined #RubyOnRails
[12:52:33] silverdust: oh okay. Because I never saw anything like static methods in ruby and it got me thinking static method
[12:52:39] DoubleMalt: has joined #RubyOnRails
[12:52:41] silverdust: That's how they are in PHP
[12:52:50] dideler: has joined #RubyOnRails
[12:55:26] idefine_: has joined #RubyOnRails
[13:00:26] alextheger: has joined #RubyOnRails
[13:03:38] ElFerna: has joined #RubyOnRails
[13:04:43] alextheger: I have a module Kvom::Storage. In that model that is a NotFound sub-module. Since there already is a Kvom::NotFound I want to indicate, that rails autoload should also load Kvom::Storage::NotFound. AFAICS I have to options: (1) Add a "require_dependency('kvom/storage/not_found')" in Kvom::Storage or (2) "call" Kvom::Storage::NotFound in Kvom::Storage. There there any downsides the the second approach? Why would "require_dependency" be better?
[13:07:39] puria: has joined #RubyOnRails
[13:07:51] atomical: has joined #RubyOnRails
[13:10:35] cassioscabral: has joined #RubyOnRails
[13:10:36] gavit: silverdust: :: indicates that its a class method which makes it more clear. but it's the same
[13:11:11] gavit: silverdust: static method is basically the same as a class method I guess :)
[13:11:27] build22: has joined #RubyOnRails
[13:11:58] gavit: matthewd: I dont think FactoryGirl::build is archaic. it's more 'clear'
[13:12:34] Kn|t3: has joined #RubyOnRails
[13:12:35] lxsameer: has joined #RubyOnRails
[13:14:55] silverdust: Thanks gavit
[13:15:11] idefine: has joined #RubyOnRails
[13:15:33] dionysus69: has joined #RubyOnRails
[13:17:59] blackmesa: has joined #RubyOnRails
[13:18:18] shanemcd: has joined #RubyOnRails
[13:18:55] silverdust: How can I pass two entries to a test in order to test against duplicate values. This is my attempt https://gist.github.com/bl4ckdu5t/9e72ae155ced4f27b199 which fails
[13:18:55] gavit: sevenseacat: do you know how I can figure out why require 'rgeo/geos/factory' gives an exception? I get the following: https://github.com/rgeo/rgeo/issues/26
[13:19:08] silverdust: on it should not allow duplicate email
[13:20:13] gavit: silverdust: is your testing the issue or the implementation of what you are testing?
[13:20:15] d0nn1e: has joined #RubyOnRails
[13:20:20] sevenseacat: gavit: that class doesnt seem to exist in the gem, that might explain it?
[13:20:33] sevenseacat: https://github.com/rgeo/rgeo/tree/master/lib/rgeo/geos not seeing a 'factory' file
[13:20:42] emilkarl: has joined #RubyOnRails
[13:21:03] moeabdol: has joined #RubyOnRails
[13:21:14] sevenseacat: gavit: you've also bumped a three year old issue with a completely unrelated problem
[13:21:16] gavit: sevenseacat: it isnt due to an external library missing? I had to install geos-devel and proj-devel to get rid of my other errors (had a similar error)
[13:21:44] silverdust: my testing gavit . I want to make double entry in the test but I don't think I'm doing it right
[13:21:46] gavit: silverdust: validates_uniqueness_of :email in your User model
[13:22:33] Detch: has joined #RubyOnRails
[13:22:48] silverdust: then it's the implementation
[13:22:54] gavit: sevenseacat: its due to the 'require' commands of dazuma that I figured out that I needed a devel package
[13:23:35] gavit: silverdust: you can probably also do it in your database (add an index)
[13:23:57] krz: has joined #RubyOnRails
[13:23:58] Fire-Dragon-DoL: I'm really, really happy with how Rails 5 looks, feels like a breeze of modernity went through the framework
[13:24:02] silverdust: but there's a unique index from the migration already
[13:24:27] silverdust: and I just added the validates_uniqueness_of email and I get the same thing which I'll ad to the gist now
[13:24:35] gavit: silverdust: that enures your model will fail, but I think with .build it will still accept it as 'possible'
[13:25:06] gavit: the validates_uniqueness_of :email will make the build fail
[13:25:07] silverdust: oh true since none will exist already
[13:25:14] gavit: the index will make the .save fail
[13:25:26] FooMunki: has joined #RubyOnRails
[13:25:36] shanemcd_: has joined #RubyOnRails
[13:26:14] silverdust: I was using the index earlier and .build was failing
[13:27:38] silverdust: It's the expected behaviour
[13:27:43] gavit: sevenseacat: I guess I should try to require capi_factory.rb etc then
[13:28:05] sevenseacat: gavit: i think you should start with your actual problem, and not by looking at random requires
[13:28:09] gavit: silverdust: I dont think I understand
[13:28:59] silverdust: I confused myself there for a bit
[13:29:38] silverdust: What I have in the gist now should pass since I'm saying not_to be_valid
[13:30:40] silverdust: and by .save I think yuo meant .create
[13:31:17] gavit: sevenseacat: my initial problem is https://gist.github.com/gavit/4615b8edfd1aea307d2d <- it seems to work in my development environment
[13:31:42] gavit: sevenseacat: at first my RGeo::Geos.supported? gave an exception, but I guess that got solved by installing the devel packages
[13:32:41] silverdust: I'll wait till you're done with your issue
[13:32:43] gavit: at least, if I do irb require 'rgeo' and do RGeo::Geos.supported? I get true. in rails console I get false
[13:33:18] sevenseacat: heres something i prepared earlier http://blog.thefrontiergroup.com.au/2012/11/wherefore-art-thou-libgeos/ this was the last time i used rgeo, so it may no longer apply
[13:33:20] duderonomy: has joined #RubyOnRails
[13:33:20] syzygy_: has joined #RubyOnRails
[13:35:02] big|bad|wolf: has joined #RubyOnRails
[13:35:14] gavit: silverdust: with .built the model is in the process of being made. it does not exist yet. so line 18 should fail (the model should be buildable)
[13:36:18] gavit: sevenseacat: if I do rails console it fails, but in irb it returns true, doesnt that indicate a wrong version in my bundle?
[13:39:00] sevenseacat: it indicates that the version in your bundle might not be linked correctly
[13:39:08] sevenseacat: but the one loaded by default is
[13:39:14] dstarh: has joined #RubyOnRails
[13:39:17] alphaatom: has joined #RubyOnRails
[13:40:01] gavit: https://gist.github.com/gavit/4615b8edfd1aea307d2d#file-not-supported-in-console-L13
[13:40:21] gavit: sevenseacat: so I need to run another bundle install?
[13:40:37] sevenseacat: gavit: did you check the blog post i linked?
[13:40:59] gavit: sevenseacat: yes, you did a ln -s
[13:41:11] gavit: sevenseacat: I already have the ln -s by default
[13:41:14] sevenseacat: yes, to re-link the files
[13:41:45] build22: has left #RubyOnRails: ()
[13:41:46] silverdust: gavit: Then this should work https://gist.github.com/bl4ckdu5t/9e72ae155ced4f27b199
[13:42:16] gavit: silverdust: .create
[13:42:26] gavit: https://gist.github.com/bl4ckdu5t/9e72ae155ced4f27b199#file-user_spec-rb-L17 shoule be .create
[13:42:38] gavit: s/shoule/should
[13:43:18] gavit: you are basically 'racing' with the same email. but as long as you do not save what you build, it is still allowed to build
[13:43:48] agoldboi: has joined #RubyOnRails
[13:43:57] silverdust: oh finally. Thanks
[13:44:22] chouhoulis: has joined #RubyOnRails
[13:44:53] gavit: sevenseacat: https://gist.github.com/gavit/4615b8edfd1aea307d2d
[13:45:57] celly: has joined #RubyOnRails
[13:46:09] gavit: silverdust: yay, I finally helped someone back :)
[13:46:29] sevenseacat: gavit: did you confirm it was a linking problem or just trying random things?
[13:46:55] gavit: sevenseacat: I just did random things ;) - well, I confirmed it isnt a linker problem :)
[13:47:18] gavit: I'll grep /var/log
[13:47:52] doodlehaus: has joined #RubyOnRails
[13:48:00] gavit: what is a 'mkmf.log'?
[13:48:27] gavit: nvm, found the rgeo one :)
[13:49:37] ramortegui: has joined #RubyOnRails
[13:49:44] gavit: sevenseacat: https://gist.github.com/gavit/4615b8edfd1aea307d2d#file-mkmf-log-L15
[13:50:15] Bloomer: has joined #RubyOnRails
[13:51:46] sevenseacat: looks promising.
[13:52:04] qejk: has joined #RubyOnRails
[13:52:51] gavit: guess https://groups.google.com/forum/#!topic/spatialite-users/xlA7D_4vqqw this indicates that I need libproj-dev, but I already have proj-devel: https://gist.github.com/gavit/4615b8edfd1aea307d2d#file-yum-list-installed-grep-proj-L3
[13:54:00] ElFerna: has joined #RubyOnRails
[13:54:43] sevenseacat: whats proj-static.x86_64 ?
[13:54:59] stannard: has joined #RubyOnRails
[13:56:59] cornerma1: has joined #RubyOnRails
[13:57:34] gavit: 'This package contains libproj static library.'
[13:57:42] gavit: we could try to install it
[13:58:35] gavit: Transaction Check Error: file /usr/lib64/libproj.a from install of proj-static-4.7.0-1.el6.x86_64 conflicts with file from package proj-devel-0:4.8.0-2.rhel6.x86_64
[13:58:51] gavit: so proj-devel or proj-static
[13:58:55] sevenseacat: gavit: be interesting to know, in your irb, which of RGeo::Geos.capi_supported? or RGeo::Geos.ffi_supported? is true
[14:01:10] zanzarel: has joined #RubyOnRails
[14:01:43] gavit: btw this file exists /usr/include/proj_api.h
[14:04:13] gavit: sevenseacat: https://gist.github.com/gavit/4615b8edfd1aea307d2d#file-capi_supported-L5
[14:05:04] Kn|t3: has joined #RubyOnRails
[14:06:04] gavit: ACTION is confused
[14:06:08] the_nick_me: has joined #RubyOnRails
[14:06:49] arup_r: has joined #RubyOnRails
[14:09:22] PedramT: has joined #RubyOnRails
[14:10:10] rubyonrails203: has joined #RubyOnRails
[14:11:15] Dalogi: has joined #RubyOnRails
[14:12:16] acosonic__: Hi all, is there something like this https://github.com/wvanbergen/request-log-analyzer/wiki working with Rails 4 ?
[14:12:38] shibabu: has joined #RubyOnRails
[14:14:11] sevenseacat: what issues does it have with rails 4?
[14:15:11] acosonic__: sevenseacat: haven???t tried yet, I assume it will have issues :)
[14:15:33] maxx88: has joined #RubyOnRails
[14:16:10] ElFerna: has joined #RubyOnRails
[14:17:25] the_nic__: has joined #RubyOnRails
[14:18:08] iateadonut: has joined #RubyOnRails
[14:19:32] gavit: gonna try a new deploy
[14:20:29] Voxxit: has joined #RubyOnRails
[14:25:57] agoldboi: has joined #RubyOnRails
[14:27:20] sankaber: has joined #RubyOnRails
[14:27:36] vasilakisFiL: do you know if puma creates a db connection for every thread or only for every process?
[14:27:55] vasilakisFiL: because with 10 heroku dynos connections go up to 240 :)
[14:27:57] djbkd: has joined #RubyOnRails
[14:28:13] shanemcd: has joined #RubyOnRails
[14:28:23] johnnegron: has joined #RubyOnRails
[14:30:13] matthewd: vasilakisfil: puma doesn't create any database connections
[14:31:56] vasilakisFiL: ok then I was confused from heroku dev article
[14:32:03] ascarter: has joined #RubyOnRails
[14:32:08] maxx88: has left #RubyOnRails: ()
[14:32:24] vasilakisFiL: I have a pool=5 on database.yml, but then in the database url there is a pool param which has value=128
[14:32:40] vasilakisFiL: does the second one take any effect ?
[14:33:38] vasilakisFiL: as far as I understand, given that I have ActiveRecord::Base.establish_connection only on_worker_boot puma should create 5 connections for each process
[14:34:00] vasilakisFiL: I have 8 puma processes X 10 dynos = 80 connections, why I get 240? :)
[14:34:05] gavit: sevenseacat: is it safeish to do a rm shared/bundle/ruby/2.2.0/extensions/?
[14:34:16] futilegames: has joined #RubyOnRails
[14:34:18] sevenseacat: gavit: uh... no
[14:34:27] sevenseacat: especially not on a production server
[14:34:31] sevenseacat: please talk to your sysadmin
[14:35:10] gavit: shouldn't shared/bundle be recreated with a new deploy?
[14:35:37] sevenseacat: i have no idea what shared/bundle you're talking about
[14:35:59] gavit: sevenseacat: capistrano makes a current, releases and shared dir.
[14:36:14] Dalogi: hi all :) anyone good with capybara/poltergeist?
[14:36:19] gavit: shared is for ruby gem extensions and other shared files between releases
[14:36:33] achamian: has joined #RubyOnRails
[14:37:19] sevenseacat: gavit: please talk to your sysadmin before you go screwing up your server.
[14:38:14] barttenbrinke: Hi! I am optimizing existing code and there is an issue here where I'd really like to use ActiveRecord Query Cache inside a rake task. I understand that this does not work normally, because it is built as a middleware. Is there a way around this?
[14:38:46] esparkman: has joined #RubyOnRails
[14:39:41] mices: i wanna display users email address or username and have it open a dropdown menu on hover or click, so the element that shows the user's email or username should be what type of element?
[14:40:48] mices: it should be part of the menu, or a link to the menu
[14:42:56] matthewd: barttenbrinke: If you don't mind delving into private API, have a look at the middleware itself... from memory, it's pretty simple
[14:44:40] artto: has joined #RubyOnRails
[14:45:08] chouhoulis: has joined #RubyOnRails
[14:46:17] momomomomo: has joined #RubyOnRails
[14:46:34] darutoko: has joined #RubyOnRails
[14:47:02] Rodya_: has joined #RubyOnRails
[14:47:36] barttenbrinke: matthewd: That what was my next option :)
[14:47:48] Encapsulation: has joined #RubyOnRails
[14:48:26] crystal77: has joined #RubyOnRails
[14:49:07] matthewd: barttenbrinke: You could probably also just fake a call through said middleware... I doubt it's using much of the rack env
[14:49:31] stannard: has joined #RubyOnRails
[14:53:29] barttenbrinke: matthewd: Can you give me some links to github as pointers :)?
[14:53:58] idefine: has joined #RubyOnRails
[14:55:47] Dalogi: Attempting to fill in a form with capybara, but it's not working for a specific field only. It's no different from other fields in my form, but for some reason isn't filling in. is there another way to do it other than `fill_in :web_user_ff_api_profile_age_votes, :with => '32'`
[14:55:57] Dalogi: Attempting to fill in a form with capybara, but it's not working for a specific field only. It's no different from other fields in my form, but for some reason isn't filling in. is there another way to do it other than fill_in :web_user_ff_api_profile_age_votes, :with => '32'
[14:56:17] barttenbrinke: matthewd: https://github.com/rails/rails/blob/7f18ea14c893cb5c9f04d4fda9661126758332b5/activerecord/test/cases/query_cache_test.rb#L19-L25 This looks interresting
[14:57:08] mary5030: has joined #RubyOnRails
[14:57:31] cassioscabral: has joined #RubyOnRails
[14:59:22] acosonic_: has joined #RubyOnRails
[14:59:24] twilling: has joined #RubyOnRails
[15:00:14] cassioscabral: has joined #RubyOnRails
[15:01:45] kpollich: has joined #RubyOnRails
[15:02:01] vasilakisFiL: should I use pg bouncer if I have many dynos on heroku ?
[15:02:06] arup_r: has joined #RubyOnRails
[15:02:13] blackmesa: has joined #RubyOnRails
[15:03:23] fox_mulder_cp: vasilakisfil: u can. why not?
[15:03:33] cassioscabral_: has joined #RubyOnRails
[15:04:23] PedramT_: has joined #RubyOnRails
[15:04:34] arup_r1: has joined #RubyOnRails
[15:05:36] vasilakisFiL: I don't know, would it be wise to avoid itby trying to lower the open connections from the config files ? (in terms of perfomance)
[15:06:53] shanemcd: has joined #RubyOnRails
[15:07:04] nettoweb: has joined #RubyOnRails
[15:08:47] stannard: has joined #RubyOnRails
[15:09:05] stannard: has joined #RubyOnRails
[15:09:52] shanemcd_: has joined #RubyOnRails
[15:10:02] tuelz: has joined #RubyOnRails
[15:10:19] n1lo: has joined #RubyOnRails
[15:10:26] Secretmapper: has joined #RubyOnRails
[15:10:47] Kn|t3: has joined #RubyOnRails
[15:11:29] cassioscabral: has joined #RubyOnRails
[15:11:29] krz: has joined #RubyOnRails
[15:12:44] gavit: what does 'Incomplete response received from application' indicate except missing a secret key? I can just go to certain pages like index, but show of a certain page fails :(
[15:13:01] gavit: I cant seem to find anything relevant in log/production nor in apache errorlog
[15:13:40] johnnegron: has joined #RubyOnRails
[15:13:42] idefine: has joined #RubyOnRails
[15:14:03] mbreedlove: has joined #RubyOnRails
[15:14:20] gavit: Disconnecting long-running connections for process 26765, application
[15:16:36] sepandb: has joined #RubyOnRails
[15:16:38] sepandb: has left #RubyOnRails: ()
[15:18:59] agoldboi: has joined #RubyOnRails
[15:19:35] bronson: has joined #RubyOnRails
[15:21:46] gavit: everytime I start a new call to the show I get an error https://gist.github.com/gavit/d530c04f4086a0a5385a#file-apache-errorlog-L1
[15:22:36] acosonic_: has joined #RubyOnRails
[15:23:53] shibabu: has joined #RubyOnRails
[15:25:40] sepandb: has joined #RubyOnRails
[15:27:32] Kn|t3: has joined #RubyOnRails
[15:29:44] shanemcd: has joined #RubyOnRails
[15:31:45] mrtomme: has joined #RubyOnRails
[15:33:51] Oliphaunte: has joined #RubyOnRails
[15:34:12] celly: has joined #RubyOnRails
[15:36:43] rgtk: has joined #RubyOnRails
[15:37:20] Yomero3: has joined #RubyOnRails
[15:41:58] B1n4r10: has joined #RubyOnRails
[15:42:18] c355E3B: is there a hook for activesupport concerns that runs after classmethods has been included?
[15:43:36] agoldboi: has joined #RubyOnRails
[15:43:38] StevenXL: has joined #RubyOnRails
[15:43:38] StevenXL: has joined #RubyOnRails
[15:43:58] flashpoint9: has joined #RubyOnRails
[15:44:14] StevenXL: Hi everyone.
[15:44:15] mag42c: has joined #RubyOnRails
[15:44:32] StevenXL: I am sending back Javascript in response to a js request.
[15:44:49] StevenXL: I'd like to dismiss a modal, I'm guessing by clicking on the correct element.
[15:44:52] StevenXL: How can I do this?
[15:45:17] Oliphaunte: has joined #RubyOnRails
[15:45:40] tubbo: stevenxl: !code
[15:45:40] helpa: stevenxl: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[15:45:53] chouhoulis: has joined #RubyOnRails
[15:46:17] StevenXL: Hi everyone. My apologies. I didn't know the rules.
[15:46:46] StevenXL: It's an entire rails app, so I'll try my Google-fu first. But I'll be back, most likely.
[15:46:58] tubbo: stevenxl: no worries. was just interested in the JS view honestly :)
[15:47:07] tubbo: and it was kind-of a primer to show you the link to gist.github.com
[15:47:11] tubbo: no need to post the full app
[15:47:37] tubbo: stevenxl: what kind of modal are you working with? is it a plugin or something you made yourself?
[15:48:01] markelite: has joined #RubyOnRails
[15:48:18] tubbo: most plugins include an event for triggering a modal close, or you can of course just select the close button element and fire the 'click' event ati t.
[15:49:40] podman: has joined #RubyOnRails
[15:49:54] teclator: has joined #RubyOnRails
[15:50:38] StevenXL: tubbo: I'm using Bootstrap, so I just included their code for a modal.
[15:51:03] StevenXL: tubbo: But yea, you are 100% correct. I just chose the close button element with jQuery, and triggered a click.
[15:51:06] StevenXL: So that works.
[15:51:26] StevenXL: I thought that the click method was simply to register an event listener.
[15:51:37] StevenXL: Didn't realize that it actually simulated a click as well.
[15:51:49] arup_r: has joined #RubyOnRails
[15:52:25] jessemcgilallen: has joined #RubyOnRails
[15:52:40] StevenXL: But this is awesome and works. Basically, what I'm doing is working on an application where you can create a new event, but the event must have a location. If your location is not currently in the database, you use a link and a modal will pop up with the location's form.
[15:52:53] atomical: has joined #RubyOnRails
[15:53:13] idefine_: has joined #RubyOnRails
[15:53:17] StevenXL: Everything is workign fine except for 2 things I need to figure out: 1) How to tell the user that s/he has successfully created a location, and 2) how to go back to the events page and add that location to the list of options.
[15:53:23] matthewd: c355e3b: Doesn't 'included' meet that criterion?
[15:53:36] c355E3B: no, and i found out why
[15:53:50] c355E3B: somebody monkey patched it :/
[15:54:03] smathy: has joined #RubyOnRails
[15:54:11] joshkovach: has joined #RubyOnRails
[15:54:14] nyaa: has joined #RubyOnRails
[15:54:22] tubbo: stevenxl: it seems like bootstrap modals have methods you can just call on the element to close it, much easier (and less error-prone) than calling a click() on the close button. $('#your-modal-dialog-element').modal('close') seems to do it. http://getbootstrap.com/javascript/
[15:54:37] tubbo: stevenxl: here's a better link -> http://getbootstrap.com/javascript/#modals-methods
[15:55:12] matthewd: c355e3b: Ah, that'll do it.. and there's not much I can do to help there ;)
[15:55:14] StevenXL: tubbo: thank you!
[15:55:25] StevenXL: I'll take a look at that.
[15:55:29] c355E3B: i'm tempted to delete 90% of this app and rewrite it
[15:57:08] build22_: has joined #RubyOnRails
[15:57:14] build22_: has left #RubyOnRails: ()
[15:59:39] darutoko: has joined #RubyOnRails
[15:59:49] StevenXL: tubbo: In the methods section. I only see a 'hide' method, not a 'close' method. Is this what you were originally referring to?
[16:00:30] pawnbox: has joined #RubyOnRails
[16:00:59] djbkd: has joined #RubyOnRails
[16:01:34] StevenXL: tubbo: hide works. Thank you
[16:03:07] tuelz: I've yet to see an activesupport concern used in a way that I felt made an app more maintainable
[16:03:11] andrew9184: has joined #RubyOnRails
[16:03:33] tuelz: but I haven't seen a whole lot of them, so maybe that's just my limited experience
[16:04:39] shanemcd: has joined #RubyOnRails
[16:07:38] Papierkorb: tuelz: Mh. I share quite a lot of functionality among models, and that's what I use concerns for. Though to me it's more of a standard included module.
[16:07:58] Papierkorb: Stuff like ACLs, Likes, ...
[16:09:03] mbreedlove: has joined #RubyOnRails
[16:11:48] tuelz: right, it feels like a module would suffice in almost all cases I've seen
[16:12:35] Papierkorb: What annoys me more is that you can't usually target all models including specific concerns in migrations. Had to write helpers for that.
[16:13:00] Papierkorb: They all share the same columns. Would be too tedious to punch in the same column definitions every time.
[16:14:23] lacuna: has joined #RubyOnRails
[16:15:30] sadaf2605: has joined #RubyOnRails
[16:16:02] tubbo: stevenxl: yeah, sorry :)
[16:17:43] StevenXL: no worries at all. I just didn't know if the functionality was the same.
[16:17:57] StevenXL: Now to append the new location to those already on the page!
[16:18:05] shibly: has joined #RubyOnRails
[16:18:45] shibly: I have installed ruby with ruby-install, gem --version: bash: gem: command not found, why? What to do?
[16:19:00] shibly: How can i set path?
[16:20:56] tuelz: shibly: typically you'd let a ruby version management tool do that for you
[16:21:06] tuelz: I use chruby with ruby-install
[16:21:19] shibly: I have also installed chruby
[16:21:31] shibly: What's the command to do with chruby?
[16:22:10] tuelz: shibly: you'll want to run the chruby scripts in your .bashrc or .zshrc or w.e.
[16:22:19] tuelz: have you read chruby install documentation?
[16:22:43] tuelz: shibly: https://github.com/postmodern/chruby#configuration
[16:24:11] tuelz: then when you open a new shell, it'll run the chruby script which will put the correct stuff into your path and you'll have access to `gem`
[16:25:14] CornishPasty: Are we meant to be using chruby now?
[16:25:42] tuelz: meant? No, it's just my preference
[16:25:59] tuelz: plenty of tools get the job done. RVM, rbenv, and probably others I haven't heard of will do just fine
[16:26:19] havenwood: CornishPasty: chruby is the ONE TRUE SWITCHER :)
[16:26:33] lalalaaa: has joined #RubyOnRails
[16:26:34] shibly: Got error, https://bpaste.net/show/5871713b5edf , why?
[16:26:48] CornishPasty: Mainly for ruby-build
[16:26:51] lalalaaa: Hi! This `NoMethodError: undefined method `register_preprocessor' for nil:NilClass` here: https://gist.github.com/anonymous/a25f30a887106872a016 -- it's due to the i18n-js gem (https://github.com/fnando/i18n-js) right? Hence it should be safe to submit it as an issue?
[16:27:06] CornishPasty: I don't tend to actually switch between ruby versions :o
[16:27:06] havenwood: shibly: bundle exec rails server
[16:27:27] treaki_: has joined #RubyOnRails
[16:27:41] havenwood: shibly: http://i.imgur.com/2Hlpoov.png
[16:27:43] tuelz: CornishPasty: so all your projects are on the same ruby version?
[16:28:01] shibly: havenwood: https://bpaste.net/show/41fb18bfa621
[16:28:34] rgtk: has joined #RubyOnRails
[16:28:41] havenwood: What is that, a missing dep?
[16:28:52] tuelz: CornishPasty: so do you pay someone to upgrade to latest ruby every time a new release happens or do you just not update your ruby version?
[16:30:08] havenwood: shibly: I dunno, check the uglify docs for deps. Do you need to?: npm install uglify-js -g
[16:30:32] shibly: What is npm?
[16:30:32] Papierkorb: tuelz: pacman -S ruby # Done, all projects on latest MRI ruby.
[16:30:50] havenwood: shibly: https://www.npmjs.com
[16:30:56] tuelz: archlinux keeps latest ruby in their repos?
[16:31:01] Papierkorb: tuelz: of course
[16:31:14] Papierkorb: Why should we use something outdated on our system?
[16:31:20] tuelz: that's surprising considering how many popular ruby tools probably depend on an older version of ruby
[16:31:59] Papierkorb: Issues I had until now: None. Issues I had on the LinuxMint work machine: Way too many, chruby sucks compared to letting the system do it.
[16:32:11] tuelz: also, that doesn't make all your projects go to latest ruby, that makes them try and use the latest ruby which won't work because you'll have gems depending on another version
[16:32:49] lalalaaa: yeah, im using the system ruby on openbsd and freebsd and it's working great!
[16:32:50] havenwood: Papierkorb: Here's a nice example of arch system packages with chruby: https://gist.github.com/jhass/8839655bb038e829fba1
[16:32:54] lalalaaa: no more chruby, rvm or whatever
[16:33:01] havenwood: Papierkorb: But sure, if you only need one Ruby.... no switching!
[16:33:08] tuelz: if you haven't had issues with using just a system wide ruby you haven't been writing ruby very long, I'd guess
[16:33:27] the_nick_me: has joined #RubyOnRails
[16:33:38] voker57: has joined #RubyOnRails
[16:33:38] voker57: has joined #RubyOnRails
[16:34:00] cassioscabral: has joined #RubyOnRails
[16:34:03] tubbo: Papierkorb: how does pacman handle multiple ruby versions on the same box?
[16:34:07] Papierkorb: havenwood: heh, still much nicer that way than fiddling with ruby-install! (But yeah, I only need the latest ruby)
[16:34:10] tuelz: it doesn't tubbo
[16:34:26] Papierkorb: tubbo: pacman does not handle multiple versions of any package being installed at the same time.
[16:34:33] tuelz: somehow he hasn't had problems just using the latest ruby and upgrading on a whim (whic I find very hard to believe)
[16:34:55] tubbo: well personally, i'm handling a lot of different projects all between 2.0.0 and 2.2.3
[16:35:02] tubbo: plus every so often i get a 1.9.3 thing
[16:35:13] tuelz: not just your projects, what about applications that use ruby?
[16:35:14] tubbo: i wish the system could do it, but alas
[16:35:36] tubbo: tuelz: command-line tools and stuff? i try to install those to the system ruby just to make shit easier on myself.
[16:35:42] tuelz: you can easily-ish upgrade your project depends, but what happens when you're using a ruby app/script on your system and you system wide upgrade?
[16:35:45] tubbo: means i don't have to `chruby $whatever` before doing the command
[16:36:49] tuelz: tubbo: you can use .ruby-version and never type that
[16:36:59] shibly: https://bpaste.net/show/b81edef4acb5 , can anyone tell me why i am getting this error?
[16:37:29] shibly: chruby ruby-2.2 set the default ruby for me
[16:37:47] lalalaaa: Hi! Anyone know what's up with `NoMethodError: undefined method `register_preprocessor' for nil:NilClass` here? https://gist.github.com/anonymous/a25f30a887106872a016
[16:37:50] lalalaaa: My app is offline nooooooo!!!
[16:38:43] tubbo: tuelz: ok this is gonna get a little personal, but i use a custom app template to initialize rails apps, and it places a `.ruby-version` in the dir the rails app is gonna go in, but it keys that version off of the version of ruby that was used to run `rails`. so i have to `chruby` right before i do it otherwise it will try to install gems to the system ruby
[16:38:50] tubbo: s/to the system ruby/with the system ruby
[16:39:12] tubbo: but, for example, i also have the heroku toolbelt and travis CLI on this box, and they're installed to system
[16:40:46] nertzy: has joined #RubyOnRails
[16:41:00] tuelz: ahh, interesting. Personally I think I'd have more luck with a .ruby-version in my ~/scripts/ or something and run them from there
[16:41:03] mbreedlove: has joined #RubyOnRails
[16:41:06] StevenXL: Hi everyone.
[16:41:38] czerasz: has joined #RubyOnRails
[16:41:44] StevenXL: I am trying to run javascript code (returned from teh server) that dismisses a modal and then adds a new selection to a select element.
[16:41:47] StevenXL: The code is here:
[16:41:48] StevenXL: https://gist.github.com/StevenXL/43d7f37ac18216df7c61
[16:41:57] tubbo: lalalaaa: did you happen to just upgrade to sprockets-rails 3?
[16:42:05] Pazician: has joined #RubyOnRails
[16:42:13] tubbo: because i'm pretty sure they changed that preprocessor shit and that's why we haven't been able to upgrade yet (we also use i18n.js)
[16:42:52] StevenXL: I am running into problems on line 9. When I add that line to the server's response, 1) the modal no longer closes, and 2) I am not actually loading anything into the select element on the page behind the modal.
[16:43:39] shibabu: has joined #RubyOnRails
[16:43:41] StevenXL: if that code is wrong - actually, not if, it is wrong - I'm not sure why it is impacting the ability of the modal to close, since that method runs beforehand.
[16:43:52] chouhoulis: has joined #RubyOnRails
[16:44:09] gambl0re: has joined #RubyOnRails
[16:44:11] tubbo: stevenxl: are any errors being thrown in the JS console?
[16:44:14] tubbo: (chrome dev tools)
[16:44:33] StevenXL: No I didn't see any. Let me try again.
[16:44:39] jottr: has joined #RubyOnRails
[16:45:28] tubbo: stevenxl: ahh i think i see your problem
[16:45:55] tubbo: stevenxl: `$('#event_location_id').append(<%= snippet %>)`, if snippet is 'foo', will be `$('#event_location_id').append(foo)`, and since `foo` isn't a variable you're probably getting an undefined variable error.
[16:46:51] tuelz: it looks like snippet is a string
[16:46:53] tubbo: stevenxl: so what you need to do here is to wrap it in a string, like `$('#event_location_id').append("<%= j snippet %>");`. i added that `j` there because it will escape the string so it won't break quotes in JS and cause a problem again for any reason: http://api.rubyonrails.org/classes/ActionView/Helpers/JavaScriptHelper.html#method-i-escape_javascript
[16:46:56] lalalaaa: tubbo: This was after bundle update, yeah
[16:47:18] lalalaaa: tubbo: Thanks for letting me know though! So what should I do? I'm using Rails 4.2.4 right now, should I just downgrade?
[16:47:20] alphaatom: has joined #RubyOnRails
[16:47:22] tubbo: tuelz: that doesn't matter, because it's not being output as a string. in regular markup, "everything is a string", but since this is being evaluated as JS code, it's not evaluating it like a string
[16:47:22] tuelz: or will erb not return it enclosed in "s?
[16:47:42] tubbo: lalalaaa: yeah, what we've done is just specifying `gem 'sprockets-rails', '~> 2'` in our Gemfile until we can resolve it.
[16:47:50] StevenXL: dang, let m try again
[16:48:31] alphaatom: has joined #RubyOnRails
[16:50:19] shibly: Is coffee-rails the coffee-script?
[16:50:45] lalalaaa: tubbo: Thanks again man it worked perfectly
[16:51:06] Hates_: shibly: coffee-rails is the coffeescript adapter for rails
[16:51:08] tubbo: shibly: it's a rails integration for coffee-script, adds the generator hooks and sprockets preprocessor
[16:51:43] StevenXL: tubbo: that was exactly the problem. Thank you. That would have taken hours - nay, years - of debugging.
[16:51:52] shibly: So no need to do : gem install coffee-script?
[16:51:57] StevenXL: Unfortunately, it's not actually appending anything to my select element.
[16:52:05] StevenXL: let me see if I can do it manually in the console first.
[16:52:38] Hates_: shibly: no, coffee-rails will bring it in
[16:53:11] axilla_: has left #RubyOnRails: ()
[16:53:13] sandstrom: has joined #RubyOnRails
[16:53:16] Axilla: has joined #RubyOnRails
[16:53:24] Axilla: hey all how can I require that a form value is present if another checkbox in teh form is set to true? https://gist.github.com/travisdmathis/c5e613f65a809d263ff5
[16:53:28] ElFerna: has joined #RubyOnRails
[16:53:28] StevenXL: ok so this code: $('#event_location_id').append('<option value="99">Hello</option>')
[16:53:32] StevenXL: works in teh console
[16:53:34] tubbo: shibly: you shouldn't really be manually `gem install`ing anything.
[16:53:41] moeabdol: has joined #RubyOnRails
[16:53:47] tubbo: shibly: like, if it relates to your rails app, it should be in Gemfile.
[16:53:52] rgtk: has joined #RubyOnRails
[16:54:22] Axilla: i've tried a Proc and :symbol
[16:55:34] tubbo: axilla: when i need to do this i usually just create a private method, so my validation might read `validates :folder_id, presence: true, if: :within_folder?`, and then within_folder? would be defined as checking whether whatever the checkbox attribute is called is set/true
[16:56:15] tubbo: axilla: not sure what your checkbox is called or if it's actually being set on the model as persisted data
[16:56:27] StevenXL: odd. it works in the javascript console, but not when I send that as a script
[16:56:47] shibly: Error: https://bpaste.net/show/271471e53426
[16:56:49] StevenXL: maybe it can't find the $('#event_location_id') element.
[16:56:53] shibly: for localhost:3000
[16:56:55] StevenXL: i should put a debugger in there
[16:57:04] shibly: root 'welcome#index'
[16:57:04] Elion: has joined #RubyOnRails
[16:57:05] Elion: has joined #RubyOnRails
[16:57:06] tubbo: stevenxl: that might be true.
[16:57:12] tubbo: yeah, debugger in JS is my shit :D
[16:57:38] tubbo: shibly: do you have jquery-rails in your Gemfile?
[16:57:59] Axilla: tubbo: its called polling
[16:58:28] tubbo: axilla: the checkbox is called polling?
[16:58:43] Axilla: think i got it tubbo
[16:58:47] tubbo: axilla: you still haven't answered my (admittedly vague) question though...is the value of this checkbox already being saved on the model?
[16:58:51] tubbo: oh ok cool :D
[16:59:43] brupm: has joined #RubyOnRails
[16:59:52] shibly: gem 'jquery-rails'
[17:00:28] tubbo: shibly: interesting. if you just added that, make sure you run `bundle` and restart your rails server so your app picks up the change.
[17:00:42] tubbo: shibly: after doing those things, if you still have a problem let me know. we can tackle it.
[17:02:15] flashpoint9: ugh, mind is going blank so I cant even google this, what is it called when you have a file prepended with an underscore and you can embed that files code in a view?
[17:02:39] jgpawletko: has joined #RubyOnRails
[17:02:48] StevenXL: the state of everything in the debugger looks good. I'm wondering if maybe it can't find the select element because there's a lag between when the modal closes and when it gets access to teh DOM underneath the modal
[17:02:56] StevenXL: Although that sounds like I'm just making shit up.
[17:03:01] dionysus69: has joined #RubyOnRails
[17:03:09] mbreedlove: has joined #RubyOnRails
[17:03:37] shibly: tubbo: No
[17:03:49] tubbo: shibly: no what?
[17:03:59] shibly: tubbo: I have uncommented require jquery
[17:04:05] shibly: in application.js
[17:04:12] shibly: It looks it works
[17:04:28] tubbo: shibly: probably not :)
[17:04:37] tubbo: shibly: !assets
[17:04:37] helpa: shibly: http://guides.rubyonrails.org/asset_pipeline.html - The Asset Pipeline Guide by Ryan Bigg, Richard Hulse & Mohammad Typaldos
[17:04:44] tubbo: read that and learn you some sprockets
[17:06:45] lalalaaa: tubbo: So this sprockets thing is it a bug or a new change that forces all related plugins to comply?
[17:07:14] lalalaaa: I saw the image_optim gem having this problem back in 2014 as well
[17:07:37] tubbo: lalalaaa: given that it was a major version upgrade, i assume it's a new, backwards-incompatible change that forces all related plugins to apply. as long as they're following semantic versioning, that is.
[17:08:52] lalalaaa: tubbo: i see, well ain't that a bummer. i set up an issue over at i18n-js lets hope it gets tackled fast
[17:11:36] teclator: has joined #RubyOnRails
[17:12:15] tubbo: lalalaaa: that's actually why it's a best practice to use a '~> $MAJOR_VERSION_NUMBER' constraint in Gemfile for most things, you almost always want to oversee (and run tests for) upgrades to major versions, and that should be documented in your git commit history.
[17:14:06] ElFerna: has joined #RubyOnRails
[17:16:06] mbreedlove: has joined #RubyOnRails
[17:16:17] lalalaaa: tubbo: great idea..
[17:16:25] lalalaaa: yeah i've fallen into this pit one too many times now lol
[17:16:29] agit0: has joined #RubyOnRails
[17:17:59] StevenXL: tubbo: I see the problem now.
[17:18:04] yardenbar: has joined #RubyOnRails
[17:18:10] StevenXL: I'll paste the element into a gist. One second.
[17:19:29] cyfr0n: has joined #RubyOnRails
[17:19:52] ElFerna: has joined #RubyOnRails
[17:19:54] sleungcy: has joined #RubyOnRails
[17:20:02] lacrymology: has joined #RubyOnRails
[17:20:12] lacrymol1gy: has joined #RubyOnRails
[17:20:44] StevenXL: https://gist.github.com/StevenXL/102ef7c36f7d874705ec
[17:21:02] StevenXL: As you can see, it is inserting a string, when really I want to insert another option element.
[17:21:54] bronson: has joined #RubyOnRails
[17:22:07] jessemcgilallen: has joined #RubyOnRails
[17:22:20] celly: has joined #RubyOnRails
[17:23:45] Cervajz: has joined #RubyOnRails
[17:24:07] rodfersou: has joined #RubyOnRails
[17:24:21] StevenXL: do you think I need to parse that HTML string into an html element first
[17:24:23] StevenXL: and then append that?
[17:24:47] lacrymology: I have this concern for models, I want to make sure a controller calls for_dates on a model that includes it, but rspec is having a hard time stubbing methods inherited from a concern. Does anyone have a trick for it?
[17:24:51] lacrymology: http://dpaste.com/0WXK1PA
[17:26:35] LetItSnow-y: has joined #RubyOnRails
[17:27:03] Fire-Dragon-DoL: has joined #RubyOnRails
[17:27:36] Cervajz_: has joined #RubyOnRails
[17:31:40] doodlehaus: has joined #RubyOnRails
[17:32:02] lacrymology: has joined #RubyOnRails
[17:34:14] Spami: has joined #RubyOnRails
[17:34:22] Cervajz: has joined #RubyOnRails
[17:36:23] safety_cut: has joined #RubyOnRails
[17:36:42] draig: has joined #RubyOnRails
[17:37:07] benlieb: has joined #RubyOnRails
[17:37:45] safety_c_: has joined #RubyOnRails
[17:39:08] Cervajz: has joined #RubyOnRails
[17:39:17] shanemcd: has joined #RubyOnRails
[17:39:32] smathy: lacrymology, can you be more specific than "is having a hard time"
[17:40:52] centrx: has joined #RubyOnRails
[17:41:19] _Tariq: has joined #RubyOnRails
[17:44:16] StevenXL: In a js.erb file, am I writing erb or am I writing javascript?
[17:44:20] StevenXL: or coffeescript?
[17:44:52] moeabdol: has joined #RubyOnRails
[17:45:04] nocontrol: has joined #RubyOnRails
[17:45:18] momomomomo: has joined #RubyOnRails
[17:45:19] Cervajz: has joined #RubyOnRails
[17:46:31] markh: has joined #RubyOnRails
[17:47:09] ibouvousaime: has joined #RubyOnRails
[17:48:34] gambl0re: has joined #RubyOnRails
[17:48:47] smathy: stevenxl, you're writing JS which optionally has ERB tags in it too.
[17:51:31] agit0: has joined #RubyOnRails
[17:51:32] jds: has joined #RubyOnRails
[17:53:14] fwaokda: anyone use the ransack gem? I'm using advanced mode and am wondering what the best method would be to prevent a user from executing a search that would return a large result set
[17:53:16] Oliphaunte: has joined #RubyOnRails
[17:54:49] shanemcd_: has joined #RubyOnRails
[17:55:46] tetraktys: has joined #RubyOnRails
[17:56:02] crystal77: has joined #RubyOnRails
[17:56:11] rubyonrails400: has joined #RubyOnRails
[17:58:03] StevenXL: smathy: thanks
[17:58:14] iamse7en: has joined #RubyOnRails
[17:59:17] iamse7en: To anyone willing to help. I have a beginner Q on a custom class method. Much thanks! https://gist.github.com/anonymous/58af8cc56df07c62a960
[17:59:23] ruind: has joined #RubyOnRails
[18:00:53] centrx: iamse7en, Team.matchup returns what's on the last line of that method
[18:00:59] centrx: iamse7en, Which is a decimal (number)
[18:01:29] smathy: stevenxl, remember the `j` method, to escape the output of any ERB you inject as a string. Eg. alert( "<%= j some_method %>" );
[18:01:49] iamse7en: centrx: ah. okay. how do I return the home_team_win_probability for that matchup? (instead of the last line)
[18:01:54] centrx: iamse7en, Also, when using a setter, you want it to begin with "self.", otherwise it will create a local variable
[18:02:20] centrx: iamse7en, What do you want @matchup to be?
[18:02:51] kmckelvi1: has joined #RubyOnRails
[18:02:51] bronson: has joined #RubyOnRails
[18:03:08] pipework: centrx: a lasting, loving relationship.
[18:03:18] iamse7en: I just want to show the win probability for each team in the view. self.matchup does those calculations in team model
[18:03:18] Palsson: has joined #RubyOnRails
[18:03:39] ruind: creating a site that will provide data (tax rates, etc) for a set of Towns. I'd like to display the data per year with a route that will map to site.com/<year>/<town_name>/ Currently I have a Towns model, as the top level. Should I structure models with Year as the top level? (i.e. Year has_many Towns) or the other way around (Towns has_many years). Alternatively, should I put this all in one big table where each row has a town name and a year?
[18:03:39] ruind: Thoughts?
[18:03:53] smathy: `@matchup.home_team_win_probability` suggests they want it to be self.new with the attrs set, but holy crap that's messy ruby.
[18:05:51] rubyonrails400: is there a reason why localhost:3000 works only when i execute the command "bundle exec rails s -b 0.0.0.0" and not the good old "rails s" ?
[18:07:16] fschuindt: has joined #RubyOnRails
[18:07:33] fschuindt: How can I retrieve a model hash of attributes including the AR associations?
[18:09:16] flashpoint9: has joined #RubyOnRails
[18:09:35] smathy: ruind, I think you're really want something like a model called Rate and `Town has_many :rates` and the Rate has a property of year as well as the other per-year data like tax_rate etc.
[18:09:47] claytonzaugg: has joined #RubyOnRails
[18:09:47] smathy: ruind, otherwise where are you actually storing the tax_rate value itself?
[18:10:08] mostlybadfly: has joined #RubyOnRails
[18:10:23] smathy: fschuindt, are you looking for your_model.attributes ?
[18:10:31] gmci: has joined #RubyOnRails
[18:11:09] fschuindt: smathy: No, it has to include the association objects too
[18:11:25] meoblast001: has joined #RubyOnRails
[18:11:27] smathy: rubyonrails400, because `rails s` is calling the system rails which doesn't know about your gems, if you have a `bin/rails` then you can use that, you can make that a bare `rails` by adding `./bin` to the front of your PATH.
[18:12:01] smathy: fschuindt, oh sorry, I missed that. What are you actually trying to do here? Is this for a JSON response or something?
[18:12:40] centrx: pipework, https://www.youtube.com/watch?v=Tvne48F0Eqw
[18:12:49] Oliphaunte: has joined #RubyOnRails
[18:13:10] rubyonrails400: thank you @smathy, i'll look into that :)
[18:13:27] smathy: rubyonrails400, you're welcome.
[18:13:30] ruind: smathy, thats interesting. I dont think that will work because I want to provide other town data like average home value/cost, population, etc
[18:13:31] lacrymology: smathy: it throws an error saying that the model doesn't implement that method. I'm debugging it, and it's not actually the model who's getting it but AssociationRelation, and it goes through `method_missing` anyway, so.. it's basically true
[18:14:13] smathy: lacrymology, copy and paste the actual error please.
[18:14:31] ruind: smathy, right now I have 1 year of data, and it is all stored in one table. Each town is 1 row, with columns of the various metrics
[18:14:57] smathy: ruind, right, so that's not going to work when you have > 1 year of data is it :)
[18:15:03] centrx: has joined #RubyOnRails
[18:15:11] ruind: smathy, exactly.
[18:15:39] ruind: I mean it could.... I could just filter on year, but that gets messy, and is probably not "the rails way"
[18:16:21] smathy: ruind, I'm not sure sure you've understood the point I was trying to make. You're asking about, and focused entirely on, the year. But the data itself is the problem. In 2016 how will you see the tax_rate for 2015 with your current structure?
[18:16:47] smathy: ruind, ...that's why I'm saying that you need a separate model for all the data, not just the year.
[18:17:04] ruind: site.com/2015 would provide all towns data for 2015. site.com/town would provide data for each year. site.com/2015/town will provide data just for that town for that year.
[18:17:18] lacrymology: smathy: what the.. I had been playing around and it.. worked now.
[18:17:25] lacrymology: I wonder if I had some typo before
[18:17:28] smathy: lacrymology, well done.
[18:17:33] Oliphaunte: has joined #RubyOnRails
[18:17:49] smathy: lacrymology, probably :) Or maybe you were trying to stub out an instance method, that's a common mistake people make.
[18:18:02] ruind: smathy, ok, I think I see
[18:18:14] ruind: hummm... importing the data is going to be a PITA that way.
[18:18:22] lacrymology: no, it's always been a scope, and my call was always the same. I mean, semantically it hasn't changed. It was probably a typo in the method name
[18:19:23] jamto11: has joined #RubyOnRails
[18:20:08] ruind: hummm... each rate would only be associated with one town:year tuple
[18:20:53] ruind: oh... but a Town :has_many rates
[18:22:37] nettoweb: has joined #RubyOnRails
[18:22:53] smathy: ruind, right, and then you could have something like: Town has_one :current_rate, class_name: :rate, -> { where rate: { year: Time.current.year } } Or something like that.
[18:25:05] SteenJobs: has joined #RubyOnRails
[18:25:08] Hans267: has joined #RubyOnRails
[18:25:17] USvER: has joined #RubyOnRails
[18:25:54] ruind: smathy, thanks
[18:29:37] Palsson: has joined #RubyOnRails
[18:29:42] ibouvousaime: has joined #RubyOnRails
[18:30:22] Oliphaunte: has joined #RubyOnRails
[18:31:30] smathy: ruind, you're welcome.
[18:32:05] A124: has joined #RubyOnRails
[18:32:19] jottr: has joined #RubyOnRails
[18:35:00] srinidhi: has joined #RubyOnRails
[18:37:10] lindii_: thought rails 5 final release was before 2016
[18:38:36] tubbo: lindii_: http://rails5countdown.com/ ;)
[18:38:52] tubbo: lindii_: j/k...as soon as you see it come into public beta/release candidates, it's only a matter of weeks.
[18:39:29] lindii_: tubbo: 682 days isnt too much lol
[18:39:42] build22: has joined #RubyOnRails
[18:39:51] shanemcd: has joined #RubyOnRails
[18:40:51] gavit: https://gist.github.com/gavit/d530c04f4086a0a5385a What could be the cause for 'Incomplete response received from application'?
[18:41:09] lindii_: i believe something is wrong with tht
[18:41:35] tubbo: gavit: looks like your app server (e.g. passenger) is crashing
[18:41:43] tubbo: try running `rails server` manually to see what the error is
[18:43:25] Oliphaunte: has joined #RubyOnRails
[18:43:34] gavit: it seems to work tubbo when running rails server on my server I get a 502 bad gateway error
[18:45:14] johnnegron: has joined #RubyOnRails
[18:46:04] gavit: sorry, didnt change the database. lemme test again
[18:46:25] gavit: y: GeometryComponentFilter.cpp:34: virtual void geos::geom::GeometryComponentFilter::filter_ro(const geos::geom::Geometry*): Assertion `0' failed.
[18:47:46] gavit: I am running centos like in https://trac.osgeo.org/geos/ticket/535
[18:47:50] gavit: but this is 3 years old..
[18:52:47] gavit: https://gist.github.com/gavit/d530c04f4086a0a5385a#file-dev-server-output-L1
[18:53:40] inferno5677: has joined #RubyOnRails
[18:56:51] czerasz: has joined #RubyOnRails
[18:57:12] StevenXL: has left #RubyOnRails: ()
[18:57:52] StevenXL: has joined #RubyOnRails
[18:59:15] gavit: tubbo: an y ideas?
[18:59:39] tubbo: gavit: did you try maybe rebuilding whatever package that is?
[18:59:50] tubbo: seems like a problem with your geo library
[19:00:12] gavit: tubbo: rebuilding geos? or geos-devel?
[19:00:22] tubbo: gavit: i don't know, whatever you installed.
[19:00:39] atomical: has joined #RubyOnRails
[19:01:44] Oliphaunte: has joined #RubyOnRails
[19:02:46] manfrin: has joined #RubyOnRails
[19:03:15] iFrey: has joined #RubyOnRails
[19:04:41] rikkipitt: has joined #RubyOnRails
[19:04:44] mices: i want a drop down menu to appear when a link is hovered, anyone can get me started
[19:05:03] ElFerna: has joined #RubyOnRails
[19:06:13] Coldblackice: has joined #RubyOnRails
[19:06:25] TheMoonMaster: has joined #RubyOnRails
[19:06:31] SteenJobs: has joined #RubyOnRails
[19:10:31] celly: has joined #RubyOnRails
[19:10:49] Oliphaunte: has joined #RubyOnRails
[19:12:28] iFrey: mices: I'm learning ruby and rails, but i think you should look how to do that in javascript, jquery...
[19:12:51] iFrey: has joined #RubyOnRails
[19:12:57] tubbo: mices: MDN
[19:13:05] p8m: has joined #RubyOnRails
[19:13:30] tubbo: shows you all about the events you'll need to bind to
[19:13:55] iFrey: has joined #RubyOnRails
[19:14:04] rhizome: has joined #RubyOnRails
[19:14:52] iFrey: what is MDN?
[19:15:03] lindii_: is actioncable stable to use with 4.2?
[19:15:18] tubbo: iFrey: the documentation of the web https://developer.mozilla.org/
[19:15:23] tubbo: lindii_: probably not.
[19:15:58] mrbubbles: has joined #RubyOnRails
[19:18:16] Oliphaunte: has joined #RubyOnRails
[19:20:16] mices: tubbo: it's not a form issue
[19:20:42] tubbo: mices: so? MDN has documentation for javascript events too
[19:20:45] safety_cut: has joined #RubyOnRails
[19:21:21] jessemcgilallen: has joined #RubyOnRails
[19:22:16] djbkd: has joined #RubyOnRails
[19:22:21] safety_c_: has joined #RubyOnRails
[19:23:00] PedramT: has joined #RubyOnRails
[19:23:13] safetypin: has joined #RubyOnRails
[19:24:38] safetypin: has joined #RubyOnRails
[19:25:54] arup_r: has joined #RubyOnRails
[19:28:15] build22: has joined #RubyOnRails
[19:29:04] barce: has joined #RubyOnRails
[19:31:42] gavit: tubbo: maybe I should update gcc: https://trac.osgeo.org/geos/ticket/535#comment:12
[19:32:20] Cervajz_: has joined #RubyOnRails
[19:32:26] uberjar: has joined #RubyOnRails
[19:33:06] cassioscabral: has joined #RubyOnRails
[19:33:26] tubbo: gavit: probably can't hurt
[19:33:34] iamse7en: has joined #RubyOnRails
[19:34:25] uberjar: Hi. I want to rate limit the number of connections that a single IP address can make to my rails application in order to prevent a single user from being able to overload it...
[19:34:44] tubbo: uberjar: https://github.com/kickstarter/rack-attack
[19:34:45] uberjar: what is a reasonable rate limit that will still allow almost all web spiders to do their work
[19:35:11] uberjar: tubbo: that's what I'm playing with presently
[19:35:24] nfk|laptop: has joined #RubyOnRails
[19:35:31] momomomomo: has joined #RubyOnRails
[19:35:33] tubbo: ok just making sure
[19:35:37] uberjar: I know what rate limits seem apprroprate for my internal services, but for the public facing stuff I'm worried I'll break spiders if I get too aggressive with it
[19:35:40] doodlehaus: has joined #RubyOnRails
[19:36:00] tubbo: uberjar: well those spiders usually come from the same IPs or domains, so why not just whitelist that?
[19:36:34] uberjar: tubbo: I don't want to be prejudice or biased against new and upcomming indexes who's IPs I may not even know about :)
[19:36:39] p8m: has joined #RubyOnRails
[19:37:25] doctorly: has joined #RubyOnRails
[19:38:11] snguyen: has joined #RubyOnRails
[19:38:21] teclator: has joined #RubyOnRails
[19:38:29] agit0: has joined #RubyOnRails
[19:39:00] zpe: has joined #RubyOnRails
[19:39:27] Oliphaunte: has joined #RubyOnRails
[19:39:36] ur5us: has joined #RubyOnRails
[19:40:55] blackmesa: has joined #RubyOnRails
[19:42:52] unreal_: has joined #RubyOnRails
[19:43:17] doctorly: Hey everyone. I completed the third draft of my resume, I basically just took (almost) everything redundant out. I'm thinking about expanding my skills section, or having a seperate skills section where I describe some things instead of just buzzwords. Let me know what sounds good etc. Thanks for the help everyone, my resume is a lot smaller but I feel like it will look a lot better when applying for
[19:43:23] doctorly: RoR jobs. https://gist.github.com/brendenyule/d3a6fc83243ecc9e0284
[19:44:33] tubbo: resume objectives are so werid
[19:44:38] tubbo: not sure if i even have one
[19:45:17] kadoppe: has joined #RubyOnRails
[19:45:19] uberjar: doctorly: "ruby on rails".capitalize!
[19:46:08] shibabu: has joined #RubyOnRails
[19:46:26] doctorly: uberjar: yeah, ignore punctuation and formatting for now. I am going to go through and move everything, spell everything later.
[19:47:23] doctorly: uberjar: good catch though, just changed it on my local copy.
[19:47:37] yfeldblum: has joined #RubyOnRails
[19:47:52] TheMonster: if I'm using default Rails.cache, wouldn't it be concurrent for all threads running on Heroku? I'm trying to use it to prevent some race condition
[19:48:16] FailBit: hint: try a mutex
[19:48:39] iFrey: has joined #RubyOnRails
[19:48:58] uberjar: TheMonster: it depends on what cache you have setup.. Rails.cache can use a multitude of different underlying cache technolgies
[19:49:06] TheMonster: oh... Thanks FailBit :)
[19:49:36] uberjar: TheMonster: if you're using Redis or Memcache then you won't need to syncronize first
[19:49:52] FailBit: also, you can alternatively try to avoid getting yourself into that by using e.g.
[19:49:55] FailBit: thread-local storage
[19:50:33] FailBit: Mutexes are O(1) but they still come with a cost
[19:50:33] JakFrist: has joined #RubyOnRails
[19:50:38] _djbkd: has joined #RubyOnRails
[19:50:46] TheMonster: uberjar: I'm using the default memorystore
[19:51:47] brandonc_: has joined #RubyOnRails
[19:52:03] brandonc_: has left #RubyOnRails: ()
[19:52:23] FailBit: TheMonster: also, try using :race_condition_ttl if your caches are having syncronization problems
[19:52:34] FailBit: (where race_condition_ttl >= the amount of time it takes to generate the cached content)
[19:52:52] brandoncordell: has joined #RubyOnRails
[19:52:53] uberjar: doctorly: the part about the "weekly meeting" to be honstly sounds like noise.. (honest feedback)
[19:53:20] brandoncordell: has left #RubyOnRails: ()
[19:53:21] TheMonster: I want to prevent some controller method from entering a block and instead redirecting somewhere if that method is already being processed by another request with the same parameter value
[19:53:54] brandoncordell: has joined #RubyOnRails
[19:54:15] uberjar: doctorly: instead of talking about the fact that you had meetings.. you could clearify more about the last company "Social Jobs LLC".. how many employees, did it have funding ? or was it just an LLC your next door neighbor bought on legalzoom
[19:54:25] brandoncordell: how do I generate a project with rails5 beta? I've installed the gem but running rails -v gives me 4.2.5
[19:54:27] FailBit: TheMonster: mutex it is
[19:55:56] tubbo: brandoncordell: does rails __5.0.0.__ new $app_name work?
[19:56:00] doctorly: uberjar: Yeah, but I do need to convey that I work with people
[19:56:03] tubbo: or it might be rails _5.0.0_ but yeah
[19:56:07] tubbo: that's how you switch versions
[19:56:18] doctorly: uberjar: and I know employers might skip the initial paragraph a lot of the time
[19:56:59] doctorly: uberjar: but I do realize it is noisy, I need to find a better way to state that information
[19:57:02] uberjar: doctorly: "participated in a venture backed web startup with 5 other full-time developers. Together we designed a ???.. using rails???"
[19:57:21] djbkd: has joined #RubyOnRails
[19:57:28] brandoncordell: tubbo: rails _5.0.0.beta1_ new $app_name did the trick!
[19:57:34] tubbo: brandoncordell: there ya go
[19:57:39] tubbo: it has to be the same name as the version
[19:57:49] tubbo: you can do that with back versions e.g. rails _2.3.18_ oldskool
[19:57:51] brandoncordell: thanks man, I always forget the _*_
[19:57:51] stannard_: has joined #RubyOnRails
[19:58:20] gavit: tubbo: do you know how I install the geos library with the new gcc?
[19:58:29] ElFerna: has joined #RubyOnRails
[19:58:38] doctorly: uberjar: I am an intern and don't know anything about finances though, I could not state something like that.
[19:59:17] shanemcd_: has joined #RubyOnRails
[19:59:17] doctorly: uberjar: that sounds a lot better though
[19:59:18] rhizome: participating in a startup is not a thing
[19:59:42] uberjar: doctorly: tons of people are fake businesses on resumes as their last jobs.. companys that only exist on paper but never had any funding, never shipped a product, etc??? if you can somehow establish that it was a tangible business
[19:59:52] uberjar: while also pointing out that there was teamwork involved
[20:00:26] uberjar: "tangible" can mean whatever you want??? just that there were X number of other people invovled makes it more real than a business name alone and no website
[20:00:54] doctorly: uberjar: the product isn't deployed for a while either. So that sounds pretty hard for me to do. Private code base as well. I have a demonstration I can show in person, but this actually sounds like a pretty big fault right now
[20:01:00] iamse7en: if anyone is willing to help with this. a beginner trying to create a custom class method that does some math calculations (then I just want to call those calculations in the view) https://gist.github.com/anonymous/39fe0b06767ec3a3332a]
[20:02:06] doctorly: uberjar: So it sounds like I am in the exact situation I shouldn't be in by what you have said, lmao
[20:02:34] uberjar: doctorly: ah.. ok that's fair. All I meant is that if it did have those things (employees, products shipped, website, etc) .. point them out
[20:02:43] uberjar: if it doesnt'.. then work with what youv'e got :)
[20:02:52] Oliphaunte: has joined #RubyOnRails
[20:03:03] JakFrist: has joined #RubyOnRails
[20:03:06] tubbo: doctorly: so in other words, you don't have any experience working for a company. i mean, unless it was paying you.
[20:03:14] tubbo: and if it was paying you, the money must have come from somewhere.
[20:03:34] baweaver: has joined #RubyOnRails
[20:03:45] tubbo: doctorly: fwiw, even if you're an intern, there's nothing stopping you from asking about your company's finances.
[20:03:45] uberjar: some people will say you shoudln't put a company on your resume if you aren't going to be able to file a return with the company's name on it
[20:04:09] uberjar: for a lot of teams reviewing resumes thats the bottom line of it it was "real" or not
[20:04:31] doctorly: uberjar: That doesn't make sense at all though, if it my main experience
[20:04:49] doctorly: uberjar: of course my future employer would be interested in that experience
[20:04:52] uberjar: assuming no product was shipped.. no other artifacts of "realness"??? then "did he get paid" is the bottom line
[20:04:55] uberjar: patents, etc
[20:05:18] doctorly: uberjar: and internships are so important on resumes, I am really confused by that advice
[20:05:50] doctorly: uberjar: and I do have a demonstration for actually interviews
[20:05:53] uberjar: doctorly: internships are great! as long as they are not fake internships at afake companies
[20:06:12] uberjar: and when trying to verify if it was real or not.. they will look for anything 'tangible'
[20:06:42] hardtail: has joined #RubyOnRails
[20:06:53] cyfr0n1: has joined #RubyOnRails
[20:06:59] manfrin: has joined #RubyOnRails
[20:07:04] FailBit: module_function vs extend self vs self.module_function
[20:07:18] doctorly: uberjar: Yeah that is true, but I believe I would get an interview without having to directly prove that first
[20:07:23] FailBit: leaning towards self.module_function
[20:07:31] unreal: has joined #RubyOnRails
[20:07:38] doctorly: uberjar: and like I said, I have proof, when I am in an interview
[20:07:55] doctorly: uberjar: But at this point, I don't have any other option lmfao
[20:08:17] Oliphaunte: has joined #RubyOnRails
[20:08:59] doctorly: Yeah, I might just ask about financing and some sort of proof. So I can have more to work with
[20:09:02] lemur: has joined #RubyOnRails
[20:09:33] uberjar: doctorly: ok superb. well best of luck.. looks fine to me
[20:10:04] jottr: has joined #RubyOnRails
[20:10:31] doctorly: uberjar: Except it looks like I'm working somewhere fake lmao
[20:10:40] uberjar: ask if they have actual employees who get paid money..
[20:11:02] gavit: https://trac.osgeo.org/geos/ticket/535#comment:33 <- anyone have an idea of what I can do?
[20:11:09] PedramT: has joined #RubyOnRails
[20:11:36] FailBit: >reopening a 2 year old report
[20:11:38] uberjar: if so, then it wasn't "fake". If nobody was getting paid, and nothing was shipped, and there wasn't an office, etc, etc, etc then.. it's hard for a resume reviewer to tell if it was just a your dorm mates purchased for $100
[20:11:53] uberjar: just an LLC I mean
[20:12:16] uberjar: used only for the purpose of making resumes..
[20:14:44] emilkarl: has joined #RubyOnRails
[20:16:34] doctorly: uberjar: Yeah, I understand that, but I don't have anything else to work with, like I was saying.
[20:16:40] nfk|laptop: has joined #RubyOnRails
[20:17:21] DoubleMalt: has joined #RubyOnRails
[20:20:10] uberjar: doctorly: bottom line is your interview and practical experience is what will count.. like you said
[20:20:11] Frem: has joined #RubyOnRails
[20:20:53] jessemcgilallen: has joined #RubyOnRails
[20:21:37] aevitas: has joined #RubyOnRails
[20:23:05] replay: has joined #RubyOnRails
[20:23:33] djbkd: has joined #RubyOnRails
[20:24:15] djbkd: has joined #RubyOnRails
[20:25:09] bronson: has joined #RubyOnRails
[20:27:54] brupm: has joined #RubyOnRails
[20:28:03] joshkovach: has joined #RubyOnRails
[20:29:23] aevitas: has left #RubyOnRails: ()
[20:31:45] nfk|laptop: has joined #RubyOnRails
[20:33:37] allcentury: has joined #RubyOnRails
[20:35:34] lacrymology: is there a way for me to set a header for all requests in my rspec controller specs?
[20:39:45] Papierkorb: Are people in here using flexboxes?
[20:39:56] tubbo: Papierkorb: i have
[20:40:12] tubbo: fun to play iwth
[20:40:30] dnewkerk: has joined #RubyOnRails
[20:40:35] tubbo: kinda hard to understand what its best application is though
[20:40:39] Papierkorb: In germany (Which is my target market, don't care about people elsewhere for this) 87% of all users can see them. Is that .. 'enough'?
[20:41:35] Oliphaunte: has left #RubyOnRails: ()
[20:41:37] Oliphaunte: has joined #RubyOnRails
[20:42:27] tubbo: Papierkorb: depends on whether YOUR target market is going to see it. by "target market" i'm taking into account a lot more than simply their nationality
[20:42:52] tubbo: we need to factor in age, interests, etc., as well
[20:43:20] tubbo: but mostly the browser choices thing comes down to nationality and age. my parents, for example, are using whatever browser came with their computer, so it was originally IE and now it's Safari.
[20:43:21] Papierkorb: tubbo: to decide if to use a HTML5 feature ..?
[20:43:25] tubbo: they won't switch to Firefox or Chrome.
[20:44:20] tubbo: Papierkorb: sure, like for example if IE usage is only 10% of the market, but you're building a product for a company that only runs the latest Windows XP, then you shouldn't really give a shit about HTML5 at all nor should you care about maintaining compatibility between browser vendors.
[20:44:44] Pumukel: has joined #RubyOnRails
[20:45:02] Papierkorb: tubbo: sure. Well, that thing is more 'hip'. And one-man-personal-project too, so I don't have the resources to support everything and their motehr :)
[20:45:03] tubbo: Papierkorb: or if you're building a product that a lot of old and/or poor people might be using, there's less chance that those people will be savvy enough to use a "decent", standards-compliant browser, like Firefox or Chrome.
[20:45:39] tubbo: Papierkorb: generally, if you stick with one of the popular CSS frameworks and use jQuery instead of touching the DOM APIs directly, you will be fine.
[20:45:41] atomical: has joined #RubyOnRails
[20:46:02] tubbo: until MS drops support for versions of IE that don't support CSS3 features, i'm not banking on it.
[20:46:12] tubbo: because once that happens, grids will be a thing of the past.
[20:46:52] Oliphaunte: Will you really need flexbox in your project?
[20:47:15] Oliphaunte: Or are you just wondering about it
[20:48:22] Papierkorb: Oliphaunte: I have one no-go for the entire project: Don't. Use. JavaScript. For. Layouts. ??? So it would help for my situation. And if I can have one less float hack (float: left, right depending on media queries magically doing the right thing if you're lucky feels like a hack to me)
[20:49:21] Oliphaunte: Any particular reason for no javaScript? Just wondering
[20:49:40] Papierkorb: I have the freedom to decide this after all. Non profit personal stuff. Even if I were to publicize it, it will take another year or two for that and by then support should be good enough I guess. What I'm building is not of interest for the last 5 IE6 users :)
[20:50:10] Oliphaunte: I was on an ie7 compatible project a week ago so I can udnerstand
[20:50:41] dnewkerk: I???m lucky for the main Rails app I work on, my company doesn???t give a hoot about anything other than cutting edge modern browsers
[20:50:41] Oliphaunte: Would you say your product is geared more towards those more likely to use chrome or firefox than safari or IE?
[20:50:59] Papierkorb: Oliphaunte: For layouting? Yes. First, it's just not the right technology to use. Second, the user experience suffers greatly: Media queries come for free, giving the user a responsive feedback on their (mobile?) device. JS is more laggy. Also, JS is more battery hungry
[20:52:01] Oliphaunte: Hmm in that case, flexbox should be fine
[20:52:16] iamse7en: if anyone is willing to help with this. a beginner trying to create a custom class method that does some math calculations (then I just want to call those calculations in the view) https://gist.github.com/anonymous/39fe0b06767ec3a3332a]
[20:52:22] Oliphaunte: If your client only cares for cutting edge,then that's fine
[20:52:30] Oliphaunte: I mean, I think
[20:52:47] Oliphaunte: I've experienced problems with flexbox on safari, but aside form that, it worked fine for me
[20:53:20] Oliphaunte: But that's just me. idk what others might think
[20:53:30] peeja: has joined #RubyOnRails
[20:53:44] Papierkorb: Oliphaunte: I *am* the client as of now ;)
[20:54:34] nfk|laptop: has joined #RubyOnRails
[20:54:50] Oliphaunte: I'd say go ahead, if you ever needed to capture the remainder market, I'm sure you'd be in a position to spend some time and/or money to make your project backwards compatible
[20:55:37] FernandoBasso: has joined #RubyOnRails
[20:56:19] dnewkerk: anyone else trying out Rails 5 beta yet? I???m upgrading the app I???ve been working on, so far not too many issues
[20:56:27] Papierkorb: Oliphaunte: Yeah, tbh, I guess the first thing that'd fail is some JS stuff. Thanks for the discussion
[20:56:59] Oliphaunte: Sure, good luck on the project
[20:57:45] StevenXL: has joined #RubyOnRails
[20:58:36] shanemcd: has joined #RubyOnRails
[20:58:42] celly: has joined #RubyOnRails
[20:59:30] shanemcd_: has joined #RubyOnRails
[21:00:24] lacrymology: does anyone know if there's an easy way to have devise/password#create (the reset password endpoint) not fail if the email doesn't exist?
[21:03:21] _Tariq: has joined #RubyOnRails
[21:03:58] Papierkorb: Is there a easy way to make SCSS auto-add vendor prefixes?
[21:04:13] Papierkorb: Really don't feel like cluttering my .scss file with that redundant mess..
[21:05:22] unreal_: has joined #RubyOnRails
[21:05:58] dnewkerk: Papierkorb: autoprefixer-rails
[21:06:37] Papierkorb: dnewkerk: .. nice! Thanks
[21:06:38] agoldboi: has joined #RubyOnRails
[21:07:01] netzfisch: has joined #RubyOnRails
[21:07:16] dnewkerk: Papierkorb: if you use the bootstrap-sass gem this is already included as a dependency, otherwise you can use it on your own
[21:07:44] Aherin: has joined #RubyOnRails
[21:07:59] Papierkorb: dnewkerk: hah, yep, I already have it then
[21:11:04] Oliphaunte: has joined #RubyOnRails
[21:12:29] johnnegron: has joined #RubyOnRails
[21:13:45] atomical_: has joined #RubyOnRails
[21:14:23] AnoHito: has joined #RubyOnRails
[21:15:15] baweaver: has joined #RubyOnRails
[21:16:08] lemur: has joined #RubyOnRails
[21:16:49] mungo_slo: has joined #RubyOnRails
[21:20:13] Cervajz: has joined #RubyOnRails
[21:20:15] atomical: has joined #RubyOnRails
[21:20:54] nertzy: has joined #RubyOnRails
[21:21:01] bijjr: has joined #RubyOnRails
[21:22:18] agent_white: has joined #RubyOnRails
[21:22:59] greengriminal: has joined #RubyOnRails
[21:24:02] manfrin: has joined #RubyOnRails
[21:24:30] carlosd: has joined #RubyOnRails
[21:25:56] _Tariq: has joined #RubyOnRails
[21:27:24] shanemcd: has joined #RubyOnRails
[21:28:33] pwnd_nsfw: has joined #RubyOnRails
[21:29:58] alaing: has joined #RubyOnRails
[21:29:59] nocd: has joined #RubyOnRails
[21:30:36] alaing: has joined #RubyOnRails
[21:31:32] alaing: how do i write this so it excludes the first tr (i.e it had th): page.all('tr td').each_with_index do | tr, index |
[21:32:11] safety_cut: has joined #RubyOnRails
[21:33:44] agent_white: page.all('tr td')[1..-1].each... etc.
[21:34:11] agent_white: If excluding the first in that list is what you're looking for?
[21:34:18] JakFrist: has joined #RubyOnRails
[21:34:40] fryguy: page.all('tr td').drop(1).each.. might be clearer
[21:34:50] atomical_: has joined #RubyOnRails
[21:37:07] build22_: has joined #RubyOnRails
[21:37:51] SteenJobs: has joined #RubyOnRails
[21:39:48] alaing: thanks i'll try that
[21:40:11] ElFerna: has joined #RubyOnRails
[21:40:26] dmarr: anyone here using refile with the s3 backend? I am trying to understand how i'd update an image
[21:41:24] dmarr: filed an issue explaining what i'm seeing here https://github.com/refile/refile-s3/issues/20
[21:43:11] alaing: thanks fryguy, that worked and quiet clear with drop(1)
[21:44:30] bijjr: has joined #RubyOnRails
[21:45:24] teamcoltra: has joined #RubyOnRails
[21:45:59] sandstrom: has joined #RubyOnRails
[21:46:00] rhizome: dmarr: github issues aren't a support webboard
[21:46:07] threeminutemonta: has joined #RubyOnRails
[21:46:25] dmarr: rhizome: huh
[21:46:37] dmarr: i posted it there because it pertains to that library
[21:46:40] shibabu: has joined #RubyOnRails
[21:47:56] rhizome: are you sure it's the gem's problem and not your code?
[21:48:04] moei: has joined #RubyOnRails
[21:48:55] quazimodo: has joined #RubyOnRails
[21:48:58] dmarr: i mean its probably my code but im not sure where else to ask
[21:50:08] bronson: has joined #RubyOnRails
[21:50:56] tibra: has joined #RubyOnRails
[21:54:45] SteenJobs: has joined #RubyOnRails
[21:55:31] tectonic: has joined #RubyOnRails
[21:56:56] jaequery: has joined #RubyOnRails
[21:57:34] mdw: has joined #RubyOnRails
[21:58:59] marr: has joined #RubyOnRails
[22:00:17] zpe: has joined #RubyOnRails
[22:00:44] FooMunki: has joined #RubyOnRails
[22:01:28] jgpawletko: has joined #RubyOnRails
[22:01:58] jottr: has joined #RubyOnRails
[22:03:08] jottr_: has joined #RubyOnRails
[22:04:20] twilling: has joined #RubyOnRails
[22:04:23] atphalix: has joined #RubyOnRails
[22:04:54] lalalaaa: has joined #RubyOnRails
[22:05:22] atomical: has joined #RubyOnRails
[22:05:43] Pazician: has joined #RubyOnRails
[22:05:49] sankaber: has joined #RubyOnRails
[22:07:00] twilling: has joined #RubyOnRails
[22:07:38] atomical_: has joined #RubyOnRails
[22:07:43] mrbubbles: has joined #RubyOnRails
[22:08:02] doodlehaus: has joined #RubyOnRails
[22:08:58] [Butch]: has joined #RubyOnRails
[22:09:14] gavit: https://trac.osgeo.org/geos/ticket/535#comment:33 anyone know what
[22:09:18] gavit: I can try?
[22:09:53] gavit: I tried reinstalling it with a higher gcc, but not sure if it works like this: https://gist.github.com/gavit/da6a6a12dfdc4460f842
[22:09:55] lalalaaa: has joined #RubyOnRails
[22:12:49] wildlander: has joined #RubyOnRails
[22:13:46] Miron_: has joined #RubyOnRails
[22:16:33] Oliphaunte: has joined #RubyOnRails
[22:18:02] baash05: has joined #RubyOnRails
[22:18:32] baash05: Hey all.. Anyone using the geocoder gem? I'm looking for a little guidance.
[22:18:56] alaing: @users = create_list(:user, quantity.to_i)
[22:19:08] shanemcd: has joined #RubyOnRails
[22:19:13] alaing: create_list is a factory_girl thing
[22:19:23] yfeldblum: has joined #RubyOnRails
[22:19:25] baash05: I'm trying to see if I can track the usage, I don't see how to accomplish this in the google interface.
[22:19:26] alaing: but is it possibly to sort @users
[22:19:50] alaing: by first name/last_name?
[22:20:17] bijjr: has joined #RubyOnRails
[22:20:54] atomical: has joined #RubyOnRails
[22:21:09] baash05: alaing: are you answering, or asking something?
[22:21:21] baash05: Sorry I came late to the conversation.
[22:21:27] alaing: asking something sorrying i should have kept it together
[22:21:52] baash05: What you asking.. perhaps I can earn some karma
[22:22:31] alaing: I have this instance variable @managers = create_list(:manager, quantity.to_i)
[22:22:41] alaing: create_list calls factory_girl
[22:22:42] baash05: that's in a test?
[22:22:46] alaing: thats right
[22:23:10] alaing: I need to sort @managers into last/first name
[22:23:22] baash05: sort them into or by?
[22:23:48] baash05: sorting into implies (or I infer) grouping.
[22:23:54] benlieb: has joined #RubyOnRails
[22:24:08] alaing: I've got a report on a page and I'm looping through the report content and trying to compare it against @managers
[22:24:22] alaing: the problem is the report is sorted but @managers isn't
[22:24:45] baash05: ordered you mean? But this is a test right?
[22:24:47] alaing: sort them by
[22:24:56] alaing: yes a test
[22:26:59] alaing: baash05: this is what I have in my controller: Manager.includes(:location).joins(:user).order('users.last_name', 'users.first_name')
[22:27:20] baash05: Sorry.. still trying to help.. You have an array of managers in the @manager object, each manager would have a different name correct? Or would several of the managers in the list have the same first and last name?
[22:27:45] boorad420: has joined #RubyOnRails
[22:27:54] alaing: I dont think they would factory_girl generates random names
[22:28:47] alphaatom: has joined #RubyOnRails
[22:28:51] alaing: even if it did i would just expect there being two rows with the same first/last name
[22:29:03] boorad420: I'm trying to install a somewhat dated rails app, but I'm getting 'make' errors without much description when installing a common gem (json). Gist here: https://gist.github.com/RyanMorgan/dbf9feed77cca1e9aca0 Anyone got any suggestions? I've re-installed xcode and libxml2
[22:29:22] ElFerna: has joined #RubyOnRails
[22:29:57] baash05: quick and dirty would be to sort {|a, b| a.first_name <=> b.first_name}
[22:30:48] Maletor: has joined #RubyOnRails
[22:31:43] baash05: sort {|a, b| a.first_name != b.first_name ? a.first_name <=> b.first_name : a.last_name <=> b.last_name }
[22:31:51] baash05: I mean that would be fine for small lists.
[22:32:24] baash05: I've not worked with factory girl, so I'll have to fall back on ruby..
[22:32:25] alaing: theres only 12 managers in my list
[22:32:34] baash05: then the code above would be fine.
[22:32:38] d5sx43: has joined #RubyOnRails
[22:32:41] markh: has joined #RubyOnRails
[22:33:02] alaing: so @managers.sort
[22:33:04] build22: has joined #RubyOnRails
[22:33:19] baash05: You can do @managers.sort!
[22:33:25] baash05: this will change it in place.
[22:34:21] baash05: or tack the sort after the create_list(:manager, quantity.to_i) Like create_list(:manager, quantity.to_i).sort{ |a, b| ...}
[22:35:25] baash05: not the most elegant solution and it won't scale well.. 100 or more managers and I'd consider generating them in the right order in the first place..
[22:35:30] baash05: should be fine for a test though.
[22:36:14] alaing: @managers = @managers.sort{|a, b| a.user.first_name != b.user.first_name ? a.user.first_name <=> b.user.first_name : a.user.last_name <=> b.user.last_name }
[22:36:24] baash05: Yeah.. should do..
[22:36:42] baash05: @managers.sort!{|a, b| a.user.first_name != b.user.first_name ? a.user.first_name <=> b.user.first_name : a.user.last_name <=> b.user.last_name }
[22:36:54] nertzy: has joined #RubyOnRails
[22:36:59] baash05: Wait.. managers are users no?
[22:37:33] baash05: A managers element has a user method?
[22:38:54] alaing: expected to find text "Renner" in "Glover" (RSpec::Expectations::ExpectationNotMetError)
[22:41:21] bradleyprice: has joined #RubyOnRails
[22:42:01] cassioscabral: has joined #RubyOnRails
[22:42:54] build22_: has joined #RubyOnRails
[22:44:16] build22: has joined #RubyOnRails
[22:45:36] leofrozenyogurt: has joined #RubyOnRails
[22:45:37] bronson: has joined #RubyOnRails
[22:46:50] celly: has joined #RubyOnRails
[22:47:05] leofrozenyogurt: so super quick question, lets say i have levis 1 ,levis 2, etc and then it was levis 10, levis 11
[22:47:11] leofrozenyogurt: if i do .order("name asc")
[22:47:12] mrbubbles: has joined #RubyOnRails
[22:47:22] leofrozenyogurt: it will print levis 1, levis 10, levis 11 , levis 2
[22:51:55] twilling: has joined #RubyOnRails
[22:52:05] celly: has joined #RubyOnRails
[22:53:18] lacrymology: is there a way to chain scopes with an OR?
[22:57:13] markh: leofrozenyogurt, yeah, you're trying to sort a string
[23:00:40] alphaatom: has joined #RubyOnRails
[23:01:11] leofrozenyogurt: markh: is there a simple way to do it besides transferring it to an array
[23:01:37] rgtk: has joined #RubyOnRails
[23:01:58] shinobi_: has joined #RubyOnRails
[23:02:43] pwnd_nsfw: has joined #RubyOnRails
[23:03:28] robbyoconnor: has joined #RubyOnRails
[23:04:50] markh: not that i'm aware of, it needs to be an integer
[23:07:01] shinobi_: has joined #RubyOnRails
[23:07:21] shinobi_: What's up with the two 5.0.0 milestones on github?
[23:08:09] robbyoconnor: has joined #RubyOnRails
[23:08:26] gizmore: has joined #RubyOnRails
[23:09:20] gizless: has joined #RubyOnRails
[23:10:35] wethu: has joined #RubyOnRails
[23:12:06] pr1meshock: has joined #RubyOnRails
[23:14:38] nertzy: has joined #RubyOnRails
[23:16:21] edwinvdgraaf: has joined #RubyOnRails
[23:18:44] Oliphaunte: has joined #RubyOnRails
[23:20:01] gizmore: has joined #RubyOnRails
[23:20:28] gizmore: is there a way to make every instance to a record be the same? ... like Foo.find(1).object_id => # yields the same every time?
[23:22:11] stevenw__: has joined #RubyOnRails
[23:22:50] robbyoconnor: has joined #RubyOnRails
[23:23:17] shinobi_: Gizmore for testing?
[23:23:53] gizmore: for a different use case than a website
[23:24:19] gizmore: not for testing... general global cache of records
[23:24:41] gizmore: because some of my objects get decorated at runtime.... and i rely heavily on that global cache thingy
[23:24:53] gizmore: would be cool if activerecord offered something for that
[23:25:18] dopie: has joined #RubyOnRails
[23:26:02] celly: has joined #RubyOnRails
[23:26:07] shinobi_: You're wanting to cache instances of active record objects?
[23:26:43] iateadonut: has joined #RubyOnRails
[23:27:08] gizmore: shinobi_: yes... as i said: like Foo.find(1).object_id => # yields the same every time
[23:27:34] gizmore: so i can play with the objects globally on all relatioms
[23:28:12] mrbubbles: has joined #RubyOnRails
[23:28:57] grn: has joined #RubyOnRails
[23:30:41] zpe: has joined #RubyOnRails
[23:34:00] shinobi_: Gizmore, seems like an odd thing to want to me, and I don't think I can help. Sorry
[23:35:23] boorad420: has joined #RubyOnRails
[23:35:39] gizmore: shinobi_: less memory.. and you can really be active with your models
[23:36:01] gizmore: like user.hello_there = 1; # works on every user instance instantly
[23:36:45] shinobi_: Gizmore do you use memcache?
[23:36:52] crdpink: has joined #RubyOnRails
[23:37:16] syzygy_: has joined #RubyOnRails
[23:37:36] blackmesa: has joined #RubyOnRails
[23:38:20] gizless: has joined #RubyOnRails
[23:39:01] shinobi_: Gizmore, I haven't used this myself, but it looks interesting https://github.com/Shopify/identity_cache
[23:39:48] StevenXL: has joined #RubyOnRails
[23:39:48] StevenXL: has joined #RubyOnRails
[23:41:33] gizless: has left #RubyOnRails: ()
[23:41:44] gizless: has joined #RubyOnRails
[23:41:54] gizless: has left #RubyOnRails: ()
[23:42:05] gizmore: has joined #RubyOnRails
[23:42:44] jottr_: has joined #RubyOnRails
[23:43:26] VeryBewitching: has joined #RubyOnRails
[23:43:34] shinobi_: has joined #RubyOnRails
[23:44:55] shinobi_: has joined #RubyOnRails
[23:45:05] shinobi_: Good evening ;p
[23:47:21] tectonic: has joined #RubyOnRails
[23:48:15] crdpink: has joined #RubyOnRails
[23:48:43] shibabu: has joined #RubyOnRails
[23:49:55] grn: has joined #RubyOnRails
[23:52:06] gizmore: has joined #RubyOnRails
[23:52:16] gizmore: thank you shinobi_, maybe offers something like that
[23:52:26] gizmore: but it seems not
[23:52:43] gizmore: i made a monkeypatch once... but it seemed to stop working