« Back to channel list

#RubyOnRails - 20 January 2016

« Back 1 day Forward 1 day »
[00:00:33] flashpoint9: http://paste.ofcode.org/JDrNcn5fdVi2fMXywGuy93
[00:00:52] Radar: flashpoint9: Gist please.
[00:01:22] flashpoint9: Sorry whats Gist mean?
[00:01:35] jottr: has joined #RubyOnRails
[00:02:23] flashpoint9: Radar: its on github, you want that link?
[00:02:30] cwgem|mac: has joined #RubyOnRails
[00:02:34] Radar: flashpoint9: Yeah that'll do.
[00:02:36] Radar: flashpoint9: !gist is what I mean
[00:02:36] helpa: flashpoint9: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[00:02:53] mrbubbles: has joined #RubyOnRails
[00:06:12] Radar: ok, helped in Gist.
[00:06:16] Radar: Uh, PM, not Gist.
[00:06:22] Radar: Looks like it's Radar-needs-breakfast time.
[00:06:44] Sawbones: has joined #RubyOnRails
[00:07:01] ferr: Hey, any tips on how should I assign image to an object?
[00:07:37] freeone3000: has joined #RubyOnRails
[00:07:54] cwgem|mac: has left #RubyOnRails: ()
[00:08:01] Radar: ferr: huh?
[00:08:02] Craigimus: has joined #RubyOnRails
[00:08:07] Radar: ferr: !rule0
[00:08:07] helpa: ferr: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[00:08:40] BlackCoyote: has joined #RubyOnRails
[00:09:33] cwgem: has joined #RubyOnRails
[00:09:48] ferr: I have a service model and each service must have an image, how do I assign a specific image to corresponding service so there is no need of image name in views
[00:10:06] cwgem: Googling for "rails irc" to check out where the IRC channel is gives "http://rubyonrails.org/community/" but that seems to not really go where it should
[00:10:51] sarink: has joined #RubyOnRails
[00:11:42] quazimodo: has joined #RubyOnRails
[00:11:55] sar1nk: has joined #RubyOnRails
[00:13:37] pawnbox: has joined #RubyOnRails
[00:13:47] Radar: cwgem: That's because they just redesigned the homepage today.
[00:13:57] pwnd_nsfw: has joined #RubyOnRails
[00:13:57] shibabu: has joined #RubyOnRails
[00:14:55] BlackCoyote: has joined #RubyOnRails
[00:15:48] Radar: cwgem: Thanks for letting us know about it https://github.com/rails/homepage/issues/15
[00:15:56] Radar: ferr: Could you please show some code?
[00:16:13] atomical: has joined #RubyOnRails
[00:16:16] DanKnox[away]: has joined #RubyOnRails
[00:16:36] ferr: Thanks for your help Radar, I've found paperclip
[00:16:40] baweaver: Anyone know offhand if jbuilder can render a show action instead of treating it like '_show' for a partial? It has `json.partial! 'show'` but no way to render a full template instead that I can find.
[00:16:50] baweaver: worst case I rename it with an underscore out of spite.
[00:17:03] Radar: baweaver: No it doesn't do that. You'll have to partialise it
[00:17:07] Radar: Yes that's a word
[00:17:16] baweaver: I'm not partial to the idea
[00:17:30] baweaver: drat, ah well, easy enough.
[00:20:28] DanKnox[away]: has joined #RubyOnRails
[00:21:44] rromanch_: has joined #RubyOnRails
[00:23:04] gbgdev: has joined #RubyOnRails
[00:23:25] DanKnox[away]: has joined #RubyOnRails
[00:25:57] baweaver: Radar: https://github.com/rails/jbuilder/issues/314 - If you can't find it, submit a bug :D
[00:26:10] baweaver: (which I would totally fix but I'm not sure if it's just hiding in there somewhere)
[00:26:48] Radar: patches welcome :P :P
[00:26:57] northfurr: has joined #RubyOnRails
[00:27:30] NodeNagant: has joined #RubyOnRails
[00:29:07] baweaver: I want to make sure it's not hidden first
[00:29:56] aruntomar: has joined #RubyOnRails
[00:30:47] Radar: hidden behaviour? In Rails? Never happens.
[00:30:51] Radar: Sarcasm? From Radar? Never happens.
[00:32:10] Radar: My doctor says it's a coping mechanism.
[00:34:09] baweaver: I hate digging through code or low level docs to find useful things
[00:34:40] baweaver: though when I find them, I tend to upstream it in a PR of some sorts
[00:34:45] northfurr: has joined #RubyOnRails
[00:37:31] smathy: has joined #RubyOnRails
[00:37:35] NoTroutAboutIt: has joined #RubyOnRails
[00:38:51] DanKnox[away]: has joined #RubyOnRails
[00:40:32] DanKnox[away]: has joined #RubyOnRails
[00:40:33] safety_cut: has joined #RubyOnRails
[00:41:32] iateadonut: has joined #RubyOnRails
[00:42:32] DLSteve: has joined #RubyOnRails
[00:42:49] kara_sweets_: has joined #RubyOnRails
[00:43:22] M-shine: has joined #RubyOnRails
[00:44:12] lethjakman-l: has joined #RubyOnRails
[00:45:43] jjwright: has joined #RubyOnRails
[00:45:56] smathy: has joined #RubyOnRails
[00:46:49] jjwright: Can anyone think of a way I can do a find/replace of all model references throughout an entire rails app?
[00:47:25] edwinvdgraaf: has joined #RubyOnRails
[00:47:43] chipotle: has joined #RubyOnRails
[00:49:03] Radar: jjwright: A text editor is a good start.
[00:49:18] Radar: jjwright: Sublime Text 3 lets me do Cmd+Shift+F which'll let me find+replace.
[00:49:24] Radar: You'll have to take care of associations too.
[00:49:29] jjwright: Radar: I know that but I need more logic that than
[00:49:44] Radar: If you're looking for a rails rename_my_model_please OldName NewName ... then there isn't one.
[00:50:09] blackmes1: has joined #RubyOnRails
[00:50:14] baweaver: ACTION starts on a Rails PR to spite Radar
[00:50:17] jjwright: I have to replace occurrences of Model with @account.models for every model.
[00:50:30] Radar: jjwright: Yes.
[00:50:33] Radar: This is called a refactoring.
[00:51:12] jjwright: Radar: Yep, should be fun. I was hoping there might be some tool to help with that but I guess not
[00:51:32] Radar: jjwright: Sorry to disappoint. There isn't.
[00:53:28] baweaver: RubyMine might do something like that
[00:53:30] pawnbox: has joined #RubyOnRails
[00:53:38] baweaver: but that's paid and fairly complicated
[00:54:03] Radar: Here is my favourite screenshot of RubyMinehttps://c2.staticflickr.com/4/3331/3224878652_1b80b9a1ce_z.jpg?zz=1
[00:54:09] Radar: https://c2.staticflickr.com/4/3331/3224878652_1b80b9a1ce_z.jpg?zz=1
[00:56:07] baweaver: Yeah, only Eclipse and IntelliJ are worse from experience
[00:57:21] threeminutemonta: has joined #RubyOnRails
[01:03:16] northfurr: has joined #RubyOnRails
[01:04:01] Sawbones: has joined #RubyOnRails
[01:04:30] sevenseacat: has joined #RubyOnRails
[01:05:45] NBarnes: baweaver; you've tried and didn't like IntelliJ?
[01:06:01] baweaver: I tried and didn't like Java
[01:06:24] NBarnes: Ah. I had dev at my last place of employment use IntelliJ for Rails. They seemed to like it.
[01:06:45] baweaver: IntelliJ's complexity is mostly due to the complexity and idiocy behind the Java language
[01:07:08] baweaver: Then again I'm extremely biased against Java, so with a grain of salt
[01:07:38] NBarnes: Radar; are you sure those aren't screenshots of Visual Studio?
[01:07:58] NBarnes: (also, that's why I don't like IDEs. Anything where I don't understand what more than half the settings mean I don't trust)
[01:08:15] gowikel: has joined #RubyOnRails
[01:09:28] baweaver: complex editor + complex language = enterprise bs
[01:10:35] HalcyonicStorm: has joined #RubyOnRails
[01:14:23] wldcordeiro: has joined #RubyOnRails
[01:15:07] Craigimus: has joined #RubyOnRails
[01:15:29] apneic: has joined #RubyOnRails
[01:16:35] mrbubbles: has joined #RubyOnRails
[01:17:02] dopie: has joined #RubyOnRails
[01:19:10] dopie: has joined #RubyOnRails
[01:20:18] twilling: has joined #RubyOnRails
[01:20:27] IrishGringo: has joined #RubyOnRails
[01:20:48] aruntomar: has joined #RubyOnRails
[01:20:58] Sawbones: has joined #RubyOnRails
[01:21:29] aruntomar: has left #RubyOnRails: ()
[01:22:04] Craigimus: has joined #RubyOnRails
[01:22:12] roamingdog: has joined #RubyOnRails
[01:23:11] IrishGringo: has joined #RubyOnRails
[01:23:51] pawnbox: has joined #RubyOnRails
[01:28:56] NodeNagant: has joined #RubyOnRails
[01:30:19] diegoviola: has joined #RubyOnRails
[01:32:29] jkamenik: has joined #RubyOnRails
[01:33:07] chipotle: has joined #RubyOnRails
[01:33:24] FailBit: https://www.exploit-db.com/platform/?p=linux
[01:33:27] FailBit: just keep this page bookmarked
[01:37:45] threeminutemonta: has joined #RubyOnRails
[01:39:59] B1n4r10: has joined #RubyOnRails
[01:41:12] rhizome: sublime text has find/replace in all open files & folders
[01:42:18] pulgalipe: has joined #RubyOnRails
[01:50:04] [flying_high]: has joined #RubyOnRails
[01:51:36] Pazician: has joined #RubyOnRails
[01:51:42] Graphettion: has joined #RubyOnRails
[01:54:48] flashpoint9: has joined #RubyOnRails
[01:56:18] ferr: has joined #RubyOnRails
[01:56:29] baweaver: has joined #RubyOnRails
[01:58:25] Limix: has joined #RubyOnRails
[01:59:32] mary5030: has joined #RubyOnRails
[02:00:43] roamingdog: has joined #RubyOnRails
[02:00:44] blackmes1: has joined #RubyOnRails
[02:00:54] nbdy: has joined #RubyOnRails
[02:01:15] dstarh: has joined #RubyOnRails
[02:02:20] jottr: has joined #RubyOnRails
[02:02:56] ericdykstra: has joined #RubyOnRails
[02:05:40] aloneintheworld: has joined #RubyOnRails
[02:05:53] aloneintheworld: Any good guide on how to i18n my app other than the official one ?
[02:08:46] guacamole: has joined #RubyOnRails
[02:12:14] hannelita: has joined #RubyOnRails
[02:13:45] HalcyonicStorm: has joined #RubyOnRails
[02:14:49] tenderlove: has joined #RubyOnRails
[02:14:52] shibabu: has joined #RubyOnRails
[02:15:28] onlyme: has joined #RubyOnRails
[02:16:35] baweaver: has joined #RubyOnRails
[02:18:37] Sawbones: has joined #RubyOnRails
[02:20:31] jgt: has joined #RubyOnRails
[02:21:03] IrishGringo_: has joined #RubyOnRails
[02:22:07] DanKnox[away]: has joined #RubyOnRails
[02:23:45] northfurr: has joined #RubyOnRails
[02:29:52] NodeNagant: has joined #RubyOnRails
[02:30:13] onlyme: has joined #RubyOnRails
[02:30:40] sevenseacat: http://rubyonrails.org/ got a new coat of paint today
[02:31:19] havenwood: sevenseacat: nice!
[02:33:38] paradisaeidae: has joined #RubyOnRails
[02:34:16] havenwood: eek, I quickly went off the Rails: http://rubyonrails.org/download
[02:34:53] havenwood: I think the homepage video placeholder abrupt fade from black is a mistake.
[02:35:10] sevenseacat: PRs welcome I guess https://github.com/rails/homepage
[02:35:14] havenwood: But I like the whiimsical, simple nature of it!
[02:35:25] IrishGringo: has joined #RubyOnRails
[02:36:11] havenwood: sevenseacat: Nice idea to have an open source homepage.
[02:38:59] sevenseacat: there seem to be two styles of homepage popular lately. the Rails type, with walls of text in large san-serif font, and the panel type like https://dribbble.com/shots/2042501-Potato/attachments/363345
[02:40:14] Radar: The "Buy it now" button isn't doing anything there
[02:40:16] Radar: please send help
[02:43:11] northfurr: has joined #RubyOnRails
[02:43:23] jgpawletko: has joined #RubyOnRails
[02:43:27] baweaver: ACTION twitches
[02:43:41] baweaver: pull requests will be had
[02:43:55] gousuto: has joined #RubyOnRails
[02:44:31] Radar: aloneintheworld: I18n'ing an app: a short guide by Radar: Slowly and methodically.
[02:45:03] baweaver: https://nodejs.org/en/
[02:45:06] baweaver: much better design
[02:45:21] rromanch_: has joined #RubyOnRails
[02:45:47] Radar: X-Served-By: PHP
[02:45:50] baweaver: http://www.phoenixframework.org/ - better, but too bright
[02:46:09] Radar: I love that the node site has clear instructions for installation
[02:46:10] baweaver: The Rails page looks like a high school web design competition
[02:46:27] Radar: baweaver: yes that's because Rails isn't a real framework
[02:46:33] matthewd: > The brief was that Rails shouldn't feel slick. It should be warm, approachable, and welcoming.
[02:46:34] havenwood: Dark slate, deep lime and off-white. Simple Elegant. PHP.
[02:46:41] guacamole: has joined #RubyOnRails
[02:46:54] baweaver: that's the same crap argument people make for comic sans
[02:47:01] sevenseacat: the phoenix website is nice, just *really* slow for some reason. (no, its not written in phoenix)
[02:47:04] baweaver: and I'm equally likely to go off on them too.
[02:47:40] Radar: sevenseacat: canphoenixscale.com
[02:48:04] FailBit: This page will never be updated, nor should it be.
[02:48:11] lethjakman-l: has joined #RubyOnRails
[02:48:38] baweaver: Rails should feel clean and polished, while warm and welcoming with a pleasant smile even if it does intend to stab you in the back at first chance. Kinda like a politician
[02:48:51] Scripore: has joined #RubyOnRails
[02:48:52] sevenseacat: as much as i dislike nodejs, I really like that site.
[02:49:06] Radar: baweaver: Rails creates jobs and makes families happy.
[02:49:18] sevenseacat: its consistent, its clean, its readable.
[02:49:19] Radar: baweaver: oh and it hunts down terrorists too
[02:49:20] baweaver: At that last one I'm being cheeky
[02:50:12] FailBit: codebases run on politics
[02:50:25] FailBit: codebase politics are fucking horrendous
[02:50:46] sevenseacat: any politics are fucking horrendous
[02:50:47] baweaver: Radar: Any idea who to whack on the design?
[02:50:53] Radar: baweaver: DHH himself
[02:51:06] baweaver: seriously considering making another one and sending it to them asking them to please stop
[02:51:06] FailBit: time to jump on the blame DHH train
[02:51:09] Radar: We have this oldish codebase here (first Git commit in 2011, but first real commit probably a year or two before that) and man there are STORIES of great political battles littered in the codebase.
[02:51:12] sevenseacat: http://weblog.rubyonrails.org/2016/1/19/new-rails-identity/
[02:51:23] sevenseacat: "We can thank Basecamp designer Jamie Dihiansan for the awesome new look."
[02:51:24] atomical_: has joined #RubyOnRails
[02:51:36] Radar: i.e. CoffeeScript vs Angular, CSS vs SCSS vs SMACSS vs Bootstrap, Angular vs React.
[02:51:53] havenwood: sevenseacat: I agree it's good! My biggest complaint would be that some of the font size changes are jarring.
[02:51:56] Radar: p.s. we're going to be hiring soon come work with/for us?
[02:52:03] matthewd: (but he was executing DHH's vision, if your objection is fundamental, rather than on specific details)
[02:52:21] baweaver: objection is the design is jarring and bad
[02:52:34] havenwood: baweaver: haha
[02:52:41] FailBit: we have this political battle in our codebase
[02:52:43] Bloomer: has joined #RubyOnRails
[02:52:46] FailBit: about the usage of and/or/not
[02:52:51] FailBit: vs &&/||/!
[02:53:14] Radar: FailBit: find vs detect
[02:53:17] Radar: FailBit: map vs collect
[02:53:21] davidbitton: has joined #RubyOnRails
[02:53:36] havenwood: with a dash of precedence
[02:53:39] FailBit: nothing like that, since our programmers aren't serious rubyists
[02:53:54] FailBit: but whenever one guy messes with a certain block of code he'll always change it to the keyword args
[02:53:55] safetypin: has joined #RubyOnRails
[02:54:03] baweaver: At risk of sounding like I'm posturing, I was a designer before and bad design drives me up a wall.
[02:54:17] FailBit: cue me pointing out in commit comments "you fucking broke it because of precedence"
[02:54:33] FailBit: s/keyword args/keyword opes
[02:54:33] chouhoulis: has joined #RubyOnRails
[02:55:13] baweaver: It feels like a bad throwback to _why honestly.
[02:55:20] Radar: FailBit: yeah that kind of shit doesn't fly on our team
[02:55:37] Radar: We've agreed on && and || as a team, and so that's what you'll use, damn it
[02:55:39] baweaver: though _why did a pretty decent job.
[02:56:06] FailBit: there's also another one ongoing
[02:56:11] FailBit: if/else vs guard clauses
[02:56:18] FailBit: which is so dumb I can't even
[02:56:26] safetypin: has joined #RubyOnRails
[02:56:29] FailBit: that's when you know you have a c++ programmer fucking your shit
[02:56:46] Radar: haha yeah. I'm guilty of that too tbh
[02:57:17] FailBit: guard clauses have stuck with me so strongly that I actually write c/c++ like that now
[02:57:42] FailBit: because I know it's literally the same thing to the optimizer and I get flak for it anyways
[02:58:03] baweaver: guard clause being value && value.id?
[02:58:25] FailBit: guard clause being "return unless value && value.id?"
[02:58:31] elben: I???m trying to debug a possible bug in https://github.com/zdennis/activerecord-import, where serialized attributes are not being serialized (e.g. if model has `serialize :foo, JSON`, it???s saving a serialized Ruby Hash instead). Can someone point to me in Rails HEAD where the serialize happens when writing the SQL query? In the gem, the conversion to quoted SQL happens here:
[02:58:31] elben: https://github.com/zdennis/activerecord-import/blob/1ab96d292c02bc81aaa6b982e2807487f858c529/lib/activerecord-import/import.rb#L491
[02:59:17] pawnbox: has joined #RubyOnRails
[02:59:51] FailBit: something that people don't get
[02:59:55] safetypin: has joined #RubyOnRails
[02:59:56] FailBit: barring pointer aliasing
[03:00:01] FailBit: the optimizer is really good at what it does
[03:00:44] safetypin: has joined #RubyOnRails
[03:00:54] pawnbox: has joined #RubyOnRails
[03:01:28] developish: has joined #RubyOnRails
[03:01:49] mary5030: has joined #RubyOnRails
[03:03:47] blackmes1: has joined #RubyOnRails
[03:04:01] rromanch_: has joined #RubyOnRails
[03:05:16] matthewd: elben: Ah, if you're really on HEAD, type_cast_from_user was renamed
[03:05:34] B1n4r10: has joined #RubyOnRails
[03:05:39] elben: OK, sorry, I???m techincally on 4.0 :)
[03:05:47] elben: I was just wondering, around which vicinity in the souce
[03:05:52] davidbitton: has joined #RubyOnRails
[03:06:17] matthewd: Well, that got rearranged completely in 4.2, as is clearly implied by the code you linked to
[03:06:48] lacuna: has joined #RubyOnRails
[03:06:49] lacuna: has joined #RubyOnRails
[03:07:07] developish: has joined #RubyOnRails
[03:08:43] aloneintheworld: Anyone using simple_form and i18n ? Can I use the traditional activerecord: attributes: in my locale or do I need necessarily have to use simple_form: labels: ?
[03:09:13] aloneintheworld: when using for example f.input :first_name
[03:09:21] Radar: aloneintheworld: you can use the traditional ones
[03:09:24] matthewd: aloneintheworld: Does it work?
[03:09:25] aloneintheworld: the first way doesnt seem to be working
[03:09:47] Radar: !rickastley
[03:10:10] aloneintheworld: matthewd: using activerecord: doesnt work at least
[03:10:17] Radar: !rickastley
[03:10:17] helpa: 🎵 You know the rules, and so do I. 🎵
[03:10:29] Radar: aloneintheworld: !rule0
[03:10:29] helpa: aloneintheworld: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[03:11:16] Limix: has joined #RubyOnRails
[03:11:42] aloneintheworld: this is my file https://gist.github.com/lfaire/bd8d7f6bd3ebb031fa92
[03:11:54] matthewd: ACTION really doesn't like trap questions
[03:12:10] aloneintheworld: and I simply call f.input :first_name from my view
[03:12:15] Radar: matthewd: Please join the club. Membership is only 5 payments of $999.95.
[03:12:22] FailBit: goddamnit helpa
[03:12:23] matthewd: "Can I do X?" "Haha! You're wrong because it doesn't work!"
[03:12:24] Radar: aloneintheworld: Can you reproduce this in a new application for us to take a look at?
[03:12:58] hannelita: has joined #RubyOnRails
[03:13:01] matthewd: aloneintheworld: Does it work when using the simpleform equivalent?
[03:14:27] aloneintheworld: matthewd: it doesn???t seem so...
[03:14:54] matthewd: aloneintheworld: Then you seem to have misdiagnosed your problem
[03:15:01] aloneintheworld: yep, you???re right
[03:16:15] aloneintheworld: wel.. I restarted my server and it-s working now
[03:17:06] aloneintheworld: for the stupidness
[03:18:42] crdpink2: has joined #RubyOnRails
[03:21:44] jgt: has joined #RubyOnRails
[03:22:51] northfurr: has joined #RubyOnRails
[03:22:51] myntcake: has joined #RubyOnRails
[03:25:44] jdev: has joined #RubyOnRails
[03:29:05] janebootydoe: has joined #RubyOnRails
[03:30:28] NodeNagant: has joined #RubyOnRails
[03:31:05] FailBit: stupidness is only a problem if you don't realize you're stupid
[03:31:45] Honeycomb: has joined #RubyOnRails
[03:32:37] chipotle: has joined #RubyOnRails
[03:36:19] tildes: has joined #RubyOnRails
[03:36:52] [flying_high]: has joined #RubyOnRails
[03:38:11] aloneintheworld: I totally realize that I???m stupid
[03:38:16] Sawbones: has joined #RubyOnRails
[03:39:34] aloneintheworld: and consider my stupidness not being problem, it???s a problem for the rest. so my username checks out.
[03:39:57] apg: has joined #RubyOnRails
[03:40:00] janebootydoe: has joined #RubyOnRails
[03:40:48] roamingdog: you're reminding me of my daughter, breaks m'heart when she talks like that
[03:40:51] apg: has joined #RubyOnRails
[03:40:52] ericdykstra: has joined #RubyOnRails
[03:42:15] bronson: has joined #RubyOnRails
[03:42:57] roamingd_: has joined #RubyOnRails
[03:43:13] choke: has joined #RubyOnRails
[03:44:58] aloneintheworld: at least she has someone to break its heart to
[03:45:02] atomical: has joined #RubyOnRails
[03:45:25] Sawbones: has joined #RubyOnRails
[03:45:57] jgpawletko_: has joined #RubyOnRails
[03:47:41] atomical: has joined #RubyOnRails
[03:48:58] lethjakman-l: has joined #RubyOnRails
[03:50:16] northfurr: has joined #RubyOnRails
[03:52:26] roamingd_: aloneintheworld: what's your native language?
[03:52:26] braincra-: has joined #RubyOnRails
[03:55:06] Sawbones: has joined #RubyOnRails
[03:55:31] roamingd_: oh ja, 'its' should be 'her'
[03:55:48] roamingd_: was just curious
[03:56:19] Rodya_: has joined #RubyOnRails
[03:57:17] baweaver: has joined #RubyOnRails
[03:57:26] Oliphaunte: has joined #RubyOnRails
[03:58:37] funnel: has joined #RubyOnRails
[03:59:57] blischalk: has joined #RubyOnRails
[04:01:20] blischalk: I have a rails app that has 2 load balanced instances running on unicorn with memcached (via dali) for session storage. I am having an issue where users are reporting that users can occasionally see another users data. Has anyone encountered anything like this?
[04:01:31] lethjakman-l: has joined #RubyOnRails
[04:02:12] Rodya_: has joined #RubyOnRails
[04:04:23] jottr: has joined #RubyOnRails
[04:04:30] blackmes1: has joined #RubyOnRails
[04:07:10] Sawbones: has joined #RubyOnRails
[04:08:55] jgpawletko: has joined #RubyOnRails
[04:11:33] northfurr: has joined #RubyOnRails
[04:13:17] sneakerhax: has joined #RubyOnRails
[04:13:40] hannelita: has joined #RubyOnRails
[04:15:02] errakeshpd: has joined #RubyOnRails
[04:17:28] braincrash: has joined #RubyOnRails
[04:17:43] shibabu: has joined #RubyOnRails
[04:17:49] Oliphaunte: has joined #RubyOnRails
[04:19:37] atian: has joined #RubyOnRails
[04:19:38] atian: has joined #RubyOnRails
[04:21:38] dopie: has joined #RubyOnRails
[04:22:25] Sawbones: has joined #RubyOnRails
[04:22:30] ericdykstra: has joined #RubyOnRails
[04:23:27] johnflux: has joined #RubyOnRails
[04:23:27] johnflux: has joined #RubyOnRails
[04:24:03] alex88: has joined #RubyOnRails
[04:24:38] rhizome: blischalk: how many database instances?
[04:25:19] blischalk: rhizome: I believe 1 postgres instance but memcached is being used for session persistence via dali
[04:25:38] FailBit: dal?? dal?? dal??
[04:26:07] astrofog: has joined #RubyOnRails
[04:26:15] krz: has joined #RubyOnRails
[04:26:17] rhizome: could you by chance turn dali off? worth an ask
[04:26:50] rhizome: cache key reuse? there's at least a few ways things can go wrong this way tmk
[04:28:08] dopie: has joined #RubyOnRails
[04:28:27] blischalk: rhizome: you mean switch from memcached backed to relational db backed session storage?
[04:28:49] blischalk: rhizome: How would cache key reuse occur? I have been unable to reproduce the issue.
[04:28:59] FailBit: just set cache to null_store to check
[04:29:20] FailBit: oh wait you can't derp
[04:30:01] FailBit: what the heck are you putting in sessions that requires extra storage
[04:30:02] Tref_: has joined #RubyOnRails
[04:30:46] tjbiddle: has joined #RubyOnRails
[04:31:41] Tref_: hey guys im a little unsure about how the select query syntax works and my sql is sketchy at best. Can someone give me a general idea of what this query is doing?
[04:31:50] Tref_: Business.all.select('businesses.*, LOWER(businesses.sortable_name)')
[04:32:17] blischalk: I don???t remember why the decision was made to use memcached for sure but I believe it was for performance. hitting memcached for user session data I believe is faster than querying a relational database
[04:32:33] FailBit: that's not what I mean
[04:32:38] rhizome: how busy a site is it?
[04:32:42] FailBit: I mean why do you need it at all
[04:32:58] rhizome: he doesn't remember
[04:33:21] matthewd: tref_: In addition to the normal columns on businesses, that will also cause the returned models to have an attribute named 'lower'
[04:34:02] davidbitton: has joined #RubyOnRails
[04:34:07] FailBit: you would get better performance out of not fetching from a cache store every time and just demarshalling the browser session
[04:34:24] FailBit: not significantly but still better
[04:34:25] blischalk: rhizome: I would guess that it is over architected but there are a lot of people accessing the site
[04:35:04] rhizome: it may be something you can just rip out. in theory, but if it has its tentacles everywhere somehow...
[04:35:18] Tref_: matthewd: I dont think that???s right
[04:35:34] matthewd: tref_: If you know the answer, why did you ask the question?
[04:35:58] blischalk: We could always rip it out I???m sure but is it the issue? I haven???t heard anything about session crossing with memcached backed rails sessions
[04:36:36] FailBit: what appserver do you use
[04:36:41] Tref_: matthewd: have you never only vaguely known what something is doing?
[04:36:46] sevenseacat: at 'why ask the question if you know the answer'
[04:36:47] jdev: has joined #RubyOnRails
[04:36:49] JohnT: has joined #RubyOnRails
[04:37:06] FailBit: we had big issues with this on passenger with turbocache enabled
[04:37:18] rhizome: tref_: your syntax is weird, if not wrong
[04:37:27] FailBit: we didn't use memcache for session storage
[04:37:30] rhizome: and you can do the lower in ruby unless you really need it that way
[04:37:35] matthewd: tref_: What do you think it's doing, and what do you want to know about it?
[04:37:41] FailBit: just regular browser session storage
[04:37:52] Tref_: rhizome: I didn???t write it so I???m trying to figure out what the hell the intention was since I???ve never seen something like that
[04:38:09] sevenseacat: in that case, matthewd's answer is correct
[04:38:28] rhizome: tref_: i think it's probably just Business.all
[04:38:41] rhizome: with a LOWER that can be done for free elsewhere
[04:38:50] Tref_: What im trying to do is sort by the lowercase version of hte sortable_name column
[04:39:04] djbkd: has joined #RubyOnRails
[04:39:06] rhizome: you should probably use the word SORT somewhere, then
[04:39:20] rhizome: you should probably use the word SORT somewhere, then
[04:39:26] rhizome: ugh. ORDER too
[04:40:12] rhizome: you can do a LOWER in .order
[04:40:37] Tref_: rhizome: I did not know that
[04:40:59] rhizome: you're welcome
[04:41:23] rhizome: and maybe consider lowering sortable_name when it's saved in the first place :)
[04:41:59] yfeldblum: has joined #RubyOnRails
[04:42:24] crystal77: has joined #RubyOnRails
[04:44:43] Oliphaunte: has joined #RubyOnRails
[04:44:54] Tref_: rhizome: So in the order clause it would be something like
[04:44:54] Tref_: .order('LOWER(sortable_name)')
[04:45:04] Tref_: and I???ll look into downcasing on save
[04:45:23] matthewd: Or just define an index on lower(sortable_name); let the DB do it for you
[04:45:29] Tref_: _now_ I know the answer :)
[04:45:31] Tref_: thanks guys
[04:45:57] apneic: has joined #RubyOnRails
[04:46:02] matthewd: sevenseacat misses out on the thanks
[04:46:03] fedexo: has joined #RubyOnRails
[04:46:03] cicloid: has joined #RubyOnRails
[04:46:09] [flying_high]: has joined #RubyOnRails
[04:46:13] sevenseacat: this is normal.
[04:47:05] norc: has joined #RubyOnRails
[04:47:22] FailBit: yes, and expected also
[04:47:39] FailBit: kind of like the ellos form in spanish
[04:49:19] dopie: https://gist.github.com/staycreativedesign/3cac6bc1d63116dd7864
[04:49:38] dopie: My second context isn't passing since I get a validation error is what I expected
[04:49:43] dopie: but how would I test for that?
[04:49:57] dopie: How would I write a passing test
[04:50:06] northfurr: has joined #RubyOnRails
[04:50:15] Radar: dopie: no stacktrace for the error?
[04:50:32] Radar: You probably meant to use .attributes_for in the second context too.
[04:51:12] jgpawletko: has joined #RubyOnRails
[04:51:20] arup_r: has joined #RubyOnRails
[04:51:24] sevenseacat: indeed. why create a user and then pass that created user to the create action
[04:53:19] sevenseacat: also, what does https://gist.github.com/staycreativedesign/3cac6bc1d63116dd7864#file-registrations_controller_spec-rb-L23 have to do with the controller?
[04:55:20] dopie: well its the registrations controller for devise for user
[04:56:00] sevenseacat: yes, but you're testing User.new
[04:56:03] sevenseacat: not the controller
[04:56:43] dopie:  expect(User.count).to equal(0)
[04:56:55] Radar: dopie: Still not testing the controller.
[04:56:59] FailBit: did you customize the devise RegistrationsController?
[04:57:07] Radar: dopie: What do you see on the page when you fail the registration?
[04:57:16] Radar: is there a failure message of some kind? Perhaps a flash message?
[04:57:23] dopie: yes there is a flash message
[04:57:32] dopie: first name can't be blank
[04:57:32] Radar: So maybe check for the flash message in the test?
[04:57:54] dopie: thnak you
[04:58:10] dopie: so in the first one is my testing also incorrect?
[04:58:18] bronson: has joined #RubyOnRails
[04:58:18] dopie: the for context
[04:59:31] Radar: I would say yes.
[04:59:48] Radar: You should be testing the controller, not what's in the database
[04:59:55] Radar: if you want that kind of testing, then write an integration test
[05:00:06] sevenseacat: controller testing is meh.
[05:00:10] sevenseacat: IMO. i very rarely do it.
[05:00:46] dopie: Radar: as in feature specs?
[05:03:58] dext: has joined #RubyOnRails
[05:05:35] Radar: dopie: yes
[05:06:58] tjbiddle: has joined #RubyOnRails
[05:07:32] blackmes1: has joined #RubyOnRails
[05:09:42] norc: sevenseacat, the problem with controller tests is that tests only make sense if you have any special behavior to test for, and a controller containing special logic is a smell that is likely to be fixed with a service class.
[05:10:24] baweaver: has joined #RubyOnRails
[05:10:26] pawnbox: has joined #RubyOnRails
[05:11:05] wethu: has joined #RubyOnRails
[05:13:07] norc: There are some forms of tests that have stopped making sense to me, like routing specs.
[05:13:29] Radar: view specs too?
[05:13:52] norc: Indeed. A view should not have any behavior to test for.
[05:14:15] norc: I mean there may be special cases like special custom routes where specs make sense.
[05:15:24] norc: But to test whether my "users" table really has a cell with the username is just questioning whether Ruby or the template engine is bugged.
[05:15:25] tjbiddle: Anyone know how to access the `request` object from an active_model_serializer?
[05:15:27] sevenseacat: mmm sometimes I get the urge to write view specs
[05:15:39] norc: sevenseacat, what do you usually test for in these cases?
[05:15:48] sevenseacat: usually authorization checks
[05:15:57] tjbiddle: Will I need to pass it in as a parameter, or is there some way to access it directly
[05:16:00] norc: Ah, that seems reasonable I suppose.
[05:16:13] sevenseacat: a user without permission to update object X shouldnt see a button to do so
[05:16:32] sevenseacat: but I don't write them often. usually only for regression cases.
[05:16:48] Radar: tjbiddle: !xy
[05:16:48] helpa: tjbiddle: 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
[05:19:18] tjbiddle: Radar: Righto. Okay; I am looking to generate a URL based on my request host. This URL is being passed through and displayed as JSON through an ActiveModelSerializer. The request object is not available within the serializer (That I'm aware of). Currently I'm passing it in through @options in ActiveModelSerializer and I can access it there - I just wasn't sure if this is a messy way and can access it directly, or if there is another best practice.
[05:19:33] tjbiddle: I think I phrased that properly then - Let me know if I can change it again moreso.
[05:21:10] baweaver: I write view tests, though I have an API and it's more of checking that the correct data is returned. Consider it more of contract testing than anything.
[05:21:34] baweaver: that and a lot of angular tests with a few integration tests thrown in
[05:21:50] brycesenz: has joined #RubyOnRails
[05:22:22] [flying_high]: has joined #RubyOnRails
[05:22:29] jgt: has joined #RubyOnRails
[05:24:59] AnoHito: has joined #RubyOnRails
[05:26:30] lethjakman-l: has joined #RubyOnRails
[05:26:54] Radar: tjbiddle: Thanks. I am not sure how to do that.
[05:30:47] speaking1ode: has joined #RubyOnRails
[05:31:43] dopie: now this is passing...
[05:31:44] dopie: https://gist.github.com/staycreativedesign/be39d6efafa5a9da84f2
[05:31:58] dopie: i dont want to send an email if the user isn't saved...
[05:32:05] dopie: but it keeps on sending one
[05:32:23] LOLCANADA: has joined #RubyOnRails
[05:32:23] guacamole: has joined #RubyOnRails
[05:36:07] hannelita: has joined #RubyOnRails
[05:36:09] rvanlieshout: has joined #RubyOnRails
[05:36:27] wethu: has joined #RubyOnRails
[05:38:33] AnoHito: has joined #RubyOnRails
[05:38:42] kaspergrubbe: has joined #RubyOnRails
[05:39:32] sarink: has joined #RubyOnRails
[05:39:59] DanKnox[away]: has joined #RubyOnRails
[05:42:43] roamingdog: has joined #RubyOnRails
[05:43:51] sar1nk: has joined #RubyOnRails
[05:49:17] ericdykstra: has left #RubyOnRails: ()
[05:50:40] greenhat: Your `it "does not send an email"` test isn't testing an email isn't sent.
[05:51:40] bga57: has joined #RubyOnRails
[05:57:28] ur5us: has joined #RubyOnRails
[05:58:08] jdev: has joined #RubyOnRails
[05:58:24] [flying_high]: has joined #RubyOnRails
[05:59:36] droptone: has joined #RubyOnRails
[05:59:37] djbkd: has joined #RubyOnRails
[05:59:50] rakm: has joined #RubyOnRails
[06:00:15] keekri: has joined #RubyOnRails
[06:00:45] graphettion_: has joined #RubyOnRails
[06:01:29] tildes: has joined #RubyOnRails
[06:01:33] pavelz: has joined #RubyOnRails
[06:02:35] JohnT: has joined #RubyOnRails
[06:03:05] brycesenz: has joined #RubyOnRails
[06:04:57] C0r3: has joined #RubyOnRails
[06:05:10] jottr: has joined #RubyOnRails
[06:05:13] atmosx: has joined #RubyOnRails
[06:07:21] worknick: has joined #RubyOnRails
[06:07:34] claytonzaugg: has joined #RubyOnRails
[06:09:34] worknick: @A = Model1.where(cond) and @B = Model2.where(cond). where Model2 has foreign key reference to Model1. Now, is there any way, i can order @B such that, if i print @A.each and @B.each loop seperately still the @B loop will contain matching records for its @A part.
[06:10:18] rvanlieshout: @b is not related to @a
[06:10:24] rvanlieshout: worknick: !fake
[06:10:24] helpa: worknick: Please do not use fake values, as they can be confusing or misleading. Sometimes both.
[06:10:34] blackmes1: has joined #RubyOnRails
[06:11:04] helpa: Please do not use fake variables for your name such as "foo", "bar" or "x". Use the real names, as if it makes sense to you it probably will make sense to the people helping you.
[06:12:05] dopie: greenhat: how would i test it than?
[06:13:29] bronson: has joined #RubyOnRails
[06:14:14] aganov: has joined #RubyOnRails
[06:14:21] sevenseacat: dopie: the same way you're testing emails in the other context?
[06:14:49] sevenseacat: dopie: instead of testing the flash, I don't even know what for, given the test description
[06:15:51] krz: has joined #RubyOnRails
[06:16:03] ur5us: has joined #RubyOnRails
[06:16:04] yfeldblum: has joined #RubyOnRails
[06:16:24] j_mcnally: has joined #RubyOnRails
[06:17:45] dopie: sevenseacat: so i test deliveries?
[06:18:12] sevenseacat: if you want to test if an email is delivered, testing deliveries seems like it would make sense.
[06:18:33] sevenseacat: much more so than testing flash.
[06:19:05] worknick_: has joined #RubyOnRails
[06:19:14] dopie: sevenseacat: ok correct but the thing is when i test deliveries it says that the email is being sent even when the user.count is 0
[06:19:17] worknick_: rvanlieshout: i have clearly mentioned that Model2 references Model1
[06:19:36] sevenseacat: dopie: so you have a bug in your code. congratulations.
[06:19:44] shibabu: has joined #RubyOnRails
[06:19:49] sevenseacat: dopie: now you can fix it.
[06:20:21] srinidhi: has joined #RubyOnRails
[06:21:09] Arlantir_: has joined #RubyOnRails
[06:21:34] rvanlieshout: worknick_: as if that helps enough
[06:21:35] rvanlieshout: worknick_: !debug
[06:21:35] helpa: worknick_: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[06:21:49] tlarevo: has joined #RubyOnRails
[06:22:02] sevenseacat: worknick_: you've been here long enough to know that fake code snippets don't fly.
[06:22:19] sevenseacat: worknick_: please try again.
[06:22:38] worknick_: ok. some internet issues. will come back later with details.
[06:22:39] worknick_: thanks all.
[06:23:18] sevenseacat: is that the modern equivalent of "kkkkrrrrrr you're breaking up I cant hear you krrrrrrrrr" *hang up* ?
[06:23:31] lxsameer: has joined #RubyOnRails
[06:23:32] micah`: has joined #RubyOnRails
[06:24:09] rvanlieshout: only he should have used a Ping timeout: 240 seconds quit message
[06:24:16] sebg_: has joined #RubyOnRails
[06:24:16] rvanlieshout: without writing just before that
[06:24:26] lacuna: has joined #RubyOnRails
[06:25:47] arup_r: has joined #RubyOnRails
[06:27:46] gambl0re: has joined #RubyOnRails
[06:30:06] ja: ACTION chuckles and falls asleep
[06:31:57] ur5us: has joined #RubyOnRails
[06:32:46] NodeNagant: has joined #RubyOnRails
[06:33:43] yfeldblum: has joined #RubyOnRails
[06:34:10] dopie: has joined #RubyOnRails
[06:35:00] joy4u: has joined #RubyOnRails
[06:36:16] dopie: has joined #RubyOnRails
[06:36:40] jottr: has joined #RubyOnRails
[06:37:03] [flying_high]: has joined #RubyOnRails
[06:40:23] yfeldblum: has joined #RubyOnRails
[06:41:19] shibabu: has joined #RubyOnRails
[06:43:56] yardenbar: has joined #RubyOnRails
[06:44:33] joy4u: has joined #RubyOnRails
[06:44:43] tlarevo_: has joined #RubyOnRails
[06:45:01] _3by8: has joined #RubyOnRails
[06:46:38] B1n4r10: has joined #RubyOnRails
[06:47:24] dopie: has joined #RubyOnRails
[06:48:09] lord4163: has joined #RubyOnRails
[06:49:12] alex88: has joined #RubyOnRails
[06:50:02] Scripore: has joined #RubyOnRails
[06:50:06] lethjakman-l: has joined #RubyOnRails
[06:50:06] tlarevo: has joined #RubyOnRails
[06:51:38] joy4u: has left #RubyOnRails: ()
[06:51:49] jkprg: has joined #RubyOnRails
[06:55:02] acosonic: has joined #RubyOnRails
[07:00:08] shortCircuit__: has joined #RubyOnRails
[07:00:40] shortCircuit__: anyone acquainted with rails-nginx-nodejs kinda thing
[07:02:11] ur5us: has joined #RubyOnRails
[07:02:30] LeoDee: has joined #RubyOnRails
[07:04:51] juddey: has joined #RubyOnRails
[07:08:10] PedramT: has joined #RubyOnRails
[07:08:28] srinidhi1: has joined #RubyOnRails
[07:09:05] errakeshpd: format.json { render json: @entries, only: [:_id, :title] } how to response like { status: 200, message: "success" entries: [{},{}] }
[07:11:22] blackmes1: has joined #RubyOnRails
[07:12:59] [flying_high]: has joined #RubyOnRails
[07:13:07] rvanlieshout: errakeshpd: render json: { status: 200, message: :success, entries: @entries.map{ |entry| { id: entry.id, title: entry.title }} }
[07:13:44] errakeshpd: ok, Let me try this.
[07:15:05] errakeshpd: but it have some relation with category, and user sending this also , include: {category: {only: :name}, user: {only: [:email, :first_name, :image_url]}
[07:16:12] guacamole: has joined #RubyOnRails
[07:16:30] errakeshpd: format.json { render json: @entries, only: [:_id, :title, :blurb, :status], include: {category: {only: :name}, user: {only: [:email, :first_name]}}}
[07:16:30] edwinvdgraaf: has joined #RubyOnRails
[07:16:46] errakeshpd: so the map will not work here.
[07:16:47] ziyadb: has joined #RubyOnRails
[07:16:57] PedramT: has joined #RubyOnRails
[07:17:30] errakeshpd: any other way ?
[07:18:44] sevenseacat: [simple question] [simple answer] 'oh no no its actually [much more complicated question]'
[07:20:28] PedramT: has joined #RubyOnRails
[07:20:48] errakeshpd: [simple answer]?
[07:22:41] Pazician: has joined #RubyOnRails
[07:23:11] jgt: has joined #RubyOnRails
[07:23:31] solars: has joined #RubyOnRails
[07:24:02] PedramT: has joined #RubyOnRails
[07:24:02] sevenseacat: errakeshpd: !rule12
[07:24:02] helpa: errakeshpd: Do not PM members of the channel without first asking if that is OK.
[07:24:11] sevenseacat: you should know the rules by now.
[07:24:17] LeoDee: has joined #RubyOnRails
[07:24:48] dopie: has joined #RubyOnRails
[07:29:00] arup_r: has joined #RubyOnRails
[07:29:52] errakeshpd: any other way to format like the above json.
[07:30:37] PedramT: has joined #RubyOnRails
[07:32:03] udiudi: has joined #RubyOnRails
[07:33:08] pawnbox: has joined #RubyOnRails
[07:33:39] NodeNagant: has joined #RubyOnRails
[07:33:43] arup_r: errakeshpd: use then Jbuilder
[07:34:44] arup_r: why Date.current.begining_of_month trows error ? https://gist.github.com/aruprakshit/55845eda9cd2faec7e8a
[07:34:53] sevenseacat: because you can't spell it?
[07:34:56] n00bDev: has joined #RubyOnRails
[07:35:02] arup_r: undefined method `begining_of_month'
[07:35:10] sevenseacat: beginning has two n's
[07:35:19] kerunaru: has joined #RubyOnRails
[07:35:31] errakeshpd: <arup_r> Ok, Thanks.
[07:35:58] arup_r: hmm sevenseacat still this works (Date.current - (1.month)).beginning_of_month
[07:36:08] sevenseacat: yes, because thats spelt correctly.
[07:41:59] hellowhat: has joined #RubyOnRails
[07:43:58] shortCircuit__: I have this https://gist.github.com/aghosh47/849a98c5f84ba82a526a simple nginx config ..a rails server is running at :3000 and a javascript app on port 80 , now the thing is when I send a request with content-type: application/x-www-form-urlencoded it works fine .. but when I try application/json . I get that the pre-flight OPTIONS request didn't have Access-control-allow-origin set in the browser console and in the rail
[07:44:15] uranther: has joined #RubyOnRails
[07:44:32] roamingdog: has joined #RubyOnRails
[07:44:36] uranther: has left #RubyOnRails: ()
[07:45:56] User458764: has joined #RubyOnRails
[07:51:15] Scripore: has joined #RubyOnRails
[07:55:56] antgel: has joined #RubyOnRails
[08:04:16] PedramT: has joined #RubyOnRails
[08:07:06] jas02: has joined #RubyOnRails
[08:07:39] DoubleMalt: has joined #RubyOnRails
[08:08:22] _3by8: With this Gist I'm expecting to see "0.00" show up as output on my view. Can someone tell me why I might not be? https://gist.github.com/anonymous/81ae2e15bcc3d9da9a74
[08:08:33] DirtyFInn: has joined #RubyOnRails
[08:09:23] mary5030_: has joined #RubyOnRails
[08:09:43] sevenseacat: ACTION gets crystal ball
[08:09:43] sneep: has joined #RubyOnRails
[08:09:58] _3by8: sevenseacat: remember to plug it in.
[08:10:05] Radar: https://gist.github.com/anonymous/81ae2e15bcc3d9da9a74#file-new-html-erb-L3 this is wrong
[08:10:24] sevenseacat: you havent told us what you *are* seeing, so we can guess, but thats about it
[08:10:25] Radar: <%= f.fields_for :order_items do |ff| %> should be fine.
[08:10:36] Radar: You're missing the =
[08:10:49] arup_r: _3by8: that call @order.order_items was to DB, but you have that in memory.
[08:10:57] sevenseacat: dammit Radar stop ruining my snark.
[08:11:11] Radar: and I'd expect the same of you too sevenseacat
[08:11:14] Radar: vice versa
[08:11:55] sneep: Hi, I'm very new to Ruby but have to modify some code in a simple Rails application. Are both $vars like this and @vars like this (I need to pass them to a view) thread-safe in Rails?
[08:11:56] jgt: has joined #RubyOnRails
[08:11:59] arup_r: and all other reasons from other is also true :)
[08:12:35] darutoko: has joined #RubyOnRails
[08:12:56] sevenseacat: you shouldnt be using $vars, as they're global
[08:12:57] Radar: sneep: $vars in Ruby are global vars and are usually avoided in all cases.
[08:12:59] _3by8: arup_r: I'm trying to create a record with some information already filled out
[08:13:09] Radar: sneep: @vars are from the controller and can be accessed in views. They are thread safe.
[08:13:41] sneep: Cool, thanks!
[08:13:47] sneep: $vars aren't thread-safe then?
[08:13:59] bronson: has joined #RubyOnRails
[08:14:00] Radar: I believe they aren't but I'm happy to be corrected.
[08:14:00] Scripore: has joined #RubyOnRails
[08:14:11] sevenseacat: I've never used them so I don't know. you shouldn't use them either
[08:14:22] arup_r: _3by8: I got it, follow Radar what he said, I have nothing extra to say..
[08:14:26] blackmes1: has joined #RubyOnRails
[08:15:10] _3by8: arup_r: I'm not sure if you had something valid to say or not arup_r, that's how bad I am.
[08:15:18] sneep: I'm consolidating a couple of small apps into one more general app, and it used $vars like this to store some constants
[08:16:02] artto: has joined #RubyOnRails
[08:16:12] sneep: But some of those constants aren't constant anymore in the generalized version of the app, so I guess I'll have to change those to @ vars then.
[08:16:15] sneep: Thanks a lot!
[08:16:43] Radar: sneep: We'd really need to see some code to give better advice.
[08:17:00] Radar: sneep: We'd really need to see some code to give better advice.
[08:17:39] mark3: has joined #RubyOnRails
[08:18:18] sneep: The app looks at the request in before_action to figure out what to put in those $vars
[08:18:27] arup_r: _3by8: :)
[08:18:42] PedramT: has joined #RubyOnRails
[08:19:08] Radar: sneep: Put some example code up on gist.github.com so that we know what you're talking about please.
[08:19:39] sneep: Hmm, I feel you already answered my question :p So thanks :p
[08:20:06] _3by8: Radar: thanks, by the way
[08:20:09] roamingdog: has joined #RubyOnRails
[08:20:11] _3by8: sevenseacat: thanks for nothing.
[08:20:14] rromanch_: has joined #RubyOnRails
[08:20:25] Radar: _3by8: Easy there.
[08:20:26] sneep: (Course it was probably wrong of the original developer to use $vars in the first place)
[08:20:29] arBmind: has joined #RubyOnRails
[08:20:30] _3by8: we jokin'!
[08:20:33] sevenseacat: ACTION raises eyebrow
[08:20:35] _3by8: we totally just messin'
[08:20:35] Radar: sneep: It's pretty bad practice in Rails to set $vars anywhere.
[08:20:47] _3by8: i mess around like a real messer cuz i'm a mess, you got me?
[08:20:56] Radar: sneep: Next time if you'd like advice about code we'd appreciate you showing the code you're talking about, ok?
[08:21:06] _3by8: t'was fleeting glimpse of my beauty and nothing more
[08:21:16] sevenseacat: _3by8: please stop talking.
[08:21:19] _3by8: hahahahaah
[08:21:25] _3by8: ACTION hugs sevenseacat 
[08:21:31] tenzan: has joined #RubyOnRails
[08:21:54] sevenseacat: and thats totally inappropriate.
[08:22:08] sevenseacat: and unwelcome.
[08:22:17] edwinvdgraaf: has joined #RubyOnRails
[08:23:43] quazimodo: has joined #RubyOnRails
[08:24:52] _3by8: sevenseacat: nah if I had to rate the levels of helpfulness between you and Radar, I'd say Radar is so far beneath you that it's like you're a u2 spying on his barely adequate advice
[08:25:04] ChanServ: +q *!*@gateway/web/freenode/ip.
[08:25:08] Radar: [19:21:16] <sevenseacat> _3by8: please stop talking.
[08:25:08] sevenseacat: I asked you to stop talking.
[08:25:23] Radar: Don't poke the bear.
[08:25:28] Radar: ^ life protip
[08:27:01] ChanServ: -q *!*@gateway/web/freenode/ip.
[08:27:19] PedramT: has joined #RubyOnRails
[08:27:41] sergey_makagon: has joined #RubyOnRails
[08:27:57] ddv: what is happening
[08:28:09] _3by8: I'm talking.
[08:28:42] Radar: ddv: same old
[08:28:58] Spami: has joined #RubyOnRails
[08:29:41] ddv: apparently
[08:30:48] arup_r: has joined #RubyOnRails
[08:32:27] hannelita: has joined #RubyOnRails
[08:38:27] IrishGringo: has joined #RubyOnRails
[08:39:15] lethjakman-l: has joined #RubyOnRails
[08:41:40] artto: has joined #RubyOnRails
[08:42:04] PedramT: has joined #RubyOnRails
[08:43:15] sneep: Thanks for the help again. Gisting the code would probably take a little too long but I'm sure you would have approved of my last change :p No more global variables now.
[08:44:28] NodeNagant: has joined #RubyOnRails
[08:45:33] tjbiddle: has joined #RubyOnRails
[08:46:01] ecmacoder: has joined #RubyOnRails
[08:46:29] AimlessRAven: has joined #RubyOnRails
[08:48:04] steffkes: has joined #RubyOnRails
[08:49:10] tjbiddle: Hi all. My application will run in a network that may have issues at times connecting to my database, which is in another network. Any recommendations on how best to handle this? Current thought was somehow rescue whatever the app wanted to do, and throw it in a Sidekiq process and retry until it works.
[08:50:08] TheMysticWyvern: has joined #RubyOnRails
[08:50:08] cfloare: has joined #RubyOnRails
[08:50:19] TheMysticWyvern: I have a rather open-ended question, here.
[08:50:44] TheMysticWyvern: I am, of course, familiar with PHP and JavaScript, but what does Ruby on Rails allow in the way of web development that the other languages don't?
[08:50:45] alex88: has joined #RubyOnRails
[08:50:50] Radar: tjbiddle: Set AR's timeout to a higher value than the default.
[08:52:53] Radar: and wish for the best
[08:53:10] jottr: has joined #RubyOnRails
[08:53:43] Radar: TheMysticWyvern: Did you read http://rubyonrails.org/doctrine yet?
[08:53:43] artto: has joined #RubyOnRails
[08:55:18] ddv: Majestic monoliths :p
[08:55:37] cgfbee: has joined #RubyOnRails
[08:55:46] cfloare: has joined #RubyOnRails
[08:56:38] TheMysticWyvern: Radar: I have not, but I will now. I was a web designer back in 2008, and for... personal reasons, I haven't touched it since. I would like to get back into it, and I'd like my resume to look as nice to employers as possible.
[08:56:56] sandstrom: has joined #RubyOnRails
[08:56:58] srinidhi: has joined #RubyOnRails
[08:57:39] TheMysticWyvern: Radar: But my HTML and CSS are really out of date, and I don't know anything else besides those two.
[08:58:08] sheeny: has joined #RubyOnRails
[08:58:48] tjbiddle: Radar: Hm - http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/ConnectionPool.html says the default checkout_timeout is 5 seconds; however my app throws an error immediately. Upping this to 30 does nothing. Wrong conifg?
[08:59:12] Radar: tjbiddle: I thought it was timeout: 5...
[08:59:16] Radar: tjbiddle: Maybe I am wrong?
[08:59:20] Radar: That happens sometimes.
[08:59:27] sevenseacat: say it isnt so!
[08:59:39] Radar: TheMysticWyvern: !r4ia
[08:59:39] helpa: TheMysticWyvern: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[08:59:44] Radar: TheMysticWyvern: This is a book that sevenseacat and I wrote.
[09:00:02] Radar: It'll guide you through creating a Rails application from scratch and includes some basic HTML + CSS using Bootstrap.
[09:00:11] TheMysticWyvern: Radar: I will check it out. Thank you. :3
[09:00:24] CornishPasty: sevenseacat is awesome, so is Radar
[09:00:33] Radar: CornishPasty: Thank you :)
[09:00:58] sheeny: Hi, Can I use ENV vars in yml files?
[09:01:18] Radar: sheeny: yes
[09:01:23] sheeny: I have tried `<%= ENV['blah'] %> but it doesnt seem to be working
[09:01:46] sheeny: If that is correct then maybe its the gem im using
[09:02:05] Radar: sheeny: Which yml file specifically?
[09:02:27] sheeny: its a custom one, im using a settings file basically
[09:02:47] sheeny: using https://github.com/redbubble/key-vault
[09:03:09] sevenseacat: CornishPasty: <3
[09:03:19] Radar: It might not have the ERB parsing wrapped around the YAML parsing, which'll be why it's not working.
[09:03:28] threeminutemonta: has joined #RubyOnRails
[09:03:30] sheeny: makes sense
[09:03:33] Radar: https://github.com/redbubble/key-vault/blob/master/lib/key_vault.rb#L21
[09:03:39] Radar: Wow look at that I am right who knoew
[09:04:21] CornishPasty: I'd raise an issue/PR about that
[09:04:56] jsrn_: has joined #RubyOnRails
[09:05:22] sevenseacat: we always add disclaimers that we wrote the book so take the recommendations with a grain of salt. we also recommend other books if asked.
[09:06:03] sheeny: YAML.load(ERB.new(IO.read(Rails.root + "config/key_vault.yml")).result).symbolize_keys works a charm - cheers ill make a PR
[09:06:04] sheeny: thanks :)
[09:06:07] cgfbee: has joined #RubyOnRails
[09:06:20] cfloare: has joined #RubyOnRails
[09:06:57] sevenseacat: that being said, I wouldnt recommend any basic rails tutorial book over r4ia
[09:07:39] PaulePanter: Hi. In a table Content I???d like to find all records in the (text) column `value`, where the size (number of characters) is greater than 20.
[09:07:43] Radar: Would I be showing my face in here if Rails 4 in Action was a terrible book? Probbaly.
[09:07:48] Radar: BESIDE THE POINT. It's a good book.
[09:07:55] CornishPasty: Why do I know the name Steve Klabnik?
[09:07:57] sevenseacat: its not a terrible book. i wouldnt have put my name on it if it was.
[09:08:03] Radar: CornishPasty: @steveklabnik
[09:08:10] PaulePanter: Do I need manually convert it to the length in SQL, or does Active Record provide some easier way?
[09:08:25] Radar: PaulePanter: where("length(value) > 20") ?
[09:08:28] mary5030: has joined #RubyOnRails
[09:09:17] CornishPasty: Radar: yeah, but why?
[09:09:29] Radar: CornishPasty: Rust?
[09:09:33] CornishPasty: Must be it, yeah
[09:09:38] CornishPasty: Looked at his GH
[09:09:57] PedramT: has joined #RubyOnRails
[09:10:37] PaulePanter: Radar: Thank you! Seems to be also supported by PostgreSQL http://www.postgresql.org/docs/9.4/static/functions-string.html.
[09:11:40] duderon__: has joined #RubyOnRails
[09:11:47] tjbiddle: has joined #RubyOnRails
[09:12:45] cornerma1: has joined #RubyOnRails
[09:13:48] PedramT: has joined #RubyOnRails
[09:15:11] ly_caon: has joined #RubyOnRails
[09:16:31] defsdoor: has joined #RubyOnRails
[09:16:35] czerasz: has joined #RubyOnRails
[09:17:14] drptbl: has joined #RubyOnRails
[09:17:25] blackmes1: has joined #RubyOnRails
[09:17:33] cgfbee: has joined #RubyOnRails
[09:17:38] User458764: has joined #RubyOnRails
[09:18:57] PedramT: has joined #RubyOnRails
[09:21:27] cfloare: has joined #RubyOnRails
[09:23:13] lycaonian: has joined #RubyOnRails
[09:24:24] renanoronfle: has joined #RubyOnRails
[09:25:45] DEA7TH: has joined #RubyOnRails
[09:26:07] workmad3: has joined #RubyOnRails
[09:26:59] pawnbox: has joined #RubyOnRails
[09:27:09] blackmes1: has joined #RubyOnRails
[09:28:29] snowy: has joined #RubyOnRails
[09:29:35] [flying_high]: has joined #RubyOnRails
[09:31:40] ur5us: has joined #RubyOnRails
[09:33:38] IrishGringo: has joined #RubyOnRails
[09:34:17] Scripore: has joined #RubyOnRails
[09:35:08] tjbiddle: Radar: Huh. Everything I've tried; ActiveRecord or Mysql2 specific hasn't worked - it always immediately returns: https://gist.github.com/thomasbiddle/eb0b29eae1c4a58c9464
[09:36:46] tjbiddle: rvanlieshout: Rails
[09:37:01] universa1: rvanlieshout: go read the backtrace :p lazy people annoy me (chuckle) :p
[09:37:19] sevenseacat: "Rails always immediately returns" sentence still doesnt make sense
[09:37:21] tjbiddle: Any endpoint I hit that hits a model
[09:37:28] PaulePanter: `param[:start].to_date.to_s < Date.today.to_s` is equivalent to `param[:start].to_date < Date.today` (without `to_s`), right?
[09:37:45] tjbiddle: sevenseacat: Any route that I hit within the application.
[09:37:52] sevenseacat: tjbiddle: !debug
[09:37:52] helpa: tjbiddle: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[09:37:56] PaulePanter: A colleague has doubts and says something about time zones. But I do not see how that matters.
[09:38:26] universa1: PaulePanter: i doubt string comparison is the same as comparing two numbers.
[09:38:36] sevenseacat: string comparison is not date comparison
[09:38:46] rvanlieshout: what backtrace?
[09:38:51] universa1: PaulePanter: and the string has less precision then the two numbers
[09:39:41] NBarnes: has joined #RubyOnRails
[09:39:45] universa1: and the actual question is: why would you ever want to add two to_s calls for a comparison?!
[09:42:10] tjbiddle: sevenseacat: https://gist.github.com/thomasbiddle/94bde6fe288c9c4dc063
[09:42:28] universa1: tjbiddle: https://gist.github.com/thomasbiddle/94bde6fe288c9c4dc063#file-gistfile1-txt-L1
[09:42:46] tjbiddle: universa1: Yes?
[09:42:51] universa1: tjbiddle: what is written there?
[09:42:56] marr: has joined #RubyOnRails
[09:42:57] pawnbox: has joined #RubyOnRails
[09:43:03] tjbiddle: I'm aware MySql hasn't started; that's what I'm testing.
[09:43:29] tjbiddle: I'm trying to intelligently fail; or have a timeout that waits long enough
[09:43:38] universa1: tjbiddle: it tries to make a socket connection, not a tcp connection.
[09:43:38] pawnbox: has joined #RubyOnRails
[09:43:48] przemekd: has joined #RubyOnRails
[09:43:57] pawnbox: has joined #RubyOnRails
[09:44:02] universa1: which is what you're trying to do, as far as i can tell.
[09:44:02] gbgdev: has joined #RubyOnRails
[09:44:15] tjbiddle: universa1: So you think the gem is defaulting to the socket since I have localhost defined?
[09:44:36] universa1: tjbiddle: you gisted the production config, are you running in production mode?
[09:44:48] tjbiddle: universa1: Yes - I've ran in both development and production
[09:44:51] tjbiddle: Wasn't sure if something weird was going on
[09:45:09] tjbiddle: I'll try adding a host that's not localhost pointing at 127
[09:45:11] universa1: add the actual command run, the full database.yml config
[09:46:37] n00bDev: has joined #RubyOnRails
[09:49:18] tjbiddle: universa1: https://gist.github.com/thomasbiddle/8c50c2896533c15ece23
[09:50:07] universa1: tjbiddle: https://gist.github.com/thomasbiddle/8c50c2896533c15ece23#file-gistfile1-txt-L8
[09:50:26] universa1: tjbiddle: still connecting through a socket
[09:51:10] tjbiddle: universa1: I know - I tried a new /etc/hosts entry ( mydatabasehost) - Nothing has changed apart from that; you just asked me to post for you
[09:51:27] jkprg: has joined #RubyOnRails
[09:51:33] universa1: tjbiddle: set host to:
[09:51:53] lipoqil: has joined #RubyOnRails
[09:52:57] tjbiddle: universa1: Well, no more socketing at least: https://gist.github.com/thomasbiddle/ffe61ea3ea19a8775d29
[09:53:01] jkprg: has joined #RubyOnRails
[09:53:10] tjbiddle: And does work if I start the server. But still not respecting any timeout configuration
[09:54:14] universa1: tjbiddle: what version of the mysql2 gem do you have?
[09:54:22] tjbiddle: Double checking.
[09:54:24] przemekd: has left #RubyOnRails: ()
[09:54:48] universa1: tjbiddle: http://stackoverflow.com/questions/12192974/check-mysql-connection-to-remote-host
[09:54:59] universa1: tjbiddle: the connect_timeout bit might be ignored
[09:55:50] tjbiddle: universa1: Says it should be fixed in 0.3.12 though. I can try an update to 0.4.2 though.
[09:56:00] universa1: tjbiddle: no, the answer after that.
[09:56:18] universa1: tjbiddle: there is also code on how to check if it is set ;)
[09:56:58] ferr: has joined #RubyOnRails
[09:56:58] universa1: tjbiddle: i haven't used mysql in a long time, so i don't know how the connect_timeout stuff works, it might very well be, that it is not: try for this time to make a connection, but:
[09:57:14] universa1: if you openend the connection, you have 30seconds to finish it.
[09:57:24] ql6wlld: has joined #RubyOnRails
[09:57:35] universa1: so: if the mysql server is not there, it will fail immediately.
[09:57:42] universa1: regardless of whatever value you set.
[09:58:53] cajone: has joined #RubyOnRails
[10:00:26] krz: has joined #RubyOnRails
[10:00:44] alex88: has joined #RubyOnRails
[10:02:07] tjbiddle: universa1: Hm? Where are you seeing that? I see that I can only set wait_timeout; and that `show variables` ActiveRecord call shows it's being loaded in; but the application still is rendering a view immediately
[10:02:57] universa1: tjbiddle: i'm not seeing it anywhere, that is my guess on how it works: but you would need to check the mysql2 code how it actuelly does work...
[10:03:10] tjbiddle: ACTION bangs head on desk
[10:03:12] universa1: tjbiddle: and since that is c code my interest has gone to zero ;)
[10:03:19] DaniG2k: has joined #RubyOnRails
[10:03:25] universa1: tjbiddle: https://github.com/brianmario/mysql2/blob/master/ext/mysql2/client.c
[10:03:33] tjbiddle: universa1: ;)
[10:05:19] [flying_high]: has joined #RubyOnRails
[10:07:24] tjbiddle: ACTION sighs
[10:08:34] mary5030: has joined #RubyOnRails
[10:09:28] PaulePanter: universa1, sevenseacat: Thanks. After it is a date beforehand and then converted to a string, I???d still think it is equivalent.
[10:09:49] PaulePanter: Could you give me an example, where it is different? I cannot think of one.
[10:09:59] universa1: PaulePanter: why do you convert it to a string?
[10:10:02] sevenseacat: anything involving a timezone
[10:10:51] PaulePanter: universa1: Well, my colleague thinks it???s better.
[10:10:56] PaulePanter: sevenseacat: I don???t see it.
[10:11:03] ddv: let him explain why
[10:11:18] ddv: he needs to come up with arguments
[10:11:24] PaulePanter: It would be easier with an example.
[10:11:38] sevenseacat: "2016-01-20 18:11:00 +0800" vs "2016-01-20 18:12:00 +0900"
[10:11:43] DeXterbed: has joined #RubyOnRails
[10:11:49] sevenseacat: other way around, derp
[10:12:05] sevenseacat: later timestamp but earlier timezone
[10:13:15] sevenseacat: but yes, ask your colleague.
[10:13:43] tvw: has joined #RubyOnRails
[10:14:07] dionysus69: has joined #RubyOnRails
[10:14:13] workmad3: has joined #RubyOnRails
[10:14:40] PaulePanter: sevenseacat: Thanks. It???s still a little difficult, as in this case, only the date (and not time) is taken.
[10:15:06] sevenseacat: not really, if the two times are either side of midnight
[10:15:27] PaulePanter: irb(main):004:0> "2016-01-20 23:12:00 +0900".to_date
[10:15:28] PaulePanter: => Wed, 20 Jan 2016
[10:16:10] PaulePanter: In my time zone (+0100), why doesn???t this return the 21st?
[10:16:35] sevenseacat: because it isnt, you specified the 20th
[10:17:19] shibabu: has joined #RubyOnRails
[10:17:27] drptbl: has joined #RubyOnRails
[10:18:38] PaulePanter: sevenseacat: Ok, not what I would have expected. But I remember that.
[10:20:36] PedramT: has joined #RubyOnRails
[10:21:16] AzaToth: has joined #RubyOnRails
[10:22:44] sarink: has joined #RubyOnRails
[10:23:06] PaulePanter: sevenseacat: Sorry, for being stupid, but I am unable to get a working example.
[10:23:12] PaulePanter: d1 = "2016-01-20 22:12:00 +0900"
[10:23:16] PaulePanter: d2 = "2016-01-20 22:12:00 +0100"
[10:23:24] PaulePanter: > d1.to_date == d2.to_date
[10:23:49] Ergo: has joined #RubyOnRails
[10:23:52] PaulePanter: So exactly, what would happen with `to_s`.
[10:24:04] IrishGringo: has joined #RubyOnRails
[10:24:57] sevenseacat: the to_s isn't the relevant part, the date is
[10:25:16] sevenseacat: the to_s is just unnecessary
[10:25:17] Scripore: has joined #RubyOnRails
[10:26:46] IrishGringo_: has joined #RubyOnRails
[10:28:03] lethjakman-l: has joined #RubyOnRails
[10:29:25] sonOfRa: has joined #RubyOnRails
[10:29:33] smoitra: has joined #RubyOnRails
[10:29:35] PaulePanter: sevenseacat: That???s what I think too.
[10:29:50] rodfersou: has joined #RubyOnRails
[10:29:57] sevenseacat: again, if you have a debate with your colleague about it, *ask them*.
[10:30:05] PaulePanter: But I claimed it???s equivalent, and I was astonished why it shouldn???t.
[10:30:26] PaulePanter: Agreed. But it turned into a different question in here.
[10:30:36] PaulePanter: The question is, is it equivalent.
[10:30:43] smoitra: hi all, do mailers don't have access to helper methods ?
[10:31:00] sevenseacat: smoitra: you have to manually include them i believe.
[10:31:02] PaulePanter: And I am still searching for an example, why it shouldn???t be.
[10:31:07] baweaver: has joined #RubyOnRails
[10:32:52] smoitra: sevenseacat: How do I do that ?
[10:33:04] sevenseacat: smoitra: what problem are you having?
[10:33:05] ayonkhan: has joined #RubyOnRails
[10:34:38] _3by8: So let's say that you have an instance variable @users holding ActiveRecord data on a group of users. Let's also say that I am iterating over them in my view like so: @users.each do |user| -- Let's pretend that after the loop, I want to access the third element of that array--how do I do that?
[10:35:26] _3by8: Would I be able to narrow down the results after the query? Let's say I just want to access the rows that contain a particular ID.
[10:35:43] smoitra: sevenseacat: I have defined helper method in ApplicationController and want to use that in one my mailer templates
[10:36:15] sevenseacat: smoitra: ok, i thought you meant view helper methods. no, you can't access controller methods in a mailer
[10:38:48] PaulePanter: Hi. Do you experts have a suggestion how to avoid code duplication when using `link_to` conditionally in HAML files: http://paste.debian.net/366757/ ?
[10:38:51] smoitra: What is the difference between defining a helper in ApplicationHelper module and defining it controller and decalaring it as helper method ?
[10:38:56] fourminutemonta: has joined #RubyOnRails
[10:39:03] arup_r: has joined #RubyOnRails
[10:39:37] ldnunes: has joined #RubyOnRails
[10:40:19] universa1: PaulePanter: write a helper?
[10:41:21] universa1: _3by8: third element: @users.third or @users[2]
[10:41:51] universa1: _3by8: @users.find {|u| [23,24,21].include? u.id }
[10:41:59] [flying_high]: has joined #RubyOnRails
[10:42:09] artto: has joined #RubyOnRails
[10:42:17] gbgdev: has joined #RubyOnRails
[10:42:35] universa1: _3by8: ruby Enumerable, and activerecord querying are you friends in this case... ...without the actual use case... no way to give a really useful answer
[10:43:42] _3by8: universa1: I should have just assumed that I could access it like any old array.
[10:43:50] hannelita: has joined #RubyOnRails
[10:47:22] waka: has joined #RubyOnRails
[10:47:23] waka_: has joined #RubyOnRails
[10:50:02] jxs_: has joined #RubyOnRails
[10:52:28] ddv: New Rails identity <3
[10:52:39] ddv: DHH has spoken
[10:53:07] ddv: universa1: http://weblog.rubyonrails.org/2016/1/19/new-rails-identity/
[10:54:51] DaniG2k: anyone here familiar with DatabaseCleaner gem? I am trying to clean my database on new rspec runs but it doesn't always seem to do what it's meant to for some reason (will post the code, give me 1 sec)
[10:55:14] jottr: has joined #RubyOnRails
[10:55:41] sandstrom: has joined #RubyOnRails
[11:00:58] universa1: 600s later :p
[11:01:14] workmad3: universa1: it's only 300s so far :P
[11:01:29] DaniG2k: hahah sorry
[11:01:32] DaniG2k: here it is
[11:01:33] DaniG2k: https://gist.github.com/DaniG2k/5ea0a8838340e305b97d
[11:01:39] DaniG2k: let me know if I've missed anything plz >_<
[11:02:05] DaniG2k: I am setting up the DatabaseCleaner in rails_helper.rb
[11:02:16] DaniG2k: but it doesn't seem to be resetting within runs
[11:02:36] DaniG2k: since it already has two Post objects by the time it runs ./spec/features/add_new_posts_spec.rb
[11:03:47] universa1: DaniG2k: https://github.com/DatabaseCleaner/database_cleaner#rspec-with-capybara-example
[11:03:57] lycaonian: has joined #RubyOnRails
[11:06:05] arup_r1: has joined #RubyOnRails
[11:07:34] DaniG2k: universa1: https://gist.github.com/DaniG2k/5ea0a8838340e305b97d#file-rails_helper-rb
[11:07:45] DaniG2k: Im still getting the same error after running a new RSpec test though
[11:08:23] waka_: has joined #RubyOnRails
[11:08:23] waka: has joined #RubyOnRails
[11:08:43] workmad3: DaniG2k: any chance you could add the PostsController?
[11:09:05] DaniG2k: sure thing
[11:09:08] universa1: and also add a expect(Post.count).to eq(0) add the start of the feature spec
[11:09:18] workmad3: DaniG2k: also your users factory :)
[11:09:28] shibly: has joined #RubyOnRails
[11:09:37] shibly: sevenseacat, Hi, how are you?
[11:09:53] DaniG2k: workmad3: updated: https://gist.github.com/DaniG2k/5ea0a8838340e305b97d
[11:10:11] blackmes1: has joined #RubyOnRails
[11:11:18] CassioAlmeidas: has joined #RubyOnRails
[11:11:20] waldi_: has joined #RubyOnRails
[11:11:27] workmad3: DaniG2k: aha, it's probably this: https://gist.github.com/DaniG2k/5ea0a8838340e305b97d#file-post_spec-rb-L5
[11:11:39] dionysus69: has joined #RubyOnRails
[11:11:41] workmad3: (posts_controller and users factory looked fine)
[11:11:43] DeXterbed: has joined #RubyOnRails
[11:11:57] DaniG2k: ah! should it be each?
[11:12:05] DaniG2k: good eye @_@....
[11:12:23] workmad3: with a `:all`, you've just created two posts outside of the transaction that's rolled back as a 'cleanup' between each test
[11:12:56] DaniG2k: hmm I tried that but am getting same error again: Failure/Error: expect(Post.count).to eq(1)
[11:13:06] nfk|laptop: has joined #RubyOnRails
[11:13:10] DaniG2k: oops, *got: 2
[11:14:51] ericdykstra: has joined #RubyOnRails
[11:15:13] shibly: has left #RubyOnRails: ("Leaving")
[11:15:17] workmad3: DaniG2k: have you added universa1's suggestion of a check at the start of that spec too?
[11:16:12] waka_: has joined #RubyOnRails
[11:16:13] waka: has joined #RubyOnRails
[11:16:13] waka__: has joined #RubyOnRails
[11:16:16] DaniG2k: workmad3 universa1 if I do that, I get expected: 0, got: 1
[11:16:24] DaniG2k: so there's definitely one that's not getting cleaned out
[11:16:47] bronson: has joined #RubyOnRails
[11:17:47] workmad3: DaniG2k: do you get that if you run just that test?
[11:18:14] workmad3: DaniG2k: e.g. `rspec spec/features/add_new_post_spec.rb`
[11:18:57] waka: has joined #RubyOnRails
[11:18:58] DaniG2k: i had to add a begin, ensure, end block
[11:19:10] workmad3: DaniG2k: hmm... where?
[11:19:13] DaniG2k: to the rails_helper
[11:19:30] FooMunki: has joined #RubyOnRails
[11:19:47] DaniG2k: workmad3: https://gist.github.com/DaniG2k/5ea0a8838340e305b97d#file-rails_helper-rb-L77
[11:20:01] DaniG2k: that seems to have done the trick
[11:20:33] workmad3: weird... that doesn't look like it should affect anything :/
[11:20:52] workmad3: DaniG2k: are you sure it's not just a case of your latest test run ran the tests in a different order that didn't have the failure?
[11:20:52] DaniG2k: I hate configuration files
[11:21:10] DaniG2k: workmad3: quite sure...I ran it so many times
[11:21:18] workmad3: DaniG2k: because I think you have another test that's causing you issues :P
[11:21:20] DaniG2k: adding this block is consistently working
[11:21:35] DaniG2k: yeah it's consistent
[11:21:40] workmad3: DaniG2k: you could be sure if you ran with the same seed as a failure
[11:21:55] workmad3: (running lots of times doesn't show consistency in the face of randomness)
[11:22:22] DaniG2k: but it seems to be ok now so I'll call it a victory
[11:22:31] [flying_high]: has joined #RubyOnRails
[11:22:40] workmad3: DaniG2k: you could be sure if you grabbed the seed from a failing run and ran the tests with that seed
[11:22:44] workmad3: pretty simple IMO
[11:22:57] workmad3: especially for a 'magic' fix like that which shouldn't change a thing
[11:23:16] sarink: has joined #RubyOnRails
[11:23:30] CassioAlmeidas: has joined #RubyOnRails
[11:23:41] DaniG2k: workmad3: I don't thikn it was a magic fix, it was my oversight of the FactoryGirl doco
[11:24:23] workmad3: DaniG2k: it's a magic fix... that begin/end/ensure will run exactly the same code unless one of the lines in the `begin` block throws an error
[11:24:31] workmad3: if that was the case, the test run would have aborted
[11:24:54] DaniG2k: workmad3: where can I grab the seed for the failing test?
[11:25:17] workmad3: DaniG2k: should have been in the output at either the start or the end of the run
[11:25:22] CassioAlmeidas: when using 'format.rss' it displays the error ActionController::UnknownFormat, why?
[11:25:33] universa1: you force a second clean, the begin / ensure part is irrelevant i'd say
[11:25:46] workmad3: oh, good point
[11:26:27] workmad3: yeah, that's probably it... cleaning after the FactoryGirl.lint (which probably creates a bunch of records without clearing them out)
[11:27:04] DaniG2k: yeah I think that's what I needed
[11:27:07] IrishGringo: has joined #RubyOnRails
[11:27:08] DaniG2k: the ensure part
[11:27:12] DaniG2k: I was missing that
[11:27:25] DaniG2k: thanks for the help y'all :)
[11:27:35] workmad3: DaniG2k: btw, you're still ignoring FG docs ;)
[11:27:45] workmad3: 'Recommended usage of FactoryGirl.lint is to run this in a task before your test suite is executed. Running it in a before(:suite), will negatively impact the performance of your tests when running single tests.'
[11:27:46] DaniG2k: workmad3: oh? which part?
[11:27:57] c355E3B: has joined #RubyOnRails
[11:28:34] drptbl: has joined #RubyOnRails
[11:28:35] workmad3: universa1: good spot that an extra `clean` snuck in btw :)
[11:28:55] universa1: workmad3: yeah, never saw that fg.lint stuff before, so ignored it ;)
[11:29:53] CassioAlmeidas: respond_to do |format| format.rss it show error ActionController :: UnknownFormat, why?
[11:30:12] Stratus3D: has joined #RubyOnRails
[11:30:19] universa1: CassioAlmeidas: because rails doesn't know about the rss format by default
[11:30:42] universa1: CassioAlmeidas: you need to define it in some initializier, tehre should be one with comments on how to do that already there.
[11:31:13] DriesS: has joined #RubyOnRails
[11:31:51] sergey_makagon: has joined #RubyOnRails
[11:31:53] DriesS: If I need to install private repository gems in docker, do I need to add my private key to the container or is it better to generate a new ssh key an include it in the rails project?
[11:32:13] universa1: DriesS: doesn't ssh agent forwarding work?
[11:33:19] jkprg_: has joined #RubyOnRails
[11:33:20] DriesS: universa1: how to do this
[11:33:45] workmad3: DriesS: I'd probably suggest 'neither'... if you can get ssh agent forwarding working, I'd go with that, otherwise I'd suggest using a new SSH key that you have in a directory shared with the container (not one that gets baked into the container)
[11:34:21] universa1: DriesS: no clue... ...haven't used docker... ...but ssh agent forwarding is what i use during my normal deploys.
[11:34:47] _3by8: So let's say I have an ActiveRecord instance variable named @order and the model that it's based on has many order items (@order.order_items). As I iterate over all of the order items in the view, I'm trying to create groups of the order items based on which printer was attached to the order item so that all order items belonging to the same printer appear in the same unordered list.
[11:35:10] _3by8: I think there's probably too much information to say here without Gisting it.
[11:35:44] workmad3: DriesS: you could also consider https://gemfury.com/plans/personal if you've only got 1 package (or want to pay the $9/mo for a few more)
[11:35:55] universa1: _3by8: @order.order_items.group(:printer_id).each |(printer_id, items)| or alike... ...i always forget how the group stuff works.
[11:36:12] _3by8: universa1: you're a god
[11:36:42] universa1: _3by8: groups = @order.order_items.group_by &:printer_id
[11:37:22] workmad3: DriesS: we use that at work for internal gems... you can either bake throwaway details into your Gemfile as part of a `source` declaration, or you can pull in the details from an ENV var in your Gemfile and push them into the container like that
[11:38:24] DriesS: has joined #RubyOnRails
[11:42:06] codedmart: has joined #RubyOnRails
[11:43:21] atmosx: has joined #RubyOnRails
[11:43:28] CassioAlmeidas: has joined #RubyOnRails
[11:44:05] ddv: why does a Docker container need a ssh key?
[11:44:42] felixal: has joined #RubyOnRails
[11:46:36] privacyid01_: has joined #RubyOnRails
[11:47:06] CassioAlmeidas: has joined #RubyOnRails
[11:48:37] sevenseacat: has joined #RubyOnRails
[11:48:42] workmad3: ddv: from the sounds of things, he's running a `bundle install` inside the container with github sourced gems pointing to private repos
[11:48:58] sevenseacat: has joined #RubyOnRails
[11:49:14] CassioAlmeidas: has joined #RubyOnRails
[11:49:17] privacyid: has joined #RubyOnRails
[11:50:15] Karpah: has joined #RubyOnRails
[11:50:51] CassioAlmeidas: has joined #RubyOnRails
[11:50:56] CassioAlmeidas: has left #RubyOnRails: ()
[11:51:33] privacyid: has left #RubyOnRails: ()
[11:51:56] privacyid01_: has joined #RubyOnRails
[11:52:11] alexhart_: has joined #RubyOnRails
[11:54:19] Pupeno: has joined #RubyOnRails
[11:54:19] Pupeno: has joined #RubyOnRails
[11:54:24] privacyid01_: has left #RubyOnRails: ()
[11:54:33] privacyid01_: has joined #RubyOnRails
[11:55:48] sergey_makagon: has joined #RubyOnRails
[11:57:35] [flying_high]: has joined #RubyOnRails
[11:59:18] moeabdol: has joined #RubyOnRails
[12:01:19] Axy: has joined #RubyOnRails
[12:01:19] Axy: has joined #RubyOnRails
[12:01:27] ferr: has joined #RubyOnRails
[12:02:22] alex88: has joined #RubyOnRails
[12:08:41] rodfersou: has joined #RubyOnRails
[12:10:26] ishamo: has joined #RubyOnRails
[12:10:36] rodfersou: has joined #RubyOnRails
[12:10:55] icemelt: has joined #RubyOnRails
[12:13:48] icemelt: hello anyone know how to add "/" in parameter url?
[12:14:29] icemelt: I have this link = link_to @repository.name, repository_tree_path(@repository, "app/models/lontong.rb")
[12:14:47] icemelt: it end up with this app%2Fmodels%2Flontong.rb
[12:15:49] universa1: icemelt: this looks like something bound to break, but anyways: = (link_to ...) + "/app/models/..."
[12:16:54] universa1: ohh never mind
[12:16:56] universa1: this is wrong.
[12:17:02] shibabu: has joined #RubyOnRails
[12:17:02] lethjakman-l: has joined #RubyOnRails
[12:17:15] icemelt: that's worked but i need to add id in it
[12:17:20] icemelt: it says missing required keys: [:id]
[12:17:27] universa1: link_to "whatver", repository_tree_path(...) + "/app/models/..."
[12:17:44] universa1: icemelt: what is wrong with the url how it is in the first palce?
[12:18:06] icemelt: it's ok i have fix it with your's way
[12:18:11] sandstrom: has joined #RubyOnRails
[12:18:19] icemelt: the finale code is like this = link_to(b[:name], repository_tree_path(@repository, @tree.oid) +"app/models/lontong.rb")
[12:18:42] Ropeney: has joined #RubyOnRails
[12:18:49] universa1: icemelt: what happens if i do: /../../../etc/passwd ?
[12:18:52] icemelt: but that's badway I think haha
[12:18:52] mrbubbles: has joined #RubyOnRails
[12:18:59] pawnbox: has joined #RubyOnRails
[12:19:24] icemelt: it return not found
[12:21:02] icemelt: I want to mimic github way in explore code https://github.com/libgit2/rugged/tree/06330b84a54efbd2c8933184fb1f2dfd6e47fe50
[12:21:17] pawnbox: has joined #RubyOnRails
[12:21:22] icemelt: it use same url but different parameter https://github.com/libgit2/rugged/tree/06330b84a54efbd2c8933184fb1f2dfd6e47fe50/app or https://github.com/libgit2/rugged/tree/06330b84a54efbd2c8933184fb1f2dfd6e47fe50/app/models
[12:22:54] StaticVoid: has joined #RubyOnRails
[12:22:57] silverdust: I never worked with fog and rackspace and looking for a good set up. Answer on this SO question is 2013 https://stackoverflow.com/questions/14158256/uploading-to-rackspace-cloud-files-with-paperclip-and-fog . Is it still a valid way?
[12:23:57] arBmind: has joined #RubyOnRails
[12:24:02] sarink: has joined #RubyOnRails
[12:25:01] udiudi: has joined #RubyOnRails
[12:25:24] anagha_: has joined #RubyOnRails
[12:26:37] joy4u: has joined #RubyOnRails
[12:26:44] silverdust: I know the require isn't used all around files anymore as installed gems are autoloaded
[12:26:46] joy4u: has left #RubyOnRails: ()
[12:29:44] kitsuneyo: has joined #RubyOnRails
[12:30:59] Mediocre: has joined #RubyOnRails
[12:32:10] baweaver: has joined #RubyOnRails
[12:33:57] onlyme: has joined #RubyOnRails
[12:39:14] blackmes1: has joined #RubyOnRails
[12:40:47] IrishGringo: has joined #RubyOnRails
[12:40:52] udiudi: Hi guys, I have an issue with CSRF in Rails 3.2.22.
[12:40:52] udiudi: I've been trying to figure this out for few days now, currently there's a high rate of token mismatch, and I can't think of any reason for the token to change suddenly.
[12:40:52] udiudi: RequestForgeryProtection would generate new form_authenticity_token only if session[:_csrf_token] doesn't exist, but why would it suddenly won't exist anymore and a new token will be generated?
[12:40:56] [flying_high]: has joined #RubyOnRails
[12:41:47] Phobik2000: has joined #RubyOnRails
[12:42:13] udiudi: I have a single page web app, and I could somehow load the new token via PJAX, but it feels like there's an issue somewhere that makes the session to disappear. As far as I know, the token stays for as long as the session is available.
[12:43:17] onlyme: has joined #RubyOnRails
[12:44:35] FailBit: do any of your actions route json?
[12:44:47] Scripore: has joined #RubyOnRails
[12:44:52] udiudi: you mean return JSON? yes, many of them
[12:46:30] User458764: has joined #RubyOnRails
[12:47:01] ecmacoder: has joined #RubyOnRails
[12:47:28] PedramT: has joined #RubyOnRails
[12:47:39] udiudi: BTW, looks like the majority of the users that it happens to are using IE
[12:47:43] safetypin: has joined #RubyOnRails
[12:48:05] arup_r: has joined #RubyOnRails
[12:49:01] onlyme: has joined #RubyOnRails
[12:49:27] jyraff: has joined #RubyOnRails
[12:50:02] roshanavand: has joined #RubyOnRails
[12:50:34] Grundell: has joined #RubyOnRails
[12:50:58] roshanavand: How can I name tests based on Scenario names in RSpec?
[12:51:57] onlyme_: has joined #RubyOnRails
[12:52:04] ecmacoder: has joined #RubyOnRails
[12:53:38] njero: has joined #RubyOnRails
[12:55:35] zpe: has joined #RubyOnRails
[12:55:58] jottr: has joined #RubyOnRails
[12:56:13] njero: hey.. Is there any way to bulk insert has_many through relations.?
[12:56:14] Grundell: has joined #RubyOnRails
[12:56:45] arup_r: roshanavand: one thing is possible using `tag` https://www.relishapp.com/rspec/rspec-core/v/3-4/docs/command-line/tag-option
[12:57:01] ecmacoder: has joined #RubyOnRails
[12:57:22] arup_r: n_e_o: you can using `<<` method, it takes array
[12:57:40] njero: arup_r: awesome.. thanks
[12:57:52] arup_r: doctor.patients << [ p1, p2,..]
[12:58:11] njero: arup_r: can i do the same without creating model, like with ids?
[12:58:26] arup_r: you mean HABTM ?
[12:58:51] arup_r: these 2 stuff are different.. but with both this is possible
[12:59:09] njero: sry? habtm?
[12:59:14] arup_r: both has the method `#<<`
[12:59:15] ericdykstra: has joined #RubyOnRails
[12:59:19] p8m: has joined #RubyOnRails
[12:59:31] njero: i mean say user has many notification through user notification
[13:00:00] roshanavand: arup_r: I run my tests with SauceLabs integration, this is exactly my problem, but the solution doesn't work for me: http://stackoverflow.com/questions/11148009/sauce-labs-tests-with-meaningful-names
[13:00:12] njero: if have a userids array and notification object.. how can i create entry for usernotifications in bulk
[13:00:50] arup_r: n_e_o: time to see your model relationship ..
[13:01:02] njero: yeah.. will gist now
[13:01:02] arup_r: make a tiny gist
[13:01:41] Macaveli: has joined #RubyOnRails
[13:01:45] qejk: has joined #RubyOnRails
[13:02:02] ecmacoder: has joined #RubyOnRails
[13:02:08] FooMunki: has joined #RubyOnRails
[13:02:12] udiudi: So.. no ideas about my CSRF thing then? :( this part is not documented well and very tricky. uh :/
[13:02:26] Macaveli: has joined #RubyOnRails
[13:05:32] njero: arup_r: https://gist.github.com/NeoElit/7667f0f34e95adcaa8c0
[13:06:34] mrgreenfur: has joined #RubyOnRails
[13:07:06] ecmacoder: has joined #RubyOnRails
[13:08:24] njero: arup_r: what i need is to make bulk insert for UserNotification with existing user and notification
[13:08:26] arup_r: n_e_o: saw.. user.notifications << [ notfication_obj1,...]
[13:09:25] arup_r: n_e_o: ^^ do above, the through table will get the proper data.. Or n_e_o do you have extra fields in the through model ?
[13:10:06] arup_r: if not that above one will work.
[13:10:40] ecmacoder: has joined #RubyOnRails
[13:10:52] njero: arup_r: but iterating and creating each seem to laggy.. I do have extra values for usernotification but not at the time of creation. it will be defaults
[13:12:04] arup_r: you need to iterate any one side.. with AR as far as I know. Then wait for someone, who might know without iterating.. i dunno :/
[13:12:24] njero: arup_r: k :(
[13:15:05] iateadonut: has joined #RubyOnRails
[13:17:17] Grundell_: has joined #RubyOnRails
[13:17:24] drptbl: has joined #RubyOnRails
[13:17:40] lethjakman-l: has joined #RubyOnRails
[13:17:40] Craigimus: has joined #RubyOnRails
[13:18:47] jkamenik: has joined #RubyOnRails
[13:19:29] bronson: has joined #RubyOnRails
[13:19:44] Fly80: has joined #RubyOnRails
[13:23:21] arup_r: n_e_o: ping me once you get the answer, I am curious like you.. :)
[13:23:33] njero: arup_r: yeah.. sure
[13:23:42] Grundell: has joined #RubyOnRails
[13:23:50] arup_r: n_e_o: One more thing, is this a 1 time activity ?
[13:24:09] arup_r: or it can happen at any time ? if someone requests for bulk insert
[13:24:13] njero: arup_r: nope..
[13:24:33] njero: it will be done for each notification broadcasts
[13:24:34] arup_r: ahh.. nope is the answer of which question ? lol
[13:24:35] rails134: has joined #RubyOnRails
[13:25:00] arup_r: n_e_o: ok.. so why not thinking to process it using background job ?
[13:25:13] njero: i meant .. for each notification. i create a worker and assigning this job
[13:25:36] arup_r: and then why are you worrying.. :) I think workers are perfect ..
[13:26:02] njero: yeah.. but for 10k record it taking 3 mins now
[13:26:06] sarink: has joined #RubyOnRails
[13:26:10] rails134: I'm using a Heroku unicorn to run my RoR app. How would you determine the value of pool and worker_processes if the app has high traffic (for example, many emails are sent through a background job)?
[13:26:16] arup_r: it is not affecting request/response cycle.. no body has to sits and watch .. when should it be done
[13:26:37] njero: arup_r: i trying to make it superfast :P
[13:27:02] arup_r: rails134: are you talking in conext of n_e_o ? :) of different question ?
[13:27:13] Grundell: has joined #RubyOnRails
[13:27:18] arup_r: n_e_o: then use DB INSERT ...
[13:27:28] arup_r: all in one go!
[13:27:35] njero: arup_r: u mean plain sql?
[13:27:53] arup_r: yes.. do you have callbacks. then don't
[13:28:06] njero: nope..not for this rt now :)
[13:28:37] arup_r: if your CRUD don't have side effect, such bulk thing can be done using SQL .. thet super fast thing
[13:28:55] njero: arup_r: i'll try that.. It's gonna be awesome. product shd be live this midnight and now i'm tweaking notifications :P
[13:29:04] arup_r: n_e_o: you have billions of record ? :p if not, then go with AR .. it is not that slow
[13:29:16] njero: arup_r: :)
[13:29:21] arup_r: ok. n_e_o good luck!
[13:29:39] njero: arup_r: thanks :)
[13:29:59] rails134: @arup_r a different question :)
[13:30:58] rails134: coincidence that my question involve many emails to send as background jobs lol
[13:31:01] qejk: has joined #RubyOnRails
[13:33:19] lacrymology: has joined #RubyOnRails
[13:34:31] rails134: @arup_r ever used Heroku unicorn to host?
[13:35:15] arup_r: no. direct EC2 .. then now some other server, forgot the name created the server 3 months back
[13:35:20] atomical: has joined #RubyOnRails
[13:35:26] d0nn1e: has joined #RubyOnRails
[13:35:48] arup_r: Heroku has some limitations.. so clients don't like it.. at least for me...
[13:35:54] arup_r: so never tried.
[13:36:23] njero: arup_r: do u use aws?
[13:36:27] AimlessRAven: for what we use ||= operator ?
[13:36:33] silverdust: arup_r: you use dokku with DO ?
[13:36:38] arup_r: AimlessRaven: lazy load
[13:36:46] arup_r: or caching..
[13:36:48] sergey_makagon: has joined #RubyOnRails
[13:37:02] arup_r: n_e_o: yes 2 servers I created ..
[13:37:09] arup_r: last year
[13:39:09] jmignault: has joined #RubyOnRails
[13:39:52] Grundell: has joined #RubyOnRails
[13:44:14] j_mcnally: has joined #RubyOnRails
[13:45:25] kitsuneyo: i'm using carrierwave to make a profile pic uploader. this is what i have: https://gist.github.com/kitsuneyo/a73abef0e6e78c9c85f6
[13:47:31] helpa-bot: has joined #RubyOnRails
[13:47:41] maxx88_: has joined #RubyOnRails
[13:47:42] user083_: has joined #RubyOnRails
[13:48:08] arBmind1: has joined #RubyOnRails
[13:48:11] bbrowning_: has joined #RubyOnRails
[13:48:14] kitsuneyo: can anyone help me with my uploader?
[13:48:27] fexilal: has joined #RubyOnRails
[13:48:39] dionysus70: has joined #RubyOnRails
[13:48:42] mary5030_: has joined #RubyOnRails
[13:48:42] DirtyFInn: has joined #RubyOnRails
[13:48:51] pawnbox_: has joined #RubyOnRails
[13:49:16] AntiSpamMeta2: has joined #RubyOnRails
[13:49:17] joeytwiddle_: has joined #RubyOnRails
[13:49:19] ereslibre_laptop: has joined #RubyOnRails
[13:49:19] ereslibre_laptop: has joined #RubyOnRails
[13:49:32] helpa-bot: has joined #RubyOnRails
[13:50:11] johnflux_: has joined #RubyOnRails
[13:50:21] [flying_high]: has joined #RubyOnRails
[13:50:24] codedmart: has joined #RubyOnRails
[13:50:46] DEA7TH: has joined #RubyOnRails
[13:51:19] rhizome_: has joined #RubyOnRails
[13:51:19] eml: has joined #RubyOnRails
[13:51:34] helpa-bot: has joined #RubyOnRails
[13:51:43] mosez_: has joined #RubyOnRails
[13:51:53] philtr_: has joined #RubyOnRails
[13:51:53] Depili_: has joined #RubyOnRails
[13:51:53] kiki_lam1: has joined #RubyOnRails
[13:51:54] cfloare_: has joined #RubyOnRails
[13:51:54] ngr_: has joined #RubyOnRails
[13:51:54] raldu_: has joined #RubyOnRails
[13:51:54] sungji: has joined #RubyOnRails
[13:52:03] raidiant: has joined #RubyOnRails
[13:52:03] Wingar: has joined #RubyOnRails
[13:52:04] sunya7a__: has joined #RubyOnRails
[13:52:17] Gabriel413: has joined #RubyOnRails
[13:52:17] slash_ni1k: has joined #RubyOnRails
[13:52:46] Mch1: has joined #RubyOnRails
[13:55:40] helpa-bot: has joined #RubyOnRails
[13:55:43] weltzooo5: has joined #RubyOnRails
[13:55:46] Nuck: has joined #RubyOnRails
[13:55:53] rails134: I'm using a Heroku unicorn to run my RoR app. How would you determine the value of pool and worker_processes if the app has high traffic (for example, many emails are sent through a background job)?
[13:56:16] braincrash: has joined #RubyOnRails
[13:56:31] `aspiRe: has joined #RubyOnRails
[13:56:31] ankhers: has joined #RubyOnRails
[13:56:33] bahar: has joined #RubyOnRails
[13:56:46] arob: has joined #RubyOnRails
[13:56:51] Denarii: has joined #RubyOnRails
[13:56:53] ja: has joined #RubyOnRails
[13:57:02] Sigma00: has joined #RubyOnRails
[14:03:50] helpa: has joined #RubyOnRails
[14:03:55] mclee: has joined #RubyOnRails
[14:04:25] Mia: has joined #RubyOnRails
[14:04:59] franzip: has joined #RubyOnRails
[14:05:08] mark3: has joined #RubyOnRails
[14:05:22] moei: has joined #RubyOnRails
[14:05:29] shinnya: has joined #RubyOnRails
[14:05:33] oddalot: has joined #RubyOnRails
[14:05:58] coffeejunk: has joined #RubyOnRails
[14:06:55] ecmacoder: has joined #RubyOnRails
[14:06:59] jottr: has joined #RubyOnRails
[14:07:40] naavinm: has joined #RubyOnRails
[14:11:51] AimlessRAven: is evrything that work in ruby.. also work in rails ?
[14:14:51] ramortegui: has joined #RubyOnRails
[14:16:28] quazimodo: has joined #RubyOnRails
[14:17:19] KrzaQ-: has left #RubyOnRails: ()
[14:19:33] quacker: has joined #RubyOnRails
[14:20:45] bronson: has joined #RubyOnRails
[14:21:15] franzip: has joined #RubyOnRails
[14:22:38] elaptics`: has left #RubyOnRails: ()
[14:22:47] nertzy: has joined #RubyOnRails
[14:22:55] elaptics: has joined #RubyOnRails
[14:23:03] elaptics: AimlessRaven: what do you mean exactly?
[14:23:54] treehug88: has joined #RubyOnRails
[14:25:02] sebg_: has joined #RubyOnRails
[14:25:40] chubijs: has joined #RubyOnRails
[14:25:49] sarink: has joined #RubyOnRails
[14:26:41] cicloid: has joined #RubyOnRails
[14:28:29] NoTroutAboutIt: has joined #RubyOnRails
[14:28:48] cac: has joined #RubyOnRails
[14:29:28] xnp70: has joined #RubyOnRails
[14:30:25] bmalum: has joined #RubyOnRails
[14:32:20] User458764: has joined #RubyOnRails
[14:36:55] pwnd_nsfw: has joined #RubyOnRails
[14:37:30] onlyme_: has joined #RubyOnRails
[14:39:31] Macaveli: has joined #RubyOnRails
[14:39:45] BaNzounet: Are there better way to write such thing : registrations.select { |r| r.workshop.passion.accept_coupons }.map(&:amount)[0] ?
[14:44:32] xnp70: has left #RubyOnRails: ()
[14:45:52] cfinley: has joined #RubyOnRails
[14:46:13] Bloomer: has joined #RubyOnRails
[14:47:40] blackmes1: has joined #RubyOnRails
[14:47:41] soahccc: BaNzounet: you only want the first thing?
[14:47:43] B1n4r10: has joined #RubyOnRails
[14:49:01] BaNzounet: ha, sorry it should be .sum
[14:49:01] soahccc: BaNzounet: it is a waste of CPU cause you map instead of [0].amount and you could use Enumerable#detect
[14:49:04] Elion: has joined #RubyOnRails
[14:49:04] Elion: has joined #RubyOnRails
[14:50:10] jaik: has joined #RubyOnRails
[14:51:42] NBarnes: has joined #RubyOnRails
[14:51:47] Guest23046: has left #RubyOnRails: ()
[14:52:01] BaNzounet: soahccc: I want to sum the elements of an array matching a certain condition, I was looking for somthing different than .each ... if CONDITION sum += sum
[14:52:58] universa1: BaNzounet: seperate the problem: filter first, then sum
[14:53:10] kitsuneyo: i'm trying to use carrierwave's mount_uploader within a namespaced model and it's giving me all kinds of trouble. how do i do this?
[14:54:28] Grundell: has joined #RubyOnRails
[14:59:36] NBarnes: BaNzounet; array.select{ |el| CONDITION }.inject{ |memo| WHATEVER}
[14:59:56] PedramT: has joined #RubyOnRails
[15:00:01] Bloomer: has joined #RubyOnRails
[15:00:15] drptbl: has joined #RubyOnRails
[15:00:17] [flying_high]: has joined #RubyOnRails
[15:01:03] pwnd_nsfw: has joined #RubyOnRails
[15:02:19] FLeiXiuS: has joined #RubyOnRails
[15:02:38] Craigimus: has joined #RubyOnRails
[15:02:52] Frem: has joined #RubyOnRails
[15:03:05] fox_mulder_cp: has joined #RubyOnRails
[15:03:22] Grundell: has joined #RubyOnRails
[15:03:39] brycesenz: has joined #RubyOnRails
[15:04:09] roshanav_: has joined #RubyOnRails
[15:04:22] zpe: has joined #RubyOnRails
[15:05:17] brycesenz: has joined #RubyOnRails
[15:05:19] c0defeed: has joined #RubyOnRails
[15:05:53] fox_mulder_cp: hm. how to describe this 'hardened' relations: client has_many service_types, but service_type has application_server, and client has a service instance via service_type. i can't drop server, when it contains clients' service instances
[15:06:00] BaNzounet: nbarnes: funny I just wrote that
[15:06:12] mordof_work: has joined #RubyOnRails
[15:06:14] fox_mulder_cp: *application_servers
[15:06:18] PedramT: has joined #RubyOnRails
[15:06:25] hendricius: has joined #RubyOnRails
[15:08:08] adavia: has joined #RubyOnRails
[15:08:26] jkamenik: has joined #RubyOnRails
[15:08:26] DylanJ: has joined #RubyOnRails
[15:08:26] diegoviola: has joined #RubyOnRails
[15:09:08] DylanJ: has joined #RubyOnRails
[15:09:33] ecmacoder: has joined #RubyOnRails
[15:09:34] michael_mbp: anyone here know of any Ruby shops looking for a senior ruby dev?
[15:10:19] fox_mulder_cp: michael_mbp: i see a some jobs in linkedin, stackoverflow, headhunter etc
[15:10:27] freeone3000: has left #RubyOnRails: ("Konversation terminated!")
[15:10:48] polishdub: has joined #RubyOnRails
[15:12:11] PedramT: has joined #RubyOnRails
[15:13:19] andrew-l: michael_mbp: where are you located?
[15:13:27] andrew-l: and github id?
[15:14:48] michael_mbp: andrew-l: I work to any timezone as needed, my github is 'bsodmike' but each time I leave a team, my stats change :)
[15:14:49] NBarnes: michael_mbp; Several senior positions listed at weworkremotely.com
[15:15:04] michael_mbp: nbarnes: thanks, already looked at those.
[15:15:20] andrew-l: michael_mbp: we're looking for someone in NYC. remote is not an option. :-(
[15:15:36] michael_mbp: andrew-l: I work 100% remote.
[15:16:01] andrew-l: yeah, totally understandable. you should state that up front.
[15:17:16] andrew-l: michael_mbp: just wondering, do you have experience with ruby & avatax?
[15:17:30] andrew-l: a coworker is banging her head against their API
[15:17:52] andrew-l: it'll turn bloody in a few more days...
[15:18:34] michael_mbp: I've worked with taxcloud before; I've yet to come across an API I haven't been able to work with :)
[15:18:46] andrew-l: give avatax a shot.
[15:18:58] michael_mbp: https://ch.linkedin.com/in/michaeldesilva < me
[15:19:02] andrew-l: nothing like working with SOAP and XML for fun :-D
[15:19:27] michael_mbp: Oh, I did about 2+ years of that :o
[15:19:41] andrew-l: why did you stop?! :-D
[15:20:04] michael_mbp: I moved to another role...
[15:20:32] kitsuneyo: i know of one in manchester, uk michael_mbp
[15:20:50] michael_mbp: kitsuneyo: oh
[15:20:59] kitsuneyo: probably not remote though
[15:21:13] NBarnes: Manchester, UK is pretty remote by some people's standards.
[15:21:17] IrishGringo: has joined #RubyOnRails
[15:21:25] felixal: has joined #RubyOnRails
[15:22:11] Ergo: has joined #RubyOnRails
[15:22:14] fox_mulder_cp: hmhm. i interests in jun dev position for parttime, but located in Ukraine. (and need to improve my voice english too)
[15:22:23] michael_mbp: I'm on pretty quick LTE connection, have my own private NAS (circa 20 TB), double-UPS backup, and a decent iMac 5K workstation. Don't really see the need to work 'on site' :)
[15:22:41] kitsuneyo: some companies just prefer to work that way michael_mbp
[15:22:47] fox_mulder_cp: michael_mbp: datacenter-on-kitchen? ))
[15:22:50] michael_mbp: kitsuneyo: too many!
[15:22:58] kitsuneyo: hey, can anyone help me with this carrierwave uploader, it's driving me crazy
[15:23:00] NBarnes: Some companies are weirdly obsessed with having people physically in the office for no observable reason.
[15:23:04] NBarnes: *coughmylastpositioncough*
[15:23:07] michael_mbp: fox_mulder_cp: well it's 2x separate RAID boxes, Synology.
[15:23:21] michael_mbp: nbarnes: micromanagement *Cough*.
[15:23:41] michael_mbp: and I refuse to become a cubicle drone. Oh wait, this room is a cube. Scratch that!
[15:23:57] Bloomer: has joined #RubyOnRails
[15:24:04] fox_mulder_cp: michael_mbp: hehe. i have a ~100tb pack oh dell storages in my prevous job
[15:24:19] kitsuneyo: i want to mount_uploader for :picture in a class User::Profile. the uploader is PictureUploader < CarrierWave::Uploader::Base. how do i reference the uploader in mount_uploader??
[15:24:37] michael_mbp: fox_mulder_cp: the bit I like is that I have a virtual share per client as iSCSI. That share mounts on my Mac as a local disk.
[15:24:38] robbyoconnor: has joined #RubyOnRails
[15:24:47] michael_mbp: So all my work, is saved live over gigE.
[15:25:03] fox_mulder_cp: michael_mbp: you crazy )
[15:25:11] michael_mbp: Not SSD performance, sure, but it hasn't chugged at all.
[15:25:21] alex88: has joined #RubyOnRails
[15:25:31] fox_mulder_cp: all my data without video/music, but include raw photos -~1tb hdd
[15:25:48] kitsuneyo: i tried "mount_uploader :picture, PictureUploader" but then i get weird errors like "A copy of User has been removed from the module tree but is still active!"
[15:25:59] michael_mbp: and I schedule live snapshots which rsync to the backup NAS.
[15:26:02] kitsuneyo: this has gotta be easy, anyone??
[15:26:02] fox_mulder_cp: but somebody can give me hinhs with my relations qa?
[15:26:42] NBarnes: kitsunenyo; I'm looking at my carrierwave code to see if I can help.
[15:26:50] kitsuneyo: thanks nbarnes
[15:27:01] lacuna: has joined #RubyOnRails
[15:27:10] VeryBewitching: has joined #RubyOnRails
[15:27:13] NBarnes: (carrierwave got moved out of meat memory when I euthanized that project)
[15:27:53] kitsuneyo: meat memory, nice
[15:28:24] NBarnes: I'm not seeing a need in my code for referencing the uploader from within the mount_uploader statement?
[15:28:37] NBarnes: So I'm not sure what you're trying to accomplish?
[15:29:36] NBarnes: I just have the line 'mount_uploader :image, ScreenshotImageUploader' in my model file.
[15:29:59] mdel: has joined #RubyOnRails
[15:30:47] Craigimus: has joined #RubyOnRails
[15:31:06] kitsuneyo: nbarnes, ScreenshotImageUploader is your specification of the uploader
[15:31:32] kitsuneyo: when i use PictureUploader there, it screws everything up
[15:31:42] arup_r: michael_mbp: You aware of Slack rubyonrails chaanel ? They have a #work also with it.. They post jobs for remote frequently.. U can join there if you want
[15:31:49] kitsuneyo: is the model you copied that line from namespaced or underneat a different class?
[15:32:00] michael_mbp: arup_r: thanks!
[15:32:02] tenderlove: has joined #RubyOnRails
[15:32:03] NBarnes: class ScreenshotImageUploader < CarrierWave::Uploader::Base
[15:32:26] kitsuneyo: no i mean the class your mount_uploader line is in
[15:32:29] arup_r: michael_mbp: If you have problem, to join. Let me know, I can ask the mod to send you invitation.
[15:32:50] michael_mbp: arup_r: http://www.rubyonrails.link/ yeah?
[15:32:51] mrtomme: has joined #RubyOnRails
[15:32:58] NBarnes: Class file for the model the uploader is on: https://github.com/nbarnes/carry_harder/blob/master/app/models/screenshot.rb
[15:33:07] NBarnes: Uploader file: https://github.com/nbarnes/carry_harder/blob/master/app/uploaders/screenshot_image_uploader.rb
[15:33:09] arup_r: michael_mbp: people count there 1300 + .. so it is a big community.. yes that is
[15:33:35] kitsuneyo: yeah, it's not the same nbarnes... the profile i have mount_uploader in is namespaced, and that's the basis of my problem
[15:33:40] arup_r: michael_mbp: https://rubyonrails-link.slack.com/
[15:33:49] kitsuneyo: thanks anyway :)
[15:34:04] tubbo: arup_r: TIL
[15:34:14] tubbo: arup_r: how do you get an invite?
[15:34:24] arup_r: TIL means ?
[15:34:30] havenwood: Today I Learned
[15:34:45] NBarnes: Sorry I didn't have your problem in hand.
[15:34:59] arup_r: tubbo: you can pop up there.. I tried couldn't.. But I know someone here .. who helped me to get on there
[15:35:01] kitsuneyo: no problem, appreciate the effort
[15:35:02] gbgdev: has joined #RubyOnRails
[15:35:20] arup_r: I gave him my email, and he forwarded.. and they send me the invitation link
[15:35:20] matthias_: has joined #RubyOnRails
[15:36:23] NBarnes: arup_r; can you get me an invite to rubyonrails slack?
[15:36:47] arup_r: nbarnes: PM your email.. I am right way ask the moderator.. they will send you
[15:36:49] tubbo: arup_r: you can "pop up" there?
[15:37:01] tubbo: arup_r: :D
[15:37:05] michael_mbp: arup_r: need an invite. michael@inertialbox.com please
[15:37:12] arup_r: ok.. doing..
[15:37:18] michael_mbp: thanks so much.
[15:37:28] NBarnes: arup_r; thanks, yer a bench.
[15:37:44] NBarnes: Safari's autocorrect is... aggressive.
[15:37:45] arup_r: tubbo: my boss used to say me, Arup, pop up Skype! :D
[15:38:14] IrishGringo: has joined #RubyOnRails
[15:38:19] weckl: has joined #RubyOnRails
[15:38:28] sarink: has joined #RubyOnRails
[15:39:30] sar1nk: has joined #RubyOnRails
[15:42:10] arup_r: michael_mbp: gave them..
[15:42:17] mag42c: has joined #RubyOnRails
[15:42:18] arup_r: let me know if you get the invitation
[15:43:00] diegoviola: has joined #RubyOnRails
[15:45:11] Oliphaunte: has joined #RubyOnRails
[15:45:53] andrew-l: ok, i have a question about rspec and AR::Base.transaction. How can i make the transaction fail in the test? Am I doing it right? https://gist.github.com/a-leung/64f8942367b6c3566500
[15:48:02] PedramT: has joined #RubyOnRails
[15:48:10] startupality: has joined #RubyOnRails
[15:48:12] fatephd: has joined #RubyOnRails
[15:49:55] lacuna: has joined #RubyOnRails
[15:50:29] slash_ni1k: has joined #RubyOnRails
[15:52:38] sarink: has joined #RubyOnRails
[15:54:45] shibabu: has joined #RubyOnRails
[15:57:05] pawnbox: has joined #RubyOnRails
[15:57:07] disgrntld: has joined #RubyOnRails
[16:01:45] ericdykstra: has joined #RubyOnRails
[16:01:50] mary5030: has joined #RubyOnRails
[16:02:46] mary5030: has joined #RubyOnRails
[16:03:18] Bloomer: has joined #RubyOnRails
[16:04:26] jhn: has joined #RubyOnRails
[16:06:34] PedramT: has joined #RubyOnRails
[16:06:56] corioliss: has joined #RubyOnRails
[16:07:28] aegis3121: has joined #RubyOnRails
[16:08:03] nerium: has joined #RubyOnRails
[16:10:04] PedramT: has joined #RubyOnRails
[16:10:46] newdan: has joined #RubyOnRails
[16:14:05] Elion: has joined #RubyOnRails
[16:14:05] Elion: has joined #RubyOnRails
[16:14:43] chouhoulis: has joined #RubyOnRails
[16:17:56] chouhoul_: has joined #RubyOnRails
[16:18:21] guacamole: has joined #RubyOnRails
[16:18:22] ellisTAA: has joined #RubyOnRails
[16:18:54] IrishGringo: has joined #RubyOnRails
[16:19:10] lxsameer: has joined #RubyOnRails
[16:19:17] ellisTAA: has left #RubyOnRails: ()
[16:20:17] PedramT: has joined #RubyOnRails
[16:20:56] cschneid_: has joined #RubyOnRails
[16:23:02] bronson: has joined #RubyOnRails
[16:28:28] cwgem|mac: has joined #RubyOnRails
[16:29:18] alexhartley: has joined #RubyOnRails
[16:29:41] ecmacoder: has joined #RubyOnRails
[16:31:46] brycesenz: has joined #RubyOnRails
[16:32:57] avemestr: has joined #RubyOnRails
[16:33:07] treehug88: has joined #RubyOnRails
[16:33:20] BhavyaM: has joined #RubyOnRails
[16:35:09] baweaver: has joined #RubyOnRails
[16:38:06] roshanavand: has joined #RubyOnRails
[16:38:09] cicloid: has joined #RubyOnRails
[16:41:19] roshanav_: has joined #RubyOnRails
[16:43:09] nertzy2: has joined #RubyOnRails
[16:46:39] StaticVoid: has joined #RubyOnRails
[16:46:40] startupality: has joined #RubyOnRails
[16:47:02] StaticVoid: Is that slack group open to everyone ?
[16:47:13] jkamenik: has joined #RubyOnRails
[16:47:42] arup_r: has joined #RubyOnRails
[16:49:02] ziyadb: has joined #RubyOnRails
[16:49:50] moeabdol: has joined #RubyOnRails
[16:53:23] sarink: has joined #RubyOnRails
[16:53:41] rakm: has joined #RubyOnRails
[16:53:48] Macaveli: has joined #RubyOnRails
[16:54:13] tubbo: StaticVoid: should be
[16:54:26] sandstrom: has joined #RubyOnRails
[16:55:11] sar1nk: has joined #RubyOnRails
[16:56:20] Oliphaunte: has joined #RubyOnRails
[16:57:35] moeabdol: has joined #RubyOnRails
[16:57:36] StaticVoid: tubbo: thx, will take a look
[16:58:02] flashpoint9: has joined #RubyOnRails
[16:58:18] tubbo: arup_r invited me by email, they don't seem to have a heroku app set up to invite people :(
[16:58:50] akshat: has joined #RubyOnRails
[16:59:07] roshanavand: has joined #RubyOnRails
[16:59:09] ellisTAA: has joined #RubyOnRails
[16:59:26] flashpoint9: My edit method is saving another instance of the object rather than just update it, heres my controller methods for edit and update, whats going wrong? http://paste.ofcode.org/PYWpN6CYLEpUWUFwAchYUN
[16:59:35] norc: Is there an elegant way with RSpec to expect that only one attribute changes, but no other?
[16:59:56] arup_r: tubbo: they do have monthly meeting to improve that.. You can take participate, and give them some tips that you think might be helpful
[17:00:01] lacuna: has joined #RubyOnRails
[17:00:05] norc: flashpoint9, routes + view please.
[17:00:16] norc: flashpoint9, and include the full controller and server log.
[17:00:52] norc: flashpoint9, what is the class of Silver also?
[17:00:56] ellisTAA: has joined #RubyOnRails
[17:01:02] ellisTAA: ellistaa: this spec is throwing an error saying ???unknown attribute ???email??? for user but i migrated ??? https://gist.github.com/ellismarte/a130664e10840d2c0ae1#file-user_spec-rb-L10
[17:01:33] sarink: has joined #RubyOnRails
[17:02:28] arup_r: ellistaa: that genreally happens when you don't have the column in DB.. do you have ?
[17:02:48] nomadicoder: Hydra Call is on
[17:02:49] flashpoint9: norc: i was using the same form for edit calling action create, i just herped
[17:03:01] norc: flashpoint9, there you go then.
[17:03:15] norc: flashpoint9, did you by any chance discover this by looking into the places I asked you to?
[17:03:16] brycesenz: has joined #RubyOnRails
[17:03:23] DLSteve: has joined #RubyOnRails
[17:03:35] build22: has joined #RubyOnRails
[17:03:39] fedexo: has joined #RubyOnRails
[17:03:40] fsteim: has joined #RubyOnRails
[17:03:45] drptbl: has joined #RubyOnRails
[17:03:47] build22: has left #RubyOnRails: ()
[17:03:49] norc: flashpoint9, awesome. :)
[17:03:55] flashpoint9: I had spaced checking the views
[17:04:19] ellisTAA: hmm i ran rake db:migrate
[17:04:20] norc: flashpoint9, usually the best place to start is by completely looking at how the request is understood in the rails log.
[17:04:34] guacamole: has joined #RubyOnRails
[17:04:44] norc: flashpoint9, since it will tell you the URL, which controller/action its routed to with which params, which view is rendered and so much more.
[17:04:51] lacrymology: has joined #RubyOnRails
[17:04:58] tildes: has joined #RubyOnRails
[17:05:08] FLeiXiuS: has joined #RubyOnRails
[17:05:09] FLeiXiuS: has joined #RubyOnRails
[17:05:16] flashpoint9: norc: awesome thanks
[17:06:06] norc: ellistaa, I do not believe you.
[17:06:26] ellisTAA: norc: i did. looks like other ppl have had this problem http://stackoverflow.com/questions/9896488/rake-dbmigrate-is-not-working
[17:06:47] norc: ellistaa, does your spec_helper have ActiveRecord::Migration.maintain_test_schema! ?
[17:07:03] StaticVoid: arup_r: It has a registration page, I went through it, but nothing seems to happen. Can you invite me as well (about the Slack team)
[17:07:16] arup_r: StaticVoid: pm me your email
[17:08:09] blackmes1: has joined #RubyOnRails
[17:08:20] nomadicoder: oops??? wrong channel.
[17:10:54] norc: ellistaa, sorry rails_helper of course.
[17:11:03] JohnT: has joined #RubyOnRails
[17:11:13] norc: ellistaa, if your helpers do not execute that method that is your culprit then.
[17:11:13] [Butch]: has joined #RubyOnRails
[17:11:24] norc: (This is the method that checks for pending migrations)
[17:12:07] ellisTAA: norc: i dont see it but i did add this to my config app file https://gist.github.com/ellismarte/a130664e10840d2c0ae1#file-configapp-rb-L22-L31
[17:12:40] norc: ellistaa, pastie your rails_helper.rb please
[17:12:43] norc: Or gist it rather.
[17:13:38] ellisTAA: https://gist.github.com/ellismarte/a130664e10840d2c0ae1#file-rails_helper-rb-L1
[17:13:57] norc: ellistaa, that is really strange.
[17:14:17] ellisTAA: thanks anwyays
[17:14:37] mary5030: has joined #RubyOnRails
[17:18:29] dext: has joined #RubyOnRails
[17:19:18] jyunderwood: has joined #RubyOnRails
[17:20:28] eljimmy: has joined #RubyOnRails
[17:23:02] tubbo: arup_r: when is that meeting?
[17:23:32] mary5030: has joined #RubyOnRails
[17:24:08] arup_r: it happens once in a month.. they tell the same there in the channel.. So, if you keep your eyes, you will get to know.. last month they announced I saw..
[17:24:41] jottr: has joined #RubyOnRails
[17:28:48] kara_sweets: has joined #RubyOnRails
[17:31:39] lycaonian: has joined #RubyOnRails
[17:32:42] eljimmy: has joined #RubyOnRails
[17:34:03] safety_cut: has joined #RubyOnRails
[17:34:38] ellisTAA: has joined #RubyOnRails
[17:34:47] speaking1ode: has joined #RubyOnRails
[17:36:10] benlieb: has joined #RubyOnRails
[17:36:19] lacuna: has joined #RubyOnRails
[17:36:25] dionysus69: has joined #RubyOnRails
[17:39:11] kara_sweets_: has joined #RubyOnRails
[17:40:50] fatephd: has joined #RubyOnRails
[17:41:06] nizmow: has joined #RubyOnRails
[17:42:33] diegoviola: has joined #RubyOnRails
[17:43:43] smathy: has joined #RubyOnRails
[17:45:22] ecmacoder: has joined #RubyOnRails
[17:45:37] Craigimus: has joined #RubyOnRails
[17:47:16] lacuna: has joined #RubyOnRails
[17:47:18] Craigimus: has joined #RubyOnRails
[17:47:29] safety_cut: has joined #RubyOnRails
[17:47:49] User458764: has joined #RubyOnRails
[17:48:18] Craigimus: has joined #RubyOnRails
[17:49:02] JohnT: has joined #RubyOnRails
[17:50:17] djbkd: has joined #RubyOnRails
[17:50:45] Spungey: has joined #RubyOnRails
[17:50:47] dext: has joined #RubyOnRails
[17:50:53] [flying_high]_: has joined #RubyOnRails
[17:51:31] beingjohnm_: has joined #RubyOnRails
[17:52:24] baweaver: has joined #RubyOnRails
[17:53:15] kara_sweets_: has joined #RubyOnRails
[17:55:43] maxx88: arup_r: signed up for the slack rubyonrails.link but, nothing seems to happen. can you get me an invite or does it take days or weeks for a manual invite?
[17:56:01] arup_r: maxx88: minutes :)
[17:56:11] arup_r: maxx88: pm me your email
[17:56:25] maxx88: ok, thanks so much!
[17:56:30] shibabu: has joined #RubyOnRails
[18:02:58] safety_cut: has joined #RubyOnRails
[18:03:15] dman777_alter: has joined #RubyOnRails
[18:04:21] guacamole: has joined #RubyOnRails
[18:08:16] benhuda: has joined #RubyOnRails
[18:08:19] brycesenz: arup_r - there's a ruby on rails Slack channel?
[18:08:29] arup_r: brycesenz: :) :)
[18:08:47] arup_r: ofcourse!
[18:09:06] brycesenz: arup_r - aw, but I like it on IRC
[18:09:55] manfrin: has joined #RubyOnRails
[18:12:44] fcser_: has joined #RubyOnRails
[18:13:10] workmad3_: has joined #RubyOnRails
[18:13:21] Cervajz: has joined #RubyOnRails
[18:14:15] arthurix: has joined #RubyOnRails
[18:14:29] xardion: has joined #RubyOnRails
[18:14:42] hahuang61: has joined #RubyOnRails
[18:14:48] sneakerhax: has joined #RubyOnRails
[18:16:05] benhuda_: has joined #RubyOnRails
[18:16:22] bbrowning_: has joined #RubyOnRails
[18:16:32] guacamole: has joined #RubyOnRails
[18:16:57] srinidhi: has joined #RubyOnRails
[18:16:57] lacrymology: has joined #RubyOnRails
[18:16:57] srinidhi: has joined #RubyOnRails
[18:17:01] exhi_: has joined #RubyOnRails
[18:17:08] nej: has joined #RubyOnRails
[18:17:18] webdestroyaz: has joined #RubyOnRails
[18:17:23] j0llyr0t1en: has joined #RubyOnRails
[18:17:55] hoodow_: has joined #RubyOnRails
[18:17:55] hoodow_: has joined #RubyOnRails
[18:17:59] crankhar1er: has joined #RubyOnRails
[18:18:06] proboszcz: has joined #RubyOnRails
[18:18:20] chaas: has joined #RubyOnRails
[18:18:20] neanderslob_: has joined #RubyOnRails
[18:18:28] safety_c_: has joined #RubyOnRails
[18:18:29] creature_: has joined #RubyOnRails
[18:18:34] El3ktra: has joined #RubyOnRails
[18:18:34] El3ktra: has joined #RubyOnRails
[18:18:48] dopie: has joined #RubyOnRails
[18:18:50] camilasann: has joined #RubyOnRails
[18:19:17] swgillespie_: has joined #RubyOnRails
[18:19:20] bitwise_: has joined #RubyOnRails
[18:19:39] jottr: has joined #RubyOnRails
[18:19:46] frem_: has joined #RubyOnRails
[18:20:14] gmci_: has joined #RubyOnRails
[18:20:21] fumduq: has joined #RubyOnRails
[18:20:38] elaptics`: has joined #RubyOnRails
[18:20:48] dext: has joined #RubyOnRails
[18:21:02] Spami: has joined #RubyOnRails
[18:21:26] Olipro_: has joined #RubyOnRails
[18:21:28] thomasfedb_: has joined #RubyOnRails
[18:21:42] Ankhers_: has joined #RubyOnRails
[18:22:13] goezz: has joined #RubyOnRails
[18:22:30] Bearie: has joined #RubyOnRails
[18:22:38] griffindy: has joined #RubyOnRails
[18:22:46] Nuck: has joined #RubyOnRails
[18:22:50] veloutin: has joined #RubyOnRails
[18:22:57] davidcelis: has joined #RubyOnRails
[18:22:59] davidcelis: has joined #RubyOnRails
[18:23:01] swav: has joined #RubyOnRails
[18:23:03] [adaedra]: has joined #RubyOnRails
[18:23:06] ferr: has joined #RubyOnRails
[18:23:15] universa1: has joined #RubyOnRails
[18:23:24] armyriad: has joined #RubyOnRails
[18:23:58] badeball: has joined #RubyOnRails
[18:24:57] darrik: has joined #RubyOnRails
[18:24:57] bphogan: has joined #RubyOnRails
[18:24:57] kitallis: has joined #RubyOnRails
[18:24:57] waldi_: has joined #RubyOnRails
[18:24:57] toydestroyer: has joined #RubyOnRails
[18:24:57] IrishGringo: has joined #RubyOnRails
[18:25:05] bronson: has joined #RubyOnRails
[18:25:49] dopie: has joined #RubyOnRails
[18:25:53] robbyoconnor: has joined #RubyOnRails
[18:26:43] segy: has joined #RubyOnRails
[18:27:14] emchamp: has joined #RubyOnRails
[18:27:16] JohnT: has joined #RubyOnRails
[18:27:32] Aherin: has joined #RubyOnRails
[18:28:37] wenchenx_: has joined #RubyOnRails
[18:29:23] benhuda_: has left #RubyOnRails: ()
[18:29:33] makerops: has joined #RubyOnRails
[18:29:51] kies: has joined #RubyOnRails
[18:29:59] Guest58: has joined #RubyOnRails
[18:30:51] mordof_work: has joined #RubyOnRails
[18:34:10] DEA7TH: has joined #RubyOnRails
[18:34:55] krz: has joined #RubyOnRails
[18:35:36] brycesenz: has joined #RubyOnRails
[18:37:48] sandstrom: has joined #RubyOnRails
[18:37:50] Guest58: has joined #RubyOnRails
[18:37:50] darrik: has joined #RubyOnRails
[18:37:50] bphogan: has joined #RubyOnRails
[18:37:50] kitallis: has joined #RubyOnRails
[18:37:50] waldi_: has joined #RubyOnRails
[18:37:50] toydestroyer: has joined #RubyOnRails
[18:38:15] aegis3121: has joined #RubyOnRails
[18:41:22] moeabdol: has joined #RubyOnRails
[18:42:25] lipoqil: has joined #RubyOnRails
[18:43:05] micah`: has joined #RubyOnRails
[18:44:26] jgpawletko: has joined #RubyOnRails
[18:45:17] JohnT: has joined #RubyOnRails
[18:46:33] mordof_work: has joined #RubyOnRails
[18:48:05] arBmind: has joined #RubyOnRails
[18:48:40] lipoqil: has joined #RubyOnRails
[18:48:40] darrik: has joined #RubyOnRails
[18:48:40] bphogan: has joined #RubyOnRails
[18:48:40] kitallis: has joined #RubyOnRails
[18:48:40] waldi_: has joined #RubyOnRails
[18:48:40] toydestroyer: has joined #RubyOnRails
[18:48:42] brycesenz: has joined #RubyOnRails
[18:51:10] ur5us: has joined #RubyOnRails
[18:53:11] baweaver: has joined #RubyOnRails
[18:54:10] claytonzaugg: has joined #RubyOnRails
[18:56:47] eml: has joined #RubyOnRails
[18:57:44] NBarnes: has joined #RubyOnRails
[18:57:55] mdel: has joined #RubyOnRails
[18:58:00] prestorium: has joined #RubyOnRails
[18:58:04] corioliss: has joined #RubyOnRails
[18:58:15] ziyadb: has joined #RubyOnRails
[18:58:36] Spungey: has joined #RubyOnRails
[18:58:47] mrgreenfur: Anyone used devise + omniauth + omniauth-google-oauth2? I???m trying to get oauth working for users to integrate their google accounts, but not to log into my app with them
[18:58:52] prestorium: hi all. I have a DDD related question. #ddd is not a real channel though. Can I ask here?
[18:59:15] swgillespie: has joined #RubyOnRails
[18:59:16] Frem: has joined #RubyOnRails
[18:59:17] gmci: has joined #RubyOnRails
[18:59:18] mrgreenfur: prestorium: whats ddd?
[18:59:26] emchamp: has joined #RubyOnRails
[18:59:56] alexhartley: has joined #RubyOnRails
[19:00:05] prestorium: mrgreenfur, domain driven development
[19:00:14] mrgreenfur: oh, interesting
[19:00:50] darrik: has joined #RubyOnRails
[19:00:57] momomomomo: has joined #RubyOnRails
[19:01:11] prestorium: I wonder what is, if any, the difference between Ubiquitous Language and a Glossary?
[19:01:26] Hans267: has joined #RubyOnRails
[19:02:36] newdan: prestorium: I'm not an expert but I think the glossary just defines terms in the language
[19:03:41] newdan: prestorium: So you can say you name your classes for words in the UL, and the glossary defines terms in the UL (and maybe other terms too)
[19:03:43] prestorium: newdan, but what's the point of UL then? I thought that it was meant to have all the team at the same page?
[19:04:22] newdan: prestorium: It is. The point of the UL is that when someone says something everyone has a very specific idea of what it is
[19:04:42] prestorium: I mean: I'm working at a grocery store. I have Fruits and Vegetables. My UL will define that a Tomato is a Vegetable.
[19:04:44] ericdykstra: has joined #RubyOnRails
[19:05:21] newdan: prestorium: Your UL doesn't define anything. Tomato and Vegetable are terms in your UL. Something else (like your glossary) defines that a Tomato is a Vegetable
[19:05:41] newdan: There's overlap
[19:05:44] newdan: Don't worry too much about it
[19:06:28] prestorium: hmm and where does you define your UL?
[19:07:18] newdan: With a glossary, usually. Or maybe with UML diagrams if that's appropriate
[19:07:38] jottr: has joined #RubyOnRails
[19:07:50] newdan: Like I said I'm not exactly an expert. The idea of the UL is just that you have these key terms that are not ambiguous, that's all
[19:08:01] ur5us: has joined #RubyOnRails
[19:09:16] newdan: If you are doing a grocery app then "Product," "Category," "Supplier" might all be terms in your UL. So when you write documentation you write using those words, when you write code your definitions use those words, your glossary explains those words, etc.
[19:09:17] prestorium: newdan, no, I mean: do you use a Google Docs document for you UL? I'm pretty new to DDD too :(
[19:09:30] newdan: prestorium: Use whatever you want
[19:09:38] newdan: Google Docs would work fine
[19:09:45] prestorium: cool :) thank you very much newdan
[19:09:47] newdan: As long as it's easy to share with your team
[19:11:38] safety_cut: has joined #RubyOnRails
[19:13:10] LOLCANADA: has joined #RubyOnRails
[19:14:00] chouhoulis: has joined #RubyOnRails
[19:15:43] juddey: has joined #RubyOnRails
[19:19:14] DoubleMalt: has joined #RubyOnRails
[19:21:23] baweaver: has joined #RubyOnRails
[19:23:13] titeiko: has joined #RubyOnRails
[19:23:27] Cohedrin: has joined #RubyOnRails
[19:24:11] choke: has joined #RubyOnRails
[19:24:17] moeabdol: has joined #RubyOnRails
[19:24:45] lacrymology: has joined #RubyOnRails
[19:28:17] Puffball: has joined #RubyOnRails
[19:28:43] uberjar: has joined #RubyOnRails
[19:30:52] Pazician: has joined #RubyOnRails
[19:31:32] Pazician: has joined #RubyOnRails
[19:32:35] gaustin: has joined #RubyOnRails
[19:33:42] uberjar: question: why is everybody still using MRI ? I'm getting like 80k requests per second on a crappy laptop against a simple rack web service via JRuby
[19:33:44] replay: has joined #RubyOnRails
[19:34:26] NoTroutAboutIt: has joined #RubyOnRails
[19:34:31] tubbo: uberjar: i don't make websites that get 80,000 requests per second.
[19:34:39] tubbo: jruby takes too long to start ;)
[19:34:40] uberjar: using the Undertow web server btw
[19:35:20] uberjar: ahh.. startup time..
[19:35:23] tubbo: like most technology, MRI seems to be good enough for most people.
[19:35:38] uberjar: it's a legit complaint but becomming less and less relevant as computers get faster
[19:35:38] tubbo: i *wish* rbx got their shit together so i could use it because i think rbx's philosophy and design is waaay better than MRI
[19:35:53] choke: also java... boo
[19:36:13] tubbo: also consider that Ruby is a language that doesn't give a shit about performance, it cares way more about your developer happiness (which is an arguable, debatable metric) than performance
[19:37:08] choke: i use cruby ( MRI ) and our api can handle over 80k requests per second just fine....
[19:37:20] Mia: has joined #RubyOnRails
[19:37:27] uberjar: but JRuby gives you almost everything MRI does plus you can leverage the whole java ecosystem.. there's a lot of cool java libs out there
[19:37:54] thorgi: is it possible to have Model_A, which has_many Model_Bs, which in turn has_many Model_Cs, and have Model_A with accepts_nested_attributes_for all the way for Model C (assuming appropriate view with 2 levels of nested forms)?
[19:37:56] choke: and you said the main reason i use MRI instead of jruby
[19:37:59] choke: that being java
[19:37:59] newdan: uberjar: JRuby is definitely sweet. But all new Ruby features go to MRI first and MRI is good enough for most
[19:38:12] newdan: uberjar: Also the JRuby startup time is in fact quite painful for shell scripting
[19:39:19] tubbo: ACTION feels like if rails autoloading was a little less up-in-the-air, jruby would be used a lot more
[19:39:27] smathy: ...and who wants to have to install/maintain JDKs all over the place.
[19:39:40] uberjar: with MRI you're forced to scale using processes.. that's inefficent when it comes to ram
[19:39:52] tubbo: uberjar: so?
[19:39:56] smathy: uberjar, yes it is, what's your point?
[19:40:01] tubbo: last i checked, a developer's salary costs more than a few sticks of RAM
[19:40:03] uberjar: so that makes it hard to use those cheap instances
[19:40:06] uberjar: on AWS or whatever
[19:40:14] newdan: uberjar: So if that matters to you, then it's awesome that JRuby is there for you to switch to
[19:40:21] smathy: uberjar, no, just use multiple cheap instances.
[19:40:22] tubbo: uberjar: who needs cheap instances when i can have free instances
[19:40:27] uberjar: the larger cloud instances are less cost efficient
[19:40:55] smathy: uberjar, you're talking about problems that 99.9% of websites just don't have to deal with.
[19:41:46] lacuna_: has joined #RubyOnRails
[19:41:55] uberjar: I suppose ram is getting cheaper every day... fair enough.. I'm just genuinely suprised that more people aren't using it
[19:41:55] tubbo: efficient performance is not the only metric to live by in software development
[19:42:14] uberjar: to me the startup time is like 3 or 4 seconds extra tops
[19:42:22] uberjar: it doesn't impact my workflow much
[19:42:41] smathy: uberjar, that 1 case in a thousand is not a good reason to deal with even a small inconvenience in the other 999.
[19:42:41] uberjar: but I admit it is annoying
[19:44:28] newdan: uberjar: If you're running stuff like rake and bundler constantly then it adds up very quick. That said, I agree, JRuby is awesome. If I had any trouble scaling a Ruby app the first thing I'd do is try and port it to JRuby and see if that didn't solve my problem
[19:45:50] momomomomo: JRuby + Torquebox / Rails is great
[19:46:13] brycesenz: uberjar - just my two cents, but if there were a part of my app that were choking due to using MRI, I'd also kind of question whether Ruby is still the right language for that part of the app. Standing up a separate app in Scala/Clojure to offload work might be a better solution than migrating everything to JRuby.
[19:46:22] arup_r: has joined #RubyOnRails
[19:46:43] pwnd_nsfw: But the ruby syntax dough...
[19:46:49] Radar: GOOD MORNING
[19:46:52] uberjar: well for the record I've been running torquebox for a while now, and I'm bennifiting greatly from the quartz scheduler and the hornetq messaging which is built in..
[19:46:57] pwnd_nsfw: GOOD AFTERNOON
[19:47:03] momomomomo: yeeee torquebox is dope
[19:47:07] momomomomo: long time no see Radar
[19:47:32] choke: uberjar I think my aws instances are pretty cheap -- and have no issues...
[19:48:42] uberjar: choke: you're going to get more concurrency for each gig of ram with JRuby I bet if you give it a whirl
[19:48:44] tubbo: uberjar: sometimes, i have to use gems that compile their own native extensions...although *usually* it's done through FFI. does jruby have any way to bridge that gap? or am i stuck trying to find jvm-compatible versions of gems like nokogiri?
[19:48:55] tubbo: pg is a bad example, because there's the lovely odbc-postgresql gem! :)
[19:49:25] newdan: Yeah I think that's easily the biggest hurdle to "just switching" to JRuby... the native extensions
[19:49:35] uberjar: nokogiri works great for me on JRuby and it's faster once the hotspot compiler has warmed up
[19:49:38] tubbo: newdan: i heard it was getting a lot better
[19:49:51] tubbo: uberjar: yeah maybe that was a bad example because IIRC it switches backends on its own
[19:50:00] uberjar: the pg gem is a problem area I suppose.. but I personally don't use it
[19:50:11] uberjar: all the image manip stuff works great
[19:50:17] tubbo: uberjar: oh wait i'm dumb as shit :) https://github.com/chuckremes/ffi-rzmq#description
[19:50:19] tubbo: TIL what FFI means
[19:50:44] tubbo: so if it doesn't compile its *own* native extensions, and uses FFI instead, it will work everywhere. most gems requiring native extensions these days seem to use FFI.
[19:50:58] tubbo: and as i said before, postgresql-odbc on the JVM is what you want to use to connect with the DB...
[19:51:01] choke: uberjar i'll add more servers if we need to ( adding 4 european servers soon-ish for instance )... but concurrency isn't an issue.. like i said, our api can handle well over 80k requests per second without caring...
[19:51:05] tubbo: ODBC is a neat little API
[19:52:08] choke: also java = no go for me.... i hate java with a passion and won't use it
[19:52:29] newdan: choke: That's a shame, the JVM is very solid
[19:52:40] eljimbo: has joined #RubyOnRails
[19:52:54] newdan: That said, if it works it works. Sounds like you have your situation figured out either way...
[19:53:05] sloggerkhan: has joined #RubyOnRails
[19:53:32] uberjar: someone mentioned clojure a few minutes ago... when you use Torquebox in wildfly mode.. you can deploy clojure WAR files into the app server along with your JRuby and it all plays nicely together
[19:53:42] Radar: hi momomomomo
[19:53:47] Radar: momomomomo: where have you been hidng
[19:53:55] uberjar: you use the immutation libraries from clojure
[19:53:59] uberjar: immutant sorry
[19:55:01] uberjar: to me it's great because you can experiment with clojure, scala, and JRuby all at the same time and deploy it all in teh same way
[19:55:11] choke: yeah pretty much -- spent a year just planning the cluster out... and 6 months implementing the plan for max concurrency, high availability, and round-the-world load balancing support based on latency tests
[19:56:50] FailBit: tubbo: +1 to ffi
[19:56:51] uberjar: I think what I'm hearing here is that for many apps the bottleneck is hit before the concucrrency limits of the application server therefor it's a non-issue
[19:57:07] FailBit: libffi is a fucking pain in the ass to configure and compile but I'll be damned if it isn't good
[19:57:15] uberjar: I guess it just depends on the app
[19:57:57] momomomomo: Radar: in Analytics world :(
[19:58:09] momomomomo: what's new on the work/foss front Radar
[19:58:20] newdan: uberjar: Do you have some stake in JRuby?
[19:59:04] centrx: has joined #RubyOnRails
[19:59:34] uberjar: newdan: no not at all I'm not a contributor or anything.. I just have a website that does analytics and needs high throughput
[19:59:35] Radar: momomomomo: I now work at marketplacer.com and Elixir will beat Ruby in the language wars in 4 years time
[19:59:37] shibabu: has joined #RubyOnRails
[19:59:44] uberjar: and have been excited to recently discover performance improvements through jruby
[20:00:03] momomomomo: Radar: neat, I haven't been using ruby - mostly Go for web services, but I can dig BEAM
[20:00:08] ecmacoder: has joined #RubyOnRails
[20:00:11] FailBit: unless you really like tweaking the JVM
[20:00:18] FailBit: I would lean to rbx for moarspee
[20:00:19] uberjar: and I figure there must be some drawback that I havn't discovered yet that keeps everyone from using Jruby
[20:00:25] uberjar: so I figured I'd say around
[20:00:34] FailBit: do you like tweaking the JVM?
[20:00:40] momomomomo: uberjar: no, JRuby is great; it's just a bit more advanced/involved for most rubyists
[20:00:46] slash_nick: momomomomo: BEAM?
[20:00:47] momomomomo: what with the jvm etc. Torquebox is changing things
[20:01:05] newdan: Yeah I didn't know about Torquebox until right now. Might check it out later
[20:01:08] momomomomo: slash_nick: https://erlangcentral.org/tag/beam/
[20:01:27] FailBit: rubinius runs native threads in native code
[20:01:34] FailBit: jruby runs native threads in jvm code
[20:01:47] momomomomo: FailBit: ok, and?
[20:01:49] FailBit: MRI runs native threads + GVL in native code
[20:01:59] tubbo: your mom runs threads in native code
[20:02:23] tubbo: FailBit: haha good thing we have Homebrew ;)
[20:02:31] tubbo: (for libffi)
[20:02:41] lacuna: has joined #RubyOnRails
[20:02:45] smathy: I'd love to see an FP Ruby for BEAM.
[20:02:58] FailBit: momomomomo: my point is that rubinius is likely to be the best choice for OS-level concurrency and performance
[20:03:09] momomomomo: FailBit: that doesn't follow from your argument
[20:03:11] tubbo: uberjar: ahhhh so yeah, you're one of the few people who definitely need something like jruby. it would be a pain in the ass to refactor large chunks of your code into another language, and way better to just install a more performant ruby
[20:03:18] benmanns: has joined #RubyOnRails
[20:03:33] IrishGringo: has joined #RubyOnRails
[20:03:39] momomomomo: FailBit: https://github.com/jruby/jruby/wiki/Concurrency-in-jruby#concurrency-basics
[20:03:40] tubbo: uberjar: that being said, even the rails apps i've seen that utilize jruby actually run MRI for rails itself, and use jruby for a service it communicates with over a transport medium like HTTP or ZMQ
[20:03:44] FailBit: momomomomo: rbx has native threads, no GVL, runs in C (machine code) not Java
[20:03:53] FailBit: what's not to follow
[20:04:04] momomomomo: FailBit: the JVM is excellent, are you really ragging on it?
[20:04:14] tubbo: FailBit: rbx has some compatibility issues last i heard
[20:04:17] tubbo: unfortunatley
[20:04:26] tubbo: you guys are literally arguing between JVM and LLVM ;D
[20:04:27] momomomomo: if you were taking an approach about GC pauses, etc
[20:04:37] slash_nick: ah momomomomo ... i was expecting it to be a stack... a la MEAN
[20:04:39] FailBit: do you have GC problems?
[20:04:46] momomomomo: slash_nick: ah, nope
[20:04:58] uberjar: JVM can light up all 4 cores.. or 8 or 16.. MRI.. not so much
[20:05:08] uberjar: something about a lock..
[20:05:47] FailBit: my app's GC runs 0.2ms in-request and 1.4ms out-of-band (MRI)
[20:05:49] uberjar: to be honest that only makes a difference for me when processings images
[20:05:56] smathy: Heh, "something something lock"
[20:06:02] creature_: has left #RubyOnRails: ()
[20:06:11] creature: has joined #RubyOnRails
[20:06:12] momomomomo: smathy: haha :D
[20:06:17] FailBit: something something GVL
[20:06:35] momomomomo: what's the V? I usually see it referenced as global interpreter lock
[20:06:45] tubbo: here is a visualization of the global ruby land lock -> https://www.youtube.com/watch?v=oNrWgjh9tnU
[20:06:49] FailBit: global VM lock
[20:07:01] tubbo: momomomomo: it used to be called that when ruby was an interpreter, now it's a VM :)
[20:07:04] FailBit: it's called GVL inside the MRI source code
[20:07:11] tubbo: that's the diff between 1.8 and 1.9 IIRC
[20:07:19] tubbo: was that 1.9 is actually YARV, and 1.8 was the last MRI version
[20:07:23] tubbo: the "big secret"
[20:07:44] tubbo: so there's actually no such thing as MRI anymore. it's just called Ruby
[20:08:00] FailBit: https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L105
[20:08:35] FailBit: YARV was basically "let's make a better ruby interpreter by throwing 90% of this shit away"
[20:08:46] baweaver: has joined #RubyOnRails
[20:09:50] tubbo: i can understand maybe 40% of his talks but they're still interesting
[20:09:50] doublemalt_: has joined #RubyOnRails
[20:10:01] tubbo: you learn so much about how ruby actually works
[20:10:20] tubbo: matz talks these days are like "here's like 5 things i'm thinking about adding into Ruby but probably not going to"
[20:10:26] tubbo: "and if i do they're gonna be implemented poorly"
[20:10:37] choke: FailBit I imagine that has many of the same things as those who say "sequel"... it's not current, it's not right -- but it's not wrong either.
[20:10:46] tubbo: which is really interesting in its own way but after the talk i'm just left feeling like i want more :)
[20:11:07] benmanns: does anyone know how to do error message interpolation in practice? http://guides.rubyonrails.org/i18n.html#error-message-interpolation
[20:11:08] benmanns: for that example I get ???Name Please fill in your Name" (with the attribute name prepended to the message)
[20:11:24] benmanns: and based on the default errors.format i don???t see a way to change that on a per-attribute basis: https://github.com/rails/rails/blob/master/activemodel/lib/active_model/locale/en.yml#L4
[20:11:43] FailBit: tubbo: the way rb_yield is implemented is a "cool hack"
[20:11:50] tubbo: benmanns: if i need to customize the wording of the entire message, i will typically use a custom validator entirely, and `errors.add_to_base`
[20:11:52] FailBit: and the perl-style regex backrefs
[20:12:07] FailBit: and... a lot of other stuff
[20:12:19] FailBit: thread local storage is weird on so many levels
[20:13:05] tubbo: FailBit: haha i like that
[20:13:56] Moeh: has joined #RubyOnRails
[20:14:06] benmanns: tubbo: should the docs be updated? ???Please fill in your %{attribute}??? would never work
[20:14:06] FailBit: cfunc_proc makes sense but rb_yield is just so wrong man
[20:14:28] FailBit: benmanns go to Edit->Substitutions and disable Smart Quotes
[20:14:46] uberjar: whoever mentioned BEAM in here a little while ago.. have you experimented with Apache CouchDB ? I feel like by using that I get the performance of erlang, but I stil get to write my business logic in Ruby
[20:16:00] LambdaSource: has joined #RubyOnRails
[20:16:07] Moeh: Hey, I am using rails 5 with active model serializer and somehow that seems to break the controller generate on rails g scaffold $model. See https://gist.github.com/Maarius/86e50598139b5584a605 Can someone tell me how to fix this?
[20:16:08] uberjar: one of these days I'll get around to actually learning Erlang or elixer...
[20:16:24] StaticVoid: Hey all. (long) question: I have a task model and a task_comments model. When I edit a task, I want to automatically create a new task_comment. But right now it just shows all the existing comments. What am I doing wrong?
[20:16:30] StaticVoid: https://gist.github.com/RobvanB/37efe71e9550a753f719#file-task-rb
[20:17:17] uberjar: my mind still doesn't want to go 100% functional no matter how hard I try..
[20:18:04] dext: has joined #RubyOnRails
[20:18:04] ur5us: has joined #RubyOnRails
[20:18:04] tvw: has joined #RubyOnRails
[20:18:04] Spami: has joined #RubyOnRails
[20:18:04] kitallis: has joined #RubyOnRails
[20:18:04] lipoqil: has joined #RubyOnRails
[20:18:04] bphogan: has joined #RubyOnRails
[20:18:04] waldi_: has joined #RubyOnRails
[20:18:04] toydestroyer: has joined #RubyOnRails
[20:18:06] lipoqil: has joined #RubyOnRails
[20:19:18] uberjar: so instead I'm using Openresty -> Torquebox -> Apache Couchdb (beam).. with a little redis thrown in... if you need high concurrency I highly recommend it
[20:20:06] dopie: has joined #RubyOnRails
[20:20:18] uberjar: for some queries I can bypass the Ruby stack all together by having nginx lua HTTP make calls into apache couchdb
[20:21:29] uberjar: but what I want to play with but whaven't had time yet is Kong https://github.com/mashape/kong as a front-end server.. but thats a lil offtopic I suppose
[20:23:01] fmcgeough: has joined #RubyOnRails
[20:23:14] NBarnes: The index function on your task_controller makes me want to cry, StaticVoid
[20:23:50] tubbo: uberjar: now you're thinking! openresty is really neat
[20:24:12] tubbo: benmanns: i think that `format:` controls how the *rest* of the attributes look.
[20:24:27] arup_r: StaticVoid: the code is pretty long.. where it is showing all the comments.. I am not able to find out the place..
[20:24:42] rtail: has joined #RubyOnRails
[20:24:51] tubbo: benmanns: so if you wanted to change that on a global basis, you'd maybe set format: "Please %{message} your %{attribute}"
[20:25:09] StaticVoid: arup_r: yeah, I wanted to stick everyting in a gist so that if I mess it up I still have it. I'm guessing the issue is wih the _form.html.erb file
[20:25:23] tubbo: benmanns: then you can do blank: "fill in", and get "Please fill in your Name"
[20:25:24] User458764: has joined #RubyOnRails
[20:25:25] NBarnes: StaticVoid; do you want to create a TaskComment when the task is opened for editing, or when the editing is complete and saved?
[20:25:47] StaticVoid: arup_r: I think the fields_for section is incorrect, but I can't figure out what. It won't show a new, empty task_comment, just the existing ones
[20:25:54] uberjar: tubbo: I only discovered how cool it is quite recently.. when you have a database that speaks HTTP then nginx can talk directly to it in some cases..
[20:26:12] reckoner: has joined #RubyOnRails
[20:26:31] uberjar: but I've realized I have a lot to learn and LUA is kinda hard
[20:26:36] reckoner: does anyone group their `interactors` if you're familiar?
[20:26:38] benmanns: tubbo: ahh, gotcha. that could work. we've got a bit too many attributes to do that with, so i think i'll stick with the custom validator
[20:26:52] jkamenik: has joined #RubyOnRails
[20:27:03] NBarnes: StaticVoid; I don't see a place in the _form file for @task_comment_new?
[20:27:04] Arlantir_: has joined #RubyOnRails
[20:27:11] NBarnes: I see where you're showing the extant comments.
[20:27:17] uberjar: I do suspect that this kong library is going to become a new standard in the not too distant future.. it's just too cool
[20:27:37] arup_r: StaticVoid: it is rendering from edit action or new action ?
[20:27:43] uberjar: it can handle oauth for you, authentication, rate limiting, tons of stuff that people currently do in ruby
[20:27:45] tubbo: uberjar: what issues are you having with lua? i remember it being a pretty straightforward language, especially if you come from javascript.
[20:27:49] StaticVoid: arup_r: edit
[20:28:17] StaticVoid: nbarnes: the f.fields_for is rendering the task_comment records
[20:28:21] mustmodify_: has joined #RubyOnRails
[20:28:32] NBarnes: But @task_comments is not @task_comment_new.
[20:28:35] StaticVoid: edit from edit task
[20:28:41] NBarnes: They are two different vars.
[20:28:56] uberjar: tubbo: lua collectiosn really took me a long time to get used to.. everything is a "table" there are no hashes and arrays
[20:28:59] tubbo: Moeh: did you report that to AMS?
[20:29:01] NBarnes: So if you fields_for @task_comments, you're not going to get a field for @task_comment_new
[20:29:10] smathy: uberjar, yes, I used CouchDB very heavily in a big app for a previous employer.
[20:29:13] uberjar: and simple string manipulation stuff like spliting a string isnt' easy
[20:29:13] smathy: Worked very well.
[20:29:13] arup_r: StaticVoid: those comment coded are actual code or really commented out ?
[20:29:14] fourminutemonta: has joined #RubyOnRails
[20:29:15] tubbo: uberjar: hah, yeah i guess that was OK for me because i learned lua when i learned php, and in php it's all arrays.
[20:29:30] StaticVoid: nbarnes: yeah, that's me messing around wih it, the task_comments_new is commented out
[20:29:32] tubbo: well...if ruby is good at anything, it's definitely text manipulation
[20:29:39] baweaver: has joined #RubyOnRails
[20:29:44] tubbo: i've yet to use a language that is easier to do text processing in than ruby
[20:29:46] uberjar: I've been spoiled by ruby I think
[20:29:49] tubbo: (not a perl user FWIW)
[20:29:52] StaticVoid: arup_r: real commented out.. sorry, I should have cleaned it up before posting here
[20:30:12] uberjar: smathy: yea couchdb is another instance where I'm confused about why more people don't use it
[20:30:16] arup_r: StaticVoid: ok, then you have before_filter which loads current task
[20:30:27] mustmodify_: has left #RubyOnRails: ()
[20:30:35] arup_r: and that tasks taking all its exting commets as per the fields_for logic
[20:30:52] arup_r: why are you expecting here to have a new record while editing
[20:31:29] arup_r: edit for editing, and new is for new thing.. you actually got confused it seems and wrote confusing code :)
[20:31:37] NBarnes: (I've been assuming that the three lines of content in the edit action should be read as not commented out)
[20:31:55] uberjar: smathy: I think that eventually DBASS platforms like Cloudant will make couchdb more attractive for everyone.. plus the new 2.0 is out
[20:32:01] dext: has joined #RubyOnRails
[20:32:05] uberjar: IBM is pushing hard in that direction
[20:32:30] uberjar: it still can't do highly realational queries though.. thats' the drawback
[20:32:54] StaticVoid: arup_r: no kidding :) - So I guess my real question is then: is it possible to create a new record in my task_comment model when I *edit* my task model?
[20:33:10] StaticVoid: nbarnes: yeah, sorry, it's a mess :(
[20:33:21] smathy: uberjar, well, most "web programmers" don't select technologies in a fully informed way, they go with the flow.
[20:33:50] mephistophocles: has joined #RubyOnRails
[20:34:03] pawnbox: has joined #RubyOnRails
[20:34:43] NBarnes: What I would probably do is include the fields for a potential new task_comment in the form for a task. And then when a task is updated (i.e. in the update action), check to see if those fields have been populated. If so, create a new task_comment using that data.
[20:34:54] uberjar: smathy: I think that's the thing.. herd mentality.. but I think this is changing... and I like to do my part to drive this process even if it means rambling from time to time ;)
[20:35:02] NBarnes: I don't think there's a need to create a new TaskComment at the time the Task is opened for editing.
[20:35:09] uberjar: sometimes inoheriently
[20:35:38] jkamenik: has joined #RubyOnRails
[20:36:00] tubbo: uberjar: here's what you need to do -> start a marketing campaign that trumps mongodb
[20:36:05] uberjar: it's the whole concurrent writes thing that apache couchdb does so well compared to rlational databases
[20:36:10] tubbo: because that's the only reason most people use (or started using) mongo, was because 10gen sold them on it
[20:36:12] uberjar: there is no lock
[20:36:36] tubbo: smathy: i argue that going with the flow *is* a form of being informed.
[20:36:49] tubbo: how do you know what "the flow" even is if you're not paying attention?
[20:37:14] StaticVoid: nbarnes: ok, let me see if I can implement that
[20:37:15] smathy: uberjar, also, really, CouchDB definitely still has some significant pain points for "general applicability". Partial updates, non-simple (ie. DIY) re-indexing in running environment, attachment duplication, non-simple (ie. DIY) conflict management.
[20:37:23] jcm: has joined #RubyOnRails
[20:37:27] helpa: http://i.imgur.com/tyViD.gif
[20:37:40] djbkd: has joined #RubyOnRails
[20:37:45] smathy: tubbo, well you don't pay attention, you wait to be marketed at.
[20:37:47] Malgorath: has joined #RubyOnRails
[20:37:56] smathy: tubbo, and/or just use whatever heroku tell you to.
[20:38:52] uberjar: smathy: I'm curiosu what do you mean by partial updates ? I agree on the rest of those points, it's true.. there is pain.. but it scales io throughput massivly so it's worht it
[20:38:59] momomomomo: smathy: has quite a bit of experience with couchdb iirc
[20:39:05] momomomomo: even on the mobile side, eh?
[20:39:08] NBarnes: Using whatever heroku tells me to has been a relatively successful cognitive-overhead-reducer for me.
[20:39:29] smathy: uberjar, I agree that it's worth it, but you have to actually write code to do it. It's not install and go like other solutions.
[20:39:29] uberjar: scaling lots of writes is hard, I would rather be managing those conflicts msyelf
[20:39:32] aegis3121: has joined #RubyOnRails
[20:39:48] smathy: uberjar, "partial updates" - basically implementing PATCH, right now they only have PUT for updating existing documents.
[20:40:21] smathy: uberjar, as would I, but you were pondering why more people don't use it. Most people don't want to deal with such things themselves.
[20:40:22] pwnd_nsfw: PUT that into your teacup and sip it
[20:40:40] treehug88: has joined #RubyOnRails
[20:41:17] yfeldblum: has joined #RubyOnRails
[20:41:47] smathy: momomomomo, yes, we built a fairly large system with it. Very successfully as it turned out. Especially using it (or "Couchbase-Lite" officially) on iOS to handle all the synching from server <-> mobile.
[20:41:55] uberjar: smathy: I follow you.. at least this PATCH functionality is something that could be theorietically possible to implement in future versions
[20:42:00] jkamenik: has joined #RubyOnRails
[20:42:07] uberjar: or so I assume
[20:42:32] arBmind1: has joined #RubyOnRails
[20:42:53] ur5us: has joined #RubyOnRails
[20:42:53] tvw: has joined #RubyOnRails
[20:42:53] Spami: has joined #RubyOnRails
[20:42:53] kitallis: has joined #RubyOnRails
[20:42:53] lipoqil: has joined #RubyOnRails
[20:42:53] bphogan: has joined #RubyOnRails
[20:42:53] waldi_: has joined #RubyOnRails
[20:42:53] toydestroyer: has joined #RubyOnRails
[20:42:55] lipoqil: has joined #RubyOnRails
[20:43:02] smathy: uberjar, yeah, not sure. Non-whole-document writes create some problems for Couch's architecture.
[20:43:17] smathy: uberjar, I think it's been in the "too hard" basket for a while now.
[20:43:19] uberjar: what's the big drawback against using full documetn PUT ?
[20:43:24] uberjar: just a waste of bandwidth ?
[20:43:40] ql6wlld: has joined #RubyOnRails
[20:43:45] bmalum: has joined #RubyOnRails
[20:43:51] momomomomo: reread, then put
[20:44:11] uberjar: ahh.. the extra read
[20:44:14] uberjar: of course that makes ense
[20:44:45] uberjar: for me the operations are fast enough though to where it doesnt' really matter
[20:44:47] smathy: uberjar, well yes, bandwidth/performance issues, but also really business logic stuff. It's awkward to read in a very large document just to (eg.) change a password.
[20:45:06] kallisti5: has joined #RubyOnRails
[20:45:29] kallisti5: ... what happened to the site? It looks *really* ugly
[20:45:32] tubbo: smathy: !ban u
[20:45:38] momomomomo: kallisti5: which site?
[20:45:42] tubbo: kallisti5: YOU BLEW IT
[20:45:43] kallisti5: http://rubyonrails.org/
[20:45:57] Radar: kallisti5: https://github.com/rails/homepage patches welcome
[20:46:13] kallisti5: right... but why did it change from the old design?
[20:46:15] Radar: ACTION imagines people viewing the new site rocking back and forth shouting "CHANGE CHANGE CHANGE"
[20:46:21] uberjar: ahh.. you can get around that if you want by using several smaller doc types, but that's annoying I suppose
[20:46:23] tubbo: kallisti5: "We aren't courting cutting-edge early adopters, so we can lay off the gradients. "
[20:46:26] Radar: kallisti5: DHH decided it to be so.
[20:46:28] tubbo: guess you're a cutting-edge early adopter
[20:46:53] kallisti5: I just came looking for the latest version of 4.2.x :-)
[20:46:57] uberjar: you could have for example.. a UserCrednetials doctype instead of trying to shove everyting into user
[20:47:00] tubbo: kallisti5: `gem install rails`
[20:47:15] kallisti5: and I got ugly site + "5.0.0 b*tches!!!" yelled at me :P
[20:47:24] Obi_obi: has joined #RubyOnRails
[20:47:29] newdan: Rails site needed an update. It looked a bit dated
[20:47:36] Radar: TIL people go to the site to try to download versions of rails
[20:47:40] smathy: uberjar, well not just that, but the size of a doc shouldn't be guided by that. Really the idea is to allow the doc size to be guided by the atomicity of your data.
[20:47:45] tubbo: Radar: yeah same
[20:47:45] kallisti5: tubbo: gem 'rails', '4.2.3'
[20:47:51] tubbo: what is this fucking 2001
[20:47:56] Radar: You don't have "gem rails" search autocomplete in your browser to https://rubygems.org/gems/rails
[20:48:00] Radar: question-mark-goes-here
[20:48:11] tubbo: kallisti5: i have a better idea, `gem 'rails', '~> 4.2'`. stop putting exact gem versions in your Gemfile.
[20:48:17] falkhan: has joined #RubyOnRails
[20:48:21] smathy: uberjar, and I agree btw, that a password change was probably not a good example, because you're right - auth is generally small - but you can imagine other situations.
[20:48:48] weaksauce: has joined #RubyOnRails
[20:48:49] tubbo: the only reason why you should *ever* have an exact version requirement in your Gemfile is if a library is poorly versioned and it breaks your app.
[20:48:54] smathy: uberjar, a school document, that has a record of all staff, teachers, students, etc., and you just want to update the name.
[20:49:17] tubbo: god document? ugh
[20:49:32] Radar: " if a library is poorly versioned" <- You mean like Rails 2.3?
[20:49:37] uberjar: smathy: yea I see your point.. I can imagine situations where it would be awkward. Couchdb requires you to think about data access patterns in advance and design your schema accordingly instead of designing schema to fit the domain
[20:50:16] uberjar: smathy: it can be annoying.. but there are benefits
[20:50:28] uberjar: I hope more people xperiment with it in the future
[20:50:46] smathy: Yeah, it's great tech.
[20:51:05] lacuna: has joined #RubyOnRails
[20:51:56] FernandoBasso: has joined #RubyOnRails
[20:52:27] kallisti5: eeh.ok the old design was a little tired looking
[20:52:49] kallisti5: but the new design looks like someone spent 30 minutes in dreamweaver and mspaint.
[20:53:05] Radar: Thanks for agreeing with us after we browbeated you.
[20:53:13] Radar: kallisti5: It's Basecamp Inspired(tm)
[20:53:42] newdan: kallisti5: That's the modern look
[20:53:44] ur5us: has joined #RubyOnRails
[20:53:44] kallisti5: anyway. yeah... i guess it's a good way to get patches to https://github.com/rails/homepage :-)
[20:53:51] lemur: has joined #RubyOnRails
[20:54:11] kallisti5: newdan: dreamweaver and mspaint? We're all doomed
[20:54:21] smathy: The part of all this that I understand the least is this comment: "I just came looking for the latest version of 4.2.x :-)" - who goes to the website to do whatever that could possibly mean?
[20:55:02] newdan: smathy: Someone who wants to make sure the process for installing Rails is still the same, maybe
[20:55:12] newdan: I don't see what's confusing about someone going to a website for information
[20:55:15] NBarnes: I am skeptical of site redesigns. Chasing 'the modern look' is a Red Queen's Race.
[20:55:28] kallisti5: +1's all around
[20:55:32] Scripore: has joined #RubyOnRails
[20:55:39] kallisti5: plus... this is moden web application design language
[20:55:45] safety_cut: has joined #RubyOnRails
[20:55:49] kallisti5: with *lots* of web developers looking at it
[20:56:11] kallisti5: ... why go with dreamweaver and mspaint? It's like rails devs said "ok... too many developers"
[20:56:15] kallisti5: lets cut back on new blood
[20:56:46] Papierkorb: I still don't see what was wrong with rails old logo ... it was kinda unique with its gradients and all.
[20:56:58] NBarnes: There are no new Rails developers, only cranky grognards. All the new devs are learning React or Elixier or something. Rails is dead, haven't you heard?
[20:57:01] kallisti5: Papierkorb: +1... although the new one is ok
[20:57:01] smathy: newdan, I assume you're new (from your name), because that doesn't make any sense.
[20:57:37] kallisti5: lol.. Rails isn't dead... look how many users are in here!
[20:57:42] kallisti5: plus... ActiveJob is <3
[20:58:05] NBarnes: I actually just switched pixel paisan over to ActiveJob. It treated me well.
[20:58:18] NBarnes: (better than Sidekiq was treating me)
[20:58:32] Radar: nbarnes: So the 25+ newbies that I have at the hacknight every month are all conning me into thinking that they're new? :P
[20:58:41] Radar: nbarnes: What are you using for your AJ backend?
[20:59:06] FailBit: we use raw resque
[20:59:25] kallisti5: https://www.ruby-lang.org/en/ good web design :P
[20:59:28] NBarnes: Radar; precisely. Liars, all of them. Probably been doing Rails since negative v1, before Rails was even started, that's how old they are.
[20:59:46] FailBit: https://gist.github.com/anonymous/971625d011bb3727651d
[20:59:48] Radar: nbarnes: I KNEW IT!
[20:59:56] FailBit: this is how I write my jobs
[21:00:07] Radar: kallisti5: Thanks for volunteering to do the redesign of the redesign.
[21:00:09] FailBit: well actually no it isn't
[21:00:15] NBarnes: I'm not using anything yet, though I'm wading through delayed_job. I really want to get away from having separate processes for Redis and Sidekiq, especially if I can't query their status at runtime.
[21:00:17] Radar: kallisti5: I'm sure DHH will be 100% supportive of it
[21:00:19] FailBit: the class is, the style isn't
[21:00:25] kallisti5: I took my jobs out of tasks and put them into ActiveJobs.
[21:00:27] Radar: nbarnes: What kind of querying are you talking about there?
[21:00:37] kallisti5: Then... I start them with tasks.
[21:00:38] NBarnes: Like, 'are you running?'
[21:00:42] Radar: nbarnes: DJ runs slower than molasses. I've never had problems with Sidekiq so it's interesting to hear of someone who has.
[21:01:41] choke: So I have all of this: https://gist.github.com/ch0ke/4840cf735838b8e976df as you can see I added two versions of the new.html.erb... with this namespacing/constraints the first version of the html results in the form trying to create the post url to "projects_path" instead of "admin_projects_path", the second fixes it. anyway to make this happen without having to manually add it to each form?
[21:02:33] hahuang65: has joined #RubyOnRails
[21:02:36] NBarnes: Actually, that's a question. Does DJ run the job itself slower, or just cycle the queue more slowly? I don't process many jobs, but there's some heavy-ish lifting involved in a given job (image processing).
[21:02:47] Pazician: has joined #RubyOnRails
[21:05:14] Honeycomb: has joined #RubyOnRails
[21:05:18] Emily_: has joined #RubyOnRails
[21:05:28] alex88: has joined #RubyOnRails
[21:06:29] ericdykstra: has joined #RubyOnRails
[21:06:37] sandstrom: has joined #RubyOnRails
[21:07:25] tubbo: nbarnes: it's more like your database probably locks DJ out because your app needs to talk to the DB as well
[21:07:28] tubbo: and there are only so many workers
[21:07:36] tubbo: that's the problem *I* always had
[21:07:49] bmalum: has joined #RubyOnRails
[21:08:37] NBarnes: I believe that I shall keep this in mind as a potential source of non-performance while not engaging in premature optimization.
[21:08:44] NBarnes: Since there's no shortage of things that want doing for this project.
[21:09:04] tubbo: yeah i mean, the last time i used DJ was on an app that heavily used the database
[21:09:10] tubbo: and we moved to i think resque eventaully
[21:09:12] tubbo: eventually*
[21:09:23] tubbo: but now i'm happily using sidekiq for all the background jobbings
[21:09:40] Arlantir: has joined #RubyOnRails
[21:10:19] NBarnes: Sidekiq does seem nice.
[21:10:56] netzfisch: has joined #RubyOnRails
[21:11:50] smathy: Sidekiq is excellent.
[21:12:05] uberjar: on the JRuby stack what I've been using is ruby-concurrent... native java thread pool.. it's fast and no redis bottleneck
[21:12:31] uberjar: but it's not suitable if you need to syncronize your work of course
[21:12:34] smathy: Heh, redis bottleneck :)
[21:12:46] smathy: You mean redis persistence and crash-proofness?
[21:13:03] uberjar: I mean.. no singlepoint of fialure
[21:13:24] tubbo: uberjar: redis clusters don't have a single point of failure.
[21:13:25] smathy: Umm, y'know, except the CPU/RAM your thread state is sitting in.
[21:13:32] uberjar: but if you're burning a lot of CPU in your background jobs then it's bad
[21:13:50] uberjar: my background tasks mostly block on network IO not CPU
[21:13:55] uberjar: so it's nto ab ig deal
[21:13:59] tubbo: that's quite common
[21:14:31] smathy: I wasn't saying the blocking was a big deal, the single point of failure with no persistence is a big deal (for many, and certainly for my uses of Sidekiq).
[21:14:50] mordof_work: has joined #RubyOnRails
[21:14:56] Graphettion: has joined #RubyOnRails
[21:16:27] uberjar: yea if you need 3 nodes running to provide HA ruby... just to process some background jobs that can be annoying
[21:16:33] uberjar: err HA redis
[21:16:50] uberjar: but sometimes there's no other way
[21:19:30] ccowart: has joined #RubyOnRails
[21:22:01] kallisti5: http://rubyonrails.org/images/action-pack.png view and record are reversed :-)
[21:22:21] kallisti5: wouldn't view be the book and record be the cyl?
[21:23:00] smathy: uberjar, I think maybe if you're talking about the sort of throughput where a redis read is a bottleneck then yeah, it's a different toolset, a job queue may not be the best tool at all.
[21:23:21] kallisti5: ACTION starting to feel like a troll and backs away slowly
[21:23:32] ss_much: has joined #RubyOnRails
[21:24:24] smathy: kallisti5, I think you're talking the 5 year old doodles too seriously. I mean, ActiveRecord's arms are coming out the top of its head!
[21:24:49] uberjar: smathy: yea I suspect many developers use job queues as a defacto standard even when it may not be needed
[21:25:15] uberjar: just because they want to have a single unified "one way" to do bo background tasks
[21:25:21] weaksauce: has joined #RubyOnRails
[21:25:38] slash_nick: kallisti5: just fire up gimp or photoshop... or ms paint... and issue a PR to https://github.com/rails/homepage :)
[21:25:42] smathy: uberjar, maybe, but even their proper use is more about just queuing something non-time-critical for async processing. So if you're worried about the redis read time then probably you're using the wrong tool.
[21:26:14] slash_nick: kallisti5: it's here :) https://github.com/rails/homepage/blob/gh-pages/images/action-pack.png
[21:26:45] smathy: Give poor ActionController some eyes while you're at it too.
[21:26:58] atomical_: has joined #RubyOnRails
[21:27:11] momomomomo: has joined #RubyOnRails
[21:27:34] bronson: has joined #RubyOnRails
[21:28:32] robbyoconnor: has joined #RubyOnRails
[21:29:43] safety_cut: has joined #RubyOnRails
[21:31:36] NBarnes: I chose to get into job queueing because I had image processing to do in response to a request that didn't need to be done immediately to respond to the request. So I shoved the processing into a background job so that the response could be made without waiting on the image processing. This is correct, yes?
[21:31:40] dopie: has joined #RubyOnRails
[21:32:01] Radar: nbarnes: sure
[21:32:03] cac: has joined #RubyOnRails
[21:32:05] Radar: nbarnes: Have you seen imgix.com?
[21:32:59] uberjar: there's https://www.blitline.com/ too.. charges by CPU/minute
[21:33:23] pawnbox: has joined #RubyOnRails
[21:33:56] NBarnes: I don't think the project needs computrons-as-a-service yet.
[21:34:32] slash_nick: i've never considered paying for image processing... at what point do you say "the image processing i'm doing warrants a paid solution"?
[21:34:32] uberjar: nbarnes: background jobs which burn CPU are a good reason to use backgbround job queues... if howeever your background job only blocks on network IO.. it's nice to use native threads
[21:34:51] NBarnes: Ok, wanted to make sure I was Doin' It Rite.
[21:34:57] Radar: slash_nick: When your disk on your primary server, all 600GB of it, is getting full of other people's images.
[21:35:07] Radar: slash_nick: And the next level is 1200GB which is almost double your hosting cost.
[21:35:09] NBarnes: What would block on network IO? I'm not sure I understand the nature of the bottleneck.
[21:35:23] uberjar: network IO would be... calls to external REST services
[21:35:27] uberjar: or database calls
[21:35:51] uberjar: anything where you're asking another system to do the work for you
[21:36:04] slash_nick: Radar: but then you'd opt for cloud storage/cdn or something right? wouldn't that be the next cheapest option?
[21:36:04] Radar: slash_nick: You'd also want to pay for it when image uploading takes > 1 sec per image because you're resizing it into 4 different sizes.
[21:36:15] Radar: slash_nick: So when someone uploads an advert on our site and uploads 4 images with it, that process can take 8 seconds.
[21:36:25] Radar: slash_nick: Yes, imgix.com is what we'll be using by the middle of the year.
[21:36:53] Radar: It also means that our server won't be the one serving the images which'll free it up to serve pages instead.
[21:36:58] guacamole: has joined #RubyOnRails
[21:37:15] slash_nick: ah so this isn't an image processing service, it's storage?
[21:37:22] slash_nick: i think that's my mistake :)
[21:37:29] Radar: slash_nick: It's both
[21:37:36] Radar: AND imgix caches using Fastly which has nodes in all the popular cities, so image loading will be even faster
[21:38:19] NBarnes: So you can send one image to imgix and have them A) process/resize the image for you into what you need, and _then_ B) host and serve the image for you?
[21:38:19] Radar: slash_nick: We upload images to an S3 bucket (so I guess S3 is the store here...) and then configure imgix to read images from that bucket. We can ask imgix to resize that image to whatever dimensions we want.
[21:38:24] Radar: nbarnes: yes
[21:38:44] Quintin: has joined #RubyOnRails
[21:39:08] smathy: slash_nick, never IMHO, I'd just pay for storage ;)
[21:39:10] Radar: Ultimately, this will help us move off dedicated servers and onto AWS.
[21:40:16] NBarnes: So you can scale back your servers not just in terms of local storage but also processing power.
[21:40:36] uberjar: edge caching for the win
[21:41:32] slash_nick: Radar: i gotcha... i was just reading through imgix.js... it's got lots of processing features, i could see it working for lots of use cases...
[21:42:05] Radar: See also: http://photos.imgix.com/building-a-graphics-card-for-the-internet
[21:42:27] blackmes1: has joined #RubyOnRails
[21:43:00] uberjar: I <3 fast.ly but I'm using cloudflare CDN these days instead.. my only gripe with flast.ly is poor support for domain names that don't like www.
[21:43:12] Papierkorb: Cables all over the place .. check. Bunch of LEDs .. yep. Quite a bunch of computers in racks .. yep
[21:43:17] slash_nick: appears to lack things like animations, montages, fourier transforms...
[21:43:41] atomical: has joined #RubyOnRails
[21:44:12] hannelita: has joined #RubyOnRails
[21:44:15] Jasaka: has joined #RubyOnRails
[21:44:21] slash_nick: shiny! https://exposure.imgix.net/production/photos/2n4adtp5lm53tyb929cev0wymkxd2t9tmkrv/original.jpg
[21:44:31] newdan: has left #RubyOnRails: ()
[21:44:45] kara_sweets: has joined #RubyOnRails
[21:45:02] Papierkorb: slash_nick: That didn't tick off the "Out of place shining Apple macbook on some desk" in my bingo chart :(
[21:45:28] Radar: Papierkorb: Is "ping pong table" on there too?
[21:46:12] slash_nick: Papierkorb: nerf gun on my desk right now... that's gotta be on there
[21:46:34] Papierkorb: Radar: "Table soccer, billiard table, ping pong table, or similar"
[21:46:55] uberjar: what about espresso machine
[21:46:56] Papierkorb: Dart doesn't count though
[21:46:56] slash_nick: Radar: I thought this was pretty cool https://www.imgix.com/js-examples/imgix-colors.html
[21:47:19] momomomomo: has joined #RubyOnRails
[21:47:22] uberjar: all the nerf stuff is so much nicer after a double shot expresso
[21:47:23] slash_nick: we also have a slot car track
[21:47:25] Radar: oooh neat I didn't know it could do that
[21:47:37] bphogan: has joined #RubyOnRails
[21:47:39] uberjar: mini fridge with redbull is fine tho
[21:47:42] lipoqil: has joined #RubyOnRails
[21:47:44] Obi_obi: has joined #RubyOnRails
[21:47:49] kitallis: has joined #RubyOnRails
[21:47:53] djbkd: has joined #RubyOnRails
[21:48:03] Papierkorb: uberjar: "fridge with free beer in it". Yes this is Germany.
[21:48:06] tvw: has joined #RubyOnRails
[21:48:13] VeryBewitching: I still have a bad taste in my brain from my first RedBull experience.
[21:48:30] Spami: has joined #RubyOnRails
[21:51:29] dopie: has joined #RubyOnRails
[21:51:32] uberjar: ideally the office would be located close to a blue bottle cafe
[21:51:50] uberjar: but having draft beer on tap excels even that.. props to german startups
[21:52:26] uberjar: if anyone has not treid bluebottle I'm convinced it's the best in the USA https://bluebottlecoffee.com/
[21:53:00] slash_nick: our office here has this downstairs: http://www.hopcitybeer.com/birmingham/#growlertownarea
[21:54:13] CornishPasty: dammit slash_nick :(
[21:54:20] CornishPasty: > Not Birmingham, UK
[21:55:01] Radar: #40: Angry Orchard Crisp Apple
[21:55:07] Radar: Best cider in the entire world imo
[21:55:39] uberjar: slash_nick: I've been to your city.. I'm from Atlanta, Georgia. It's a great place.. about 3 hours west if I remember correctly
[21:56:03] slash_nick: uberjar: yeah, once you get past all the georgia road work it's not a long drive at all :P
[21:56:26] CornishPasty: Radar: what is it?
[21:56:46] ferr: has joined #RubyOnRails
[21:56:56] Radar: CornishPasty: In a word: delicious
[21:57:58] slash_nick: uberjar: haven't been in a while, but i like atlanta... considered moving there at one time
[21:58:46] FCser: has joined #RubyOnRails
[21:58:56] CornishPasty: Radar: Might try it... it's on amazon for ??14.99 :o
[21:59:08] CornishPasty: much expensive
[21:59:44] CornishPasty: I quite enjoy Aspall's
[22:00:03] uberjar: slash_nick: well if you do come check out the ATLRUB (altanta ruby users group) they are a hospitalable bunch it's easy to make new friends
[22:00:15] slash_nick: ah used to be ALTRUG... uberjar i'm on tech404
[22:00:21] slash_nick: urps... atlrug
[22:00:34] slash_nick: alindeman heads all that up, no?
[22:00:41] brycesenz: has joined #RubyOnRails
[22:00:44] uberjar: slash_nick: to be honest birmingham seemed like a nice place but not as much drinking because there's no football madness there relative to alburn / alabama
[22:01:05] uberjar: so I've alwasy just passed thru on routet to the big tame
[22:01:23] waldi_: has joined #RubyOnRails
[22:01:23] toydestroyer: has joined #RubyOnRails
[22:01:50] slash_nick: today birmingham has a lot of craft breweries in town... it's a good place to find good beer
[22:01:55] uberjar: it looks like you guys have a top knotch liquor establishement so I was probably mistaken in that perception
[22:01:59] johnflux_: has joined #RubyOnRails
[22:02:25] shibabu: has joined #RubyOnRails
[22:02:39] slash_nick: uberjar: paramount? or collins bar?
[22:02:58] slash_nick: (sorry, this is all very OffTopic)
[22:03:16] uberjar: the place you linked to I mean
[22:03:38] uberjar: that was no ordinary liquor store
[22:03:42] hannelita: has joined #RubyOnRails
[22:03:48] podman: has joined #RubyOnRails
[22:04:16] uberjar: I can't find the link now.. I forgot to launch screen before irrsi lol oh well..
[22:04:22] slash_nick: ah, that's just wine and beer
[22:04:41] slash_nick: uberjar: that's more of a grocery store (that happens to also have a tap room)
[22:05:15] itsmeduncan: has joined #RubyOnRails
[22:06:11] guacamole: has joined #RubyOnRails
[22:06:28] uberjar: slash_nick: we have a bunch of differnet craft breweries here that you can have lunch at http://atlanta.eater.com/maps/best-atlanta-breweries-craft-beer but my personal favorite is sweetwater 420
[22:06:38] uberjar: which is becoming a national name these days
[22:07:49] uberjar: I visited Denver recently though... I think they have an even better craftg brew scene
[22:07:54] mag42c_: has joined #RubyOnRails
[22:08:16] uberjar: they had an Indica beer that was made with cannabis CBD extract.. good stuff
[22:08:37] evoRails: has joined #RubyOnRails
[22:08:39] uberjar: it's too long a drive though.. they're out there in the middle of the country all by themselves
[22:09:13] tubbo: yeah sweetwater has been really pushing themselves
[22:09:27] tubbo: actually they sponsored this new years party that i played
[22:10:37] uberjar: nice! yea their IPA is my fav beer period
[22:10:49] uberjar: bluemoon comming in close second
[22:10:56] evoRails: hi, trying to get ror up and running on my mac. Having issues with gems... could anyone please help?
[22:11:22] uberjar: evoRails: what kind of an issue ?
[22:11:43] loren: has joined #RubyOnRails
[22:11:47] evoRails: uberjar: https://gist.github.com/2015evan/f075186f6b2ae34d6db8
[22:11:47] Radar: evoRails: As I asked yesterday, you need to be more specific when you ask questions here.
[22:11:56] waldi_: has joined #RubyOnRails
[22:11:56] toydestroyer: has joined #RubyOnRails
[22:12:14] Radar: evoRails: Follow this guide to setup Ruby correctly: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
[22:12:45] evoRails: Radar: I did/am
[22:13:23] pawnbox: has joined #RubyOnRails
[22:13:58] Radar: evoRails: Looks like you're using the system Ruby and you're going to have a bad time if you keep trying to do that.
[22:14:43] superlou: has joined #RubyOnRails
[22:15:03] evoRails: Radar: then I need to specify which ruby...how?
[22:15:12] Radar: evoRails: Follow the guide.
[22:15:52] evoRails: Radar: ok...back to it>>>>
[22:18:23] thejamespinto: has joined #RubyOnRails
[22:19:49] uberjar: the thing about Atlanta startups.. it's mostly bio-med, email, and infosec
[22:23:13] NBarnes: has joined #RubyOnRails
[22:24:58] uberjar: they're getting ready to outlaw drones here though :( it's gonna devistate a whole startup economy at GATech *sigh*
[22:25:38] sarink: has joined #RubyOnRails
[22:25:58] uberjar: I hope amazon hurries up and releases their drones so maybe that'll fix things in time
[22:29:36] scott0101: has joined #RubyOnRails
[22:30:34] korstiaan: has joined #RubyOnRails
[22:30:37] scott0101: quick question, if a model is not dirty on update does fragment cache get refreshed?
[22:31:26] greengriminal: has joined #RubyOnRails
[22:31:34] replay: has joined #RubyOnRails
[22:32:27] reckoner: has left #RubyOnRails: ()
[22:33:03] AntiSpamMeta: has joined #RubyOnRails
[22:35:49] nertzy2: has joined #RubyOnRails
[22:37:32] momomomomo: has joined #RubyOnRails
[22:39:27] ql6wlld: has joined #RubyOnRails
[22:43:00] `aspiRe: has joined #RubyOnRails
[22:43:27] pawnbox: has joined #RubyOnRails
[22:43:31] fourminutemonta: has joined #RubyOnRails
[22:47:02] mag42c: has joined #RubyOnRails
[22:47:16] MarkAValdez: has joined #RubyOnRails
[22:47:56] quazimodo: has joined #RubyOnRails
[22:48:19] one_zero: has joined #RubyOnRails
[22:49:26] atomical_: has joined #RubyOnRails
[22:49:38] Spami: has joined #RubyOnRails
[22:50:20] brycesenz: has joined #RubyOnRails
[22:50:59] navs_: has joined #RubyOnRails
[22:53:10] NBarnes: has joined #RubyOnRails
[22:53:31] cac: has joined #RubyOnRails
[22:54:00] lacuna: has joined #RubyOnRails
[22:54:08] Pazician: has joined #RubyOnRails
[22:54:37] baweaver: has joined #RubyOnRails
[22:54:57] ValdezM: has joined #RubyOnRails
[22:55:07] draig: has joined #RubyOnRails
[22:55:15] threeminutemonta: has joined #RubyOnRails
[22:55:45] rickmasta: has joined #RubyOnRails
[22:56:31] ValdezM: I am registered with NickServ :)
[22:56:46] ferr: has joined #RubyOnRails
[22:57:32] Radar: scott0101: I believe it depends on the updated_at.
[22:57:52] scott0101: oh i see, thanks
[22:58:13] dideler: has joined #RubyOnRails
[22:58:27] ValdezM: has left #RubyOnRails: ()
[22:59:18] djellemah: has joined #RubyOnRails
[23:01:21] Emily_: has left #RubyOnRails: ()
[23:01:31] dopie: How can i right this minitest test in rspec ?
[23:01:31] dopie: assert_equal 2, Sidekiq::Extensions::DelayedMailer.jobs.size
[23:01:40] ValdezM: has joined #RubyOnRails
[23:01:55] alexhartley: has joined #RubyOnRails
[23:02:04] Macca: has joined #RubyOnRails
[23:02:27] workmad3: dopie: expect(sidekiq.size).to eq(2) (or potentially `expect(Sidekiq::Extensions::DelayedMailer).to have(2).jobs`
[23:02:43] workmad3: (sidekiq.size is me being lazy btw)
[23:02:52] fcser_: has joined #RubyOnRails
[23:03:30] dopie: ahhhh cool
[23:03:53] dopie: how come the first one works?
[23:04:31] `aspiRe: has joined #RubyOnRails
[23:04:31] mclee: has joined #RubyOnRails
[23:04:53] Dreamer3: has joined #RubyOnRails
[23:05:23] NBarnes: has joined #RubyOnRails
[23:05:28] pragmatism: has joined #RubyOnRails
[23:05:39] B1n4r10: has joined #RubyOnRails
[23:05:42] superlou: has joined #RubyOnRails
[23:05:55] dopie: workmad3: how come the first one works?
[23:06:14] choke: has joined #RubyOnRails
[23:06:48] threeminutemonta: has joined #RubyOnRails
[23:06:55] workmad3: dopie: as I said, I was being lazy not typing out the entire thing
[23:07:05] zz_timnovinger: has joined #RubyOnRails
[23:08:22] bbrowning_away: has joined #RubyOnRails
[23:08:23] diego3: has joined #RubyOnRails
[23:08:35] diego3: has joined #RubyOnRails
[23:09:11] NBarnes: has joined #RubyOnRails
[23:09:21] Coldblackice: has joined #RubyOnRails
[23:10:06] baweaver: has joined #RubyOnRails
[23:12:34] happygilmoregent: has joined #RubyOnRails
[23:12:57] happygilmoregent: I can't start server in rails-2.1.0
[23:12:59] NBarnes: has joined #RubyOnRails
[23:13:02] hahuang65: has joined #RubyOnRails
[23:13:22] pawnbox: has joined #RubyOnRails
[23:13:26] Radar: happygilmoregent: !didntwork
[23:13:26] helpa: happygilmoregent: What "didn't work"? Did your server not start? Did your computer explode? Did your webpage turn bright pink? Did your client not pay your bill on time? You may have to be more specific. A Gist (http://gist.github.com) of the code that doesn't work (and the error you are getting) will be helpful.
[23:13:33] _3by8: has joined #RubyOnRails
[23:14:35] happygilmoregent: says /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- script/../config/boot (LoadError)
[23:14:37] happygilmoregent: from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
[23:14:37] northfurr: has joined #RubyOnRails
[23:14:38] happygilmoregent: from script/server:2:in `<main>'
[23:15:36] navs_: has left #RubyOnRails: ()
[23:16:22] Radar: happygilmoregent: Is there a file called config/boot.rb relative to the root of your Rails application?
[23:16:53] Radar: happygilmoregent: Can you make this application public?
[23:17:25] guacamole: has joined #RubyOnRails
[23:18:07] happygilmoregent: well I'm just installing rails-4.2.5 and didn't get the errors just only book I could find supported rails-2.1.0
[23:20:02] Radar: ACTION raises eyebrows sky high
[23:20:04] workmad3: happygilmoregent: https://www.railstutorial.org/book there you go
[23:20:12] Radar: happygilmoregent: !r4ia is another book
[23:20:12] helpa: happygilmoregent: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[23:20:15] jhn: has joined #RubyOnRails
[23:20:16] Radar: railstutorial.org is free
[23:20:29] workmad3: Radar: started on r5ia yet? ;)
[23:20:35] Radar: workmad3: hells to the no
[23:20:50] happygilmoregent: just from my local library
[23:21:05] NBarnes: has joined #RubyOnRails
[23:21:15] workmad3: happygilmoregent: any reason to not use the freely available online book for rails 4?
[23:22:04] jkamenik: has joined #RubyOnRails
[23:22:38] learner1: has joined #RubyOnRails
[23:23:50] happygilmoregent: dk just code academy was attempting to charge me and didn't know about railstutorial.org
[23:24:02] alonko: has joined #RubyOnRails
[23:24:34] IrishGringo: has joined #RubyOnRails
[23:25:05] diego2: has joined #RubyOnRails
[23:25:35] NBarnes: has joined #RubyOnRails
[23:26:13] kara_sweets_: has joined #RubyOnRails
[23:26:49] atomical: has joined #RubyOnRails
[23:27:28] NBarnes: has joined #RubyOnRails
[23:27:39] alonko: i need help, could somebody help me out on ruby on rails
[23:27:43] alonko: trying to open a database
[23:27:48] alonko: i forgot the command to open a database
[23:28:10] alonko: HELLO???????????????
[23:28:13] alonko: ???????????????
[23:28:23] alonko: so disappointed i thought i could find help here
[23:28:23] Radar: alonko: Calm down please.
[23:28:44] helpa: Do not beg / plead with people to help you. This includes asking questions like "Any ideas?" after posting your original question.
[23:28:52] Radar: alonko: What have you tried to open the database?
[23:28:54] _3by8: alonko: mind your manners!
[23:29:01] Radar: alonko: What do you want to do once you have opened the database?
[23:29:15] alonko: well im learning ruby on lynda.com
[23:29:21] alonko: and im trying to learn migrations
[23:29:39] alonko: i forgot how to open up a simple_cms_development
[23:29:46] alonko: a database i created
[23:29:58] Radar: Why do you need to open this database?
[23:30:03] bronson: has joined #RubyOnRails
[23:30:10] alonko: trying to learn migrations
[23:30:21] Radar: alonko: !gist database.yml please
[23:30:21] helpa: alonko: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[23:30:26] NBarnes: has joined #RubyOnRails
[23:31:16] alonko: okay let me make it clearer what im trying to do
[23:31:24] Radar: That would be great.
[23:31:30] alonko: im on the mysql command line
[23:31:36] alonko: i entered my password
[23:31:43] alonko: and then entered SHOW DATABASES;
[23:31:47] Radar: Maybe "USE simple_cms_development" is what you're after?
[23:31:53] alonko: yesyesyes
[23:31:58] alonko: thank you so much
[23:32:21] NBarnes: has joined #RubyOnRails
[23:32:44] alonko: another question, how do i use a different use on mysql
[23:32:56] alonko: i am pretty sure i've create one
[23:33:05] Radar: alonko: !rule0
[23:33:05] helpa: alonko: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[23:33:09] Radar: alonko: !rule1
[23:33:09] helpa: alonko: Do your research before hand. Your question may be answerable with a quick Google search or by simply experimenting. If you're using a method in Rails, look it up in the API Docs or in the Official Guides.
[23:34:33] NBarnes: has joined #RubyOnRails
[23:35:10] choke: has joined #RubyOnRails
[23:35:18] mices: has joined #RubyOnRails
[23:35:41] mices: trying to figure out why bootstrap stopped working https://gist.github.com/mices/8e4a3c9564afa95aad06
[23:37:19] gbgdev: has joined #RubyOnRails
[23:37:37] gbgdev: has joined #RubyOnRails
[23:37:37] NBarnes: has joined #RubyOnRails
[23:37:59] gbgdev: has joined #RubyOnRails
[23:38:11] gbgdev: has joined #RubyOnRails
[23:39:15] alonko: Hey ryan are you ussually on here?
[23:39:19] mostlybadfly: has joined #RubyOnRails
[23:39:41] northfurr: has joined #RubyOnRails
[23:39:52] alonko: I'm kind of curious what you do, are you a web developer or some proffessional that works for google or something haha
[23:39:58] Radar: alonko: Yes I am usually on here.
[23:40:11] Radar: alonko: I am a senior software dev at a company called Marketplacer.
[23:40:25] Radar: I help on here when I'm trying to think through a problem or I'm waiting on something like tests to run
[23:40:26] jkamenik: has joined #RubyOnRails
[23:40:32] xardion: has joined #RubyOnRails
[23:40:41] wethu: has joined #RubyOnRails
[23:40:44] alonko: That's awesome
[23:41:08] alonko: I'm a college freshman with a startup idea, that's why i'm trying to learn ruby
[23:41:29] alonko: You have any advise for me? Tips on like staying on track?
[23:41:40] Radar: alonko: Buy my book
[23:41:43] Radar: alonko: !r4ia
[23:41:43] helpa: alonko: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[23:41:48] baash05: has joined #RubyOnRails
[23:42:13] Radar: And then read through it and learn from that
[23:42:16] baash05: Hey.. Just wondering if anyone has used the tsrange in postgres yet?
[23:42:20] alonko: what is it about?
[23:42:25] workmad3: Radar: haha :) 'your book'... you're not even second billing in your own ordering of the authors :P
[23:42:30] Radar: alonko: Read the description on the page
[23:42:30] alonko: just a beginners guide to ruby?
[23:42:36] Radar: alonko: It's a beginners guide to Rails
[23:42:43] Radar: alonko: You should learn Ruby first if you haven't done that
[23:42:46] Radar: alonko: !twgr is the book I recommend
[23:42:46] helpa: alonko: Learn Ruby by reading this book - http://manning.com/black3 - The Well-Grounded Rubyist by David A. Black
[23:42:55] workmad3: alonko: it's about a tribe of goblins called the 'ruby' tribe and their invention of the railway
[23:43:03] Radar: workmad3: Authors are ranked there based on how much they contributed :)
[23:43:25] baash05: I'm trying to figure out if how it works with rails...
[23:43:29] Radar: Credit where credit's due, etc.
[23:43:56] Radar: baash05: Hm, I haven't seen this before. Looks interesting.
[23:44:22] djellemah: has joined #RubyOnRails
[23:45:28] alonko: Ryan what do you think about this?
[23:45:29] alonko: http://www.lynda.com/Ruby-Rails-tutorials/Running-migrations/139989/159087-4.html
[23:45:47] baash05: No.. actually it's a pile of junk..
[23:46:01] matthewd: baash05: Yes, it should work as a fully supported type
[23:46:02] Radar: alonko: I have to sign up for that apparently.
[23:46:11] njero: has joined #RubyOnRails
[23:46:22] Malgorath: has joined #RubyOnRails
[23:46:23] Radar: alonko: I don't have any strong opinions about Lynda at all. Their old courses were out of date and horrible but I think they've updated since then.
[23:46:27] alonko: yeah im paying like 240 a year for lynda.com
[23:46:37] baash05: I was wondering how one would create an api for it.
[23:46:43] Radar: That's quit ea lot of money.
[23:47:04] matthewd: baash05: API what now?
[23:47:32] alonko: has joined #RubyOnRails
[23:47:37] workmad3: baash05: you'd probably create a custom type in ActiveRecord that takes and returns a DatetimeRange
[23:47:49] workmad3: s/custom type/type mapping
[23:47:49] baash05: Would the user have to send bounds:('2010-01-01','2015-1-1')
[23:48:02] matthewd: .. or you'd use the built-in type that I just said is already there
[23:48:14] atomical: has joined #RubyOnRails
[23:48:25] workmad3: matthewd: ah, does AR already support it with DateTimeRange?
[23:48:30] workmad3: (haven't bothered looking)
[23:48:47] NBarnes: has joined #RubyOnRails
[23:49:07] baash05: I'm not really worried about how ruby displays it. I'm more interested in how JSON would represent it.
[23:49:24] workmad3: baash05: that's a completely different question
[23:49:38] baash05: well that's why I asked about creating an API for it..
[23:49:41] workmad3: but I can see how your questions were aimed towards it now :)
[23:49:43] baash05: the controller level things.
[23:50:07] workmad3: baash05: you'd probably want/need to send bounds around, yeah
[23:50:10] baash05: Would my user have to know that (date, date) was not the same as [date, date] or (date, date]
[23:50:45] baash05: By users I mean users of the api.. Aka Java script team.
[23:51:06] NBarnes: has joined #RubyOnRails
[23:51:10] alonko: Ryan what did you major in when you went to college?
[23:51:50] atomical_: has joined #RubyOnRails
[23:52:21] baash05: I was hoping someone would know best practice.. I was always using start_date and end_date as separate fields in the DB.. but my team lead wants to move to these.. and I'm trying to see the value
[23:52:25] Malgorath: anyone know of a gist or website that litterally just walks through the commands without all the 'theory' around it. I like R4IA but I'm finding myself lost after it says do this, then a lot of explaining after that.
[23:52:33] Radar: alonko: Use my IRC name please. It doesn't highlight otherwise.
[23:52:51] rhizome_: baash05: what value do they say it has?
[23:52:58] Radar: alonko: I did Network Engineering and then programming on the side to pay for things. Enjoyed programming more.
[23:53:16] pawnbox: has joined #RubyOnRails
[23:53:21] baash05: Something about scalable queries..
[23:53:28] workmad3: baash05: it would make queries easier I'd guess
[23:53:34] NBarnes: has joined #RubyOnRails
[23:53:50] titeiko: has joined #RubyOnRails
[23:53:54] baash05: I want all records that start after x..
[23:53:55] rhizome: not sure how it affects queries
[23:53:57] lethjakman-l: has joined #RubyOnRails
[23:54:02] alonko: Radar: I'm studying in general engineering at SJSU and I live in San Francisco, should I switch over? My end goal is to work at a startup here at home in SF
[23:54:08] rhizome: aside from the n-1 columns
[23:54:08] baash05: or all records that end before x
[23:54:18] Radar: alonko: I am not one to give advice on what people should / shouldn't do. We live different lives.
[23:54:32] Radar: Malgorath: Which part specifically are you lost at?
[23:54:41] baash05: Yep asside from that I don't get it..
[23:54:48] jgpawletko: has joined #RubyOnRails
[23:54:51] workmad3: baash05: ah, normally when I see a range being stored, I'd be expecting to do IN or BETWEEN queries, not checking a single boundary
[23:54:57] rhizome: then have them make the case for it!
[23:55:17] alonko: Radar: What's your opinion though? The best majors in order to work in an emerging startup company
[23:55:18] rhizome: and yeah, if either value is used discretely
[23:55:20] baash05: it's for a vacation thing..
[23:55:27] baash05: so I want to show all upcomming vacations.
[23:55:36] Radar: alonko: You do realise I'm in Australia and not the US, right?
[23:55:37] baash05: or exclued all expired vacations.
[23:55:44] alonko: Radar: I'd rather have your piece of the pie than someone who isn't as experienced
[23:55:54] alonko: Radar: yeah i read your whois
[23:55:57] rhizome: so start_day > today; end_date < today
[23:56:02] workmad3: alonko: personally - look at what they can do, not what piece of paper they have
[23:56:16] Malgorath: Radar, after I do the commands or the edit a file, then it goes into a lot of descriptions about why or what is being done. That causes me to forget what I read about doing. Unfortunately I was trained in MS-DOS Basic and read reems of books with 'learning' by copy and modify later.
[23:56:21] NBarnes: has joined #RubyOnRails
[23:56:28] Radar: Malgorath: ah.
[23:56:42] rhizome: ACTION knows BASICA.EXE
[23:57:05] baash05: Yeah.. basically.. but you can use a range in the query if you need an in.
[23:57:14] Malgorath: I really do good not learning theory because when i do the commands, I see a result and I understand it more that way.
[23:57:22] alonko: workmad3: I am just a lost college freshman trying to find his way haha, I find asking people who are doing things with their lives and have achievements are the best people to ask
[23:57:51] rhizome: alonko: stay in school
[23:57:52] Radar: Malgorath: My advice is to persist with reading it.
[23:58:05] Radar: Malgorath: But I am biased ;)
[23:58:07] baash05: alonko: stay in school.. theory is critical to your eventual growth.
[23:58:17] Malgorath: lol I already bought all your rails books :p
[23:58:25] Radar: Malgorath: I'd like to think that the theory after it helps explain why we're doing it and why it's important.
[23:58:28] baash05: You can go only so far before you run into a wall.
[23:58:30] Ropeney: has joined #RubyOnRails
[23:58:36] Scripore: has joined #RubyOnRails
[23:58:42] alonko: I'm in school already
[23:58:46] Radar: Malgorath: And while you might understand what it's doing, it's helpful to have that description there anyway just so you can match that content with your knoweldge.
[23:58:49] baash05: stay there.
[23:58:59] workmad3: Malgorath: also, if you find reading theory straight after doesn't help - skip it! get back to it later
[23:59:03] alonko: What does it matter? I feel like I'm not doing anything productive, taking general classes..
[23:59:24] workmad3: books and tutorials have to be written in a linear fashion because of their physical constraints, that doesn't mean you have to read them that way
[23:59:36] alonko: Eventually I'll be switching towards computer science, mechanical engineering, or electrical engineering
[23:59:38] NBarnes: has joined #RubyOnRails
[23:59:43] workmad3: alonko: for starters, it gives you time to figure out what you want to do
[23:59:53] workmad3: alonko: and try it out
[23:59:58] rhizome: alonko: you don't know what you don't know, and yes it all seems to move too slowly.