« Back to channel list

#RubyOnRails - 01 July 2015

« Back 1 day Forward 1 day »
[00:00:34] Radar: cogsbox_: anything else related with the error is the stacktrace... it looks like this: https://gist.github.com/radar/e9fd03e93ddb5067d057
[00:00:43] Radar: It tells the story of how the code got to that point
[00:01:09] Palsson: has joined #RubyOnRails
[00:01:33] bullcitydev: has joined #RubyOnRails
[00:01:50] cogsbox_: okay, I will remember that. I have a lot of errors I am working through right now. If something holds me up again I will include the stacktrace.
[00:02:40] Radar: thanks :) Please don't be afraid to ask any more questions.
[00:03:52] charliesome: has joined #RubyOnRails
[00:04:04] hrendalf: has joined #RubyOnRails
[00:04:43] sevenseacat: has joined #RubyOnRails
[00:04:52] zorak8: has joined #RubyOnRails
[00:05:56] gerep: has joined #RubyOnRails
[00:08:02] mary5030: has joined #RubyOnRails
[00:09:33] djbkd: has joined #RubyOnRails
[00:09:48] charliesome: has joined #RubyOnRails
[00:09:56] jtdoncas: has joined #RubyOnRails
[00:10:32] djbkd: has joined #RubyOnRails
[00:11:27] jtdoncas: has joined #RubyOnRails
[00:14:18] nobitanobi: has joined #RubyOnRails
[00:14:47] Pupeno: has joined #RubyOnRails
[00:16:06] idd2d: has joined #RubyOnRails
[00:16:11] nobitanobi: hey guys what is the 'h' when we do `h.t` or `h.l`?
[00:16:59] bricker: in what context?
[00:18:40] chelbs: has joined #RubyOnRails
[00:19:54] Radar: nobitanobi: ?
[00:21:07] sevenseacat: nope, no context allowed.
[00:21:37] Radar: NO CONTEXT FOR YOU
[00:22:08] Radar: If I had to guess (and boy do I love guessing!) I would say it's the "h" object from a decorator in Draper and the t + l methods being called are the I18n.t and I18n.l methods.
[00:22:30] Radar: But without context we have no way of knowing if I am right (again) or wrong
[00:23:05] uberjar: has joined #RubyOnRails
[00:23:23] baweaver: has joined #RubyOnRails
[00:24:15] sevenseacat: you're likely right, that sounds plausible.
[00:24:30] Radar: I have been known to be right on occasion
[00:24:44] sevenseacat: unfortunately, in an attempt to gain Awesome Points(TM) you've shown that even poorly-asked questions can get good answers
[00:26:57] nobitanobi: has joined #RubyOnRails
[00:27:49] bricker: sevenseacat: it's pronounced "brickercoins"
[00:27:58] jkamenik: has joined #RubyOnRails
[00:29:58] Radar: Radar kicked nobitanobi: thanks
[00:30:30] Radar: ACTION tries to grab attention.
[00:31:09] nobitanobi: has joined #RubyOnRails
[00:33:19] frek818_: has joined #RubyOnRails
[00:33:38] llakey: has joined #RubyOnRails
[00:33:52] humd1ng3r: has joined #RubyOnRails
[00:34:16] ekain: has joined #RubyOnRails
[00:34:56] carlosd: has joined #RubyOnRails
[00:34:58] uberjar: ACTION grants Radar an audience
[00:35:08] uberjar: you may speak
[00:35:13] Radar: nobitanobi: wb
[00:35:22] Radar: nobitanobi: Can you tell us the context of your question please?
[00:35:46] waltz: has joined #RubyOnRails
[00:37:05] bricker: lololollolol
[00:37:29] hahuang65: has joined #RubyOnRails
[00:37:36] uberjar: you know.. I bet one of you could compile a book of curated Q/A sessions from #rubyonrails and publish it.. $35/copy
[00:38:10] uberjar: wouldn't it be hilarious if some newbie came along and did it, right out from under the people who put the hard work in to answer the questions
[00:38:56] uberjar: "most common rails questions" v 1.0
[00:39:44] Radar: uberjar: http://leanpub.com/debuggingruby is supposed to be that book :)
[00:39:53] Radar: uberjar: However you can't write multiple chapters about typos in code
[00:40:40] bricker: Chapter 1: Check for typos; Chapter 2: Seriously you have a typo, just look more closely. Chapter 3: Okay, you insist you don't have a typo, let's spend 30 minutes trying to debug. Chapter 4: Turns out you had a typo.
[00:40:40] crdpink: has joined #RubyOnRails
[00:40:56] Papierkorb: uberjar: After many years of helping in #Qt, yes, you could in fact do that.
[00:41:12] ankhers: has joined #RubyOnRails
[00:41:54] Papierkorb: bricker: Chapter 5: On how to make it seem that it wasn't you who messed up
[00:42:21] sevenseacat: chapter 1: can you show me the code? chapter 2: can you show me the backtrace? chapter 3: whats on line blah? chapter 4: can you show me the backtrace?
[00:42:24] slash_nick: Papierkorb: that book must exist already, and lots have read it
[00:43:47] slash_nick: chapter 6: how to let IRC users earn your paycheck for you?
[00:43:56] sevenseacat: and pass your interviews
[00:44:32] lele: has joined #RubyOnRails
[00:44:34] Papierkorb: There's a reason why you shouldn't allow randomers to ask you beginner questions in /query
[00:45:15] smathy: My book: How to find the docs for any language or framework in under 60 seconds.
[00:45:27] slash_nick: Papierkorb: !privmsg
[00:45:27] helpa: Papierkorb: Rather than privately message someone, please instead ask your question here in the main channel. This allows more people to help you and maximizes the chance of you receiving help with your problem.
[00:45:53] Papierkorb: slash_nick: I think I need a list of commands for that guy
[00:46:07] helpa: Just the tips: http://logs.ryanbigg.com/tips
[00:46:09] Papierkorb: !gimme the friggin list of commands
[00:46:18] andatche: has joined #RubyOnRails
[00:46:18] slash_nick: smathy: more often than not... "have you seen http://x?" - "No, thanks!" - "Really, that was literally the first result for your question as stated by you"
[00:46:37] smathy: slash_nick, yep.
[00:47:07] sevenseacat: 90% of the tips are junk. we should probably clean them out.
[00:47:11] smathy: slash_nick, and of course, my absolute favorite book: "How to make a gist with the actual code that's not working."
[00:47:18] slash_nick: sevenseacat: !toss
[00:47:18] helpa: slash_nick ( ・_・)σ '````'-.,_,.-.,_,.©¤ sevenseacat
[00:47:29] Papierkorb: Now I'm disappointed.
[00:47:43] smathy: Papierkorb, that's a common experience here.
[00:47:44] pothibo: has joined #RubyOnRails
[00:48:21] bricker: life, in general
[00:50:03] Hobogrammer: has joined #RubyOnRails
[00:50:29] Papierkorb: Looking at some commands I question the sanity of the creator. At others, I applaud for liking Star Trek Voyager.
[00:50:36] smathy: Speak for yourself there bricker. Maybe you should stop accepting payments in brickercoins ;)
[00:52:27] Radar: Papierkorb: !unworthy
[00:52:27] helpa: Papierkorb: You are not worthy of this bot!
[00:52:42] Radar: Papierkorb: The commands are a collaborative effort.
[00:53:08] helpa: ( ಠ_ಠ)–Ψ
[00:53:10] slash_nick: !r2d2 is my favorite
[00:53:10] helpa: Help us Radar! You are our only hope.
[00:53:11] Papierkorb: Radar: !patience
[00:53:18] andatche: has joined #RubyOnRails
[00:54:05] Papierkorb: Not only am I now many, I've been also here for three months.
[00:54:20] bratsche: has joined #RubyOnRails
[00:54:56] Aswebb_: has joined #RubyOnRails
[00:55:13] hotpancakes: has joined #RubyOnRails
[00:55:18] michael_mbp: has joined #RubyOnRails
[00:55:35] bricker: Papierkorb: helpa doesn't know your gender so uses the generally agreed-upon non-gendered pronoun
[00:55:36] smathy: "They" is both singular and plural.
[00:55:47] thmsmtylr: has joined #RubyOnRails
[00:56:08] bricker: Papierkorb: helpa can call you "it" if you prefer.
[00:56:26] baweaver: has joined #RubyOnRails
[00:56:32] Papierkorb: what's wrong with "X has been around for .."
[00:56:40] smathy: It's repetitive.
[00:56:46] smathy: That's the whole point of pronouns.
[00:57:10] bricker: Papierkorb: https://www.youtube.com/watch?v=46ehrFk-gLk Tom Scott (a linguist) explains why "they" is okay
[00:57:19] smathy: ...well, and adding some hilarious misunderstandings into the language.
[00:57:52] smathy: See, a linguist says it, it must be true.
[00:58:10] rhizome: it's OK, but it's not implemented in all listeners
[00:58:11] bricker: smathy: well he's more qualified to make the case than any of us, who are not linguists
[00:58:32] Papierkorb: "Trust me, I'm a software engineer"
[00:59:30] darrencauthon: has joined #RubyOnRails
[01:00:34] Radar: What, you aren't Legion?
[01:01:32] Papierkorb: Well, I never forget at least.
[01:02:45] smathy: bricker, well seeing as being a linguist is a form of qualification then yes, obviously he's more qualified. Whether his opinion carries any more/less weight really depends on your view of linguists.
[01:03:32] dseitz: has joined #RubyOnRails
[01:04:56] hd1: has joined #RubyOnRails
[01:05:08] uberjar: Chomsky was alright, all downhill from there??? I'm still waiting for the linguistics breakthru that lets us figure out how to reliably communicate with chimps (or dolphins for that matter)
[01:08:40] yaymukund: has joined #RubyOnRails
[01:09:28] x-light: has joined #RubyOnRails
[01:10:07] bronson: has joined #RubyOnRails
[01:14:46] charliesome: has joined #RubyOnRails
[01:16:25] ght: Question: Does anyone have a single example of calling any method from any XMLRPC-based OAuth2 provider using XMLRPC::Client?
[01:16:51] GPrime: has joined #RubyOnRails
[01:19:14] chelbs: has joined #RubyOnRails
[01:19:40] nobitanobi: has joined #RubyOnRails
[01:19:45] bruno-: has joined #RubyOnRails
[01:21:52] bmurt: has joined #RubyOnRails
[01:23:10] aamador: has joined #RubyOnRails
[01:23:50] rhizome: pretty specific
[01:30:15] Brom: has joined #RubyOnRails
[01:33:45] dkphenom: has joined #RubyOnRails
[01:40:15] beauby: has joined #RubyOnRails
[01:40:22] stardiviner: has joined #RubyOnRails
[01:40:28] Rubie: has joined #RubyOnRails
[01:41:36] doodlehaus: has joined #RubyOnRails
[01:41:56] djbkd: has joined #RubyOnRails
[01:45:08] bf4: has joined #RubyOnRails
[01:46:44] chintanparikh: has joined #RubyOnRails
[01:55:07] mkc: has joined #RubyOnRails
[02:06:12] lessless: has joined #RubyOnRails
[02:08:35] mary5030: has joined #RubyOnRails
[02:09:14] beauby: has joined #RubyOnRails
[02:15:07] ProLoser: has joined #RubyOnRails
[02:15:37] ProLoser: in development mode, I'm getting like 6-8second response times from my rails app
[02:16:10] ProLoser: Between the "Starting Post" and "Processing by"
[02:16:32] ProLoser: there is a delay. My coworker says this is because caching of models is disabled on local dev so it's due to rails like spinning up classes, etc
[02:16:46] rhizome: probably part of it
[02:16:53] andatche: has joined #RubyOnRails
[02:16:54] gambl0re: has joined #RubyOnRails
[02:16:54] ProLoser: is there any validity to this, or is a 5-10s pause abnormal?
[02:16:57] idd2d: has joined #RubyOnRails
[02:16:59] ProLoser: and how can i debug this?
[02:17:20] rhizome: does it happen to your coworker, too?
[02:17:21] ProLoser: our sql queries are faster and view rendering is faster than the crux of the request
[02:17:38] rhizome: what is the app doing? lots of environment specific issues could be in play
[02:17:39] ProLoser: uh i think so but he said he's using a vm of linux so it runs faster for him overall
[02:17:50] rhizome: and you are using..............what?
[02:18:05] ivanskie: has joined #RubyOnRails
[02:18:06] ProLoser: just running it in osx natively
[02:18:19] rhizome: shouldn't be an issue
[02:18:36] ProLoser: it's also EXTREMELY inconsistent
[02:20:38] ProLoser: like i feel there are random pauses and hiccups in the logs and i have no idea how to like debug it
[02:20:44] ProLoser: i'm a frontend dev but i'm getting sick of the slowness
[02:25:32] cornerma1: has joined #RubyOnRails
[02:25:39] ebbflowgo: has joined #RubyOnRails
[02:26:41] hotpancakes: has joined #RubyOnRails
[02:26:52] quazimodo: has joined #RubyOnRails
[02:27:08] rhizome: i'm guessing your coworker isn't too interested in helping you troubleshoot?
[02:28:46] Pupeno: has joined #RubyOnRails
[02:28:46] Pupeno: has joined #RubyOnRails
[02:29:03] mheld: has joined #RubyOnRails
[02:29:16] chelbs: has joined #RubyOnRails
[02:30:09] bratsche: has joined #RubyOnRails
[02:31:25] digifiv5e: has joined #RubyOnRails
[02:36:41] Guest59643: has joined #RubyOnRails
[02:37:17] darrencauthon: has joined #RubyOnRails
[02:39:03] beauby: has joined #RubyOnRails
[02:39:15] x-light: has joined #RubyOnRails
[02:39:16] ProLoser: rhizome: i don't really think he knows anything about how the backend/ruby/rails works
[02:39:25] ProLoser: he keeps telling me stuff like it's just cuz my caching is off
[02:39:42] ProLoser: i'm just trying to figure out how to diagnose the exact cause vs guesstimating
[02:39:43] gaboesquivel: has joined #RubyOnRails
[02:43:47] Aswebb_: has joined #RubyOnRails
[02:46:06] Spami: has joined #RubyOnRails
[02:47:41] Spami: has joined #RubyOnRails
[02:48:18] siemprefresco: has joined #RubyOnRails
[02:48:56] aligo: has joined #RubyOnRails
[02:49:04] emptyflask: has joined #RubyOnRails
[02:49:26] nyanz: has joined #RubyOnRails
[02:49:41] Aeyrix: p quiet today
[02:49:55] siempref_: has joined #RubyOnRails
[02:50:41] nyanz: has left #RubyOnRails: ()
[02:51:44] charliesome: has joined #RubyOnRails
[02:52:04] bf4: has joined #RubyOnRails
[03:01:17] crdpink2: has joined #RubyOnRails
[03:07:52] frek818_: has joined #RubyOnRails
[03:09:20] bruno-: has joined #RubyOnRails
[03:10:36] chintanparikh: has joined #RubyOnRails
[03:10:43] beauby: has joined #RubyOnRails
[03:11:45] frek818_: has joined #RubyOnRails
[03:11:57] braincrash: has joined #RubyOnRails
[03:12:15] Aeyrix: here i am writing a report
[03:12:19] Aeyrix: and it's burning me out
[03:12:52] sevenseacat: I know them feels.
[03:12:58] charliesome: has joined #RubyOnRails
[03:15:47] ivanskie: has joined #RubyOnRails
[03:16:52] jordanstorz: has joined #RubyOnRails
[03:17:01] frek818: has joined #RubyOnRails
[03:17:47] Radar: extraordinarily busy today
[03:18:28] Radar: Lots of fun times :D
[03:19:16] Radar: Usually it's all like "here's some cards for you to work on"
[03:19:47] Radar: Then today was all "<bullshit carrierwave + open-uri bug> + <Shaz asking if I can drive her to her job> + <spontaneous developer interview>"
[03:20:12] Radar: p.s. we're hiring and are not scumbags like all those startups
[03:20:50] Radar: catch: need to be in our timezone because manager
[03:20:57] alan_andrade: has joined #RubyOnRails
[03:24:51] arup_r: has joined #RubyOnRails
[03:25:31] Frem: has joined #RubyOnRails
[03:31:50] rhizome: california swing-shift
[03:32:01] sevenseacat: just dealing with typical junk here. spend hours figuring out how something should work. spend more hours writing tests for it. spend ten minutes writing the code.
[03:33:09] sevenseacat: there's a lot to be said for just putting the code, in the view.
[03:33:51] dented42: has joined #RubyOnRails
[03:34:00] sevenseacat: not futzing around with 400 services and partials and decorators
[03:37:04] brain_shim: has joined #RubyOnRails
[03:38:30] earthquake: has joined #RubyOnRails
[03:43:13] mkc: has joined #RubyOnRails
[03:44:17] Sylario: has joined #RubyOnRails
[03:48:43] JDeen: has joined #RubyOnRails
[03:49:48] baweaver: has joined #RubyOnRails
[03:51:54] JDeen: Hi guy, how can I make a text_field_tag have a name like user[email] without using form for (object) so that I will have a field like `<input type='text' name='user[email]>`?
[03:52:24] gusrub: has joined #RubyOnRails
[03:54:24] Radar: text_field 'user', 'email'
[03:54:52] hotpancakes: has joined #RubyOnRails
[03:56:10] jenrzzz: has joined #RubyOnRails
[03:56:33] djbkd: has joined #RubyOnRails
[03:58:23] JDeen: Radar: Thanks, will try (y)
[03:58:41] nobitanobi: has joined #RubyOnRails
[03:59:43] x44x45x41x4E: has joined #RubyOnRails
[04:00:26] earthquake: has joined #RubyOnRails
[04:02:38] jeanlinux: has joined #RubyOnRails
[04:04:38] chelbs: has joined #RubyOnRails
[04:06:18] hotpancakes: has joined #RubyOnRails
[04:10:34] rhizome: text_field_tag
[04:17:43] Pupeno: has joined #RubyOnRails
[04:19:51] x44x45x41x4E: How do you check an encoding of a string or text before saving it? Using postgresql for our DB.
[04:21:33] x44x45x41x4E: Then do something like `"#{StringToBeSaved}".force_encoding("#{EncodingOfStringToBeSaved}.encoding('UTF-8')"
[04:22:00] bronson: has joined #RubyOnRails
[04:22:16] Radar: x44x45x41x4E: why
[04:22:41] x44x45x41x4E: It's just that `EncodingOfStringToBeSaved` is nil sometimes when I get it on the email header ['charset'].
[04:23:05] x44x45x41x4E: Right now I'm just doing `.encoding('UTF-8')`
[04:23:30] x44x45x41x4E: Radar: Working on an email fetching feature on an app.
[04:23:31] Radar: x44x45x41x4E: Are you transmitting messages into some other reality or are you just not including the context
[04:23:43] EasyCo: has joined #RubyOnRails
[04:23:46] Radar: I don't understand what problem you're trying to solve here
[04:24:36] kies: has joined #RubyOnRails
[04:25:40] x44x45x41x4E: Radar: I'm fetching emails directly from a Gmail account using mailman the gem.
[04:26:05] x44x45x41x4E: Radar: And sometimes an email won't be fetched because of an exception which is `PG::CharacterNotInRepertoire: ERROR: invalid byte sequence for encoding "UTF8"`
[04:26:24] Radar: Outside of my paygrade I think.
[04:26:50] jfarmer: x44x45x41x4E What version of Ruby are you using?
[04:27:14] jfarmer: And what version of the pg gem?
[04:28:03] x44x45x41x4E: Radar: After a bit of Googling, I found out that I could encode the string, which is the email body, directly to UTF-8 using the `encode` method.
[04:28:54] x44x45x41x4E: Something like this http://stackoverflow.com/a/15848891
[04:29:26] x44x45x41x4E: jfarmer: Update the PG gem already. Currently on Ruby 2.1.5.
[04:29:36] rickmasta: has joined #RubyOnRails
[04:29:40] x44x45x41x4E: jfarmer: Testing it out right now on staging env.
[04:29:50] jfarmer: x44x45x41x4E I ask because: https://bitbucket.org/ged/ruby-pg/issue/197/ruby-220-byte-encoding-issue
[04:29:56] hanss: has joined #RubyOnRails
[04:30:03] x44x45x41x4E: jfarmer: Yeah. I saw that too.
[04:30:23] dc1: has joined #RubyOnRails
[04:30:28] x44x45x41x4E: jfarmer: Thanks.
[04:31:17] ivanskie: has joined #RubyOnRails
[04:31:54] jfarmer: x44x45x41x4E Unless you can pinpoint what exactly is going wrong, I think it's a bad idea to solve it that way.
[04:32:21] x44x45x41x4E: jfarmer: Do you mean the SO link I gave you?
[04:32:29] jfarmer: x44x45x41x4E No, forcing an encoding like that.
[04:32:36] jfarmer: For example: do you know what the offending byte sequence is?
[04:32:53] Aswebb_: has joined #RubyOnRails
[04:32:58] jfarmer: (In the email whose body causes that error.)
[04:33:15] x44x45x41x4E: Yeah. It's 0x96 on CP1252.
[04:33:19] michael_mbp: has joined #RubyOnRails
[04:33:33] pgatt: has joined #RubyOnRails
[04:34:12] x44x45x41x4E: jfarmer: Not doing force encoding right now.
[04:34:59] x44x45x41x4E: I'll see if encoding errors turn up right now.
[04:35:26] konsolebox: has joined #RubyOnRails
[04:35:57] jfarmer: Looks like it's the auto-smart quote thing that Windows does.
[04:38:17] jfarmer: And an old version/component of Windows at that.
[04:38:19] LeoDee: has joined #RubyOnRails
[04:38:26] jfarmer: x44x45x41x4E If the character encoding set in a meta tag in the HTML at all?
[04:38:43] jfarmer: (Sometimes people do that instead of doing the proper thing and putting it in the header.)
[04:39:34] jfarmer: Forcing the encoding is a "measure of last resort" kind of thing ??? not trying to argue for the sake of arguing.
[04:39:47] x44x45x41x4E: jfarmer: Nope. It's in the email header. The set encoding on the meta tag is UTF-8.
[04:40:22] x44x45x41x4E: The meta tag in the email body itself shouldn't be a problem since I would be fetching wholly.
[04:40:50] x44x45x41x4E: would be fetching the body * wholly.
[04:41:00] Pupeno: has joined #RubyOnRails
[04:41:28] jfarmer: So the header and email body are simply inconsistent. Yeah, don't really see a way around it.
[04:41:41] jfarmer: There's no real way to answer "Given a string, how is it encoded?"
[04:41:50] jfarmer: (Per your original question.)
[04:41:53] lessless: has joined #RubyOnRails
[04:42:14] jfarmer: There are plenty of byte sequences that are valid in many text encodings, all of which overlap with each other.
[04:42:42] x44x45x41x4E: jfarmer: Yeah. Unless I do a manual checking of it all in every email which are quite many as you said.
[04:43:07] eggoez: has joined #RubyOnRails
[04:43:14] x44x45x41x4E: jfarmer: Weird thing though the only emails that are failing are coming from NSF and Library of Congress.
[04:43:40] yaymukund: has joined #RubyOnRails
[04:43:58] jfarmer: I guess those are where the legacy systems are!
[04:44:26] x44x45x41x4E: Should I have not mentioned that? :/
[04:44:55] jfarmer: I just mean, this particular encoding error is something you see in text generated from old Windows systems.
[04:45:13] jfarmer: Like an old version of Word with "auto smart quotes" turned on
[04:45:17] jfarmer: Or Outlook Express or whatever
[04:46:54] jfarmer: Best way I can think to handle it is to try the header's encoding first and then if that fails, try a handful of common encodings in a certain order.
[04:47:14] x44x45x41x4E: I guess upgrading email servers/apps are really not the priority of these agencies.
[04:47:42] jfarmer: It'd be fine if the email header were correct, but like you've puzzled out, you need the "actual" encoding to transcode it.
[04:47:42] x44x45x41x4E: jfarmer: But I should encode them to UTF-8 before saving them right?
[04:48:19] jfarmer: Yes, but it's not that simple, right? There's a bad UTF-8 byte sequence, but what to do with it?
[04:48:35] jfarmer: You have to know what that thing is meant to represent in order to correctly re-encode it to UTF-8.
[04:49:18] nobitanobi: has joined #RubyOnRails
[04:50:35] jfarmer: One solution would be to simply delete all bytes that aren't part of a valid UTF-8 byte sequence
[04:50:48] workmad3: has joined #RubyOnRails
[04:51:07] jfarmer: There's no "magic bullet" solution, here, because even if you fix this one particular email, you have no guarantee that other emails will be broken in the exact same way
[04:51:48] earthquake: has joined #RubyOnRails
[04:52:02] x44x45x41x4E: jfarmer: Yep. That's what I was telling to my boss about the failing ones.
[04:52:20] x44x45x41x4E: But it's a challenge so I'm still trying it.
[04:52:36] s2013: has joined #RubyOnRails
[04:52:50] x44x45x41x4E: jfarmer: That solution would be easier.
[04:53:05] hotpancakes: has joined #RubyOnRails
[04:54:14] x44x45x41x4E: jfarmer: Doesn't getting the encoding of the email from the charset header not enough to be used in force_encoding before encoding it to UTF-8?
[04:54:49] jfarmer: x44x45x41x4E I think you're somehow confused about how encoding works in this situation.
[04:55:05] x44x45x41x4E: jfarmer: Yeah. Sorry. I'm lost really.
[04:55:05] jfarmer: There's no general "encode to UTF-8" function
[04:55:23] Dreamer3: has joined #RubyOnRails
[04:55:59] jfarmer: Imagine the email body as a sequence of bytes. Character encodings tell us how to map sub-sequences of those bytes to characters.
[04:56:23] jfarmer: "characters" as an abstract, philosophical sort of thing
[04:56:35] jfarmer: Basically, a rule for telling the computer what pixels to spit out on the screen
[04:57:16] jfarmer: If you say "This sequence of bytes represents text encoded in UTF-8" but then there's an invalid sub-sequence of byets...well, what's to be done?
[04:57:46] chipotle: has joined #RubyOnRails
[04:58:33] mr_rich101: has joined #RubyOnRails
[04:59:08] jfarmer: If you're lucky, the byte sequence was really text encoded in some other encoding and you can figure out what the real rule is.
[04:59:42] jfarmer: But probably, you just have to deal with the fact that you can't figure out what original encoding would've made the byte sequence "make sense/"
[05:00:00] jfarmer: And therefore decide how to deal with those invalid byte sequences.
[05:00:30] jfarmer: Maybe you figure out that 90% of the encoding errors you see are old Windows computers sending along Latin1-encoded text but claiming it's UTF-8.
[05:01:06] jfarmer: In which case, your logic might be something like "Do what the header says. If that fails, try Latin1 and transcode to UTF-8. Otherwise, delete invalid UTF-8 characters."
[05:01:11] x44x45x41x4E: jfarmer: Thanks. I kind of get it now. I'll try what you suggested a while ago. To strip the invalid byte sequence before saving it.
[05:01:30] jfarmer: x44x45x41x4E It's _probably_ some kind of early-90s Latin encoding
[05:01:38] jfarmer: In a large amount of cases
[05:01:58] jfarmer: So doing something "hacky" like that which covers a large percentage of the errors could actually be justified.
[05:02:16] jfarmer: But any kind of re-encoding requires you know both the source encoding and the target encoding.
[05:02:47] Lightsword: has joined #RubyOnRails
[05:03:12] baweaver_: has joined #RubyOnRails
[05:03:21] x44x45x41x4E: You may be right about the Latin1 encoding. An email that has a charset header of iso-8859-1 fails too.
[05:03:45] jfarmer: Latin1 and ISO-8859-1 are similar but different.
[05:03:47] jfarmer: (Thanks, Microsoft!)
[05:03:53] x44x45x41x4E: jfarmer: You seem to have a lot of knowledge on this. Worked on a similar feature before?
[05:04:06] kara_sweets: has joined #RubyOnRails
[05:04:14] jfarmer: No, to be honest, this is me having a general knowledge of how character encodings work and just thinking it through on the spot.
[05:04:33] roolo: has joined #RubyOnRails
[05:04:41] idd2d: has joined #RubyOnRails
[05:05:18] jfarmer: Latin1 is the same as CP-1252 (after a bit of googling), which is a strict superset of ISO-8859-1
[05:06:24] jfarmer: So same kind of thing could happen. Email claims it's ISO-8859-1 but contains byte sequence that makes sense only in Latin1 or another encoding that overlaps with Latin1
[05:06:27] x44x45x41x4E: jfarmer: Wow. Nice.
[05:07:13] nobitanobi: has joined #RubyOnRails
[05:07:34] x44x45x41x4E: jfarmer: Thanks. I appreciate it a lot. I'll work it now an dlet you know if it works. :D
[05:07:34] jfarmer: x44x45x41x4E BTW, Ruby's String#encode supports options for altering a string when something goes wrong (http://ruby-doc.org/core-2.1.5/String.html#method-i-encode)
[05:14:28] x44x45x41x4E: jfarmer: I'm using that now. Thanks! :D
[05:18:08] The_Phoenix: has joined #RubyOnRails
[05:18:53] roamingdog: has joined #RubyOnRails
[05:20:02] alan_andrade: has joined #RubyOnRails
[05:20:24] JDeen: has joined #RubyOnRails
[05:21:20] dhjondoh: has joined #RubyOnRails
[05:21:33] smathy: has joined #RubyOnRails
[05:22:33] chrissonar: has joined #RubyOnRails
[05:22:52] dhjondoh: has joined #RubyOnRails
[05:23:29] srinidhi: has joined #RubyOnRails
[05:28:24] earthquake: has joined #RubyOnRails
[05:28:34] chipotle: has joined #RubyOnRails
[05:32:53] DoctorMonocular: has joined #RubyOnRails
[05:33:16] w09x: has joined #RubyOnRails
[05:35:41] tagrudev: has joined #RubyOnRails
[05:36:01] chipotle_: has joined #RubyOnRails
[05:36:02] hotpancakes: has joined #RubyOnRails
[05:37:02] lxsameer: has joined #RubyOnRails
[05:37:02] lxsameer: has joined #RubyOnRails
[05:39:08] rickmasta: has joined #RubyOnRails
[05:39:19] krokuz_: has joined #RubyOnRails
[05:39:25] frek818: has joined #RubyOnRails
[05:40:06] gauke: has joined #RubyOnRails
[05:52:07] jeanlinux: has joined #RubyOnRails
[05:52:10] siemprefresco: has joined #RubyOnRails
[05:54:00] Rukeal: has joined #RubyOnRails
[05:54:32] huck5: has joined #RubyOnRails
[05:58:36] p1k: has joined #RubyOnRails
[05:59:58] krokuz_: has joined #RubyOnRails
[06:00:32] x44x45x41x4E: has joined #RubyOnRails
[06:00:52] RegulationD: has joined #RubyOnRails
[06:02:12] LiquidInsect: has joined #RubyOnRails
[06:02:35] x44x45x41x4E: has joined #RubyOnRails
[06:04:12] Maletor: has joined #RubyOnRails
[06:05:06] p1k: so I'm trying to extend Models inheriting from ActiveRecord
[06:05:45] p1k: using self.inherited which contains a subclass.class_eval
[06:06:22] p1k: but there are some anonymous classes and some classes external to ActiveRecord which are also getting called by this
[06:06:32] p1k: (e.g. SchemaMigration)
[06:06:50] p1k: Is there a good way to do this for only my Application Models ?
[06:07:53] sandstrom: has joined #RubyOnRails
[06:08:26] User458764: has joined #RubyOnRails
[06:11:29] arup_r: has joined #RubyOnRails
[06:12:16] sevenseacat: p1k: got an example of what you mean, because it isnt at all clear
[06:14:30] chelbs: has joined #RubyOnRails
[06:15:02] p1k: sevenseacat: http://pastebin.com/2mGTnx9V (paste-bin link)
[06:16:08] p1k: sevenseacat: http://pastie.org/10267464 (pastie link, didn't realize pastebin was discouraged)
[06:16:38] sevenseacat: k you dont need class_eval there
[06:16:58] p1k: ** http://pastie.org/10267465 (fixed type)
[06:17:04] p1k: you don't need class_eval ?
[06:17:45] emilkarl: has joined #RubyOnRails
[06:17:52] sfmichels: has joined #RubyOnRails
[06:18:08] p1k: don't I need to re-open the subclass ?
[06:18:35] sfmichels: has left #RubyOnRails: ()
[06:19:06] sevenseacat: http://api.rubyonrails.org/classes/ActiveSupport/Concern.html see the first example about using AS::Concern
[06:19:58] roamingdog: has joined #RubyOnRails
[06:20:10] p1k: sevenseacat: I don't have any problem using concerns
[06:20:22] sevenseacat: ok, why are you doing it wrong then?
[06:20:54] p1k: because after_commit needs to go only on the clases which inherit from ActiveRecord::Base
[06:21:02] p1k: not on to ActiveRecord::Base itself
[06:21:32] Aswebb_: has joined #RubyOnRails
[06:22:13] sevenseacat: ok. so to answer your original question, no there's no way of distinguishing your application models from any other AR models
[06:23:24] p1k: so I should inherit ActiveRecord::Base add the self.inherit into there, and then inherit that with the application models ? (so that the class_eval isn't called on non-application models)
[06:23:52] sevenseacat: then you wont need to use class eval at all
[06:24:09] sevenseacat: if you're not dealing with subclasses
[06:24:32] sevenseacat: actually I dont even know why you need class_eval even then
[06:24:43] sevenseacat: children inherit methods from their parents
[06:25:00] User458764: has joined #RubyOnRails
[06:25:12] p1k: because i'm not inhering the method
[06:25:32] p1k: I need after_commit called inside the classes inherting from activerecord::base
[06:25:43] sevenseacat: correct. and they will inherit that too.
[06:25:51] mkc: has joined #RubyOnRails
[06:25:54] p1k: but I don't need after_commit called within activerecord::base
[06:26:24] p1k: or after_commit :invoke_events that is
[06:26:36] sevenseacat: its an abstract class. whats the problem?
[06:28:00] p1k: because if you include an `after_commit :do_stuff` into active record base
[06:28:16] p1k: *every single model* will have do_stuff called on a single commit
[06:28:22] simrat: has joined #RubyOnRails
[06:28:32] sevenseacat: thats... kinda what you're trying to do isnt it
[06:28:33] p1k: I only want do_stuff to be called on the model which is committed
[06:28:34] jtdoncas: has joined #RubyOnRails
[06:28:37] p1k: not at all
[06:28:48] sevenseacat: I'm confused.
[06:28:54] sevenseacat: but that's okay.
[06:29:14] p1k: I want the equivalent behaviour if I included that concern into every application-level model
[06:29:44] p1k: (but I was hoping to include it in a ::Base, so that I don't have to add like 30 include lines)
[06:29:57] sevenseacat: I don't see the problem here.
[06:30:02] yardenbar: has joined #RubyOnRails
[06:30:03] sevenseacat: I honestly don't.
[06:30:15] sevenseacat: if you want to mix it into every model, either mix it into every model or mix into AR::Base
[06:30:55] jas02: has joined #RubyOnRails
[06:31:04] p1k: right but mixing it into AR::Base will make it trigger on AR::Base after_commit
[06:31:14] p1k: instead of just one particular model
[06:31:44] sevenseacat: either you or I has a fundamental misunderstanding of Ruby here.
[06:32:10] p1k: so for example if I add after_commit to Article
[06:32:21] p1k: e.g. after_commit :do_events
[06:32:40] p1k: it will call do_events when a transaction involving Article has been committed
[06:32:53] sevenseacat: with you so far
[06:32:56] p1k: if I add after_commit :do_events to AR::Base
[06:33:06] p1k: and go User.save
[06:33:15] p1k: it will trigger do_events on Article
[06:33:34] User458764: has joined #RubyOnRails
[06:33:46] p1k: I'll test it again
[06:33:49] p1k: I'm pretty sure it does
[06:34:07] Bertg: has joined #RubyOnRails
[06:34:22] sevenseacat: I have no idea.
[06:34:25] jas02_: has joined #RubyOnRails
[06:34:59] simrat: I am trying to use client side validations gem.But it only works if we reload the page.If I open the page by clicking the link it doesn't works. Any solution?
[06:35:33] sevenseacat: simrat: !debug
[06:35:33] helpa: simrat: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[06:37:26] dseitz: has joined #RubyOnRails
[06:38:26] skroon: has joined #RubyOnRails
[06:38:40] yfeldblum: has joined #RubyOnRails
[06:39:00] p1k: sevenseacat: I just tested it again
[06:39:14] p1k: I'm running an rspec which saves a single model
[06:39:29] p1k: my do_events is called on every single model in my application from after_commit
[06:39:35] workmad3: has joined #RubyOnRails
[06:39:53] sevenseacat: can we see your test code?
[06:39:58] wethu: yeah please show
[06:40:16] riotjones: has joined #RubyOnRails
[06:40:37] p1k: it's literally article.name = 'new name'; article.save
[06:43:06] sevenseacat: in that case, you have an undefined method `article`.
[06:43:47] simrat: sevenseacat, https://gist.github.com/anonymous/81468aba9697ec78bf9e
[06:44:08] ynonp: has joined #RubyOnRails
[06:44:16] simrat: sevenseacat, Please guide me.
[06:44:34] sevenseacat: simrat: ok, where is your code for your form?
[06:45:04] raunicolae: has joined #RubyOnRails
[06:46:22] bruno-: has joined #RubyOnRails
[06:46:26] djbkd: has joined #RubyOnRails
[06:46:43] icehawk78: has joined #RubyOnRails
[06:47:02] sevenseacat: its likely a turbolinks issue.
[06:47:36] wethu: also pretty sure client side validation routes don't appear in the rake routes list
[06:47:58] wethu: i can't remember what its route is /resource or something
[06:49:23] simrat: sevenseacat, wethu app/views/devise/registrations I added the form to the gist
[06:51:03] wethu: p1k, Can I ask why you want to modify the on commit callbacks for AR? Is it possible that you're hosing the AR::Transactions after_commit somehow, and thats whats being called each #save ?
[06:51:21] artto: has joined #RubyOnRails
[06:51:56] ur5us: has joined #RubyOnRails
[06:52:07] wethu: simrat, I can't see the form
[06:52:45] simrat: wethu, sevenseacat https://gist.github.com/anonymous/53a6c915f493211e14ae
[06:55:10] gauke: has joined #RubyOnRails
[06:55:20] wethu: ok then when you visit the new registration page, and try and trigger an async validation, I'm assuming you have some password limit say, have you got open your browser's developer tools to watch xhr network activity, does that provide clues? if its not doing anything, then maybe it could be a js library clash like with turbo links
[06:55:31] sevenseacat: simrat: how did you include the javascript for the gem, and what version of the gem are you using?
[06:57:10] simrat: I followed the steps to include //= require rails.validations in application.js file.
[06:57:26] simrat: My gem version is 4.2-branch-stable
[06:57:39] eGGsha: has joined #RubyOnRails
[06:58:24] aufi: has joined #RubyOnRails
[06:59:19] jenrzzz: has joined #RubyOnRails
[06:59:30] sevenseacat: thats not a version
[06:59:43] sevenseacat: thats a branch
[06:59:52] robbyoconnor: has joined #RubyOnRails
[07:00:37] sevenseacat: I ask because native turbolinks support was only added a couple months ago, and I'm trying to make sure you're using a version that includes iy
[07:00:50] solars: has joined #RubyOnRails
[07:01:22] simrat: sevenseacat, How to check version of gem?
[07:01:30] sevenseacat: https://github.com/DavyJonesLocker/client_side_validations/commit/366198bb87dac155c21ad025ada759e7a2197468
[07:01:36] sevenseacat: it will be listed in your Gemfile.lock.
[07:01:36] wethu: simrat Gemfile.lock
[07:02:51] simrat: wethu,sevenseacat Version is 4.2.0
[07:03:16] alex88: has joined #RubyOnRails
[07:03:28] sevenseacat: thats also not a version of the gem
[07:03:46] Sylario: has joined #RubyOnRails
[07:03:54] sevenseacat: are you checking the version of the client_side_validations gem?
[07:04:02] Trefex: has joined #RubyOnRails
[07:04:09] balu8596: has joined #RubyOnRails
[07:04:11] nya: has joined #RubyOnRails
[07:04:21] comrad: has joined #RubyOnRails
[07:05:24] simrat: sevenseacat, https://gist.github.com/anonymous/baecba172424681ed56e
[07:06:29] sevenseacat: ok, so some branch has an unreleased 4.2 version in it
[07:06:53] rvanlieshout: has joined #RubyOnRails
[07:07:03] krz: has joined #RubyOnRails
[07:07:37] fp-: has joined #RubyOnRails
[07:07:46] sevenseacat: I'd move to using master or a released version of the gem - probably master as it has the fix in it
[07:08:42] simrat: sevenseacat, Are you suggesting to try with 3.2.7 version of gem.
[07:08:59] fp-: is there anyone who can tell me why local_time (github.com/basecamp/local_time) keeps giving me time that's 4 hours in the future?
[07:09:22] sevenseacat: simrat: no, with master.
[07:10:02] simrat: sevenseacat, What should I write in Gemfile to use master branch?
[07:10:06] sevenseacat: fp-: guessing your Rails app is configured to be in UTC +- 4
[07:10:16] sevenseacat: simrat: change your 4-2-stable to master.
[07:11:00] fp-: my application config is leaving the default timezone of :utc
[07:11:12] fp-: a logged in use has Time.zone = current_user.time_zone
[07:11:37] fp-: which in my case is 'Eastern Time (US & Canada)'
[07:11:46] simrat: sevenseacat, Thanks a lot.It worked now.
[07:12:10] simrat: :) thanks a ton
[07:12:11] fp-: anytime I render e.g. @payment.created_at i have the correct time, however when I use Basecamp's local_time, it's always throwing me 4 hours ahead
[07:12:19] sandstrom: has joined #RubyOnRails
[07:12:24] fp-: I've tried disabling my set_time_zone before_action and I still get the same thing
[07:14:57] dhjondoh: has joined #RubyOnRails
[07:17:38] rickmasta: has joined #RubyOnRails
[07:17:40] fp-: has left #RubyOnRails: ("Be back later ...")
[07:18:51] Rixius: has joined #RubyOnRails
[07:19:35] kara_sweets: has left #RubyOnRails: ()
[07:20:30] GPrime: has joined #RubyOnRails
[07:21:24] schu: has joined #RubyOnRails
[07:21:37] darutoko: has joined #RubyOnRails
[07:24:00] trollga: has joined #RubyOnRails
[07:26:52] Aswebb_: has joined #RubyOnRails
[07:29:41] pwnz0r: has joined #RubyOnRails
[07:33:30] robbyoconnor: has joined #RubyOnRails
[07:33:45] robbyoconnor: has joined #RubyOnRails
[07:35:14] steve_mc: has joined #RubyOnRails
[07:35:15] smathy: has joined #RubyOnRails
[07:35:22] ndrei: has joined #RubyOnRails
[07:35:31] hotpancakes: has joined #RubyOnRails
[07:35:33] moneylotion: has joined #RubyOnRails
[07:37:02] workmad3: has joined #RubyOnRails
[07:37:26] Ergo: has joined #RubyOnRails
[07:40:05] kies: has joined #RubyOnRails
[07:40:16] lessless: has joined #RubyOnRails
[07:40:18] Pupeno: has joined #RubyOnRails
[07:40:51] jeanlinux: has joined #RubyOnRails
[07:41:21] x44x45x41x4E: has joined #RubyOnRails
[07:43:19] El3k0n: has joined #RubyOnRails
[07:43:20] coderhs: has joined #RubyOnRails
[07:44:15] ur5us: has joined #RubyOnRails
[07:45:35] User458764: has joined #RubyOnRails
[07:46:56] blackmesa: has joined #RubyOnRails
[07:48:53] mike___1234: has joined #RubyOnRails
[07:49:02] hotpancakes: has joined #RubyOnRails
[07:49:05] sandstrom: has joined #RubyOnRails
[07:49:14] dented42: has joined #RubyOnRails
[07:49:37] RegulationD: has joined #RubyOnRails
[07:49:51] ferr: has joined #RubyOnRails
[07:53:42] eGGsha: has joined #RubyOnRails
[07:56:57] vasilakisfil_: has joined #RubyOnRails
[07:57:33] Hobogrammer: has joined #RubyOnRails
[07:57:45] jsrn_: has joined #RubyOnRails
[07:57:50] emilkarl: has joined #RubyOnRails
[07:58:12] emilkarl: has joined #RubyOnRails
[07:59:05] blackmesa: Hi all. I'd like my form to handle 10 text input fields with the same name for 1 model and 1 attribute. is there anything I can look for?
[07:59:07] kies: has joined #RubyOnRails
[08:01:30] smathy: has joined #RubyOnRails
[08:02:50] mikecmpbll: has joined #RubyOnRails
[08:03:49] michael_mbp: has joined #RubyOnRails
[08:06:57] mikecmpbll: is there any way conceivable of being able to switch on and off middleware at runtime?
[08:07:33] mikecmpbll: i guess i can monkeypatch the middleware to introduce a conditional check
[08:08:41] ddv: you can hook into it
[08:09:16] x44x45x41x4E: has joined #RubyOnRails
[08:09:23] n0nick: has joined #RubyOnRails
[08:09:38] Rakunh0: has joined #RubyOnRails
[08:11:07] srinidhi: has joined #RubyOnRails
[08:12:49] hotpancakes: has joined #RubyOnRails
[08:13:01] Lightsword: has joined #RubyOnRails
[08:14:04] mkc: has joined #RubyOnRails
[08:16:23] avelldiroll: has joined #RubyOnRails
[08:16:24] Gabriel413: has left #RubyOnRails: ()
[08:17:53] noodman: has joined #RubyOnRails
[08:18:08] Gabriel403: has joined #RubyOnRails
[08:22:12] n008f4g_: has joined #RubyOnRails
[08:22:51] eGGsha: has joined #RubyOnRails
[08:24:13] x44x45x4_: has joined #RubyOnRails
[08:24:21] chelbs: has joined #RubyOnRails
[08:28:05] eoy: has joined #RubyOnRails
[08:29:42] elmhouse: has joined #RubyOnRails
[08:30:20] abuzze: has joined #RubyOnRails
[08:32:20] Dreamer3: has joined #RubyOnRails
[08:32:55] jas02: has left #RubyOnRails: ()
[08:34:51] arup_r: has joined #RubyOnRails
[08:35:13] Shoutsid: has joined #RubyOnRails
[08:35:49] anthonys1: has joined #RubyOnRails
[08:36:29] krz: has joined #RubyOnRails
[08:36:47] DEA7TH: has joined #RubyOnRails
[08:37:58] vedu: Hello. I have updated an image in my /public directory but it is still showing the old one on my server even after 'cap deploy'
[08:38:34] adre: has joined #RubyOnRails
[08:38:36] vedu: on my local machine 'rails server' is showing the correct image
[08:39:39] charliesome: has joined #RubyOnRails
[08:45:23] charliesome: has joined #RubyOnRails
[08:47:05] Silox|: has joined #RubyOnRails
[08:48:53] workmad3: has joined #RubyOnRails
[08:50:24] x44x45x41x4E: has joined #RubyOnRails
[08:54:13] hotpancakes: has joined #RubyOnRails
[08:54:44] x-light: has joined #RubyOnRails
[08:55:54] marr: has joined #RubyOnRails
[08:56:23] startupality: has joined #RubyOnRails
[08:58:08] TinkerTyper: has joined #RubyOnRails
[09:01:28] Karpah: has joined #RubyOnRails
[09:02:27] arup_r: I am not able escape the html properly.. Inside the view html is coming like plain english text, not as a mark up.. I tried `.html_safe` ... But it seems not the correct tool I am using.. can you help https://gist.github.com/aruprakshit/ab563f3672c4807090b8#file-messages-txt ?
[09:05:08] rvanlieshout: arup_r: hmmm. using html_safe on something that feels wrong
[09:05:14] Pupeno_: has joined #RubyOnRails
[09:05:36] arup_r: U r right.. But no idea how to do it ?
[09:06:36] rvanlieshout: trying something... hold on
[09:08:21] elmhouse: has joined #RubyOnRails
[09:10:22] rvanlieshout: it's not the most clean thing
[09:10:24] rvanlieshout: but try .flat_map{ |message| ["<br />".html_safe, message] }.drop(1).inject(&:+)
[09:10:34] rvanlieshout: on@user.errors.full_messages
[09:11:29] futilegames: has joined #RubyOnRails
[09:11:56] hotpancakes: has joined #RubyOnRails
[09:14:57] arup_r: rvanlieshout: same text is coming
[09:15:05] arup_r: with your suggestion also..
[09:15:29] rvanlieshout: are you still using join anywhere?
[09:15:52] arup_r: no.. I copied exactly what you gave
[09:16:05] rvanlieshout: hmm.. strange
[09:16:20] arup_r: you want me to put it in the log to see..
[09:16:26] rvanlieshout: and away for a while now...
[09:16:38] arup_r: np.. thanks
[09:20:00] JohnBat26: has joined #RubyOnRails
[09:21:51] tvw: has joined #RubyOnRails
[09:22:29] jeanlinux: has joined #RubyOnRails
[09:23:29] eGGsha: has joined #RubyOnRails
[09:24:56] ProLoser: has joined #RubyOnRails
[09:28:15] Rubie: has joined #RubyOnRails
[09:32:53] bruno-: has joined #RubyOnRails
[09:35:10] charliesome: has joined #RubyOnRails
[09:35:25] x-light: has joined #RubyOnRails
[09:38:24] RegulationD: has joined #RubyOnRails
[09:41:49] jesterfraud: has joined #RubyOnRails
[09:44:14] mikecmpbll: vedu: is cap deploy precompiling your assets?
[09:44:36] mikecmpbll: oops was scrolled up
[09:45:52] arBmind: has joined #RubyOnRails
[09:46:53] Spami: has joined #RubyOnRails
[09:47:42] rakm: i want to install a gem from a non rubygems source (we have a geminabox server), i specify the source command, and it doesn't seem to work. anything i am missing?
[09:47:58] rakm: gem 'foo', source: 'https://gems.mycompany.com'
[09:48:18] rakm: i ran `gem uninstall foo` as well before runing `bundle` again
[09:48:55] rakm: `bundle` tells me Warning: the gem 'foo' was found in multiple sources.
[09:48:55] rakm: Installed from: https://rubygems.org/
[09:51:48] arup_r: guys still not working https://gist.github.com/aruprakshit/ab563f3672c4807090b8
[09:55:52] charliesome: has joined #RubyOnRails
[09:56:20] artto: has joined #RubyOnRails
[09:58:00] artto_: has joined #RubyOnRails
[09:58:24] Olipro: has joined #RubyOnRails
[09:58:40] User458764: has joined #RubyOnRails
[10:01:25] Pupeno_: has left #RubyOnRails: ()
[10:01:39] Lightsword: has joined #RubyOnRails
[10:01:51] ynonp: has joined #RubyOnRails
[10:04:13] eGGsha: has joined #RubyOnRails
[10:04:16] charliesome: has joined #RubyOnRails
[10:04:34] blackmesa: has joined #RubyOnRails
[10:08:49] krz: has joined #RubyOnRails
[10:09:32] Pazician: has joined #RubyOnRails
[10:10:15] hotpancakes: has joined #RubyOnRails
[10:10:49] michael_mbp: has joined #RubyOnRails
[10:11:11] srinidhi: has joined #RubyOnRails
[10:20:07] DaniG2k: has joined #RubyOnRails
[10:20:29] rickmasta: has joined #RubyOnRails
[10:33:18] workmad3: rakm: the 'correct' way in bundler now is to use a source block... so `source 'mygeminabox.com' do; <gems here>; end; source 'https://rubygems.org' do; <gems here>; end;`
[10:34:16] chelbs: has joined #RubyOnRails
[10:34:48] frishi: has joined #RubyOnRails
[10:35:38] workmad3: rakm: hmm... the source option should also work... make sure you've got an updated bundler install, maybe?
[10:37:53] workmad3: arup_r: The html_safe? flag will be lost when you pass it through `flash` on a redirect
[10:39:23] workmad3: arup_r: which means you'd need to call `html_safe` on flash[:error] when rendering... but that is an *immensely* bad idea, as you then need to be sure that anywhere you ever set `flash[:error]` that you sanitize any user input that you are putting into the message
[10:39:42] ndrei: has joined #RubyOnRails
[10:40:18] workmad3: arup_r: the difficultly of getting sensible error messages through a redirect is the reason why the standard rails way to display errors is re-rendering the form rather than redirecting back to the original action
[10:41:32] IanV0rn2341: has joined #RubyOnRails
[10:42:30] Rubie: has joined #RubyOnRails
[10:46:16] bar0n: has joined #RubyOnRails
[10:48:07] arup_r: workmad3: I fixed it : https://gist.github.com/aruprakshit/ab563f3672c4807090b8
[10:48:50] startupality: has joined #RubyOnRails
[10:49:22] workmad3: arup_r: congrats... now you just need to hope you never get huge error messages too ;)
[10:49:45] arup_r: workmad3: Humm.. :)
[10:49:58] thews: has joined #RubyOnRails
[10:49:59] arup_r: I am witing for that.. I'll think when I'll get it
[10:50:54] darrencauthon: has joined #RubyOnRails
[10:51:52] thelastinuit: has joined #RubyOnRails
[10:51:53] zorak8: has joined #RubyOnRails
[10:51:58] arup_r: this blog is really good http://thepugautomatic.com/2013/06/helpers/
[10:53:36] hotpancakes: has joined #RubyOnRails
[10:53:45] thews: has joined #RubyOnRails
[10:55:24] bmurt: has joined #RubyOnRails
[10:56:52] norc: has joined #RubyOnRails
[10:57:26] norc: Hi. Given a model Foo, how can I use an SQL function to set a column inside #create?
[10:58:09] norc: I want something along the lines of Foo.create { |a| a.my_col = ["some_func(?)", "quux"] }
[10:58:29] helpa: norc: Please do not use fake values, as they can be confusing or misleading. Sometimes both.
[10:58:31] thews: has joined #RubyOnRails
[10:58:50] rvanlieshout: and you can't using .create
[10:59:30] norc: rvanlieshout: Why is that?
[10:59:39] raunicolae: has left #RubyOnRails: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[11:00:31] norc: rvanlieshout: In particular Im trying to insert a date into my oracle database, however that requires me to use to_timestamp_tz
[11:00:49] rvanlieshout: because you're creating model instances
[11:00:51] sandstrom: has joined #RubyOnRails
[11:00:58] rvanlieshout: db is a different layer
[11:00:59] dionysus69: has joined #RubyOnRails
[11:02:42] srinidhi: has joined #RubyOnRails
[11:03:09] rodfersou: has joined #RubyOnRails
[11:03:44] norc: rvanlieshout: Considering that ActiveRecord is all about mapping to my database Im not sure I understand what you mean by that.
[11:04:16] eGGsha: has joined #RubyOnRails
[11:11:47] rvanlieshout: norc: in your application you do not care about how it's stored
[11:11:52] Lightsword: has joined #RubyOnRails
[11:11:52] quazimodo: has joined #RubyOnRails
[11:11:53] rvanlieshout: if that's a db or file or anything
[11:12:27] hotpancakes: has joined #RubyOnRails
[11:12:34] Grundell: has joined #RubyOnRails
[11:17:58] jammanbo: has joined #RubyOnRails
[11:18:00] ProLoser: has joined #RubyOnRails
[11:19:21] jammanbo: Does anyone know you can chain multiple fallbacks in i18n? As in have en-GB-XXX fallback to en-XXX which in turn falls back to en? It should be possible, right?
[11:20:53] bruno-: has joined #RubyOnRails
[11:21:07] ProLoser: has joined #RubyOnRails
[11:21:54] moeabdol: has joined #RubyOnRails
[11:22:53] frishi: has joined #RubyOnRails
[11:24:29] Hates_: has joined #RubyOnRails
[11:25:11] diegoviola: has joined #RubyOnRails
[11:26:01] DoubleMalt: has joined #RubyOnRails
[11:27:19] RegulationD: has joined #RubyOnRails
[11:27:25] mdw: has joined #RubyOnRails
[11:27:37] blackmesa: has joined #RubyOnRails
[11:30:17] jamiely: has joined #RubyOnRails
[11:31:59] ldnunes: has joined #RubyOnRails
[11:32:28] Peteykun: has joined #RubyOnRails
[11:33:14] mikecmpb_: has joined #RubyOnRails
[11:34:26] x44x45x41x4E: has joined #RubyOnRails
[11:35:31] Coolness: has joined #RubyOnRails
[11:36:15] saimancroy: has joined #RubyOnRails
[11:37:37] Coolness: Hello, i have a problem with setting env variables on my capistrano rails setup. Is this a good channel to ask for help?
[11:38:43] Hates_: Coolness: maybe we can help :)
[11:39:39] rustymyers: has joined #RubyOnRails
[11:39:41] Coolness: Cool, well i've set environment variables in /etc/environment and /etc/profile and .bashrc, but they don't seem to work on my rails app.
[11:40:27] Coolness: I've read a lot about this online and i tried rbenv-vars and also the figaro gem
[11:41:06] Coolness: but they don't work either, my amazon s3 credentials aren't read from the ENV variables
[11:42:30] malkav: has joined #RubyOnRails
[11:42:32] Coolness: Here's what im using in my paperclip config http://pastebin.com/da3xHhN5
[11:43:23] Coolness: http://pastie.org/10267985
[11:43:40] malkav: Hey guys. My app needs to talk to an external API that uses HTTP Basic Auth. I've got the credentials, how do I establish the connection?
[11:44:33] doodlehaus: has joined #RubyOnRails
[11:45:10] Shoutsid: has joined #RubyOnRails
[11:45:49] michael_mbp: has joined #RubyOnRails
[11:46:09] waseem_: Malkav: You could pass it in the URL.
[11:46:14] mdw: has joined #RubyOnRails
[11:46:25] x44x45x41x4E: Malkav: Pass it via parameters? Depends on the API's Authentication method. Plus, doing it the way seems insecure, don't you think?
[11:48:15] malkav: x44x45x41x4E I thought of using Nokogiri, but it will send the credentials every time and I need just 1 connection for multiple get requests
[11:48:40] wethu: has joined #RubyOnRails
[11:48:45] wethu: has joined #RubyOnRails
[11:48:45] norc: rvanlieshout: In this particular case I have to care actually.
[11:48:52] gerep: has joined #RubyOnRails
[11:49:11] norc: rvanlieshout: Oracle only accepts one default format depending on what it has in NLS_TIMESTAMP_TZ_FORMAT.
[11:49:49] norc: rvanlieshout: While I guess its the responsibility of the adapter to deal with that, it becomes a problem when the adpater does not handle it.
[11:50:00] quazimodo: has joined #RubyOnRails
[11:52:04] blackmesa: has joined #RubyOnRails
[11:52:18] nzst: has joined #RubyOnRails
[11:53:08] norc: Malkav: With basic authentication you are passing the credentials in every request either way.
[11:53:34] norc: Malkav: Net::HTTP has support for basic authentication (passing the credentials in the header as per specification) though.
[11:53:42] x44x45x41x4E: Malkav: If ever you're going to pass it via parameters, don't do it over HTTP. Do it over HTTPS, at least the request will be encrypted.
[11:53:49] x44x45x41x4E: Plus what norc said.
[11:54:11] Hates_: Coolness: are you exporting the vars? tbh I've only ever done it using dotenv
[11:54:26] ProLoser: has joined #RubyOnRails
[11:54:37] Lightsword: has joined #RubyOnRails
[11:55:29] norc: Coolness: First thing I ask when it comes to environment variables is: How do you invoke your rails application?
[11:56:15] x44x45x41x4E: Malkav: If the external API has documentations, most likely they'll be using something like Omniauth or Doorkeeper for authentication
[11:56:24] x44x45x41x4E: And it will be there
[11:56:35] Brom: has joined #RubyOnRails
[11:57:01] chipotle: has joined #RubyOnRails
[11:57:14] krz: has joined #RubyOnRails
[11:57:16] n3b: has left #RubyOnRails: ()
[11:57:43] silverdust: How can I not require password when users edit their account on devise?
[11:58:25] Hates_: silverdust: I believe you just remove the field don't you?
[11:59:34] silverdust: Hates_ I think that's for the registration part
[11:59:50] Hates_: silverdust: so it doesn't work when you remove it on your edit page?
[12:00:35] silverdust: I'll try the dit now
[12:02:07] silverdust: I tried and it failed
[12:02:25] silverdust: so yes it doesn't work
[12:02:33] Pazician_: has joined #RubyOnRails
[12:03:03] Hates_: silverdust: from their wiki https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-edit-their-account-without-providing-a-password
[12:04:30] eGGsha: has joined #RubyOnRails
[12:05:04] ekain: has joined #RubyOnRails
[12:05:33] silverdust: ok seen. Thanks
[12:06:26] Pazician_: has joined #RubyOnRails
[12:06:43] Coolness: Hates_: yeah exporting. dotenv says "Shim to load environment variables from .env into ENV in development." but i want production, can i still use?
[12:07:45] Hates_: Coolness: we've used it on a few production apps with no trouble
[12:08:01] djellemah: has joined #RubyOnRails
[12:10:05] roamingdog: has joined #RubyOnRails
[12:11:03] hotpancakes: has joined #RubyOnRails
[12:11:13] aamador: has joined #RubyOnRails
[12:11:40] ndrei: has joined #RubyOnRails
[12:11:44] erich: has joined #RubyOnRails
[12:12:04] Coolness: Hates_: thanks for the tip ill try it!
[12:19:58] malkav: x44x45x41x4E: the external API is using HTTPBasicAuth as I mentioned earlier.
[12:20:11] Lightsword: has joined #RubyOnRails
[12:23:11] noodman_: has joined #RubyOnRails
[12:25:46] x44x45x41x4E: Malkav: You can use what norc mentioned awhile ago or HTTParty
[12:26:43] sdwrage: has joined #RubyOnRails
[12:28:55] x44x45x41x4E: Malkav: This one's a goood about authentication in Rails. http://www.gotealeaf.com/blog/authentication-methods-in-rails
[12:29:27] x44x45x41x4E: good article *
[12:29:40] wsmoak: has joined #RubyOnRails
[12:29:40] wsmoak: has joined #RubyOnRails
[12:29:58] Lightsword: has joined #RubyOnRails
[12:30:23] k4nd4lf: has joined #RubyOnRails
[12:30:31] GarethAdams: has joined #RubyOnRails
[12:31:35] jkamenik: has joined #RubyOnRails
[12:32:50] TheCuriousGuy: has joined #RubyOnRails
[12:35:33] noodman: has joined #RubyOnRails
[12:40:26] a346: has joined #RubyOnRails
[12:43:09] RegulationD: has joined #RubyOnRails
[12:43:55] Rubie: has joined #RubyOnRails
[12:44:07] chelbs: has joined #RubyOnRails
[12:44:38] noodman: has joined #RubyOnRails
[12:46:53] lxsameer: has joined #RubyOnRails
[12:46:53] lxsameer: has joined #RubyOnRails
[12:52:25] futilegames: has joined #RubyOnRails
[12:52:53] ur5us: has joined #RubyOnRails
[12:55:31] wsmoak: has joined #RubyOnRails
[12:55:31] wsmoak: has joined #RubyOnRails
[12:55:46] ndrei: has joined #RubyOnRails
[12:56:04] El3k0n: has joined #RubyOnRails
[12:57:09] bmurt: has joined #RubyOnRails
[13:00:45] futilegames: has joined #RubyOnRails
[13:02:12] arBmind: has joined #RubyOnRails
[13:02:42] sankaber: has joined #RubyOnRails
[13:03:26] victortyau: has joined #RubyOnRails
[13:03:52] Kedric: has joined #RubyOnRails
[13:05:03] darrencauthon: has joined #RubyOnRails
[13:08:38] Pazician: has joined #RubyOnRails
[13:09:08] griffindy: has joined #RubyOnRails
[13:09:54] carlosd: has joined #RubyOnRails
[13:10:49] roamingdog: has joined #RubyOnRails
[13:11:13] doodlehaus: has joined #RubyOnRails
[13:11:56] momomomomo: has joined #RubyOnRails
[13:13:00] cac: has joined #RubyOnRails
[13:13:20] hotpancakes: has joined #RubyOnRails
[13:16:22] earthquake: has joined #RubyOnRails
[13:16:26] cashnguns: has joined #RubyOnRails
[13:16:51] errakeshpd: has joined #RubyOnRails
[13:18:13] wethu: has joined #RubyOnRails
[13:19:38] bullcitydev: has joined #RubyOnRails
[13:20:08] earthquake: has joined #RubyOnRails
[13:21:53] mitchless: has joined #RubyOnRails
[13:24:28] Valien: has joined #RubyOnRails
[13:25:00] Valien: has left #RubyOnRails: ()
[13:25:28] eGGsha: has joined #RubyOnRails
[13:25:59] eggoez: has joined #RubyOnRails
[13:26:42] sevenseacat: has joined #RubyOnRails
[13:27:45] neruda: has joined #RubyOnRails
[13:31:24] brain_shim: has joined #RubyOnRails
[13:33:01] rickmasta: has joined #RubyOnRails
[13:33:22] startupality: has joined #RubyOnRails
[13:36:24] arup_r1: has joined #RubyOnRails
[13:38:38] krz: has joined #RubyOnRails
[13:41:32] malkav: has joined #RubyOnRails
[13:42:04] Grundell: has joined #RubyOnRails
[13:42:46] errakeshpd: 2048 game is using array[][] methode, is there any nice way to store the 4X4 datas into the db while playing ?
[13:44:07] RegulationD: has joined #RubyOnRails
[13:44:07] mikecmpb_: errakeshpd: you could serialize them?
[13:45:11] errakeshpd: could you please more specific ?
[13:45:13] Rubie: has joined #RubyOnRails
[13:45:56] mikecmpb_: errakeshpd: do you want me to be specific about how it's done in rails, or about what serialization means?
[13:46:11] elmhouse: has joined #RubyOnRails
[13:46:34] workmad3: errakeshpd: use postgres, make the 'game_state' a JSON column, assign the 4x4 array directly to it, problem solved
[13:46:41] Lightsword: has joined #RubyOnRails
[13:47:14] errakeshpd: workmad3: ok
[13:47:24] mkc_: has joined #RubyOnRails
[13:47:25] startupality: has joined #RubyOnRails
[13:48:09] errakeshpd: mikecmpb_: The datas in the 4 x 4 cells should be store in the db. so i am stucked how to architect the table for this purpose
[13:48:23] errakeshpd: just like game resume if not finished
[13:48:41] mikecmpb_: if you don't need to do anything relational with it it's probably better to just serialize it
[13:48:48] mikecmpb_: rather than trying to design a schema
[13:49:17] mikecmpb_: (like workmad3 explained)
[13:50:35] soule: has joined #RubyOnRails
[13:50:47] Rukeal: has joined #RubyOnRails
[13:50:58] oflannabhra: has joined #RubyOnRails
[13:51:25] soule: has left #RubyOnRails: ()
[13:51:27] soule: has joined #RubyOnRails
[13:52:56] soule: has left #RubyOnRails: ()
[13:53:00] soule: has joined #RubyOnRails
[13:53:26] darrencauthon: has joined #RubyOnRails
[13:54:10] axl__: has joined #RubyOnRails
[13:54:24] moeabdol: has joined #RubyOnRails
[13:54:53] ebbflowgo: has joined #RubyOnRails
[13:56:12] ProLoser: has joined #RubyOnRails
[14:00:54] fmcgeough: has joined #RubyOnRails
[14:01:28] errakeshpd: mikecmpb_: sorry for the delay, i was searched littile about the serialize, i will try to use it, can you say how to state 2D serialize array.
[14:02:06] DylanJ: 2d array of what
[14:02:09] DylanJ: integers?
[14:02:34] mikecmpb_: you don't need to know what it is that you're serializing
[14:02:36] acti0nman: has joined #RubyOnRails
[14:02:39] errakeshpd: to make 2048 (4x4) cell datas
[14:03:42] DylanJ: you could do a Marshal::Dump([[],[]])
[14:03:46] errakeshpd: mikecmpb_: ok, sorry.whether this information will lose when refresh ?
[14:04:34] DylanJ: Marshal.dump(yourarray) **
[14:04:52] mikecmpbll: errakeshpd: i don't understand, sorry.
[14:06:17] errakeshpd: the serialize array will lose when the page refresh i guess, else need to store those info in the backend , is int it ?
[14:06:45] sevenseacat: i hope there's some google translate mischief going on here.
[14:06:53] DylanJ: sevenseacat: me three.
[14:07:10] DylanJ: errakeshpd: you store the information in the database.
[14:07:15] kies^: has joined #RubyOnRails
[14:07:22] DylanJ: you store the serialized array in the db
[14:07:25] Pazician_: has joined #RubyOnRails
[14:08:02] findaway: has joined #RubyOnRails
[14:08:12] moeabdol: has joined #RubyOnRails
[14:08:25] errakeshpd: DylanJ: Ok. Thank you all.
[14:08:32] mikecmpbll: errakeshpd: yes, you should store it, that's what the serialization is for
[14:08:52] sevenseacat: now I want to make a 2048 game
[14:09:06] errakeshpd: sevenseacat: :)
[14:09:24] sevenseacat: my fiance teases me because i play it all the time
[14:09:38] sevenseacat: 'i cant believe you're still playing that' he says while playing candy crush
[14:10:02] Pazician: has joined #RubyOnRails
[14:10:45] zorak8: has joined #RubyOnRails
[14:11:35] surrealanalysis: has joined #RubyOnRails
[14:11:36] roamingdog: has joined #RubyOnRails
[14:13:35] hotpancakes: has joined #RubyOnRails
[14:15:22] eoy_: has joined #RubyOnRails
[14:15:34] Papierkorb: has joined #RubyOnRails
[14:15:38] errakeshpd: mikecmpbll: One more doubt, whether that array element can access like this ? 'arr[row][column]'
[14:16:00] mikecmpbll: errakeshpd: yep, once you deserialize it, it's the same array element that you serialized
[14:16:11] momomomomo: uh, json is a bad use case for postgres storing matrices
[14:16:11] momomomomo: why not just store a matrix?
[14:16:13] mikecmpbll: unless your chosen serialization method balls up :p
[14:16:28] momomomomo: has joined #RubyOnRails
[14:16:38] mikecmpbll: ugh, postgres and their billion types.
[14:17:13] Macaveli: has joined #RubyOnRails
[14:17:22] momomomomo: uh, json is a bad use case for postgres storing matrices
[14:17:23] momomomomo: why not just store a matrix?
[14:17:24] momomomomo: http://www.postgresql.org/docs/9.4/static/arrays.html
[14:17:25] benhuda: has joined #RubyOnRails
[14:17:26] momomomomo: so is serialization, in comparison
[14:18:05] workmad3: momomomomo: I don't think activerecord knows what to do with multidimensional pg array types yet :D
[14:18:23] workmad3: momomomomo: whereas it can deal with it fine in JSON
[14:18:34] momomomomo: so write the query yourself, still better than json
[14:18:42] mikecmpbll: and i don't think he cares about doing matrix calculations in pg
[14:18:59] mikecmpbll: could be wrong /shrugs
[14:19:13] sevenseacat: its for persistence only.
[14:19:29] workmad3: momomomomo: agreed... but that requires explaining how to so, and I'm lazy :P
[14:19:36] mikecmpbll: i say just .inspect and eval()
[14:19:37] mikecmpbll: like a boss.
[14:19:38] DylanJ: its too hot for explanations today
[14:19:54] momomomomo: link to docs, don't give lazy advice :P
[14:20:05] DylanJ: momomomomo: http://google.com
[14:20:11] mikecmpbll: wait, why are we agreeing it was bad advice
[14:20:14] momomomomo: DylanJ: I'm not the one asking
[14:20:17] DylanJ: no i know
[14:20:21] mikecmpbll: fuck writing custom sql just to store a save state in pg arrays
[14:20:43] sevenseacat: marshal it for all it matters
[14:20:51] momomomomo: again, not a good solution
[14:21:01] sevenseacat: again, its for persistence only
[14:21:04] momomomomo: also, writing a little bit of code to have a better solution is great
[14:21:07] mikecmpbll: repeating yourself doesn't make it more convincing
[14:21:08] momomomomo: serialization costs
[14:21:17] mikecmpbll: you've not given any reason why it's better ;)
[14:21:44] momomomomo: seriously? costs to serialize / unmarshal, potential to use postgres for in-database queries or math
[14:21:49] ynonp: has joined #RubyOnRails
[14:21:53] mikecmpbll: he doesn't want in database queries or math
[14:22:00] sevenseacat: momomomomo: you know this is for a 2048 game representation, right
[14:22:05] mikecmpbll: and the performance penalty is hardly a factor
[14:22:17] charliesome: has joined #RubyOnRails
[14:22:17] sevenseacat: ergo, no math or queries, ever
[14:22:23] momomomomo: that's how you end up with slow apps relying on shit tons of AREL
[14:22:33] mikecmpbll: when it's slow, you change it
[14:22:54] ivanskie: has joined #RubyOnRails
[14:23:17] Schalla: has joined #RubyOnRails
[14:23:20] sevenseacat: 'select all the games where i ended up with a 2 in the top left corner' ?
[14:23:22] mikecmpbll: we have a different balance of productivity vs performance, but that's cool.
[14:23:27] rustymyers: has joined #RubyOnRails
[14:23:41] Spami: has joined #RubyOnRails
[14:23:53] DylanJ: momomomomo: get things working, raise series a, series b, exit, let someone else deal with the slow code.
[14:24:38] disgrntld: has joined #RubyOnRails
[14:25:01] momomomomo: right, but this isn't a huge yagni feature; to each their own
[14:25:27] sevenseacat: this is what happens when you jump into a conversation halfway
[14:25:45] Maletor: has joined #RubyOnRails
[14:26:00] dopie: has joined #RubyOnRails
[14:26:02] chipotle: has joined #RubyOnRails
[14:26:40] anjen: has joined #RubyOnRails
[14:30:53] eggoez: has joined #RubyOnRails
[14:31:32] ueiek: has joined #RubyOnRails
[14:33:10] silverdust: From this devise wiki https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-edit-their-account-without-providing-a-password where they refer to a registrationscontroller. Do I just make a controller called registrationsController or how do I gen a registrations controller file only to edit
[14:33:19] neutrino: has joined #RubyOnRails
[14:34:28] silverdust: I'm afraid the outcome of rails generate devise:controllers [scope] from the Readme may not be what I want
[14:34:29] momomomomo: has joined #RubyOnRails
[14:34:41] s2013: has joined #RubyOnRails
[14:36:47] Trefex1: has joined #RubyOnRails
[14:37:19] Sutffness: has joined #RubyOnRails
[14:38:10] noodman_: has joined #RubyOnRails
[14:38:31] Mia: has joined #RubyOnRails
[14:38:31] Mia: has joined #RubyOnRails
[14:38:51] siempref_: has joined #RubyOnRails
[14:39:00] Spami_: has joined #RubyOnRails
[14:39:28] chouhoul_: has joined #RubyOnRails
[14:39:29] lacrosse_: has joined #RubyOnRails
[14:39:30] rho45dium_: has joined #RubyOnRails
[14:39:32] spastorino_: has joined #RubyOnRails
[14:39:43] deavidsedice: has joined #RubyOnRails
[14:39:53] soule_: has joined #RubyOnRails
[14:39:57] mostlybadfly_: has joined #RubyOnRails
[14:40:20] dotty_: has joined #RubyOnRails
[14:40:22] Iacobus_: has joined #RubyOnRails
[14:40:24] dukedave_: has joined #RubyOnRails
[14:40:25] johnkpaul_: has joined #RubyOnRails
[14:40:29] RegulationD: has joined #RubyOnRails
[14:40:36] kumavis_: has joined #RubyOnRails
[14:41:00] JoshL: has joined #RubyOnRails
[14:41:04] kapowaz_: has joined #RubyOnRails
[14:41:05] dici: has joined #RubyOnRails
[14:41:09] joaomdmoura_: has joined #RubyOnRails
[14:41:18] AckZ_: has joined #RubyOnRails
[14:41:21] ltd_: has joined #RubyOnRails
[14:41:29] Depili_: has joined #RubyOnRails
[14:41:31] josefrichter: has joined #RubyOnRails
[14:41:36] Quintasan_: has joined #RubyOnRails
[14:41:38] crankhar1er: has joined #RubyOnRails
[14:41:47] angelixd: has joined #RubyOnRails
[14:41:48] fryguy9: has joined #RubyOnRails
[14:41:53] ptierno_: has joined #RubyOnRails
[14:41:54] zeknox_: has joined #RubyOnRails
[14:41:59] ejnahc_: has joined #RubyOnRails
[14:42:01] Nigel__: has joined #RubyOnRails
[14:42:07] dstarh: has joined #RubyOnRails
[14:42:10] smathy: has joined #RubyOnRails
[14:42:12] Sypheren_: has joined #RubyOnRails
[14:42:12] graft_: has joined #RubyOnRails
[14:42:12] graft_: has joined #RubyOnRails
[14:42:18] lathiat_: has joined #RubyOnRails
[14:42:20] quazimod1: has joined #RubyOnRails
[14:42:32] Ainieco: has joined #RubyOnRails
[14:42:44] chelbs: has joined #RubyOnRails
[14:43:00] camilasann: has joined #RubyOnRails
[14:43:03] rodferso1: has joined #RubyOnRails
[14:43:31] Ainieco: executing `rake test` within my engine doesn't run test/controller/engine_name/my_contoller.rb for some reason
[14:43:34] jeanlinux: has joined #RubyOnRails
[14:43:35] Ainieco: any ideas?
[14:44:05] Ainieco: it only runs default test/integation/navigation_test.rb
[14:44:46] Hates_: sevenseacat: you make a new controller and subsclass the devise registrations controller
[14:44:52] dstarh: if a before_save succeeds but for some unforseen reason the save itself fails will any created/saved in before_save be rolled back as well?
[14:45:16] Sigma01: has joined #RubyOnRails
[14:45:17] luzidco_: has joined #RubyOnRails
[14:45:22] jhass|off: has joined #RubyOnRails
[14:45:22] Junaos_: has joined #RubyOnRails
[14:45:27] sptq_: has joined #RubyOnRails
[14:45:27] DanKnox_: has joined #RubyOnRails
[14:45:29] universal: has joined #RubyOnRails
[14:45:29] xye: has joined #RubyOnRails
[14:45:36] g3funk: has joined #RubyOnRails
[14:45:36] EiNSTeiN-: has joined #RubyOnRails
[14:45:45] tempspace_: has joined #RubyOnRails
[14:45:51] danshultz_: has joined #RubyOnRails
[14:46:02] Leeky_: has joined #RubyOnRails
[14:46:03] denym_`: has joined #RubyOnRails
[14:46:07] StevePotayTeo_: has joined #RubyOnRails
[14:46:07] Rixius|Alt: has joined #RubyOnRails
[14:46:18] Aeyrix_: has joined #RubyOnRails
[14:47:15] phikes: has joined #RubyOnRails
[14:47:16] synfinatic: has joined #RubyOnRails
[14:47:31] JDeen: has joined #RubyOnRails
[14:47:44] AntiSpamMeta: has joined #RubyOnRails
[14:48:00] dvjones89: has joined #RubyOnRails
[14:48:03] davidcelis: has joined #RubyOnRails
[14:48:03] davidcelis: has joined #RubyOnRails
[14:48:34] iamdevnul: has joined #RubyOnRails
[14:48:43] tsvenson: has joined #RubyOnRails
[14:49:03] josefrichter: Guys, I???ve seen recently (via techcrunch?) a database serving geospatial data in real time. They had real-time foursquare app example on their website. Does anyone know which one it could be please?
[14:49:21] x3cion: has joined #RubyOnRails
[14:49:48] werelivinginthef: has joined #RubyOnRails
[14:50:03] mary5030: has joined #RubyOnRails
[14:50:11] kalzz: has joined #RubyOnRails
[14:50:21] dseitz: has joined #RubyOnRails
[14:50:29] hardtail: has joined #RubyOnRails
[14:51:03] jlpeters: has joined #RubyOnRails
[14:52:44] Isthar: has joined #RubyOnRails
[14:52:45] beilabs_: has joined #RubyOnRails
[14:53:03] strcmp1: has joined #RubyOnRails
[14:53:07] Rukeal: has joined #RubyOnRails
[14:53:14] bratsche: has joined #RubyOnRails
[14:53:17] smathy: has joined #RubyOnRails
[14:53:17] kies^: has joined #RubyOnRails
[14:53:23] doge__: has joined #RubyOnRails
[14:53:49] Encapsulation: has joined #RubyOnRails
[14:53:57] Tarential: has joined #RubyOnRails
[14:54:22] ueiek: has left #RubyOnRails: ()
[14:54:45] Quintasan_: has left #RubyOnRails: ()
[14:55:57] nobitanobi: has joined #RubyOnRails
[14:56:51] Rukeal: has joined #RubyOnRails
[14:57:21] jeanlinux: has joined #RubyOnRails
[14:57:29] stacktracer: has joined #RubyOnRails
[14:57:34] Lightsword: has joined #RubyOnRails
[14:57:43] Coolness: Hates_: if you're still there, i set the env variables in a gitignored .env file on my local machine, but they didnt work on production server after cap deploy. Using dotenv.
[14:57:55] Coolness: I think the problem is that cap wipes the entire directory between each deploy
[14:58:11] Coolness: So i can't put the variables in a file on the remote server
[14:58:19] Coolness: which sucks
[14:58:33] Coolness: i really dont understand how anybody has gotten this to work
[14:58:53] DylanJ: you can tell capistrano to link files Coolness
[14:59:03] DylanJ: so you'll have something like shared/.mysecretenvs
[14:59:06] Hates_: Coolness: you need to have a .env on the server that you symlink
[14:59:26] Hosh: has joined #RubyOnRails
[14:59:39] jlyndon: has joined #RubyOnRails
[14:59:41] Hates_: Coolness: as DylanJ said. you use the capistrano linked_files to link them up on deployment
[15:00:06] Sigma01: has left #RubyOnRails: ()
[15:00:42] Sigma00: has joined #RubyOnRails
[15:01:14] differentreality: has joined #RubyOnRails
[15:01:22] Regulati_: has joined #RubyOnRails
[15:01:37] delianides: has joined #RubyOnRails
[15:01:54] gambl0re: has joined #RubyOnRails
[15:02:17] corioliss: has joined #RubyOnRails
[15:02:51] jxf: has joined #RubyOnRails
[15:02:57] dstarh: Coolness you put the file in a .gitignored file on your local machine how is it going to make it to the remote machine
[15:03:09] ndrei: has joined #RubyOnRails
[15:03:32] dstarh: i did exactly this a few weeks ago, why aren't my git-ignored files making it to the server, becaus they're not in git
[15:05:34] carlosoliveira: has joined #RubyOnRails
[15:05:38] toddperkinz: has joined #RubyOnRails
[15:06:17] Coolness: Hates_: DylanJ oh alright ill read about that
[15:06:29] soahccc: has joined #RubyOnRails
[15:06:31] bar0n_: has joined #RubyOnRails
[15:06:57] JonasOSDever: has joined #RubyOnRails
[15:07:21] alexclark: has joined #RubyOnRails
[15:07:28] phrozen77: has joined #RubyOnRails
[15:07:46] drPoggs: has joined #RubyOnRails
[15:07:48] elektronaut: has joined #RubyOnRails
[15:08:10] ararog: has joined #RubyOnRails
[15:08:51] RegulationD: has joined #RubyOnRails
[15:09:06] alexclark: when i run my test runner, it hangs (`rake test`, `rake test test/unit/note_test.rb`)
[15:09:14] sandstrom: has joined #RubyOnRails
[15:09:17] vedu: has joined #RubyOnRails
[15:09:28] alexclark: when i kill it i get this error https://gist.github.com/alexclarkofficial/7b24d498fb7e598b0ac5
[15:09:36] alexclark: can anyone please help me debug this?
[15:10:57] hotpancakes: has joined #RubyOnRails
[15:11:00] artto: has joined #RubyOnRails
[15:11:38] adavia: has joined #RubyOnRails
[15:15:15] TheMonster: has joined #RubyOnRails
[15:18:16] radialneon: has joined #RubyOnRails
[15:19:26] startupality: has joined #RubyOnRails
[15:21:24] ebbflowgo: has joined #RubyOnRails
[15:21:52] tubbo`: has joined #RubyOnRails
[15:22:23] JDeen: has joined #RubyOnRails
[15:22:28] cornerma1: has joined #RubyOnRails
[15:22:55] neutrino: has joined #RubyOnRails
[15:25:31] neutrino: has joined #RubyOnRails
[15:25:32] eggoez: has joined #RubyOnRails
[15:27:05] shinnya: has joined #RubyOnRails
[15:28:19] adamaig: has joined #RubyOnRails
[15:29:00] Pupeno: has joined #RubyOnRails
[15:31:38] cac: has joined #RubyOnRails
[15:32:11] amortimer: has joined #RubyOnRails
[15:32:46] amortimer: has left #RubyOnRails: ()
[15:33:52] sankaber: has joined #RubyOnRails
[15:33:58] Regulati_: has joined #RubyOnRails
[15:34:01] Anakat: has joined #RubyOnRails
[15:34:08] ndrei: has joined #RubyOnRails
[15:34:40] Rubie: has joined #RubyOnRails
[15:35:16] sandstrom: has joined #RubyOnRails
[15:37:25] jeanlinux: has joined #RubyOnRails
[15:38:54] wasp__: has joined #RubyOnRails
[15:40:57] waseem_: alexclark: Run it with --trace flag and see where it hangs.
[15:41:34] waseem_: It might just be running. :)
[15:42:08] alexclark: waseem_: thanks, ill try that. I actally took care of the hanging, but it now fails with just `Errors running test:units!` and nothing else
[15:42:13] ndrei: has joined #RubyOnRails
[15:42:32] momomomomo: has joined #RubyOnRails
[15:44:02] Coolness: Hates_: is this what i should use? https://github.com/runar/capistrano-linked-files
[15:44:24] Coolness: Then just put the env file in the "shared" directory?
[15:44:33] Hates_: Coolness: no, it's built in
[15:44:51] [H]unt3r: has joined #RubyOnRails
[15:45:48] Hates_: Coolness: your deploy.rb should already have some defaults in there for it
[15:47:18] ndrei: has joined #RubyOnRails
[15:48:35] delianides: has joined #RubyOnRails
[15:50:21] alexclark: has joined #RubyOnRails
[15:50:38] annlewis: has joined #RubyOnRails
[15:51:26] tetraktys: has joined #RubyOnRails
[15:52:10] hotpancakes: has joined #RubyOnRails
[15:52:42] cac: has joined #RubyOnRails
[15:54:38] delianides: has joined #RubyOnRails
[15:54:58] ndrei: has joined #RubyOnRails
[15:55:08] diegoviola: has joined #RubyOnRails
[15:55:18] diegoviola: has joined #RubyOnRails
[15:55:30] baweaver: has joined #RubyOnRails
[15:57:15] Rukeal: has joined #RubyOnRails
[15:57:44] ProLoser: has joined #RubyOnRails
[15:57:48] AzaToth: has joined #RubyOnRails
[15:58:45] tubbo`: has joined #RubyOnRails
[15:59:02] towski_: has joined #RubyOnRails
[15:59:14] sonofdirt: has joined #RubyOnRails
[16:00:21] roamingdog: has joined #RubyOnRails
[16:00:45] nobitanobi: has joined #RubyOnRails
[16:00:55] cek: getting no routes matched for form_tag. The route is defined as POST
[16:01:16] cek: how do i tell it to use anyway? search_es_haraka_logs POST
[16:01:20] ciree: bundle exec rake routes
[16:01:21] cek: No route matches {:controller=>"es/haraka_logs", :action=>"search"}
[16:01:47] ciree: see if its there
[16:01:53] diegoviola: has joined #RubyOnRails
[16:01:59] cek: it's there, but for POSt not GET
[16:02:19] yaymukund: has joined #RubyOnRails
[16:03:20] cek: oh wait, it's not the helper error, it's URI error
[16:03:21] cac: has joined #RubyOnRails
[16:03:52] tetraktys: has joined #RubyOnRails
[16:03:59] cek: well fuck 2 , it's helper error. What a misleading shit
[16:04:20] cek: = form_tag(search_es_haraka_logs_path, method: 'POST',
[16:05:16] jobewan: has joined #RubyOnRails
[16:05:56] mingsheng: has joined #RubyOnRails
[16:06:07] cek: I don't want to define GET match, i will not use it.
[16:06:27] cek: THe only thing I need is POST match, but somehow form helpers don't pick it up
[16:07:04] fmcgeough: has joined #RubyOnRails
[16:07:43] Hates_: cek: you'll have to tell it the url by hand
[16:08:36] TheCuriousGuy: has joined #RubyOnRails
[16:09:09] Hates_: cek: although it will post by default
[16:09:33] cek: stop talking nonsense if you don't know the solution
[16:09:33] Hates_: cek: you haven't been clear if the error is on generating the form or on submitting the form
[16:09:38] hotpancakes: has joined #RubyOnRails
[16:10:01] Hates_: why come in here and ask for help if you're just going to be rude?
[16:10:04] smathy: has joined #RubyOnRails
[16:10:04] vickleton: has joined #RubyOnRails
[16:10:07] hd1: if we all did that, the Internet wouldgo dark, cek
[16:10:46] ferr: has joined #RubyOnRails
[16:11:50] TheCuriousGuy: Does this feature look good?
[16:11:52] TheCuriousGuy: http://pastebin.com/eJX4ghYV
[16:13:13] hd1: TheCuriousGuy: looks fine to me
[16:13:29] Hates_: TheCuriousGuy: looks okay to me
[16:13:50] TheCuriousGuy: I know the syntax is correct
[16:14:03] TheCuriousGuy: I did cucumber --dry-run
[16:14:29] TheCuriousGuy: But, I wonder is it clear what it does?
[16:14:34] zendrix: has joined #RubyOnRails
[16:14:41] hd1: ugh, just implement, forget syntax of plans :p
[16:14:53] sandstrom: has joined #RubyOnRails
[16:15:02] hd1: we don't fund plans, we fund implementations
[16:15:30] hd1: <=== works in angel financing
[16:15:44] chelbs: has joined #RubyOnRails
[16:15:50] tubbo`: TheCuriousGuy: i'm not an expert on cucumber but how does that work without step definitions?
[16:16:08] TheCuriousGuy: It doesn't work yet
[16:16:19] TheCuriousGuy: But you can --dry-run it
[16:16:42] TheCuriousGuy: cucumber --dry-run tv.feature
[16:16:56] Rukeal: has joined #RubyOnRails
[16:17:00] tubbo`: TheCuriousGuy: not sure what your question means then, what do you mean by "look good"?
[16:17:28] TheCuriousGuy: Does it read fine to someone who is not a developer
[16:17:34] ferr: Hey, I just need to create a single page where you could input the text and word frequency would be counted, no database is needed, I have a ruby class, how would I handle the input to the class?
[16:17:46] Kedric: has joined #RubyOnRails
[16:18:02] Hates_: ferr: just pass the input to the class from the controller
[16:18:21] Hates_: ferr: although perhaps Sinatra is a good choice for what you want to achieve
[16:18:32] ndrei: has joined #RubyOnRails
[16:18:50] tubbo`: TheCuriousGuy: i wouldn't know, i'm a developer :) most cucumber features don't read very well to non-technical people though.
[16:19:14] tubbo`: TheCuriousGuy: it was a decent idea but in practice, i haven't seen cucumber work as well as more modern technologies like just writing rspec tests and capybara features
[16:19:44] Rukeal: has joined #RubyOnRails
[16:20:02] sonofdirt: has joined #RubyOnRails
[16:20:32] griffindy: has joined #RubyOnRails
[16:20:35] s2013: has joined #RubyOnRails
[16:21:19] sonofdirt: has joined #RubyOnRails
[16:23:49] cek: found the cause - route required parameter and i supplied none.
[16:23:57] cek: has left #RubyOnRails: ()
[16:24:22] surrealanalysis: has joined #RubyOnRails
[16:24:38] Spami_: has joined #RubyOnRails
[16:24:42] eggoez: has joined #RubyOnRails
[16:24:50] intuxicated: has joined #RubyOnRails
[16:27:00] roamingdog: has joined #RubyOnRails
[16:28:51] bricker: has joined #RubyOnRails
[16:30:18] fatephd: has joined #RubyOnRails
[16:30:26] fatephd: I have a super dumb question.
[16:30:32] fatephd: In Rails 4
[16:30:49] roamingdog: has joined #RubyOnRails
[16:30:51] fatephd: Controller params have to be sanitized with strong params and permit and require
[16:31:00] fatephd: What happens in the rest of Rails 4
[16:31:03] mikecmpbll: if you want to use them for mass assignment
[16:31:08] fatephd: Can I do Model.new(hash)
[16:31:18] fatephd: without sanitizing hash?
[16:31:23] fatephd: Outside of the controller?
[16:31:34] fatephd: Or is mass-assignment now evil eveywhere?
[16:31:48] fatephd: What happens outside a Controller and params?
[16:31:49] phat4life: does it work in console?
[16:32:03] fatephd: It seems like mass assignment should just work outside of a controller and params
[16:34:18] tubbo`: fatephd: it does, yeah
[16:34:46] Spami_: has joined #RubyOnRails
[16:35:07] tubbo`: fatephd: but if you're using a controller, the params object isn't just a regular hash
[16:35:37] mwlang: has joined #RubyOnRails
[16:35:44] tubbo`: if you do have a regular hash, i think you can just mass assign whatever because that's how AR works
[16:35:58] mwlang: is there a good javascript dashboard widget building library for Rails?
[16:36:09] podman: has joined #RubyOnRails
[16:36:41] tubbo`: dashboard widget?
[16:36:42] Hates_: mwlang: like dashing? https://github.com/gottfrois/dashing-rails
[16:37:00] mwlang: Hates_: exactly!
[16:37:06] fatephd: I know that
[16:37:23] fatephd: but i can mass assign any where rlse
[16:37:39] hotpancakes: has joined #RubyOnRails
[16:37:55] tubbo`: fatephd: yeah
[16:38:16] ararog: has joined #RubyOnRails
[16:38:29] mwlang: Hates_: thanks for that quick link???looks like it meets all my criteria: rails 4 and engine-based
[16:38:30] frek818: has joined #RubyOnRails
[16:38:37] Hates_: mwlang: good luck :)
[16:39:25] yfeldblum: has joined #RubyOnRails
[16:41:00] intuxicated: has joined #RubyOnRails
[16:42:30] s2013: so we have this "awards" model.. well its not one model.. there are different types of awards.. so the previous developer created a model for each time we create a new award.. :\
[16:42:32] Rubie: has joined #RubyOnRails
[16:42:36] s2013: so we have about 90 models..
[16:42:40] mwlang: hmm???what???s the new web-console gem in the Rails 4.2.1 Gemfile? I was about to drop in binding-of-caller and better_errors gems and saw this.
[16:43:14] Hates_: mwlang: givws you an inbrowser console
[16:43:40] Hates_: mwlang: when things go wrong
[16:44:08] mwlang: hmm???I???ll give it a brief spin, then.
[16:44:08] Hates_: s2013: may or may not have been a bad thing
[16:44:16] DCameronMauch: has joined #RubyOnRails
[16:44:16] Hates_: s2013: depends on how it's setup
[16:44:28] mwlang: ahh???.???Web Console uses John Mair's binding_of_caller to spawn a console in a specific binding. ???
[16:44:41] mwlang: so more or less a replacement.
[16:44:55] adavia: where can i get a list of countries and regions?
[16:45:02] blackmesa: has joined #RubyOnRails
[16:45:18] Hates_: adavia: https://github.com/hexorx/countries perhaps?
[16:45:54] mwlang: adavia: https://en.wikipedia.org/wiki/ISO_3166-2 and https://en.wikipedia.org/wiki/ISO_3166-1
[16:47:23] adavia: i was evaluating between hexorx and carmen
[16:48:21] jsrn_: has joined #RubyOnRails
[16:48:46] adavia: thanks for the suggestions
[16:49:13] phat4life: has left #RubyOnRails: ("WeeChat 1.2")
[16:50:08] Fire-Dragon-DoL: has joined #RubyOnRails
[16:53:03] moeabdol: has joined #RubyOnRails
[16:54:27] hotpancakes: has joined #RubyOnRails
[16:54:45] hotpancakes: has joined #RubyOnRails
[16:56:18] mkc: has joined #RubyOnRails
[16:56:54] mkc: hey, when you do nested model updates. Is there a special flag that I have to pass to update already existing relationship on post create
[16:57:02] eugene_kl: has joined #RubyOnRails
[16:57:26] eugene_kl: has left #RubyOnRails: ()
[16:57:29] mkc: So for example Create user and attach that user to a already existing contact which needs few fields updated
[16:57:33] abolishme: has joined #RubyOnRails
[17:00:14] [H]unt3r: has joined #RubyOnRails
[17:00:23] nzst: has joined #RubyOnRails
[17:01:17] ivanskie: has joined #RubyOnRails
[17:01:18] s2013: has joined #RubyOnRails
[17:03:46] mrbubbles: has joined #RubyOnRails
[17:04:12] drale2k: has joined #RubyOnRails
[17:04:31] emptyflask: has joined #RubyOnRails
[17:05:02] sbhatore: has joined #RubyOnRails
[17:07:35] mcr-credil: has joined #RubyOnRails
[17:07:44] mrbubbles: Afternoon chaps. Is there an easy way for active record to output a unix timestamp? Or do I just need to map through results array and calculate it from the create_at value?
[17:08:18] hahuang65: has joined #RubyOnRails
[17:10:13] anthonys: has joined #RubyOnRails
[17:10:35] chouhoulis: has joined #RubyOnRails
[17:11:02] paulcsmith: has joined #RubyOnRails
[17:11:44] momomomomo_: has joined #RubyOnRails
[17:12:02] chouhoulis: has joined #RubyOnRails
[17:12:53] tetraktys: has joined #RubyOnRails
[17:14:00] hotpanca_: has joined #RubyOnRails
[17:14:24] ndrei: has joined #RubyOnRails
[17:14:54] surrealanalysis: has joined #RubyOnRails
[17:15:28] bricker: mrbubbles: store it as a unix timestamp, and you will get a unix timestamp back
[17:15:52] n008f4g_: has joined #RubyOnRails
[17:16:01] zorak8: has joined #RubyOnRails
[17:17:15] RegulationD: has joined #RubyOnRails
[17:17:37] chelbs: has joined #RubyOnRails
[17:18:07] mrbubbles: that???s true
[17:18:29] mrbubbles: rails uses something else as default though
[17:18:42] zendrix: has joined #RubyOnRails
[17:18:56] slash_nick: Any jruby on rails with postgresql users, which adapter do you use?
[17:19:39] tetraktys: has joined #RubyOnRails
[17:20:02] Hates_: mrbubbles: you can also select it as a timestamp from your database
[17:21:18] mrbubbles: Hates_: I was hoping that might be possible but I couldn???t find out how anywhere
[17:21:50] Lightsword: has joined #RubyOnRails
[17:22:17] RegulationD: has joined #RubyOnRails
[17:22:21] neutrino: has joined #RubyOnRails
[17:22:52] bullcitydev: has joined #RubyOnRails
[17:23:20] hd1: mrnubbles: store as long and get it as timeInstance.to_f
[17:23:59] dionysus69: has joined #RubyOnRails
[17:25:33] Lightsword: has joined #RubyOnRails
[17:25:43] emptyflask: has left #RubyOnRails: ()
[17:25:54] neutrino: has left #RubyOnRails: ()
[17:26:35] tetraktys: has joined #RubyOnRails
[17:28:15] Hates_: mrbubbles: in postgres you would use the extract(epoch from created_at)
[17:28:20] thang: has joined #RubyOnRails
[17:28:22] pothibo: has joined #RubyOnRails
[17:29:44] mikecmpbll: has joined #RubyOnRails
[17:30:30] dc1: has joined #RubyOnRails
[17:31:32] thang: has joined #RubyOnRails
[17:32:10] Scriptonaut: has joined #RubyOnRails
[17:34:54] benlieb_: has joined #RubyOnRails
[17:38:54] upsell5: has joined #RubyOnRails
[17:39:02] paulcsmith: has joined #RubyOnRails
[17:41:42] arBmind: has joined #RubyOnRails
[17:43:06] dstarh: We have a small bit of rails code which still needs to talk to an old sql server. The sql server adapter no longer supports this version of sql server on rails 4.2 so we're maintaining a 4.1 version of our code which we'd like to avoid. Note that the rest of our code talks to postgres. Anyone have any clever ides on how we might handle merging this code?
[17:46:56] Hates_: dstarh: so 4.2 is incompatible with the same version driver as you're using on 4.1?
[17:46:58] Eminence_: has joined #RubyOnRails
[17:47:27] rustymyers: has joined #RubyOnRails
[17:47:57] dstarh: the driver that supports our version of sql server is not compatible with 4.2 and in their version that is 4.2 compat, they refactored and removed support for older versions of sql server
[17:48:15] tetraktys: has joined #RubyOnRails
[17:48:34] dstarh: https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/issues/388
[17:49:13] armyriad: has joined #RubyOnRails
[17:49:19] Hates_: dstarh: ahhh
[17:49:31] mkc: has joined #RubyOnRails
[17:49:51] dstarh: yeah, we'd really like to avoid maintaining two code bases and constantly backporting
[17:50:05] roamingdog: has joined #RubyOnRails
[17:50:52] DCameronMauch: has joined #RubyOnRails
[17:52:05] alexclark: has joined #RubyOnRails
[17:52:23] towski_: has joined #RubyOnRails
[17:52:33] Hates_: dstarh: I think it might be difficult to have them as a united app
[17:53:06] dstarh: at this point we'd settle for a "nasty hack" as it was writtin in the ticket LOL
[17:53:17] Hates_: dstarh: you could always just have a wrapper app around the SQL server section of your app which your 4.2 app talks to
[17:53:40] Hates_: sorry bbl
[17:53:53] dstarh: expose sql server over an api ha
[17:55:00] rhizome: or maintain your own fork of the sqlserver gem
[17:56:53] Hates_: dstarh: well not the sql server but just the models based around it
[17:57:00] Hates_: dstarh: which yuo already have
[17:57:03] dstarh: Hates_ yeah thats what i meant
[17:57:43] tetraktys: has joined #RubyOnRails
[17:58:11] Hates_: dstarh: just upgrade SQL server :P
[17:58:19] dstarh: rhizome the refacroting they did from 4.1 to 4.2 basically ripped out all of the functionalty for the older sql server db's so making it work for 4.2 isn't really feasible, we're maintaiing a version of our code with rails 4.1 compat
[17:58:28] Coolness: Hates_: alright so i used the linked thing and created an aws.yml which aws-sdk should read, and also created a config.env file with the env variable declarations and it still doesnt work
[17:58:34] dideler: has joined #RubyOnRails
[17:58:36] Coolness: im beginning to think there's something else at play
[17:58:50] surrealanalysis: has joined #RubyOnRails
[17:58:53] dstarh: Hates_ oh i wish we could, it's a 3rd party nutritional database that is hard wired into a specific version of sql server
[17:58:55] Coolness: Is there anything other than restarting puma and nginx i should do to get the env variables working?
[17:59:03] Hates_: Coolness: dotenv looks for a .env file
[17:59:07] ProLoser: has joined #RubyOnRails
[17:59:42] acti0nman: has joined #RubyOnRails
[17:59:43] rhizome: dstarh: what do you mean by feasible? it's an adapter gem with tests and you know what code was taken out
[18:00:26] rhizome: not to mention that this is how companies contribute resources back to open source
[18:00:27] dstarh: rhizome ok s/feasible/not worth the effort/
[18:00:46] rhizome: think of how much effort rails has saved the company thus far
[18:00:51] Scriptonaut: what are your guy's thoughts on using private methods in rails
[18:01:01] rhizome: Scriptonaut: they exist
[18:01:12] Scriptonaut: Guy I'm working with never uses them
[18:01:20] Scriptonaut: because "private doesn't mean much in ruby"
[18:01:25] bricker: Scriptonaut: private until proven public
[18:01:26] Coolness: Hates_: so config.env qualifies?
[18:01:33] Scriptonaut: which is true, but coming from a non-ruby background this is so odd to me
[18:01:43] dstarh: rhizome i completely agree but iit's not going to happen
[18:01:45] tetraktys: has joined #RubyOnRails
[18:01:52] alexclark: has left #RubyOnRails: ()
[18:01:56] Scriptonaut: bricker: that's exactly how I code in ruby
[18:01:58] Hates_: Coolness: no the file has to be called ".env"
[18:02:03] Scriptonaut: everything is private until it's needed outisde the object
[18:02:09] Coolness: thats silly of me
[18:02:14] Coolness: thanks, let me try again
[18:03:42] huck5: has joined #RubyOnRails
[18:04:41] codepete: has joined #RubyOnRails
[18:04:45] rhizome: dstarh: i remember an quote from a movie whose title i can't remember right now, "well, i guess you're fscked, then"
[18:06:11] umdstu: has joined #RubyOnRails
[18:07:05] yaymukund: has joined #RubyOnRails
[18:07:26] umdstu: so i've been following this guide: https://devmynd.com/blog/2014-7-rails-ember-js-with-the-ember-cli-redux-part-1-the-api-and-cms-with-ruby-on-rails and like one of the commenters, i'm having the issue where the routes for the API do not exist. Any grape api users know what could be wrong?
[18:07:54] rhizome: that's a heck of a post title
[18:08:00] umdstu: inorite?!
[18:09:27] elmhouse: has joined #RubyOnRails
[18:09:56] hanss: has joined #RubyOnRails
[18:10:00] Lightsword: has joined #RubyOnRails
[18:10:59] Jasaka: has joined #RubyOnRails
[18:11:09] djbkd: has joined #RubyOnRails
[18:12:11] abolishme: has joined #RubyOnRails
[18:12:19] Spami: has joined #RubyOnRails
[18:13:21] gniquil: has joined #RubyOnRails
[18:13:26] ProLoser: has joined #RubyOnRails
[18:15:58] tfittsy: anyone here ever use DynamoDB for a project?
[18:16:26] hotpancakes: has joined #RubyOnRails
[18:17:07] epavlica: has joined #RubyOnRails
[18:17:53] tfittsy: dstarh: what version of sql server are you on?
[18:18:27] blunckr: has joined #RubyOnRails
[18:18:53] kies^: has joined #RubyOnRails
[18:19:11] Rylee: has joined #RubyOnRails
[18:19:50] dstarh: tfittsy 2005 and in this case 2005 express which is what this nutritional db uses
[18:20:26] tubbo`: has joined #RubyOnRails
[18:21:20] hanss: has joined #RubyOnRails
[18:22:05] tfittsy: dstarh: I don't have any ideas, I'm just in a similar position. I have a sql server 2005 express db running that part of my app is on where the rest of it is talking to postgres, though I'm in the process of completely migrating away from the SQL server, just haven't done it yet. I'm also on rails 4.1 and can't move until 4.2 until I resolve that.
[18:22:22] momomomomo: has joined #RubyOnRails
[18:22:23] tfittsy: move to* 4.2
[18:23:25] dstarh: tfittsy for a long time our app didn't talk to sql server after we moved to postgres, this is a 3rd party db that we want readonly access to and not in real time. it's a rake task that builds diffs between it and our postgres db which has copies of the data
[18:23:37] rhizome: sounds like dstarh's is a vendor problem
[18:24:25] eGGsha: has joined #RubyOnRails
[18:24:35] tfittsy: dstarh: how big is the data? can't they build you a json client that your app can talk to. seems VERY odd to be talking directly to a third party's very old database system.
[18:24:36] dstarh: i'm thinking about just using the tds driver and not worying about AR for talking to sql server, there are like 5 models and it's readonly a simple facade might be the easiest way to go
[18:25:36] dstarh: tfittsy ha. they're in the dark ages when it comes to this stuff so there's not much of a chance of that
[18:26:15] rhizome: what do your bosses think you should do?
[18:26:32] chelbs: has joined #RubyOnRails
[18:26:40] dstarh: they have a standalone program where you pass in a bunch of primary keys and they'll export a tsv of the records you want, you just can't export the lookup data which is the stuff we need in this case
[18:27:00] tfittsy: dstarh: would they let you help? I'm sure it would be 1/10 the work to create an interface on their side than rewriting the sql server adapter. Though the TDS idea would work too
[18:27:14] dstarh: rhizome i've just been sent on a fact finding mission to see if there are any elegant or inelegant hacks
[18:27:32] dstarh: tfittsy the app is a standalone windows app
[18:27:41] tfittsy: their database doesn't change?
[18:28:06] tfittsy: or the app imports their database?
[18:28:12] dstarh: i don't wan to come near that with a 10' poll, they send out updates once a year which for the most part introduces new data but not generally new recods
[18:28:45] rhizome: not nielsen then, i'm guessing
[18:28:52] dstarh: their app talks directly to their db, we jsut want to read some of the data from it. specifically the food weight to volume ratios
[18:28:55] choke: has joined #RubyOnRails
[18:29:41] lessless: has joined #RubyOnRails
[18:30:06] dstarh: no not nielsen
[18:30:42] tfittsy: well if there is absolutely no way to get the data through anything but directly accessing a sql server 2005 database then I'd go the TDS route. it sounds like you need 2 columns of data, you could for sure get by without activerecord to pull that data.
[18:31:38] baweaver: has joined #RubyOnRails
[18:32:31] ddv: has joined #RubyOnRails
[18:32:44] ddv: has joined #RubyOnRails
[18:35:25] xanadu23: has joined #RubyOnRails
[18:36:24] mike___1234: has joined #RubyOnRails
[18:38:20] Coolness: Hates_: hey, sorry to still bother you, but i named the file .env and still aws says it's credentials aren't found. Maybe i'm dealing with something else? I tried rails c production on the server and typed ENV["my_variable"] and it prints the env variables correctly
[18:41:29] dopie: has joined #RubyOnRails
[18:43:15] DEA7TH: has joined #RubyOnRails
[18:43:17] momomomomo_: has joined #RubyOnRails
[18:43:53] cac: has joined #RubyOnRails
[18:44:00] xanadu23: has left #RubyOnRails: ()
[18:44:12] workmad3: has joined #RubyOnRails
[18:44:22] yardenbar: has joined #RubyOnRails
[18:44:41] bruno-: has joined #RubyOnRails
[18:45:55] bmurt: has joined #RubyOnRails
[18:46:02] xanadu23: has joined #RubyOnRails
[18:47:29] jeanlinux: has joined #RubyOnRails
[18:47:33] duhhhsty: has joined #RubyOnRails
[18:48:10] oflannabhra: has joined #RubyOnRails
[18:48:57] dstarh: tfittsy seems the tds route might be doable thanks for talking this out folks!
[18:49:06] xanadu23: has left #RubyOnRails: ()
[18:51:47] bradleyprice: has joined #RubyOnRails
[18:51:50] xicreative: has joined #RubyOnRails
[18:52:02] chouhoul_: has joined #RubyOnRails
[18:52:07] JoshL: has joined #RubyOnRails
[18:52:11] xicreative: Hey guys, anyone familiar with the intimate details of ActionDispatch available to chat? Having some weird performance issues that I'm having trouble diagnosing.
[18:53:01] annlewis: has joined #RubyOnRails
[18:53:13] ivanskie: has joined #RubyOnRails
[18:54:24] baweaver: has joined #RubyOnRails
[18:54:25] tonyhb: has joined #RubyOnRails
[18:54:33] eGGsha: has joined #RubyOnRails
[18:58:20] Rakunh0: has joined #RubyOnRails
[19:00:28] chelbs: has joined #RubyOnRails
[19:01:12] baweaver: has joined #RubyOnRails
[19:01:20] acti0nman: has joined #RubyOnRails
[19:01:56] baweaver: has joined #RubyOnRails
[19:03:20] Scripore: has joined #RubyOnRails
[19:03:53] chelbs_: has joined #RubyOnRails
[19:05:13] srinidhi: has joined #RubyOnRails
[19:06:58] Hates_: Coolness: might be related to your load order. there's a section in the dotenv documentation regarding it
[19:07:21] renegadeandy: has joined #RubyOnRails
[19:07:36] renegadeandy: Hey everyone - can somebody help me with this problem when I try upgrading to rails 4.2.1 : http://stackoverflow.com/questions/31169438/issue-upgrading-application-to-rails-4-2-1-with-libv8-devise-therubyracer
[19:10:02] zendrix: has joined #RubyOnRails
[19:10:12] centrx: has joined #RubyOnRails
[19:14:21] workmad3: has joined #RubyOnRails
[19:14:26] Coolness: Hates_: thanks ill have a look
[19:15:21] adavia: Hates_: have you ever used hexorx with a collection_select
[19:15:38] Hates_: adavia: no idea what hexorx is :)
[19:16:01] Maletor: has joined #RubyOnRails
[19:16:19] Hates_: adavia: oh yuo mean countries :)
[19:16:33] adavia: Hates_: yeah that one
[19:16:51] voker57: has joined #RubyOnRails
[19:17:08] Hates_: adavia: sadly I haven't
[19:17:29] giowong: has joined #RubyOnRails
[19:18:58] ndrei: has joined #RubyOnRails
[19:20:11] Lightsword: has joined #RubyOnRails
[19:20:17] qejk: has joined #RubyOnRails
[19:21:24] baweaver: has joined #RubyOnRails
[19:23:32] roamingdog: has joined #RubyOnRails
[19:23:50] xicreative: renegadeandy: What environment are you deploying to? We removed therubyracer from outr stack b/c it was always a pain to compile, but can work w/o it since node is installed in our heroku buildpack
[19:24:13] blunckr: has joined #RubyOnRails
[19:26:59] sandstrom: has joined #RubyOnRails
[19:27:00] Lightsword: has joined #RubyOnRails
[19:27:35] tonyhb: has joined #RubyOnRails
[19:27:50] Rakunh0: has joined #RubyOnRails
[19:28:43] yfeldblum: has joined #RubyOnRails
[19:29:15] tonyhb_: has joined #RubyOnRails
[19:29:16] axl_: has joined #RubyOnRails
[19:30:39] blackmesa: has joined #RubyOnRails
[19:31:22] roolo: has joined #RubyOnRails
[19:32:22] bin_005: has joined #RubyOnRails
[19:33:45] appledroid: has joined #RubyOnRails
[19:34:01] Frem: has joined #RubyOnRails
[19:34:26] tubbo`: has joined #RubyOnRails
[19:36:41] cosinus_rails: has joined #RubyOnRails
[19:37:19] renegadeandy: xicreative: heroku, but that could change in the future
[19:37:20] cosinus_rails: has joined #RubyOnRails
[19:37:20] cosinus_rails: has joined #RubyOnRails
[19:38:01] kadoppe: has joined #RubyOnRails
[19:38:58] cosinus_rails: Hey! I'm using reject_if: :all_blank for some nested attributes in a form. So of course, this entry might be nil if all is blank. Now this leads to a bit more code, I have to .try(), if/unless where necessary and also, when editing the entry with the nested attributes, it doesn't show up using simple_form (no form for nil, obviously)
[19:39:42] cosinus_rails: So my question is, is it worth not "wasting" an empty row in a database and then having to nil-check everywhere and build_foo conditionally everywhere?
[19:40:12] cosinus_rails: I'm just wondering what's best practice. Having many empty rows feels "wrong", but so does defensively programming for something that could come "for free".
[19:40:14] renegadeandy: xicreative: I am not even absolutely sure I use the gem in all honesty...
[19:40:28] renegadeandy: xicreative: im not sure how to tell if its used...
[19:42:50] blunckr: Hello, does anyone know if there's a way to set headers when using redirect_to. I'm redirecting to a URL outside of my app that needs some headers for authentication
[19:43:05] momomomomo_: has joined #RubyOnRails
[19:43:18] x-light: has joined #RubyOnRails
[19:43:33] nfk: has joined #RubyOnRails
[19:43:39] xicreative: renegadeandy: Usually therubyracer is included for ExecJS, which handles compilation of things like coffeescript. If you're on heroku you can probably safely comment rubyracer out and it'll use node instead: https://github.com/heroku/heroku-buildpack-ruby#assets
[19:44:29] xicreative: renegadeandy: Just make sure you have one of the execjs runtimes on your dev machine as well: https://github.com/sstephenson/execjs
[19:44:38] momomomomo__: has joined #RubyOnRails
[19:44:42] EiNSTeiN-: has left #RubyOnRails: ()
[19:44:53] EiNSTeiN_: has joined #RubyOnRails
[19:45:05] Kedric: I have an engine included in another rails app: Is there a way to get the engine to render something on all its pages but still use the main apps layout?
[19:45:09] bullcitydev: has joined #RubyOnRails
[19:45:22] EiNSTeiN_: blunckr: response.headers['x-your-header'] = some value
[19:46:01] zendrix: has joined #RubyOnRails
[19:48:56] cosinus_rails: Sorry, gotta go. Will ask again when I have more time. Thanks!
[19:49:38] dc1: has joined #RubyOnRails
[19:50:34] yaymukund: has joined #RubyOnRails
[19:50:52] eggoez: has joined #RubyOnRails
[19:51:32] moeabdol: has joined #RubyOnRails
[19:52:42] dented42: has joined #RubyOnRails
[19:52:54] Palsson: has joined #RubyOnRails
[19:53:16] danman: has joined #RubyOnRails
[19:53:27] rodfersou: has joined #RubyOnRails
[19:53:59] eGGsha: has joined #RubyOnRails
[19:55:10] blackmesa: has joined #RubyOnRails
[19:55:54] oflannabhra: has joined #RubyOnRails
[19:56:08] Papierkorb: has joined #RubyOnRails
[19:56:34] benlieb_: has joined #RubyOnRails
[19:59:39] cac_: has joined #RubyOnRails
[20:02:09] RegulationD: has joined #RubyOnRails
[20:02:54] Maletor: has joined #RubyOnRails
[20:03:38] jenrzzz: has joined #RubyOnRails
[20:07:41] gelinas260: has joined #RubyOnRails
[20:07:49] bin_005: has joined #RubyOnRails
[20:08:21] sinkensabe: has joined #RubyOnRails
[20:09:56] [H]unt3r_: has joined #RubyOnRails
[20:11:51] bullcitydev: has joined #RubyOnRails
[20:14:27] bradleyprice: has joined #RubyOnRails
[20:15:38] momomomomo_: has joined #RubyOnRails
[20:16:33] drale2k: has joined #RubyOnRails
[20:17:47] dopie: has joined #RubyOnRails
[20:18:50] art-solopov: has joined #RubyOnRails
[20:19:09] Hobogrammer: has joined #RubyOnRails
[20:19:50] tubbo`: has joined #RubyOnRails
[20:20:39] Lightsword: has joined #RubyOnRails
[20:21:10] mfilipe: has joined #RubyOnRails
[20:21:26] rodfersou: has joined #RubyOnRails
[20:22:07] mfilipe: hello guys! what is the substituion for remote_function() in rails4?
[20:23:38] rhizome: what is "remote_function()"?
[20:24:44] roamingdog: has joined #RubyOnRails
[20:26:01] futilegames: has joined #RubyOnRails
[20:26:11] eggoez: has joined #RubyOnRails
[20:26:22] mfilipe: rhizome, http://apidock.com/rails/ActionView/Helpers/PrototypeHelper/remote_function
[20:27:24] rhizome: are you the guy who was here a few weeks ago upgrading from rails 2 to 4?
[20:27:52] rhizome: regardless, there is no replacement. just put the functionality in javascript/coffeescript
[20:28:12] rhizome: apologies if you're a gal, btw
[20:28:26] tubbo`: you can use a .js view to mimic some of that functionality
[20:28:58] mfilipe: rhizome, I work with many technologies and some years ago I was working with Rails but now in my job I use just ruby without rails, so my knowledge is old
[20:29:00] rhizome: gonna be the same code
[20:29:27] rhizome: mfilipe: no worries, there was just someone else in here with a similar angle
[20:31:46] siddart_: has joined #RubyOnRails
[20:32:48] mfilipe: rhizome, the js view could be a partial? why did you suggest to put the js function in javascript/coffescript?
[20:34:23] roamingdog: has joined #RubyOnRails
[20:39:32] Lightsword: has joined #RubyOnRails
[20:39:43] bin_005_e: has joined #RubyOnRails
[20:41:52] yaymukun1: has joined #RubyOnRails
[20:42:02] annlewis: has joined #RubyOnRails
[20:43:30] kinduff: has joined #RubyOnRails
[20:43:30] kinduff: has joined #RubyOnRails
[20:43:30] smathy: blunckr, no, a redirect just tells the browser to create a fresh request to another URL, there's no way to tell it to send any special headers.
[20:44:07] gniquil: has joined #RubyOnRails
[20:46:23] mitchless: has joined #RubyOnRails
[20:47:29] jeanlinux: has joined #RubyOnRails
[20:50:38] s2013: has joined #RubyOnRails
[20:50:52] Scripton1ut: has joined #RubyOnRails
[20:52:59] zendrix: has joined #RubyOnRails
[20:53:24] s2013: has joined #RubyOnRails
[20:53:32] djbkd: has joined #RubyOnRails
[20:53:35] eoy: has joined #RubyOnRails
[20:54:54] dopie: has joined #RubyOnRails
[20:55:12] dede: has joined #RubyOnRails
[20:55:42] s2013: has joined #RubyOnRails
[20:55:43] djbkd: has joined #RubyOnRails
[20:56:13] cac: has joined #RubyOnRails
[20:57:03] Radar: goooooood moooorrrrnnniiinnngggg
[20:57:55] vickleton: has joined #RubyOnRails
[20:58:34] chintanparikh: has joined #RubyOnRails
[20:58:56] istrasci: has joined #RubyOnRails
[20:59:41] rickmasta: has joined #RubyOnRails
[20:59:44] Scriptonaut: has joined #RubyOnRails
[21:00:08] Scriptonaut: Hey guys, I have: validate :required_email, on: :create
[21:00:14] Scriptonaut: However, it's still validating on update
[21:00:20] Scriptonaut: or, whenever I save
[21:00:28] Scriptonaut: how do I make it only validate when I create the model?
[21:01:35] Radar: Scriptonaut: what's the required_email method look like?
[21:02:19] Radar: Wondering if you could use a validates :email, presence: true validation instead
[21:02:54] Geffy: has joined #RubyOnRails
[21:02:58] Radar: I can't reproduce that issue in a new app.
[21:03:34] Radar: irb(main):001:0> User.new.valid?
[21:03:34] Radar: irb(main):002:0> user = User.new(email: "me@ryanbigg.com")
[21:03:34] Radar: => #<User id: nil, email: "me@ryanbigg.com", created_at: nil, updated_at: nil>
[21:03:35] Radar: irb(main):003:0> user.valid?
[21:03:37] Radar: irb(main):004:0> user.save
[21:03:38] Radar: (0.1ms) begin transaction
[21:03:39] Radar: SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "me@ryanbigg.com"], ["created_at", "2015-07-01 21:02:43.735870"], ["updated_at", "2015-07-01 21:02:43.735870"]]
[21:03:40] Radar: (1.4ms) commit transaction
[21:03:42] Radar: irb(main):005:0> user.email = ''
[21:03:44] Radar: irb(main):006:0> user.save
[21:03:45] Radar: (0.1ms) begin transaction
[21:03:46] Radar: SQL (0.3ms) UPDATE "users" SET "email" = ?, "updated_at" = ? WHERE "users"."id" = ? [["email", ""], ["updated_at", "2015-07-01 21:02:49.727632"], ["id", 1]]
[21:03:47] Radar: (0.7ms) commit transaction
[21:04:02] Radar: ACTION commits self-flaggelation
[21:04:06] Radar: https://gist.github.com/radar/d0445c11b35064012ec1
[21:04:14] Radar: Scriptonaut: ^
[21:04:21] Radar: Scriptonaut: I can't reproduce it in a new application. Your move.
[21:04:39] Scriptonaut: I put it on the wrong method
[21:04:49] Scriptonaut: I should have put it on uniqueness_of_email_if_imported
[21:04:54] slash_nick: anyone know of a static code analysis tool to highlight items that may not be thread safe?
[21:05:19] bin_005_e_q: has joined #RubyOnRails
[21:05:26] Radar: Scriptonaut: gg
[21:05:38] siddart: has joined #RubyOnRails
[21:06:18] istrasci: When you do `rails new my-new-app`, the file config/application.rb will have the module named "MyNewApp". Does anyone know where this string is constructed?
[21:07:48] mwlang: gg? I know you don???t mean ???giant grin??????. sooo???.???good god???? ???good grief???? ???goodness gracious???? ???golly gee????
[21:08:00] mwlang: ACTION puts down hyper-caffienated coffee
[21:08:40] mwlang: heh???learn something new every day.
[21:09:00] tubbo`: mailers suck
[21:09:48] oflannabhra: has joined #RubyOnRails
[21:09:51] mwlang: tubbo`: they???re better than they used to be.
[21:10:10] erich: has joined #RubyOnRails
[21:10:52] blunckr: smathy: thanks. I found a way to do what I was doing without headers
[21:11:43] mwlang: what the heck is wrong with SMB mounts to Windows file shares? In this day and age, we oughta be able to copy files from mounted shares to Linux partitions at network speeds???not less than 2% of network capacity speeds.
[21:11:49] slash_nick: Radar: that gist gives me dejavu
[21:12:03] slash_nick: can't quite recall what i encountered a week or so ago that was so similar
[21:13:21] mwlang: whacked???taskmanager says 0% CPU utilization, 0.5% network utilization???.doing a ???cp -rf??? on the linux box.
[21:13:41] smathy: istrasci, here: https://goo.gl/GmdJ3c
[21:13:51] brianjlandau: has joined #RubyOnRails
[21:14:06] tubbo`: smb is old
[21:14:08] smathy: blunckr, glad to hear it, you're welcome.
[21:14:28] mwlang: tubbo`: which is why it oughta have these slow bugs well worked out by now.
[21:14:45] istrasci: smathy: Thank you. Was trying to replicate the behaviour while missing some nuance.
[21:14:52] tubbo`: mounting network drives is a pain in the ass
[21:14:56] smathy: istrasci, you're welcome.
[21:15:07] tubbo`: constant source of confusion and snake oil solutions
[21:15:20] baweaver: has joined #RubyOnRails
[21:15:41] mwlang: I know I encountered this a decade or so ago and actually patched linux and Windows to fix it.
[21:16:11] mwlang: oooh???just had a thought???there???s a registry setting I can finangle that should fix this if I can remember it...
[21:16:35] smathy: mwlang, you noticed you're talking in #rubyonrails right?
[21:17:19] mwlang: smathy: yeah???I should go over to linux channels???its the coffee talking before thinking. :-o
[21:17:55] jeanlinux: has joined #RubyOnRails
[21:18:00] mwlang: bringing up a a Rails app where we have to sync 120gb of files to go-live.
[21:18:16] ur5us: has joined #RubyOnRails
[21:18:19] vickleton: has joined #RubyOnRails
[21:18:26] smathy: mwlang, np, it's quiet so no big deal, just funny to see you ranting about something that probably we're all like "Yeah, that sure is a problem that you have there."
[21:19:25] mwlang: smathy: yeah, if I gotta solve it again, I???ll probably blog it.
[21:19:43] smathy: Yeah, sounds worthwhile.
[21:20:10] smathy: I do remember Samba being generally fragile/frustrating when I was using it many years ago.
[21:20:18] smathy: Definitely lots of blog articles helped.
[21:21:58] strcmp1: has joined #RubyOnRails
[21:23:31] istrasci: has left #RubyOnRails: ()
[21:25:47] danman: has joined #RubyOnRails
[21:26:27] cnk: has joined #RubyOnRails
[21:26:30] Tarkers34: has joined #RubyOnRails
[21:29:53] nfk: has joined #RubyOnRails
[21:30:59] Tarkers34: Do you guys know if it's possible to get the name of a route from a string and HTTP verb? Rails.application.routes.recognize_path '/', method: 'get' #=> { controller: 'products', action: 'index', name: 'products' } would be amazing! Right now recognize_path only gives me { controller: 'products', action: 'index' }. Also I'm just messing about, but I'd like to see if it can be done
[21:32:29] Tarkers34: maybe through Rails.application.routes.routes.named_routes ...if I could query named_routes for a certain path somehow?
[21:34:23] benlieb_: has joined #RubyOnRails
[21:34:42] tubbo`: Tarkers34: where's the "name: 'products'" part coming from?
[21:35:18] momomomomo_: has joined #RubyOnRails
[21:35:19] Tarkers34: tubbo: Ah that's what I'd like to happen :P only :controller and :action come through
[21:35:46] tubbo`: Tarkers34: yeah but like, where does that come from? it's not in the route.
[21:36:07] tubbo`: Tarkers34: if you did recognize_path '/?name=products' then i think you'd see name: 'products'
[21:39:05] Tarkers34: I want to get at the name from the URI string and the HTTP verb though. I think a Rails.application.routes.routes.named_routes each loop is inorder haha
[21:40:35] tubbo`: Tarkers34: so you have a URL right now, and you want to see what http verb it is?
[21:41:23] tubbo`: or you already know that
[21:41:29] Radar: Tarkers34: Are you just experimenting or do you need this for some other purpose?
[21:42:06] xicreative: Anyone have any idea why a request for /assets/application.css on a heroku-deployed app would result in ActionDispatch::Routing::RouteSet#call running for 48k ms?
[21:42:10] anthonys: has joined #RubyOnRails
[21:42:20] blunckr: has left #RubyOnRails: ()
[21:42:23] Tarkers34: Radar: Just experimental...I did it before and now it's really bugging me how I did it...literally just in Rails console, not a project :)
[21:43:00] Tarkers34: It was like what_is_this_route_called? get: '/' #=> :root
[21:43:16] Tarkers34: It was like what_is_this_route_called? { get: '/'} #=> :root
[21:43:56] Radar: I don't know of a method that does that.
[21:44:08] Radar: although whenever I look at the Rails routing code I do get a bit corsseyed
[21:44:10] Radar: crosseyed*
[21:44:29] choke: has joined #RubyOnRails
[21:44:34] Tarkers34: haha yeah it's crazy for something you think would be relatively simple
[21:44:47] tubbo`: Tarkers34: perhaps you were thinking of current_page?
[21:44:51] tubbo`: or url_for
[21:45:24] tubbo`: i dunno, it's not really apparent why you'd need something like this
[21:46:52] Radar: he wants the opposite of url_for I thin
[21:47:18] Radar: url_for can take the controller + action and produce a path, but he wants to give this mystery method a path and get it to tell him the controller + action
[21:47:34] renegadeandy: Can somebody please help me upgrade to rails 4.2.1 - I am having a problem with libv8 and therubyracer which all worked at rails 4.1.10 : http://stackoverflow.com/questions/31169438/issue-upgrading-application-to-rails-4-2-1-with-libv8-devise-therubyracer
[21:48:13] mwlang: for those who care about the solution to my earlier rant: It was the Autotuning feature in Windows slowing things down with samba shares.
[21:48:18] kinduff: has joined #RubyOnRails
[21:48:45] mwlang: So yeah, same problem as 10 years ago since this is a 2003 server??? :-p https://support.microsoft.com/en-us/kb/947773
[21:48:54] Radar: mwlang: the same feature as Kanye West uses in all his songs?
[21:49:34] mwlang: Radar: perhaps!
[21:53:01] tubbo`: gem install 'auto_tune'?
[21:53:29] chelbs: has joined #RubyOnRails
[21:53:59] mwlang: tubbo`: nah???we need ???gem uninstall windoze???
[21:58:36] momomomomo: has joined #RubyOnRails
[21:58:41] disperso: has joined #RubyOnRails
[21:58:55] jeanlinux: has joined #RubyOnRails
[21:59:56] ararog: has joined #RubyOnRails
[22:00:32] lucha: has joined #RubyOnRails
[22:00:55] jenrzzz_: has joined #RubyOnRails
[22:01:32] crdpink: has joined #RubyOnRails
[22:05:21] bradleyp_: has joined #RubyOnRails
[22:06:35] benlieb_: has joined #RubyOnRails
[22:06:52] ProLoser: has joined #RubyOnRails
[22:08:49] roamingdog: has joined #RubyOnRails
[22:08:51] renegadeandy: Can somebody please help me upgrade to rails 4.2.1 - I am having a problem with libv8 and therubyracer which all worked at rails 4.1.10 : http://stackoverflow.com/questions/31169438/issue-upgrading-application-to-rails-4-2-1-with-libv8-devise-therubyracer
[22:09:07] darrencauthon: has joined #RubyOnRails
[22:09:20] weaksauce: why do you have such a large deploy mwlang ?
[22:09:54] mwlang: weaksauce: its a large online bookstore with ~15 million products + images.
[22:11:05] marr123: has joined #RubyOnRails
[22:11:30] Sigma00: renegadeandy: pretty sure you don't need either of those in 4.2.1, you just need node.js installed in system
[22:11:44] baweaver: has joined #RubyOnRails
[22:11:54] renegadeandy: Sigma00: sooo....i should just remove therubyracer gem from my gem file?
[22:11:58] prasselpikachu: has joined #RubyOnRails
[22:11:58] johnkpaul_: has joined #RubyOnRails
[22:12:07] paulcsmith: has joined #RubyOnRails
[22:12:31] slash_nick: has joined #RubyOnRails
[22:12:32] Shidash: has joined #RubyOnRails
[22:12:52] llakey: has joined #RubyOnRails
[22:13:05] tubbo`: renegadeandy / Sigma00 - ExecJS will use a preinstalled JS runtime like node.js or JSCore if it's already available, and then tries to use engines like therubyracer, therubyrhino, etc.
[22:13:06] tubbo`: that's the way it's worked since rails 3
[22:13:18] tubbo`: renegadeandy: i think libv8 just released something today that broke for some people so try reducing it by a patch version
[22:13:22] dopie: has joined #RubyOnRails
[22:13:26] digifiv5e: has joined #RubyOnRails
[22:13:29] chipotle: has joined #RubyOnRails
[22:13:32] tubbo`: we've certainly had our share of issues with libv8
[22:13:50] renegadeandy: tubbo`: so instead of : gem install libv8 -v '3.16.14.8' try gem install libv8 -v '3.16.14.7'?
[22:14:20] tubbo`: renegadeandy: this might be helpful https://github.com/cowboyd/libv8/issues/174
[22:15:01] zendrix: has joined #RubyOnRails
[22:15:57] rromanchuk: has joined #RubyOnRails
[22:16:51] jheathco: has joined #RubyOnRails
[22:17:09] moeabdol: has joined #RubyOnRails
[22:17:22] weaksauce: mwlang ah. that's quite a lot
[22:17:24] momomomomo_: has joined #RubyOnRails
[22:17:34] jheathco: has left #RubyOnRails: ()
[22:18:24] mwlang: weaksauce: yeah, and it does bring it???s own set of challenges over and above just Rails.
[22:18:51] Coldblackice: has joined #RubyOnRails
[22:19:18] dented42: has joined #RubyOnRails
[22:20:56] strcmp2: has joined #RubyOnRails
[22:20:56] renegadeandy: tubbo`: the .7 release does install actually....but then when i next do bundle update it crashes on this line : Using less-rails 2.7.0 (was 2.6.0) as it tries to compile .8
[22:21:17] tubbo`: renegadeandy: it crashes because less-rails needs that new libv8 or something?
[22:21:30] tubbo`: or is it just the same error
[22:21:34] benlieb_: has joined #RubyOnRails
[22:22:38] renegadeandy: Its the same error, but it appears to try to build the .8 release somehow : https://gist.github.com/renegadeandy/40489f3eb0e50a3ef4b7
[22:23:14] tubbo`: renegadeandy: oh, you're not actually adding libv8 to your bundle are you
[22:23:19] tubbo`: you're just running `gem install`?
[22:23:31] wethu: has joined #RubyOnRails
[22:23:59] workmad3: has joined #RubyOnRails
[22:24:56] vickleton: has joined #RubyOnRails
[22:27:13] renegadeandy: tubbo`: ive added the gemfile : https://gist.github.com/renegadeandy/40489f3eb0e50a3ef4b7
[22:27:46] tubbo`: renegadeandy: yeah you need to add libv8 to the gemfile, not just gem install
[22:27:55] tubbo`: renegadeandy: otherwise it won't get installed to your bundle
[22:28:28] renegadeandy: tubbo`: ahhhhh - so gem 'libv8'
[22:28:37] tubbo`: renegadeandy: yeah, and specify the exact version you want too
[22:29:43] renegadeandy: ok trying gem 'libv8', '3.16.14.7'
[22:30:42] renegadeandy: tubbo`: thats it!
[22:30:48] dopie: can someone explain the last line
[22:30:49] dopie: https://gist.github.com/staycreativedesign/9d712714d3f6ba6a4c44
[22:30:56] renegadeandy: tubbo`: hero! you solved an epic libv8 problem! Thanks!
[22:31:00] dopie: super(method, text.html_safe, options, &block)
[22:31:07] dopie: why is super needed to be called
[22:31:13] dopie: and what does that super line do
[22:32:03] smathy: dopie, what do you think it's doing?
[22:32:27] dopie: smathy, I don't know that is why I am asking
[22:32:41] smathy: dopie, not even a guess?
[22:33:09] dopie: its replacing label(method, text = nil, options = {}, &block)
[22:33:20] dopie: with this
[22:33:21] dopie: super(method, text.html_safe, options, &block)
[22:34:04] Scriptonaut_: has joined #RubyOnRails
[22:35:14] smathy: dopie, go to http://ruby-doc.com/docs/ProgrammingRuby/ and read the "Classes, Objects, and Variables" chapter.
[22:35:33] dopie: thank you
[22:36:01] tubbo`: dopie: it says it's "1.9" but the semantics of super haven't changed since at least then so it's up-to-date docs
[22:37:02] dlt__: has joined #RubyOnRails
[22:39:30] ylluminarious: has joined #RubyOnRails
[22:40:23] Scriptonaut_: has left #RubyOnRails: ()
[22:40:59] Ropeney: has joined #RubyOnRails
[22:43:43] k4nd4lf: has joined #RubyOnRails
[22:43:55] dopie: so MyFormBuilder is a subclass of ActionView::Helpers::FormBuilder and ActionView::Helpers::FormBuilder is a super class of MyFormBuilder
[22:44:09] smathy: tubbo`, it says it's 1.9?
[22:44:14] workmad3: has joined #RubyOnRails
[22:44:26] smathy: dopie, yes.
[22:44:37] tubbo`: smathy: "This book documents Version 1.6 of Ruby, which was released in September 2000." actually ;)
[22:44:43] jeanlinux: has joined #RubyOnRails
[22:45:06] smathy: dopie, and just for completeness, other people also call super classes "base classes" and subclasses "derived classes"
[22:45:39] tubbo`: suuuuuuperclaaaaaaasss
[22:45:58] tubbo`: can leap tall data structures in a single bound
[22:46:15] smathy: I'd never noticed that.
[22:49:02] arBmind: has joined #RubyOnRails
[22:50:19] jfarmer: has joined #RubyOnRails
[22:51:23] gniquil: has joined #RubyOnRails
[22:52:16] adavia: any suggestion to get a list of country - states for seeding my db
[22:57:35] celly: has joined #RubyOnRails
[22:58:11] dopie: smathy, so super(method, text.html_safe, options, &block) is calling ActionView::Helpers::FormBuilder label and then adding/replacing text = nil which is the default value with text.html_safe which if there are errors than the text with html will show
[22:59:10] danman: has joined #RubyOnRails
[23:00:19] michael_mbp: has joined #RubyOnRails
[23:02:00] jenrzzz: has joined #RubyOnRails
[23:06:47] rickmasta: has joined #RubyOnRails
[23:07:34] tenderlove: has joined #RubyOnRails
[23:07:37] mwlang: I thought the arel includes caused tables to be joined, but a scope like this: scope :extra, -> { includes(:office, :position, :practices) } and a query like this Attorney.extra.active (in which I look for attorneys in the active practices leads to Unknown column 'practices.active' in 'where clause' If I change ???includes??? to ???joins??? it works, but I get multiple of the same attorney
[23:08:21] celly: good afternoon everyone
[23:09:23] celly: was hoping i might be able to get some help with Omniauth-Facebook
[23:09:35] celly: i can't, for the life of me, get it to work.
[23:09:50] qejk: has joined #RubyOnRails
[23:10:37] celly: following the github wiki from: https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview , i'm getting an error that says, "wrong number of arguments (1 for 0)
[23:11:24] Radar: celly: Can you provide a stacktrace for that error please? gist.github.com
[23:11:32] celly: its calling the error on my OmniauthCallbacksController, on the line which states @user = User.from_omniauth(request.env["omniauth.auth"])
[23:12:39] neanderslob: has joined #RubyOnRails
[23:13:53] celly: @Radar: as soon as i figure out how to do that, i wil
[23:14:03] dopie: so MyFormBuilder is a subclass of ActionView::Helpers::FormBuilder and ActionView::Helpers::FormBuilder is a super class of MyFormBuilder and Object is the superclass of FormBuilder
[23:14:05] Radar: celly: Or even a screenshot of the page that the error is on.
[23:14:14] paulcsmith: has joined #RubyOnRails
[23:14:19] mwlang: hmmm???nevermind that active = true is coming from somewhere else entirely. making the active scope an empty lambda presents the exact same error.
[23:14:27] drale2k: has joined #RubyOnRails
[23:16:20] Radar: celly: my attention span is only so long :P
[23:16:23] celly: nots ure if this is it, but
[23:16:24] celly: https://gist.github.com/msands/6fef8b81f746afb18adf
[23:16:27] celly: lol, my apologies
[23:17:39] celly: social network authentication seems to be the one thing i can never get with these rails projects
[23:18:49] celly: @Radar: was that gist what you were hoping to see?
[23:19:15] Radar: Yup, that's good. Can you show us the code from OmniauthCallbacksController too please?
[23:19:40] mwlang: Is there any way to inspect the arel constructs before a query is issued?
[23:19:55] rhizome: .to_sql? i dunno
[23:19:59] Radar: mwlang: why
[23:20:09] djbkd: has joined #RubyOnRails
[23:20:22] rhizome: "inspect the arel constructs" is some spock shit
[23:20:24] Radar: .arel will give you something, but I have no idea if that's the something that you want
[23:20:28] Radar: rhizome: hahaha
[23:20:30] mwlang: Radar: I???m trying to figure out where ???practices.active??? is coming from.
[23:20:41] Radar: mwlang: default_scope?
[23:20:48] rhizome: that's my guess
[23:21:04] mwlang: no default scope
[23:21:16] Radar: Steps to reproduce in a new app plzkthx
[23:21:19] celly: https://gist.github.com/msands/e2bed813fd16c4f9b145
[23:21:27] celly: i've also gone ahead and added my code from user.rb
[23:21:31] celly: to that gist
[23:21:32] startupality: has joined #RubyOnRails
[23:21:36] Radar: celly: https://gist.github.com/msands/e2bed813fd16c4f9b145#file-user-rb-L32-L38
[23:21:41] Radar: celly: that method is defined as not taking any arguments
[23:21:54] Radar: I think that should be defined as self.from_omniauth(auth)
[23:22:01] dc1: has joined #RubyOnRails
[23:22:04] Radar: Because in the controller you're passing an object through
[23:23:32] celly: that makes sense....
[23:23:54] celly: i just changed it to that, but my flash message is now saying that i need to confirm my email address before continuing
[23:24:43] celly: which doesn't make sense because i thought that the FB authentication would pull the email from FB itself
[23:24:51] Radar: Yup, that might be because you're not confirming the user explicitly herE: https://gist.github.com/msands/e2bed813fd16c4f9b145#file-user-rb-L32-L38
[23:24:57] Radar: and you have the confirmable from devise enabled
[23:25:05] celly: AAHHHHH!!!!
[23:25:05] Radar: You can call user.confirm! after user.username= there iirc
[23:25:26] celly: ok, i'll give that a shot
[23:25:40] NattyDread: has joined #RubyOnRails
[23:25:57] NattyDread: It's when he football. Nothing time! It sucks ten reader, hold me it's what you spray than reincarnation
[23:26:01] NattyDread: voter ever shoo woah!
[23:26:05] NattyDread: salt lets thing time. When the distrations portray afternoons.
[23:26:09] NattyDread: Juni Jonn Joans don't believe this stupid football game, it's a futball games, uh, I can't water they lord, whatch.
[23:26:13] NattyDread: Any fuckin the sucks, and have a bad season and football or long Saturday after game. It's a lot sooner i guess.
[23:26:17] NattyDread: Juni Jonn Joans don't just apparen't believe in most people arently dosent give a soccer game in most of the made. With more runna ma naes.
[23:26:21] NattyDread: It's a football is who you keep you fucker game, it's a soccer game. Nothing but football. With more teams to swim, see this puddin. Nothing day! Any fuckin gay!
[23:26:25] NattyDread: Nothing time. It sucks texting voter everything but football game! It's a football is on television....trump pu pup motion
[23:26:25] celly: walking through what you said, it makes sense, considering that the app is sending a confirmation email to the email that you sign up with, but if you're signing up via FB, its not going to be possible to send a confirmation email to that registered email
[23:26:29] NattyDread: anyway culture those and voter with the disappointed and than reincarnations of dollars and have a soccer games, and have many valuable carbonation
[23:26:33] NattyDread: votes on election or something time! It is what football. After starting something and fuckers, Cornfucking time bubbles form more rapidly...would go bored, makes me, it's how you keep in his good. Except when the butthole. It's who have made. It is college football is the cares about your ass, and ritter game it's a fuckin gay!
[23:26:37] NattyDread: Nothinks christians and have made. Circle contribution
[23:26:41] NattyDread: anyway culture of the worse this this puddin. yeah! Fredder. The worst they lose and Latinos what you are distrations to swim, see this stupid footbal game! The one nothing characterizations port events one the Lost pushing but football makes me it's a vegetable contributions of the Lost of our it, damn. You'd better with your left hand, pour it, damn. Pudder royer coyer boyer my eyes it
[23:26:42] celly: i could be completely wrong in my assessment, though
[23:26:42] NattyDread: would've been a great pass if Brady put somethinks christians don't believe the disappointed and you take with watching on television. yeah!
[23:26:45] NattyDread: We are billions translate picture teams to clean out football game.
[23:26:49] NattyDread: Football game. It's when the Lost doo! Last of the say oh my eye queue one of the football game it's a football game, so many Mexican American Americans and your but a lynx game. Pudder. Buck cornbuck, doo doo! Last of the to swim, see that a groups are distration but a group of the Jaguars, Cornbuckers, College football player. The one in registration is who have a bad season and use you
[23:26:50] NattyDread: are distration
[23:26:53] NattyDread: anyway culture the Jaguars, Cornbuck, doo! Last of they go boyer! Brucesht! The worst thing day
[23:26:57] NattyDread: There. Proof. It sucks texting but are distration
[23:27:01] NattyDread: votes about football and other, rears. It sucks texting comprehensive a bad season and have a soccer game. With the Lost root doot doo dee do notch, and pooping.
[23:27:05] NattyDread: Last of they go boyer football. When I can't believe the same, always texting next to the Rams to the cat blight shoo woah! Fredder. Buck buck.
[23:27:09] NattyDread: Juni Jonn Joans don't watching next to clean out this stupid football game. When August pushing butthole. Proof. It's a fuckin gay!
[23:27:13] NattyDread: Nothinks christians and other, reader, the Rams is good. Except when August pushing characterization.
[23:27:25] NattyDread: that's a fucking next to voter ettered. When August apparently dosent give programs is one thing on election.
[23:27:25] NattyDread: It's who your right hand other ever made so many valuable spray after the many valuable sprayers my eyes it would go brucesht, boyer. The one in his puddin. College football and other events from Mexico. We doo doo.
[23:27:25] NattyDread: day! Every fuckin gay!
[23:27:27] helpa: Radar: you have been summoned by bricker
[23:27:29] NattyDread: Nothinks christians and have many valuable carbonation
[23:27:33] NattyDread: anyway culture those awey! Every fuckers, Cornfucking people aren't watching on television.
[23:27:37] NattyDread: It's a shit about football. After etter stake with watcha programs will lose awey! Any fucking on television is college football. Nothing time! It success of brucesht, boyer! Brucesht! The Rams will than registressed by recent remarks about football game. It's a footbal game. I'm swearing. Most of they lord, what aspect. Fredder. and fuckin time bubbles form more runna ma naes.
[23:27:41] NattyDread: Juni Jonn Joans don't watcha prove! It's who have many Mexico. We doo.
[23:27:42] Radar: +q NattyDread!*@*
[23:27:44] Radar: Shut. Up.
[23:27:51] Radar: ta bricker
[23:27:52] sbhatore: has joined #RubyOnRails
[23:28:02] Radar: +b *!*@110.76.147.33
[23:28:03] celly: @Radar: were you able to see anything that i posted?
[23:28:05] Radar: Radar kicked NattyDread: thanks
[23:28:14] Radar: celly: I didn't notice you said anything. Remember to include my name in messages.
[23:28:29] celly: i'm still learning how to IRC properly, lol
[23:28:45] celly: do i just put Radar at the beginning of my message?
[23:29:10] Radar: bricker: Weird. Usually nickserv authentication blocks assholes like that. That one was authenticated.
[23:29:19] celly: Radar: walking through what you said, it makes sense, considering that the app is sending a confirmation email to the email that you sign up with, but if you're signing up via FB, its not going to be possible to send a confirmation email to that registered email
[23:29:40] mwlang: Maybe I???m missing something in these scopes, but I don???t see where ???practice.active??? is coming from. Here???s a gist of the relevant code: https://gist.github.com/mwlang/3be87b05f1aa08f4a515
[23:30:25] mikecmpbll: by the way that nonsensical text seems like something generated by a deep learning algorithm
[23:30:26] nettoweb: has joined #RubyOnRails
[23:30:54] Radar: celly: I think putting user.confirm! there where I said it should go will stop that confirmation email from going out.
[23:31:47] celly: Radar: yeah, i'm working through the proper way to do that. i just did user.confirm! at the end of that line, but that didn't work, so i'm going to continue searching on the correct/rails way to do so
[23:32:03] celly: Radar: i was just wondering if my line of thinking was correct based on what you were saying
[23:32:10] celly: i'm still very new to this Rails development
[23:32:24] Radar: it looks like it's correct to me :)
[23:32:40] mwlang: reduced the initial query down to just ???Attorney.extra.paginate(:page => params[:page], :per_page => 50)??? and it still bombs, but as soon as I remove the extra scope, it works.
[23:32:54] celly: thanks. i'm trying to actually understand why things are done rather than just doing what people say i should do...
[23:33:02] Radar: celly: wise move :)
[23:33:06] mwlang: Radar: would default_scope from joined models come into play?
[23:33:12] Radar: mwlang: yes
[23:33:30] Radar: It's not default_scope_except_when_joined
[23:35:05] celly: Radar: :(. no dice. i swear, social network authentication will be the death of me
[23:35:38] Radar: celly: what's happening this time?
[23:35:41] mwlang: Radar: meh, doesn???t matter, just grepped all the models and there???s no ???default_scope??? anywhere unless the paginator is tacking one on.
[23:35:49] Radar: mwlang: No idea, sorry.
[23:36:06] mwlang: Radar: that makes two.
[23:36:14] celly: Radar: same thing. same flash message. "You have to confirm your email address before continuing"
[23:36:33] moeabdol: has joined #RubyOnRails
[23:36:37] celly: maybe i need it before the if statement?
[23:36:40] mwlang: hence, back to my question???any way to spit out the arel components to see if I can spot where it gets injected?
[23:37:07] celly: nope, definitely not that
[23:37:11] Radar: mwlang: .arel
[23:37:18] baweaver: has joined #RubyOnRails
[23:37:20] Radar: mwlang: But that might not give you the answer you see
[23:37:57] chouhoulis: has joined #RubyOnRails
[23:38:25] blackhuey: has joined #RubyOnRails
[23:40:03] mwlang: Radar: maybe not, but I gotta dig deeper since the usual suspects aren???t surfacing anything obvious.
[23:40:35] mwlang: an arel.explain sure would be nice. :-)
[23:41:21] quazimodo: has joined #RubyOnRails
[23:42:03] thmsmtylr: has joined #RubyOnRails
[23:42:06] artto_: has joined #RubyOnRails
[23:44:24] duncannz: has joined #RubyOnRails
[23:46:55] FernandoBasso: has joined #RubyOnRails
[23:48:12] momomomomo_: has joined #RubyOnRails
[23:48:51] nettoweb: has joined #RubyOnRails
[23:48:51] hanss: has joined #RubyOnRails
[23:48:56] RegulationD: has joined #RubyOnRails
[23:49:28] bullcitydev: has joined #RubyOnRails
[23:51:42] jeramy_s: has joined #RubyOnRails
[23:52:12] kinduff: has joined #RubyOnRails
[23:52:12] kinduff: has joined #RubyOnRails
[23:53:24] chintanparikh1: has joined #RubyOnRails
[23:54:31] jtdoncas: has joined #RubyOnRails
[23:56:03] mwlang: Radar: found it in the has_many clause: has_many :practices, -> { where(active: true) }, :through => :attorney_practice_links
[23:56:11] Radar: there you go :)
[23:57:33] ALVxRIO: has joined #RubyOnRails
[23:59:37] mwlang: The odd thing is this query that???s affected seems to be a ???gathering sql??? and not the main query ??? makes me think its an underlying bug in Arel since It???s not selecting from the attorneys table??? ???SELECT `attorney_practice_links`.* FROM `attorney_practice_links` WHERE `practices`.`active` = 1 AND `attorney_practice_links`.`attorney_id` IN (740, 741, ??????