« Back to channel list

#RubyOnRails - 20 June 2015

« Back 1 day Forward 1 day »
[00:01:07] baweaver: has joined #RubyOnRails
[00:04:24] s2013: has joined #RubyOnRails
[00:05:29] simplyianm: has joined #RubyOnRails
[00:10:05] baron: has joined #RubyOnRails
[00:10:17] workmad3: has joined #RubyOnRails
[00:11:54] pragmatism: has joined #RubyOnRails
[00:15:12] baweaver: has joined #RubyOnRails
[00:18:45] smathy: A Photo class that accepts_nested_attributes_for :photo - now *THAT'S* what I call nested
[00:21:43] skj3gg: has joined #RubyOnRails
[00:26:15] Arnie25: has joined #RubyOnRails
[00:26:53] hazelux: has joined #RubyOnRails
[00:27:03] rickmasta: has joined #RubyOnRails
[00:28:36] markalanevans: has joined #RubyOnRails
[00:28:52] simplyianm: has joined #RubyOnRails
[00:30:45] robustus|Off: has joined #RubyOnRails
[00:31:38] ProLoser: has joined #RubyOnRails
[00:39:00] yaw: has joined #RubyOnRails
[00:39:10] DCio: has joined #RubyOnRails
[00:39:15] pontiki: has joined #RubyOnRails
[00:39:29] qsun_: has joined #RubyOnRails
[00:40:25] DCio: Hey friends! Im making a payment processing system for a subscription based service, and i need the sign up page to wait until it receives the webhook from stripe to confirm that they have paid for their subscription. Is there a way i can make a page say "payment processing" until it recieves the webhook or times out?
[00:43:29] fryguy: DCio: redirect them to another page, do polling in the background, or use websockets
[00:43:55] DCio: fryguy: what is polling?
[00:44:08] fryguy: DCio: make a request to the server every few seconds asking "are you done?"
[00:45:28] DCio: fryguy: Ah. So I think that im probably going to redirect them to a "payment processing page" until the webhook comes in, but im not sure how i can get the webhook to communicate with the controller for that page
[00:46:11] fryguy: the webhook should communicate with a different controller
[00:46:28] farkerhaiku: has joined #RubyOnRails
[00:49:02] DCio: how can controllers communicate with eachother? never done that before
[00:50:44] fryguy: they don't
[00:50:52] fryguy: you poll from the client
[00:50:58] fryguy: if you want the client to redirect
[00:51:46] ProLoser: has joined #RubyOnRails
[00:51:55] ProLoser: has joined #RubyOnRails
[00:51:59] Coldblackice: has joined #RubyOnRails
[00:52:30] ProLoser: Anyone interested in doing some consulting? We have a an application that's running extremely slow and we'd like someone to do an audit and perhaps implement a cleanup
[00:53:21] ProLoser: Refreshing the page on local dev env sometimes takes a minute or two. We're removing jbuilder, we're cleaning up queries, we're downgrading the view layer (we use angular on the frontend) but we're still seeing 20+seconds in the ruby code before queries even get fired
[00:53:30] ndrei: has joined #RubyOnRails
[00:53:42] fryguy: ehh, you probably couldn't afford me
[00:55:11] fgo: has joined #RubyOnRails
[00:56:03] eggoez: has joined #RubyOnRails
[00:56:28] ProLoser: i'd also need to see evidence of your skill
[00:56:38] jfarmer: DCio Stripe's server and your current page won't be communicating directly
[00:57:21] jfarmer: Stripe will send the webhook to your app, which will update the state of the transaction internally. Elsewhere, there's an endpoint on your app that answers the question "What's the state of transaction X?"
[00:57:42] jfarmer: Your "Please wait..." page will ping that endpoint until it returns whatever status you care about.
[00:58:15] RegulationD: has joined #RubyOnRails
[00:58:19] jfarmer: So, three endpoints in your app: one to display the "Please wait..." page, one to handle the request from Stripe, and one for your page to poll
[00:58:59] Creede: has joined #RubyOnRails
[00:59:05] DCio: makes sense now!
[01:00:12] dopie: has joined #RubyOnRails
[01:00:15] Creede: ah, it works :)
[01:12:39] Cache_Money: For anyone who takes recurring monthly payments in their Rails app.. what do you use to process payments?
[01:13:07] Cache_Money: It looks like activemerchant is the most popular based on a few Google searches
[01:14:43] farkerhaiku: has left #RubyOnRails: ()
[01:15:43] tejasmanohar: has joined #RubyOnRails
[01:16:26] debajit: How does url_for work with ActiveRecord? I know that it looks for to_param --- but I can't seem to find where that code is or any documentation in that area.
[01:16:51] gambl0re: has joined #RubyOnRails
[01:17:11] hoodow: Cache_Money: Stripe.
[01:18:54] jfarmer: debajit Generally if you google "rails <whatever method>" you'll get the official docs, including links to source code.
[01:19:21] Cache_Money: hoodow: Nice. Are the payments typically one time or recurring?
[01:19:37] jfarmer: (Oftentimes old docs, but there will be links to the latest versions)
[01:19:50] jfarmer: debajit In this case http://apidock.com/rails/ActionView/Helpers/UrlHelper/url_for
[01:20:16] hoodow: Cache_Money: They can handle one time payments and subscriptions/recurring
[01:21:05] jfarmer: Er, http://apidock.com/rails/ActionDispatch/Routing/UrlFor/url_for rather
[01:21:21] Cache_Money: hoodow: cool. It seems like Stripe is everywhere, I'll look into incorporating that into my app. Thanks
[01:22:27] Cache_Money: Has anyone ever done a comparison of costs for hosting a Rails app on various providers? e.g. Heroku vs. AWS vs. DigitalOcean etc.
[01:23:57] centrx: The pricing pages are right there
[01:24:25] centrx: There aren't Rails-specific costs. You may have a big app or a small app either wya.
[01:26:31] yoongkang: has joined #RubyOnRails
[01:27:13] tejasmanohar: has joined #RubyOnRails
[01:27:21] Cache_Money: centrx: I'm thinking of a rather small app (not large enterprise app). It's hard to get a sense of the Heroku costs because they charge for various Ad-ons and what not. I was thinking of "here's a simple bookstore app, we've hosted it on each provider and this is what it costs..."
[01:28:02] centrx: DO provides less expensive options than AWS
[01:28:14] centrx: Heroku I don't know
[01:29:20] tejasmanohar: is there an easy rails helper or gem that provides the functoinality for ajax forms
[01:29:23] tejasmanohar: like without writing js
[01:29:58] debajit: jfarmer: Thanks! In my case, it did not show that particular link
[01:30:08] debajit: jfarmer: google search i mean
[01:30:49] tejasmanohar: or like flash some message on form submission
[01:30:52] hazelux: hey guys. I'm having trouble importing books from Amazon due to a has_many through relationship. I'm getting "Authorships book can't be blank". https://gist.github.com/maxcodes/7c752c3c68b5b39faa80
[01:30:53] tejasmanohar: instead of taking you to anothe rpage
[01:30:54] jfarmer: debajit The first result for "rails url_for" was the documentation for url_for in Rails 3.2
[01:31:19] jfarmer: debajit And at the very top of that page there's a big-ass box that says, "This method doesn't exist in the latest version of Rails. Here are similar methods:" with a link to that page (among other things)
[01:31:26] yaw: has joined #RubyOnRails
[01:31:28] Cache_Money: centrx: I've used DO but never AWS. I have a client that wants a pretty simply SaaS app built. I want to be able to build it then not have to do any maintenance and figured I would look into AWS since they have RDS (which auto back ups DB instances). I feel like I'd have to manually back them up on DO and have to help restore if something went wrong..
[01:31:51] coderhs: has joined #RubyOnRails
[01:31:59] debajit: jfarmer: I see. I went to this one instead http://apidock.com/rails/ActionController/Base/url_for
[01:32:30] jfarmer: debajit And at the very top of that page is the list of links I described (http://cl.ly/image/1M0i1d1F3K3J)
[01:32:33] centrx: Cache_Money, DO has automatic backups, but it backs up the whole instance, not just the DB
[01:32:43] centrx: Cache_Money, AWS definitely has more features like this
[01:33:23] Cache_Money: centrx: i'm also leaning towards AWS in case the app actually does get popular and then it'd be easy to scale
[01:33:25] jfarmer: There are multiple methods with that name, so you'd want to look at each page and see which one corresponded to the method you're interested in
[01:33:56] beauby: has joined #RubyOnRails
[01:35:03] Fire-Dragon-DoL: has joined #RubyOnRails
[01:36:25] choke: has joined #RubyOnRails
[01:37:04] scottmatheina: has joined #RubyOnRails
[01:37:22] dopie: has joined #RubyOnRails
[01:37:46] Fire-Dragon-DoL: I'm using actionmailer without rails (in a separated ruby process), when I run any test which sends an email, even if ActionMailer::Base.delivery_method = :test, every single email-related test takes 2 seconds to run. Anyone know why? ActionMailer::Base.deliveries is not empty (has one email)
[01:38:20] thmsmtylr: has joined #RubyOnRails
[01:40:46] fryguy: Fire-Dragon-DoL: what does profiler say?
[01:41:04] Fire-Dragon-DoL: fryguy: you mean rspec --profile ?
[01:41:30] fryguy: or stackprof, or any of the other ruby profiling tools available'
[01:42:10] Fire-Dragon-DoL: let's see, I currently run only Benchmark class
[01:45:38] one_zero: has joined #RubyOnRails
[01:47:38] skj3gg: has joined #RubyOnRails
[01:48:53] Fire-Dragon-DoL: fryguy: https://gist.github.com/Fire-Dragon-DoL/ebe0510b4ae7e79deeb7 this is the report
[01:49:08] Fire-Dragon-DoL: mhh interesting
[01:49:14] Fire-Dragon-DoL: looks like it's httparty creating issues
[01:49:27] Fire-Dragon-DoL: I wonder why, considering I stub stuff with webmock
[01:51:38] charliesome: has joined #RubyOnRails
[01:51:39] jfarmer: Fire-Dragon-DoL What is your mailer doing that it's interacting with HTTParty?
[01:52:04] jfarmer: There's no part of Rails that would use it; has to be something in your own code.
[01:52:23] Fire-Dragon-DoL: jfarmer: my code is using httparty, but it's separated from the mailer itself
[01:52:29] ivanskie: has joined #RubyOnRails
[01:52:42] Fire-Dragon-DoL: jfarmer: I emulate an api login (use httparty to perform the login), fetch some data THEN send email
[01:52:49] Fire-Dragon-DoL: but the mailer itself is really empty
[01:53:18] jfarmer: Fire-Dragon-DoL Are you expecting your test to engage w/ HTTParty at all or no?
[01:53:28] eoy: has joined #RubyOnRails
[01:54:00] Fire-Dragon-DoL: jfarmer: yes they do, but if I comment out only the email sending part (so httparty is STILL used), I don't have the time problem, that's why I'm concerned
[01:54:07] Fire-Dragon-DoL: let me show you some code
[01:54:11] sevenseacat: has joined #RubyOnRails
[01:56:10] drupald: has joined #RubyOnRails
[01:59:15] merryfett: has joined #RubyOnRails
[02:00:19] Fire-Dragon-DoL: jfarmer: https://gist.github.com/Fire-Dragon-DoL/6bb498bb4622568b98a2 please note that ResultCode is basically an openstruct more or less, it's only used to transform it into json
[02:00:51] jfarmer: And the offending test?
[02:02:00] Fire-Dragon-DoL: jfarmer: updated: https://gist.github.com/Fire-Dragon-DoL/6bb498bb4622568b98a2
[02:02:11] Fire-Dragon-DoL: although, it hapepns with any test where I "fake" to send the email
[02:02:30] jfarmer: What is the value of +subject+?
[02:03:33] Fire-Dragon-DoL: jfarmer: it's an instance of the mailer_worker class (didn't put it entirely)
[02:03:42] Fire-Dragon-DoL: just discovered something interesting, give me one moment
[02:04:32] Fire-Dragon-DoL: jfarmer: looks like I'm wrong, commenting out the deliverer still has test duration of 2 seconds, which means I was wrong, it's not actionmailer
[02:05:35] jfarmer: Fire-Dragon-DoL When you say "comment out the deliverer", what do you mean exactly?
[02:06:18] jfarmer: Commenting out this line? https://gist.github.com/Fire-Dragon-DoL/6bb498bb4622568b98a2#file-mailer_worker-rb-L18
[02:06:37] Fire-Dragon-DoL: I meant the mailer: In SqsSenderRawDeliverer I commented # email = SqsMailer.raw_custom(options); # email.deliver
[02:06:47] Fire-Dragon-DoL: so basically the deliverer is doing NOTHING at all
[02:07:06] Fire-Dragon-DoL: it's definitely an issue with httparty
[02:07:23] jfarmer: I would remove all the lines from perform
[02:07:31] jfarmer: and re-add them one by one until you see the slow-down
[02:07:53] jfarmer: MailerWorker#perform that is
[02:08:17] jfarmer: Before you do, make a bet
[02:08:22] jfarmer: about which line you think it is
[02:09:07] jfarmer: For example, I'm assuming +sqs+ is an instance of some ActiveRecord model.
[02:09:15] jfarmer: Are there any on-delete callbacks?
[02:09:29] beauby: has joined #RubyOnRails
[02:09:46] RegulationD: has joined #RubyOnRails
[02:09:46] Kneecaps: has joined #RubyOnRails
[02:10:00] Fire-Dragon-DoL: jfarmer: no I'm "out" of rails (it's an external process that receives messages from an SQS queue), so it's mostly plain ruby object
[02:10:14] Fire-Dragon-DoL: if I failed, it's entirely my fault :p
[02:10:20] jfarmer: Well, wait.
[02:10:27] Fire-Dragon-DoL: result_code = send_email_message(email_message) <-- this is the offending line
[02:10:53] Fire-Dragon-DoL: jfarmer: please kill me
[02:10:55] jfarmer: So if you comment out that line and none of the others, you see no slowdown?
[02:11:08] Fire-Dragon-DoL: jfarmer: deliverer.send_message.tap { Kernel.sleep MESSAGE_SLEEP }
[02:11:15] jfarmer: I was going to ask about that.
[02:11:19] DoctorMonocular: has joined #RubyOnRails
[02:11:25] jfarmer: But you said you had commented that line out and still saw the slowdown
[02:11:34] Fire-Dragon-DoL: I can't believe I lost an hour on that lol
[02:11:36] simplyianm: has joined #RubyOnRails
[02:11:50] Fire-Dragon-DoL: I have commented, I might have not pressed CTRL+S I believe at this point jfarmer
[02:11:56] jfarmer: Well, notice what I did, though.
[02:12:00] dopie: has joined #RubyOnRails
[02:12:14] jfarmer: It's like "I have no idea what's going on, so I must be fundamentally confused about what this code is doing>"
[02:12:31] jfarmer: And then go through line by line without much thought for what each line does in order to isolate the problem, at least.
[02:12:48] jfarmer: If you had done that as soon as you had that "WTF??!?!?" feeling, you would've solved it in ~5 minutes.
[02:13:34] jfarmer: So take the "WTF?!?!?" feeling as a sign that your picture of the world is fundamentally flawed in some way you can't see and avoid saying/thinking things to yourself like, "But I'm _SURE_ that doesn't do X" or "But I _KNOW_ I tested Y."
[02:13:52] jfarmer: "I _CHECKED_ the code for typos and didn't find any. It's definitely a typo."
[02:14:03] jfarmer: Yes, that, or you failed to notice the typo (for example).
[02:14:21] jfarmer: As a member of a similar category of errors that I see folks burn immense amounts of time on.
[02:14:28] Forgetful_Lion: has joined #RubyOnRails
[02:14:42] jfarmer: Your brain is a little machine that wants to make sense of the world and it's all too happy to delude itself in order to make that happen. Haha.
[02:14:56] jfarmer: "This doesn't make sense! I'll just pretend I saw something else."
[02:15:18] jfarmer: stupid brains
[02:15:38] Fire-Dragon-DoL: jfarmer: You are definitely right
[02:16:20] jfarmer: Fire-Dragon-DoL Copyeditors have all kinds of tricks for this.
[02:16:20] tejasmanohar: how do i just turn off all database connections in a rals app
[02:16:37] Fire-Dragon-DoL: I'm moving the sleep to a separate method call though, so I can test the method call (must ensure sleep is called) but I want to ensure sleep is not run while testing
[02:16:37] jfarmer: Fire-Dragon-DoL A common trick to check for typos is to read a sentence backwards.
[02:16:43] tejasmanohar: im using rails w/o a database now
[02:16:45] tejasmanohar: in this small project
[02:16:46] Fire-Dragon-DoL: jfarmer: yeah I use that trick too
[02:16:50] tejasmanohar: and dont want it to initiate a connection etc
[02:16:59] tejasmanohar: it was originalylgenerated with --database=postgresql
[02:17:03] jfarmer: Yeah, same thing. Your brain wants to "fill in the holes," but you can go out of your way to make it more difficult.
[02:17:08] Fire-Dragon-DoL: tejasmanohar: the only way is to remove activerecord (you can do that)
[02:17:19] jfarmer: Fire-Dragon-DoL With code, I sometimes rename variables to nonsense names.
[02:17:29] Kneecaps: has left #RubyOnRails: ("Leaving...")
[02:17:38] Fire-Dragon-DoL: jfarmer: uhm, sounds like an interesting strategy
[02:17:40] jfarmer: So I'm forced to look at the code as the Ruby interpreter sees it and not as my brain sees it.
[02:18:18] jfarmer: I don't mean permanently, only as an practice to help me look at the code a different way.
[02:18:22] jfarmer: a practice*
[02:18:27] Fire-Dragon-DoL: jfarmer: yes I imagined that
[02:18:38] Fire-Dragon-DoL: won't be a good idea to keep "stfuvar" as a name
[02:18:44] tejasmanohar: oh you have to require everything u want manually then
[02:18:48] tejasmanohar: but i dont know what all i want :P
[02:21:22] tejasmanohar: raise "Could not load database configuration. No such file - #{paths["config/database"].instance_variable_get(:@paths)}"
[02:21:33] tejasmanohar: is there any way to turn this error off?
[02:21:57] Fire-Dragon-DoL: tejasmanohar: I believe not, but you have to require only like 6 files in total (5 if you remove activerecord)
[02:22:12] tejasmanohar: Fire-Dragon-DoL: can i find a list somewhere
[02:22:47] Fire-Dragon-DoL: jfarmer: I had allow(Kernel).to receive(:sleep).with(described_class::MESSAGE_SLEEP), in before(:each), I wonder why it never worked (although the stub itself worked, I've expected Kernel to have_received sleep)
[02:22:48] comm64x: has joined #RubyOnRails
[02:22:59] Fire-Dragon-DoL: tejasmanohar: mhh yes, one moment
[02:23:50] Fire-Dragon-DoL: tejasmanohar: https://github.com/rails/rails/blob/master/railties/lib/rails/all.rb
[02:24:16] crevax_: has joined #RubyOnRails
[02:24:17] tejasmanohar: hm looks like some of those depend on AR
[02:24:22] Fire-Dragon-DoL: tejasmanohar: wait that's the railtie
[02:24:52] tejasmanohar: i think thats what i want
[02:24:57] Fire-Dragon-DoL: tejasmanohar: https://github.com/rails-api/rails-api here you can find the list (go down, search for config/application.rb)
[02:25:47] Fire-Dragon-DoL: tejasmanohar: mh? No, maybe activejob although I'm quite sure its backend can be configured not to use activerecord. I'm100% it can be configured
[02:26:35] tejasmanohar: woohoo got it
[02:26:41] tejasmanohar: require "action_controller/railtie" require "action_mailer/railtie" require "sprockets/railtie" require "rails/test_unit/railtie"
[02:27:42] comm64x: has left #RubyOnRails: ()
[02:28:10] comm64x: has joined #RubyOnRails
[02:28:15] comm64x: I have what might be a simple question. I have a website application with the navigation as a partial in a app/views/shared folder. The css changes the bgcolor of the menu link when you are on that page by giving the current page li a class=active. I want to find some way to change the li class depending on which is the current page.
[02:28:20] comm64x: I thought about a for loop but it's pseudocode right now
[02:28:33] comm64x: any ideas which may be better
[02:29:45] renews: has joined #RubyOnRails
[02:31:17] comm64x: I could do it in js but I'd like to see how ruby would do it
[02:31:49] Lightsword: has joined #RubyOnRails
[02:32:30] dopie: has joined #RubyOnRails
[02:33:43] lupine: you could case on params[:controller] or :action or whatever
[02:33:48] lupine: there might be a shiny helper for this somewhere
[02:34:07] guardianx: has joined #RubyOnRails
[02:36:10] simplyianm: has joined #RubyOnRails
[02:36:31] shinnya: has joined #RubyOnRails
[02:37:03] mtchllbr_: has joined #RubyOnRails
[02:37:32] comm64x: I was thinking of something like `for li in <#navigation> do if <path is current> <change class to active> else <change remove class active> end` thats pseudoishcode lol
[02:38:42] lupine: well, going back and changing an already-rendered bit of template is a pain
[02:38:54] lupine: better to render the right thing to start with
[02:39:19] cha1tanya: has joined #RubyOnRails
[02:39:29] comm64x: where would i put the code for case on params
[02:39:37] jfarmer: comm64x This is a good use-case for a view helper
[02:40:00] jgpawletko: has joined #RubyOnRails
[02:40:32] beauby: has joined #RubyOnRails
[02:40:39] jfarmer: You can use things like content_tag to programmatically generate the HTML, which will be easier / less awkward than embedded conditionals the view itself.
[02:40:59] jfarmer: Call it nav_item or nav_link or something
[02:41:00] tobobo: has joined #RubyOnRails
[02:41:31] jfarmer: Your partial would just have a bunch of calls like <%= nav_item(...) %>
[02:45:36] comm64x: can I put something like <%= nav_item(...) %> in a helper module, I know that probably sounds like a very newbie question but I've only seen that syntax in .erb files
[02:45:50] comm64x: I imagine I could since .erb is embedded ruby right?
[02:46:25] pontiki: comm64x: take a look at the link_to variants (link_to_if, link_to_unless)
[02:46:56] pontiki: they might not do exactly what you want, but they might give you some ideas
[02:47:09] duderonomy: has joined #RubyOnRails
[02:47:37] comm64x: pontiki: ok I will thanks
[02:47:54] comm64x: jfarmer: ty for your help as well, I just needed some place to start
[02:48:05] pontiki: you could do something similar with "nav_link_if..."
[02:48:10] Ropeney: has joined #RubyOnRails
[02:48:19] IRCFreenode: has joined #RubyOnRails
[02:48:26] sargas: has joined #RubyOnRails
[02:48:43] pontiki: or go wild :D
[02:48:44] sargas: has joined #RubyOnRails
[02:50:10] scottmatheina: has joined #RubyOnRails
[02:51:58] chipotle: has joined #RubyOnRails
[02:52:42] scottmatheina: has joined #RubyOnRails
[02:53:04] simplyianm: has joined #RubyOnRails
[02:53:18] El3ktra: has joined #RubyOnRails
[02:54:47] El3ktra: Good evening, I am trying to add a jqeury file to my ruby rails app. I have the file, it's loaded (verified using a console), however all the listeners that the jquery file sets up are not attached.
[02:55:02] El3ktra: If I copy/paste the code that assigns the listeners, then the application works just fine.
[02:57:46] IRCFreenode: has joined #RubyOnRails
[02:58:59] hazelux: can anyone help me out with this issue? has_many :through is biting me. Thanks guys! https://gist.github.com/maxcodes/7c752c3c68b5b39faa80
[03:00:35] Fire-Dragon-DoL: going to bed, good night ;)
[03:00:59] El3ktra: hm, figured my issue out. Rather then setting up the listerners in the js file, I setup the listeners in a function, then call that function at the bottom of the page. Is that how it is supposed to be done?
[03:03:44] cha1tanya: has joined #RubyOnRails
[03:04:37] guardianx: has joined #RubyOnRails
[03:08:55] guardianx: has joined #RubyOnRails
[03:09:41] AustinLMayes: has joined #RubyOnRails
[03:10:24] beauby: has joined #RubyOnRails
[03:12:04] guardianx: has joined #RubyOnRails
[03:14:16] braincrash: has joined #RubyOnRails
[03:14:48] comm64x: hey I got it!!! well, I didn't but there is an awesome gem called nav_lynx that does exactly what I'm looking for if anyone is interested
[03:14:57] comm64x: has left #RubyOnRails: ()
[03:16:28] twilling: has joined #RubyOnRails
[03:16:55] harly: has joined #RubyOnRails
[03:19:17] hd1: has joined #RubyOnRails
[03:20:54] hd1: rspec question... if I have two string variables in my model and foo2 should be longer than foo1, aside from a custom validator, is there a rails-y way to validate this?
[03:21:25] hd1: (right now, $PREVIOUS_ENGINEER has a bunch of custom validators
[03:22:46] michael_mbp: has joined #RubyOnRails
[03:23:30] simplyianm: has joined #RubyOnRails
[03:23:58] renews: has joined #RubyOnRails
[03:25:13] guardianx: has joined #RubyOnRails
[03:26:07] guardianx: has joined #RubyOnRails
[03:29:25] hazelux_: has joined #RubyOnRails
[03:30:02] Makorak: has joined #RubyOnRails
[03:30:15] jfarmer: has joined #RubyOnRails
[03:31:23] rhizome: kind of a weird rule, but there's nothing wrong with custom validators
[03:31:38] rhizome: not sure why you'd call them out
[03:32:38] Zamerick: has joined #RubyOnRails
[03:32:51] guardianx: has joined #RubyOnRails
[03:33:09] hd1: rhizome: def validates_column_not_null return not column.empty? end
[03:33:23] hd1: instead of validates_presence_of :column
[03:33:47] ProLoser: anyone interested in some paid consulting working helping me optimize my app and trying to figure out why it's response time is nearing 1 minute
[03:33:59] guardianx: has joined #RubyOnRails
[03:34:01] poincare101: has joined #RubyOnRails
[03:34:03] hd1: ProLoser: how much are you offering?
[03:34:12] ProLoser: what's your consulting rate
[03:34:22] ProLoser: it's for my company, not me as an individual
[03:34:28] hd1: depends on your budget
[03:34:40] ProLoser: our app has horrible response times even before it hits the DB so i'd like to have a consultant audit our code and help us optimize
[03:34:47] ProLoser: give me an hourly rat
[03:34:55] hd1: but I generally charge between $100 and $150 per hour
[03:35:02] ProLoser: it might be viable
[03:35:05] hd1: most of my clients are in financial services though
[03:35:09] ProLoser: i'd need evidence that you are 'teh shit'
[03:35:20] ProLoser: we have a fairly straightforwards application
[03:35:32] ProLoser: we just need to get some insight as to why our initial page refresh takes years
[03:35:51] hd1: what's the app?
[03:35:51] ProLoser: or would you in the interrum suggest some tools/solutions that would help us discover such insights ourselves?
[03:35:56] hd1: have you done any profiling?
[03:35:56] ProLoser: social network
[03:36:02] ProLoser: what sort of profiling?
[03:36:20] ProLoser: assume i'm a ruby noob who's an skilled in javascript and has a strong fundamental understanding of MVC arch
[03:36:24] Anakat: has joined #RubyOnRails
[03:36:26] ProLoser: but doesn't necessarily know ruby or ror
[03:36:45] hd1: profiling isn't ruby/ror, it's across platforms
[03:36:54] hd1: how do you know it takes a minute to respond?
[03:37:06] hd1: where is the bottleneck?
[03:37:11] hd1: is it in the database?
[03:37:14] hd1: rendering?
[03:37:17] hd1: network?
[03:37:24] ProLoser: well when i hit refresh i can sometimes see 1-2 minute reload times or i guess 20 seconds on a fresh start of the app
[03:37:35] hd1: you GUESS?
[03:37:40] ProLoser: but i don't start seeing SQL queries until 5-10 seconds into the refresh
[03:37:46] nikhgupta: has joined #RubyOnRails
[03:37:54] hd1: how much load are we talking about?
[03:37:56] ProLoser: it's just ridiculously slow to refresh the page on my local machine
[03:38:06] ProLoser: just local machine for now
[03:38:27] hd1: how many lines of code?
[03:38:35] ProLoser: i don't actually know
[03:38:39] ProLoser: i came into the company as a frontend dev
[03:38:51] ProLoser: i just know that these guys don't have a fundamental consultant-level understanding of ruby
[03:39:05] ProLoser: for example, i only recently discovered `.includes()`
[03:39:14] hd1: then pay me 5 hours worth of work and I'll start
[03:39:15] ProLoser: no one else was really using it, they were just doing model traversal
[03:39:42] ProLoser: without contract?
[03:40:04] harly: find someone that consults professionally. :)
[03:40:14] ProLoser: can anyone point me to some useful solutions i can use to introspect where the bottlenecks in my app's performance are?
[03:40:20] hd1: I just did
[03:40:26] hd1: find a bloody profiler
[03:40:31] harly: ProLoser just google rails profileing and have fun with it.
[03:40:43] hd1: get the metrics and present it
[03:40:46] hd1: in a report
[03:40:54] hd1: find your bottlenecks
[03:41:12] hd1: you really have no clue where to start or where you need help
[03:41:19] harly: if you want to get a consultant, hit up a local consultancy firm, or tech hirer. go to a local meet. if you want a remote worker, by all means try your luck here. but i'd be looking for someone that runs a business, has existing contract terms they can show you, and evidence of a client list.
[03:41:43] harly: hd1: he's said that. he's a front end developer, who has realised the local guys are a bit out of their depth.
[03:42:13] ProLoser: pretty much
[03:42:18] guardianx: has joined #RubyOnRails
[03:42:24] ProLoser: i was brought in as a fronttend lead and while i have full-stack experience, it's not with ruby
[03:42:30] poincare101: They can't run a profiler?
[03:42:34] ProLoser: i'm sick of pointing to code and asking the backend guys "why is this here" and they just shrug
[03:42:55] harly: well. i have full stack exp. and with a couple of hours and google, I'm pretty confident I could get basic profiling up and running on any modern framework that has profiling tools.
[03:43:18] harly: just google some rails profiling tools and start experimenting. It's fun. and you get paid! What's not to like. :)
[03:43:25] hd1: how's your test coverage?
[03:43:46] ProLoser: assume test coverage is negligable
[03:43:56] hd1: improve that
[03:44:08] hd1: it'll help you learn how things work
[03:44:15] ProLoser: the bottom line is i am pretty backed up with frontend work so it'd be really nice to have someone else come in and champion the backend work (at least until we can improve our response times)
[03:44:26] guardianx: has joined #RubyOnRails
[03:44:39] hd1: ACTION thinks he's offered to do your backend
[03:45:14] hd1: most of my backend work is in Java
[03:45:39] ProLoser: then you may not be the person to talk to
[03:46:06] hd1: and yet, you are talking to me, or rather, trying to get me to work for you for free
[03:46:35] theery: has joined #RubyOnRails
[03:46:38] wethu: has joined #RubyOnRails
[03:46:40] ProLoser: no, i'm talking to the channel, you just happne to be one of the select few responding
[03:47:13] harly: and the impression I got was he is happy to pay, but with a contract and evidence of consultancy skill :)
[03:47:26] hd1: and being someone with financial services experience, I do understand that my rates are probably out of your budget, so I'm willing to negotiate
[03:47:26] ProLoser: which doesn't seem unreasonable lol
[03:47:41] harly: no. i would call it bare minimum. a starting handshake.
[03:47:55] ProLoser: honestly we could look to hired.com or some other consultancy platform but i have a personal history with IRC in which i have come to have a respect and appreciation for the platform and thought i'd formally extend an invitation on here
[03:48:02] ProLoser: fair enough
[03:48:08] poincare101: ProLoser: please see pm.
[03:49:04] hd1: but if you aren't going to be up-front about what you can offer or answer my questions, which are pretty basic, IMO, then I really can't work with you
[03:49:15] hd1: ProLoser
[03:50:01] SteenJobs: has joined #RubyOnRails
[03:50:19] guardianx: has joined #RubyOnRails
[03:51:11] ProLoser: what questions?
[03:51:39] poincare101: hd1: he never said he wanted to work with you?
[03:51:58] harly: and he answered your "question" too.
[03:52:00] hd1: no, he seems to have ignored my questions
[03:52:05] harly: okie dokie.
[03:52:11] hd1: questionS
[03:52:32] hd1: one he did, the others, he shrugged and went about his merry way
[03:52:52] DoctorMonocular: has joined #RubyOnRails
[03:53:00] hd1: I asked him for a budget for the project, lines of code, whether he'd run a profiler, etc.
[03:53:27] hd1: ACTION has a bark that's worse than his bite
[03:54:25] hd1: for the first two, I received handwaving
[03:54:27] kallisti5: has left #RubyOnRails: ()
[03:54:50] hd1: the last, he said he didn't know
[03:54:58] cornerma1: has joined #RubyOnRails
[03:56:28] fgo: has joined #RubyOnRails
[03:57:00] harly: any rails4inaction authors here? Liking your book. :) *thumbs up*
[03:57:52] poincare101: has the action cable API actually been released or we still waiting to extract that from basecamp?
[03:58:54] RegulationD: has joined #RubyOnRails
[04:00:02] asheinfeld: has joined #RubyOnRails
[04:00:33] _blizzy_: hello. I'm using rails 4.2.0, and Paperclip. I am uploading pictures using AWS3, however, the image is returning missing, even though the image DOES upload to AWS3. https://gist.github.com/NotBlizzard/39d944c720d600842ea4
[04:00:54] harly: is there an alternative way to hot having to put -- require "rails_helper" -- at the top of each rspec file?
[04:02:30] tobobo: has joined #RubyOnRails
[04:03:35] poincare101: _blizzy_: where are you using the photo model from? pastie that part of the code
[04:03:50] _blizzy_: poincare101, you mean the controller?
[04:03:56] poincare101: _blizzy_: right.
[04:04:24] _blizzy_: ok. https://gist.github.com/NotBlizzard/7c68b67fa2eb781c5529
[04:05:15] poincare101: _blizzy_: is @photo.save not returning a truthy value
[04:05:46] _blizzy_: poincare101, it's returning a truthy value.
[04:06:16] merryfett: has joined #RubyOnRails
[04:07:05] poincare101: _blizzy_: have you set options for Paperclip
[04:07:21] _blizzy_: poincare101, yes.
[04:08:00] poincare101: _blizzy_: pastie those please.
[04:08:40] _blizzy_: https://gist.github.com/NotBlizzard/cd62682e09c4bd117557
[04:10:37] _blizzy_: it's the url that is returning wrong.
[04:10:41] _blizzy_: everything else is right.
[04:11:52] baweaver: has joined #RubyOnRails
[04:15:40] jfarmer: harly Why do you want to avoid that?
[04:16:48] braincra-: has joined #RubyOnRails
[04:17:11] harly: jfarmer: cos every file has it so far. i figured there'd be a config way. :)
[04:17:54] jfarmer: harly Why is that an issue, is what I'm asking?
[04:18:07] renews: has joined #RubyOnRails
[04:18:15] harly: why is any repetetive task an issue. it's no biggie. I just wondered.
[04:26:54] ramfjord: has joined #RubyOnRails
[04:27:15] shmambo: has joined #RubyOnRails
[04:28:03] sleungcy: has joined #RubyOnRails
[04:32:18] nikhgupt: has joined #RubyOnRails
[04:34:54] s2013: has joined #RubyOnRails
[04:35:13] DoctorMonocular: has joined #RubyOnRails
[04:36:30] tejasmanohar: has joined #RubyOnRails
[04:37:35] simplyianm: has joined #RubyOnRails
[04:41:18] ramfjord: has joined #RubyOnRails
[04:43:24] yfeldblum: has joined #RubyOnRails
[04:46:09] beneggett: has joined #RubyOnRails
[04:47:41] _blizzy_: has joined #RubyOnRails
[04:48:23] _blizzy_: so, for some reason, I'm using paperclip with rails, and, the file uploads to S3, but the url is as if I'm saving the file locally.
[04:49:31] _blizzy_: https://gist.github.com/NotBlizzard/11232671c8763360c595
[04:49:53] _blizzy_: the url should something like aws.amazonaws.com/phototitle.png
[04:50:10] _blizzy_: but the url is returning like RAILS_ROOT/public/photos
[04:58:17] fgo: has joined #RubyOnRails
[04:59:08] melonstorm: has joined #RubyOnRails
[04:59:08] melonstorm: has joined #RubyOnRails
[04:59:11] _djbkd: has joined #RubyOnRails
[05:00:26] ChoiKyuSang: has joined #RubyOnRails
[05:01:09] asheinfeld: has joined #RubyOnRails
[05:01:16] x-light: has joined #RubyOnRails
[05:02:29] ChoiKyuSang_: has joined #RubyOnRails
[05:03:55] michaeldeol: has joined #RubyOnRails
[05:05:07] fedexo: has joined #RubyOnRails
[05:06:36] cha1tanya: has joined #RubyOnRails
[05:06:41] recurrence: has joined #RubyOnRails
[05:07:52] teufelChiCoder: has joined #RubyOnRails
[05:12:20] renews: has joined #RubyOnRails
[05:14:10] iamse7en: has joined #RubyOnRails
[05:14:42] ChoiKyuSang_: has left #RubyOnRails: ()
[05:15:23] tejasmanohar: has joined #RubyOnRails
[05:15:50] tejasmanohar: https://github.com/tejasmanohar/respect-our-privacy
[05:15:55] tejasmanohar: https://respectourprivacy.herokuapp.com/
[05:16:01] tejasmanohar: anyone know why all my assets are 404'ing?
[05:17:06] GPrime: has joined #RubyOnRails
[05:34:06] beneggett: has joined #RubyOnRails
[05:35:44] tejasmanohar: has joined #RubyOnRails
[05:36:23] x-light: has joined #RubyOnRails
[05:44:58] ivanskie: has joined #RubyOnRails
[05:47:18] lxsameer: has joined #RubyOnRails
[05:47:47] RegulationD: has joined #RubyOnRails
[05:48:50] beneggett: has joined #RubyOnRails
[05:52:40] poincare101: has joined #RubyOnRails
[05:59:10] harly: tejasmanohar: where's the 404?
[05:59:17] tejasmanohar: harly: fixed it
[05:59:43] fgo: has joined #RubyOnRails
[06:02:16] asheinfeld: has joined #RubyOnRails
[06:06:32] renews: has joined #RubyOnRails
[06:10:01] tercenya: has joined #RubyOnRails
[06:12:35] charliesome: has joined #RubyOnRails
[06:13:05] Anakat: has joined #RubyOnRails
[06:16:44] rubyonrails440: has joined #RubyOnRails
[06:18:02] rubyonrails440: has left #RubyOnRails: ()
[06:19:04] Toggi3: has joined #RubyOnRails
[06:19:52] Toggi3: Greetings everyone. I was wondering if someone might be kind enough to help a guy get started with rails, building something that looks like a production set up
[06:20:21] Toggi3: I'm trying to use a standard webserver, be it apache, nginx, whatever, and using passenger, unicorn, puma, whatever, on ubuntu 14.04
[06:20:25] Toggi3: I just want to deploy redmine
[06:20:41] Toggi3: and so it seems, there isn't a single functional tutorial on the entire internet for someone who has never deployed rails apps
[06:21:06] Sigma00: there's a bunch of tutorials on setting up apache/nginx to serve static assets and proxy rails
[06:21:28] Sigma00: there's not even that much you gotta do, just run rails in production env and write up the apache or nginx config
[06:21:39] Sigma00: and precompile your assets
[06:22:37] hd1: Toggi: deploy to heroku?
[06:22:45] hd1: or ec2?
[06:22:51] Toggi3: my own vps
[06:23:02] ivanskie: has joined #RubyOnRails
[06:23:07] Toggi3: from a scratch ubuntu 14.04 install
[06:23:09] Sigma00: http://www.redmine.org/projects/redmine/wiki/How_to_Install_Redmine_on_CentOS_(Detailed)
[06:23:36] Sigma00: http://www.redmine.org/projects/redmine/wiki/HowTos#Ubuntu
[06:23:40] Sigma00: ^ list of tuts
[06:23:47] hd1: why make things difficult for you?
[06:24:06] Sigma00: hd1: because heroku now forces your app down 6 hours a day
[06:24:12] Sigma00: unless you shell out
[06:24:48] hd1: use bitbucket/github for bug tracking and openshift/heroku/whatever for deployment
[06:24:54] Toggi3: I am trying to understand/learn, so its not so much about making things difficult
[06:26:06] hd1: Toggi3: understand/lear what, though?
[06:26:15] hd1: dev ops? ruby? rails?
[06:26:32] Toggi3: a mixture of the three as it applies to rails
[06:26:45] Toggi3: as a starting point, just deploying redmine from scratch
[06:27:05] User458764: has joined #RubyOnRails
[06:27:06] Sigma00: that last link I posted would be a good starting point
[06:27:21] Toggi3: I'll try it
[06:27:24] Toggi3: Thank you much
[06:28:02] Sigma00: just be aware that you're learning the devops now, which people usually do after learning how to use rails
[06:28:09] Sigma00: so they understand the framework more
[06:28:40] Tempesta: has joined #RubyOnRails
[06:28:48] Ropeney: has joined #RubyOnRails
[06:29:10] coffee__cup: has joined #RubyOnRails
[06:29:40] Supreet: has joined #RubyOnRails
[06:32:32] hd1: Toggi3: what do you want to do with learning this?
[06:32:47] hd1: ACTION would strongly recommend minimising the moving parts
[06:32:50] Sigma00: I'm gonna go with 'use redmine'
[06:34:51] hd1: ACTION thinks deploying your own bugtracking system is a waste of time/space
[06:35:26] hd1: just pay the $10/month for jira if bitbucket/github issues don't do what you want
[06:35:51] Toggi3: hd1: it has very little to do with redmine itself.
[06:36:04] Toggi3: I actually want to understand rails better in a production environment
[06:36:33] hd1: ACTION looks at Sigma00 and reminds him that assuming makes an arse out of all concerned
[06:36:46] beneggett: has joined #RubyOnRails
[06:36:50] Sigma00: that's not how you say it :(
[06:37:04] Sigma00: but also I'm too drunk to care so haaaaa
[06:37:37] Toggi3: to me, rails seems to make no sense from an admin/user perspective. if I want a ticketing system in php, i upload the contents and navigate to the directory served up by a php enabled webserver. boom. done. straightforward. easy.
[06:37:53] Toggi3: but all day today I've been reading tutorials, several on digitalocean, just trying to have a working environment
[06:38:20] pragmatism: has joined #RubyOnRails
[06:38:23] Sigma00: Toggi3: want the easy way out? Use phusion passenger
[06:38:24] hd1: Toggi3: what's the largest project you've worked on?
[06:38:49] hd1: Sigma00: I just proxy thin/puma/unicorn behind nginx
[06:39:00] Toggi3: sigma: I read a few tutorials using that too, as well as unicorn
[06:39:03] _draco_: has joined #RubyOnRails
[06:39:05] hd1: if I'm doing self-hosting
[06:39:07] Sigma00: hd1: me too, but phusion IS the easy way out if you don't wanna deal with precompiling/etc
[06:39:34] Toggi3: passenger looked the most interesting
[06:39:54] Sigma00: beware, the performant features are behind a paywall
[06:40:44] Toggi3: I'm a LAMP sysadmin type, so I've never been in a devops environment exactly
[06:40:53] Toggi3: I'm reaching far out of my comfort zone
[06:41:17] ProLoser: has joined #RubyOnRails
[06:41:23] teufelChiCoder: has joined #RubyOnRails
[06:41:39] hd1: Toggi3: then forgive me for saying this, but don't think PHP is the bee's knees
[06:42:12] Toggi3: I'm not saying it necessarily is, but it is straightforward
[06:42:49] Sigma00: the admin side, sure
[06:42:54] Sigma00: ACTION shudders at flashbacks
[06:44:34] Toggi3: see I'm an admin. I'm not really a programmer at all.
[06:44:38] Toggi3: but I know I have a lot to learn
[06:44:57] Toggi3: don't we all?
[06:45:37] hd1: deployment sure, but maintenance is a different story altogether
[06:46:12] Toggi3: I want to author rails apps too
[06:46:17] Toggi3: or get there eventually
[06:46:21] Sigma00: you should start there
[06:46:38] Toggi3: I was tinkering around with ruby
[06:46:41] hd1: Toggi3: what sort of "apps"?
[06:46:51] Toggi3: Information systems apps
[06:46:57] Toggi3: custom database solutions
[06:47:09] hd1: ACTION had a mentee who thought they could write ios apps in rails
[06:47:13] Sigma00: you just described 90% of all apps
[06:47:28] hd1: be more specific
[06:48:50] Toggi3: I have a long term target in mine, a CRM application that keeps track of contacts and properties they own, generates reports and followup letters
[06:50:03] Toggi3: I'd like to get to a point where I can build custom database solutions for businesses
[06:52:11] Toggi3: rails seems really appealing for making things like that because of how rapidly you can get really functional systems
[06:52:26] Sigma00: yes, it's appealing for that
[06:53:23] hd1: for that, yes, that's possible
[06:54:04] Toggi3: So you feel it isn't worth learning the devops/admin portion of this first?
[06:54:14] Sigma00: not at all
[06:54:15] Toggi3: that I should just use rails with the webrick server?
[06:54:41] Sigma00: yes, just learn rails and THEN worry about switching
[06:54:50] Toggi3: I've also been tinkering with ruby, trying to learn how to code
[06:55:02] Sigma00: right now what you have is Analysis Paralysis
[06:55:06] Sigma00: you're overthinking shit
[06:55:07] Toggi3: https://gist.github.com/Toggie/1dc6f84dbcb5c6a64896 literally the most complicated thing I've ever written that wasn't a bash one-liner
[06:55:08] Sigma00: and stalling
[06:55:35] beneggett: has joined #RubyOnRails
[06:56:12] bin_005: has joined #RubyOnRails
[06:56:45] Toggi3: ok, I'll just go back to following rails tutorials. Maybe I'll go take a structured in-person business course
[06:56:57] Toggi3: right now I am just, burnt
[07:00:45] renews: has joined #RubyOnRails
[07:00:55] hd1: ACTION finds it easier to do most things in python, but that's just experience speaking
[07:01:07] shmambo: has joined #RubyOnRails
[07:01:32] Toggi3: You know I did think about going the python route, and trying django instead
[07:01:48] Toggi3: but I decided against it because rails has a more mature ecosystem I think
[07:02:13] dopie: feels so good to clear out basecamp todos
[07:02:34] fgo: has joined #RubyOnRails
[07:02:52] asheinfeld: has joined #RubyOnRails
[07:03:17] michael_mbp: has joined #RubyOnRails
[07:03:54] hd1: ACTION was talking about the language, not the framework, Toggi3
[07:04:21] Dopagod: has joined #RubyOnRails
[07:06:58] hazelux: has joined #RubyOnRails
[07:07:28] squiercaster: has joined #RubyOnRails
[07:08:48] towski_: has joined #RubyOnRails
[07:12:34] User458764: Hi, how do you use controller helper, I defined a method inside MyHelper called my_method how do I call it in my controller. If I call it my_method it returns undefined method?
[07:13:27] TinkerTyper: has joined #RubyOnRails
[07:15:30] User458764: Oh, helper method are for views
[07:16:17] michael_mbp: has joined #RubyOnRails
[07:17:20] teufelChiCoder: has joined #RubyOnRails
[07:17:50] givanse: has joined #RubyOnRails
[07:21:00] krz: has joined #RubyOnRails
[07:21:31] TinkerTyper: has joined #RubyOnRails
[07:23:57] ndrei: has joined #RubyOnRails
[07:29:18] qejk: has joined #RubyOnRails
[07:31:26] krz: has joined #RubyOnRails
[07:32:08] tobobo: has joined #RubyOnRails
[07:34:28] poincare101: has joined #RubyOnRails
[07:35:21] GoGoGarrett: has joined #RubyOnRails
[07:36:43] RegulationD: has joined #RubyOnRails
[07:43:42] SteenJobs: has joined #RubyOnRails
[07:45:34] Rubie: has joined #RubyOnRails
[07:47:08] shinnya: has joined #RubyOnRails
[07:47:47] krz: so at http://guides.rubyonrails.org/engines.html is it assumed that we are supposed to run rails plugin new blorgh --mountable in lib/?
[07:51:27] cac: has joined #RubyOnRails
[07:54:29] ndrei: has joined #RubyOnRails
[07:54:53] renews: has joined #RubyOnRails
[07:59:12] roolo: has joined #RubyOnRails
[07:59:37] yfeldblum: has joined #RubyOnRails
[07:59:57] ndrei: has joined #RubyOnRails
[08:03:45] asheinfeld: has joined #RubyOnRails
[08:04:10] wmoxam: has joined #RubyOnRails
[08:05:01] sevenseacat: has joined #RubyOnRails
[08:08:33] User458764: has joined #RubyOnRails
[08:12:10] jeanlinux: has joined #RubyOnRails
[08:16:31] darutoko: has joined #RubyOnRails
[08:18:28] Forgetful_Lion: has joined #RubyOnRails
[08:24:25] SET001: has joined #RubyOnRails
[08:24:39] poincare101: has joined #RubyOnRails
[08:29:27] strcmp1: has joined #RubyOnRails
[08:32:48] cac: has joined #RubyOnRails
[08:33:55] fgo: has joined #RubyOnRails
[08:35:21] Hates_: has joined #RubyOnRails
[08:35:36] Hates_: has joined #RubyOnRails
[08:39:43] techsethi: has joined #RubyOnRails
[08:41:12] techsethi: has left #RubyOnRails: ()
[08:44:48] ts310: has joined #RubyOnRails
[08:45:55] quazimodo: has joined #RubyOnRails
[08:46:33] DEA7TH_: has joined #RubyOnRails
[08:46:56] Rubie: has joined #RubyOnRails
[08:49:07] renews: has joined #RubyOnRails
[08:49:27] meoblast001: has joined #RubyOnRails
[08:50:52] edwinvdg_: has joined #RubyOnRails
[08:54:02] arBmind: has joined #RubyOnRails
[08:57:14] x-light: has joined #RubyOnRails
[08:57:49] Mia: has joined #RubyOnRails
[08:57:49] Mia: has joined #RubyOnRails
[08:59:12] ndrei: has joined #RubyOnRails
[08:59:54] ts310: has joined #RubyOnRails
[09:02:35] bmalum: has joined #RubyOnRails
[09:04:28] asheinfeld: has joined #RubyOnRails
[09:04:32] ndrei: has joined #RubyOnRails
[09:04:34] DLSteve: has joined #RubyOnRails
[09:05:35] steve_mc: has joined #RubyOnRails
[09:06:20] qsun_: has joined #RubyOnRails
[09:10:00] ndrei: has joined #RubyOnRails
[09:12:27] n008f4g_: has joined #RubyOnRails
[09:13:21] Dzejmskrokan: has joined #RubyOnRails
[09:16:55] jeanlinux: has joined #RubyOnRails
[09:19:14] fgo: has joined #RubyOnRails
[09:20:23] ndrei: has joined #RubyOnRails
[09:21:32] SteenJobs: has joined #RubyOnRails
[09:23:26] hd1: has left #RubyOnRails: ()
[09:25:34] RegulationD: has joined #RubyOnRails
[09:25:55] ndrei: has joined #RubyOnRails
[09:29:36] RickJamesTheThir: has joined #RubyOnRails
[09:30:07] RickJamesTheThir: Hey guys I was trying to figure out how this partial was being rendered like what is the logic the controller goes through heres what happening
[09:30:35] RickJamesTheThir: On the homepage lets call it index there is a <%= render @trending %>
[09:30:47] bruno-: has joined #RubyOnRails
[09:30:52] RickJamesTheThir: on the controller in the index action there is a variable @trending = Program.trending
[09:31:49] RickJamesTheThir: it is pulling all the programs that are trending and rendering them out. Well I don't understand how its knowing to pull the partial _program.html.erb from the View --> Program directory
[09:32:19] RickJamesTheThir: how does it know to use that partial to render each trending program
[09:33:29] sevenseacat: Rails will inspect the first item of the @trending list, see what class it is
[09:33:48] sevenseacat: then fetch the correct partial for the class
[09:35:48] bmalum: has joined #RubyOnRails
[09:36:36] RickJamesTheThir: the class is Program so if the class was name School then it would try to pull a _school.html.erb instead of a _program.html.erb?
[09:37:07] RickJamesTheThir: Alright thanks Sevenseacat!
[09:37:31] sevenseacat: if you want to change what partial gets rendered by default for a class, you can override the to_partial_path method in your model
[09:39:00] RickJamesTheThir: awesome thanks for the info :)
[09:40:22] RickJamesTheThir: ah I found it in the documentation its rendering a collection
[09:40:32] RickJamesTheThir: and you can change the partial to render out that collection
[09:43:19] renews: has joined #RubyOnRails
[09:46:50] krz: where do you all store your engines? http://tech.taskrabbit.com/blog/2014/02/11/rails-4-engines/ suggests app/engines/. iv also read in lib/ instead. thoughts?
[09:51:31] yfeldblum: has joined #RubyOnRails
[09:51:37] ndrei: has joined #RubyOnRails
[09:51:47] krz: sevenseacat: what say you
[09:51:59] sevenseacat: I say I need another jam donut.
[09:52:07] sevenseacat: but theyre all the way over there. -->
[09:53:01] krz: ACTION sends sevenseacat a virtual donut with sprinkles
[09:53:10] krz: immagine it. its just as good
[09:53:17] AzaToth: has joined #RubyOnRails
[09:55:41] stamina: has joined #RubyOnRails
[09:56:28] hazelux: has joined #RubyOnRails
[09:56:43] krz: ill stick with app/engines. looks cleaner and consistent
[09:57:04] krz: engines are soooooo good. better than that sprinkled donut
[09:58:26] maz-dev: has joined #RubyOnRails
[10:00:18] Lightsword: has joined #RubyOnRails
[10:00:18] poincare101: has joined #RubyOnRails
[10:01:36] startupality: has joined #RubyOnRails
[10:05:20] asheinfeld: has joined #RubyOnRails
[10:05:33] QKO: has joined #RubyOnRails
[10:06:06] poincare101: has joined #RubyOnRails
[10:08:44] maz-dev: has joined #RubyOnRails
[10:11:16] penzur: has joined #RubyOnRails
[10:15:28] FernandoBasso: has joined #RubyOnRails
[10:16:13] techsethi: has joined #RubyOnRails
[10:20:55] mikecmpbll: has joined #RubyOnRails
[10:21:03] techsethi: has joined #RubyOnRails
[10:23:54] cjk101010: has joined #RubyOnRails
[10:25:14] GoGoGarrett: has joined #RubyOnRails
[10:27:29] techsethi_: has joined #RubyOnRails
[10:28:38] pontiki: has joined #RubyOnRails
[10:34:06] artto: has joined #RubyOnRails
[10:35:44] Palsson: has joined #RubyOnRails
[10:36:08] Rubie: has joined #RubyOnRails
[10:37:32] renews: has joined #RubyOnRails
[10:37:48] gerep: has joined #RubyOnRails
[10:39:40] yaw: has joined #RubyOnRails
[10:40:53] techsethi_: has joined #RubyOnRails
[10:41:23] darrencauthon: has joined #RubyOnRails
[10:41:41] n008f4g_: has joined #RubyOnRails
[10:42:15] arturhoo: has joined #RubyOnRails
[10:47:39] krz: i think rake routes for engines is broken
[10:48:57] krz: get "/foo" => "foo#index" is defined in the engine routes.rb. rake routes | grep foo, outputs /foo, instead of /admin/foo
[10:49:13] lxsameer: has joined #RubyOnRails
[10:49:13] lxsameer: has joined #RubyOnRails
[10:49:21] krz: navigating to /admin/foo renders the right resource (controller/action)
[10:49:36] krz: this is what i see in 4.2.0 though
[10:50:08] helpa: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[10:50:59] QKO: has joined #RubyOnRails
[10:53:58] krz: sevenseacat: https://gist.github.com/8474d5c522ef2a685a9b
[10:54:31] sevenseacat: krz: remove the grep.
[10:54:41] sevenseacat: note the heading.
[10:55:30] krz: ah Routes for Admin::Engine:
[10:55:31] mathie: has joined #RubyOnRails
[10:55:34] krz: silly me
[10:55:41] krz: :highfive:
[10:56:08] isjaylee: has joined #RubyOnRails
[10:56:43] krz: such a lovely piece of abstraction tool. clean and efficient. these engines
[10:59:34] srinidhi: has joined #RubyOnRails
[11:00:10] yaw: has joined #RubyOnRails
[11:00:55] sinkensabe: has joined #RubyOnRails
[11:04:15] Sylario: has joined #RubyOnRails
[11:05:18] yaw: has joined #RubyOnRails
[11:06:04] asheinfeld: has joined #RubyOnRails
[11:06:52] subtwo: has joined #RubyOnRails
[11:08:47] fluchtreflex: has joined #RubyOnRails
[11:08:47] fluchtreflex: has joined #RubyOnRails
[11:09:44] icehawk78: has joined #RubyOnRails
[11:09:54] xrlabs: has joined #RubyOnRails
[11:11:35] isjaylee: has joined #RubyOnRails
[11:14:28] RegulationD: has joined #RubyOnRails
[11:16:40] bluish: has joined #RubyOnRails
[11:21:14] Ropeney: has joined #RubyOnRails
[11:22:15] GoGoGarrett: has joined #RubyOnRails
[11:23:34] artto_: has joined #RubyOnRails
[11:26:51] gerep: I'm reading a tutorial about authentication and the writer adds some methods to application_controller https://gist.github.com/gerep/e1920a842321f097e80e
[11:27:01] gerep: Why not add those methods in the application_helper? Is there a difference?
[11:27:45] sevenseacat: gerep: helpers are for views
[11:27:58] sevenseacat: not for controllers
[11:28:05] gerep: sevenseacat, got it ;)
[11:28:09] gerep: sevenseacat, thanks
[11:28:32] strcmp1: you can make both of those controller methods available to views with helper_method :current_user, ... btw.
[11:28:44] starfox_sf: has joined #RubyOnRails
[11:29:43] gerep: This kind of session use is secure? Storing a user id in a session like session[:user_id] = @user.id
[11:29:54] gerep: I know it works but it looks so insecure
[11:30:00] workmad3: has joined #RubyOnRails
[11:30:47] sevenseacat: sessions are stored server-side, so they can't be tampered with
[11:31:03] gerep: didn't know that
[11:31:18] gerep: No cookies in this case?
[11:31:18] strcmp1: i dont think its a good idea, but yes its secure because the cookie is tamper proof/encrypted
[11:31:23] jhass: or in a encrypted or at least signed cookie
[11:31:28] strcmp1: if your key was leaked somehow, the cookie could be tampered with
[11:31:47] sevenseacat: oh yeah rails uses cookie store by default nowadays doesnt it
[11:31:47] gerep: Because the users id will be in the routes
[11:32:04] skj3gg: has joined #RubyOnRails
[11:32:23] gerep: So let's suppose someone know this "logic" and start guessing users ids and change this?
[11:32:58] strcmp1: current user isn't stored in the URL
[11:33:09] tbuehlmann: gerep, "To prevent session hash tampering, a digest is calculated from the session with a server-side secret and inserted into the end of the cookie."
[11:33:11] skj3gg_: has joined #RubyOnRails
[11:33:13] strcmp1: stored in a cookie transmitted via headers, and encrypted
[11:33:31] gerep: So it is secure :)
[11:33:51] strcmp1: less secure than a random key to identify the session imo, but yeah it is
[11:33:52] tbuehlmann: it's not encrypted, right? just hashed
[11:34:09] strcmp1: i think recently it is now encrypted, and signed with a private key defined in your app
[11:34:13] gerep: strcmp1, I just thought of that, like a token instead of the user id, right?
[11:34:40] tbuehlmann: hm, no, has to be encrypted.. will investigate. good time to reread security things
[11:35:41] jhass: random token would make known plaintext attacks harder, yeah
[11:41:50] workmad3: has joined #RubyOnRails
[11:42:02] gerep: jhass, I'll do that
[11:42:19] gerep: I was using Devise but it is a unnecessary complexity in my opinion
[11:42:52] jhass: well, I'm not saying using the id is insecure though
[11:43:13] gerep: I understand :)
[11:43:22] jhass: a good cipher shouldn't be vulnerable to known plaintext attacks in the first place
[11:43:34] _blizzy_: has joined #RubyOnRails
[11:55:25] ariarijp: has joined #RubyOnRails
[11:57:00] poincare101: has joined #RubyOnRails
[11:57:17] skj3gg: has joined #RubyOnRails
[12:01:04] centrx: has joined #RubyOnRails
[12:01:12] User458764: has joined #RubyOnRails
[12:06:45] asheinfeld: has joined #RubyOnRails
[12:09:28] wethu: has joined #RubyOnRails
[12:12:39] sinkensabe: has joined #RubyOnRails
[12:13:01] l0oky: has joined #RubyOnRails
[12:16:19] GoGoGarrett: has joined #RubyOnRails
[12:16:49] _blizzy_: hello :) I am using Rails 4.2.1 and Paperclip. I am also using S3. When I upload a file, it saves to S3, but the url is returning as if the file is saved locally. https://gist.github.com/NotBlizzard/11232671c8763360c595
[12:17:09] Pazician: has joined #RubyOnRails
[12:18:09] alex88: has joined #RubyOnRails
[12:22:52] thmsmtylr: has joined #RubyOnRails
[12:23:01] l0oky: I have this route: new_user_activation GET /users/:user_id/activation/new(.:format) activation#new
[12:23:22] l0oky: Can I change it to this new_user_activation GET /users/:user_id/activate(.:format) activation#new
[12:25:27] l0oky: DylanJ: Hey dude! :D How's things?
[12:25:46] ts310: has joined #RubyOnRails
[12:25:53] dideler: has joined #RubyOnRails
[12:27:28] _blizzy_: get '/users/:user_id/activation/new' => 'activation#new', as: 'new_user_activation'
[12:27:42] _blizzy_: remove the '/new' and there you go
[12:28:41] l0oky: _blizzy_: Really that easy? what about the :user_id?
[12:28:52] l0oky: _blizzy_: Thanks ! :D
[12:29:13] _blizzy_: l0oky, when you use the route, just do new_user_activation_path(@user.id)
[12:29:27] _blizzy_: it'll auto fill it in. :)
[12:29:35] l0oky: _blizzy_: thanks! :D
[12:30:48] l0oky: When you think something is hard to do in rails..... It's not when you find out :D
[12:31:30] pontiki: has joined #RubyOnRails
[12:31:48] ProLoser: has joined #RubyOnRails
[12:33:40] asheinfeld: has joined #RubyOnRails
[12:34:21] michael_mbp: has joined #RubyOnRails
[12:37:12] qwertme: has joined #RubyOnRails
[12:37:21] Rubie: has joined #RubyOnRails
[12:38:04] maz-dev: has joined #RubyOnRails
[12:42:00] Pupeno: has joined #RubyOnRails
[12:47:59] annlewis: has joined #RubyOnRails
[12:49:08] renews: has joined #RubyOnRails
[12:50:03] charliesome_: has joined #RubyOnRails
[12:50:25] s2013: has joined #RubyOnRails
[12:57:05] qwertme: has joined #RubyOnRails
[12:58:24] hazelux: has joined #RubyOnRails
[13:01:59] User458764: Can someone helps me to format my yaml cities file, I would like to create a a mutlidimensional array, here is the gist (https://gist.github.com/guibru-sh/3dd8311340fa87bcb0ff) but I dont understand the yaml syntax
[13:02:03] tvw: has joined #RubyOnRails
[13:03:10] bmalum: has joined #RubyOnRails
[13:03:26] RegulationD: has joined #RubyOnRails
[13:07:20] dkam: has joined #RubyOnRails
[13:08:31] _tpavel: has joined #RubyOnRails
[13:10:11] Pazician: has joined #RubyOnRails
[13:10:11] Pazician: has joined #RubyOnRails
[13:10:52] GoGoGarrett: has joined #RubyOnRails
[13:11:05] pulgalipe: has joined #RubyOnRails
[13:15:31] erich: has joined #RubyOnRails
[13:17:30] starfox_sf: has joined #RubyOnRails
[13:21:31] mostlybadfly: has joined #RubyOnRails
[13:24:26] workmad3: has joined #RubyOnRails
[13:27:10] Dzejmskrokan: has joined #RubyOnRails
[13:29:01] Papierkorb: has joined #RubyOnRails
[13:31:36] sinkensabe: has joined #RubyOnRails
[13:33:11] icehawk78: has joined #RubyOnRails
[13:40:20] sinkensabe: has joined #RubyOnRails
[13:42:46] isjaylee: has joined #RubyOnRails
[13:43:21] renews: has joined #RubyOnRails
[13:43:32] isjaylee: how do I render an application layout in an engine? i'm using Forem and want to render my header layout in the Forem view
[13:45:23] ts310: has joined #RubyOnRails
[13:45:28] quazimodo: has joined #RubyOnRails
[13:46:17] alex88: has joined #RubyOnRails
[13:50:05] cha1tanya: has joined #RubyOnRails
[13:51:42] x44x45x41x4E: has joined #RubyOnRails
[13:54:06] ariarijp: has joined #RubyOnRails
[13:54:30] workmad3: has joined #RubyOnRails
[13:55:45] yoongkang: has joined #RubyOnRails
[13:56:24] maz-dev: has joined #RubyOnRails
[13:59:43] beneggett: has joined #RubyOnRails
[14:00:17] dopie: has joined #RubyOnRails
[14:01:12] srinidhi: has joined #RubyOnRails
[14:04:25] RegulationD: has joined #RubyOnRails
[14:04:56] GoGoGarrett: has joined #RubyOnRails
[14:05:52] l0oky: This channel is quiet today :D
[14:06:26] jenrzzz: has joined #RubyOnRails
[14:06:27] centrx: Very suspicious
[14:07:07] centrx: l0oky, There's also #ruby btw
[14:07:35] l0oky: centrx: ty.
[14:07:59] l0oky: Ruby is active :D
[14:08:19] centrx: We are rocking
[14:09:53] l0oky: User.find_by_email is nil If email is not found?
[14:10:28] l0oky: Does rails provide a default 404 page that I can render?
[14:10:41] centrx: l0oky, http://api.rubyonrails.org/classes/ActiveRecord/FinderMethods.html#method-i-find_by
[14:10:53] centrx: l0oky, There is a public/404.html
[14:11:13] l0oky: soo render 'public/404.html' ?
[14:12:24] centrx: l0oky, or raise ActionController::RoutingError.new('Not Found')
[14:12:32] asheinfeld: has joined #RubyOnRails
[14:13:08] wpp: has joined #RubyOnRails
[14:13:25] sevenseacat: why not use the bang version to raise an exception if no record is found
[14:13:33] l0oky: ohh cool thanks
[14:13:44] sevenseacat: eg. User.find_by!(email: 'foo')
[14:16:10] User458764: has joined #RubyOnRails
[14:17:26] dkam: has joined #RubyOnRails
[14:18:19] wpp: has joined #RubyOnRails
[14:19:17] xrlabs: has joined #RubyOnRails
[14:21:02] tweeeaks: has joined #RubyOnRails
[14:27:19] l0oky: Is this valid? get '/activate/:email/:activation_code' => 'users#activate', as: 'activation'
[14:27:27] JoshL: has joined #RubyOnRails
[14:27:32] l0oky: because i get this No route matches [GET] "/activate/1l0oky1@gmail.com/741996"
[14:28:09] Aeyrix: Run `rake routes` and post it to gist.github.com please.
[14:28:58] l0oky: https://gist.github.com/l0oky/d1a80f076ea6f87db0b8
[14:29:27] l0oky: strange a?
[14:29:44] sevenseacat: try encoding the @ in the URL
[14:30:15] aloneintheworld: has joined #RubyOnRails
[14:30:24] Aeyrix: Unrelated, l0oky, but I'd recommend generating a unique token per user and having a `/register/:token` route instead.
[14:30:24] l0oky: maybe its that
[14:31:17] l0oky: wow ok so no email in my url ahha
[14:31:36] l0oky: maybe I have to decode it too
[14:34:14] l0oky: still nuthin
[14:34:34] Aeyrix: Try replacing the email with `teststring` and see what happens.
[14:34:39] Aeyrix: Like, browse to the url
[14:34:45] Aeyrix: /activate/teststring/14124152
[14:34:50] michael_mbp: has joined #RubyOnRails
[14:34:58] l0oky: Now it works it raised an not found error
[14:35:24] Aeyrix: My suggestion earlier may be easier than messing with the nuances of encoding and decoding for URLs.
[14:35:31] michael_mbp: o/ sevenseacat
[14:35:32] l0oky: i would use user.id instead of email buut it isnt cool
[14:35:38] Aeyrix: l0oky: Don't use either.
[14:35:45] Aeyrix: Generate a 32-character random string and store it in a column.
[14:35:59] michael_mbp: guys, what's a good resource to read up on multithreading in Ruby.
[14:36:17] l0oky: User.find_by_activation_code
[14:36:26] l0oky: thats easier
[14:36:35] Aeyrix: User.find_by_activation_code.where(:activated == 0)
[14:36:36] sevenseacat: not easier. more secure
[14:36:41] Aeyrix: That's probably wrong code.
[14:36:51] Aeyrix: I'm shit at Ruby.
[14:37:00] Aeyrix: But you know what I'm getting at, right, l0oky?
[14:37:04] l0oky: thats actually right my code haha
[14:37:14] michael_mbp: and as an addendum let me give some context to my particular usecase but I'm still keen on insights in to multithreading in general. So my interest is to build a POC bidding engine, and feel Ruby may not be the best for that, was thinking of Elixir or Rust.
[14:37:18] l0oky: i was using an if statement activated?
[14:37:32] scottmatheina: has joined #RubyOnRails
[14:37:32] renews: has joined #RubyOnRails
[14:37:33] l0oky: but thats slower
[14:38:06] Aeyrix: > I was thinking of Elixir
[14:38:08] Aeyrix: god fucking dammit
[14:38:12] Aeyrix: how many people know about this obscure ass language?
[14:38:13] l0oky: What is that now?
[14:38:14] jenrzzz: has joined #RubyOnRails
[14:38:22] sevenseacat: one of us one of us
[14:38:25] Aeyrix: I only found out about it because you and R@dar would not stop talking about it. :P
[14:38:26] l0oky: toooo many languages
[14:38:32] l0oky: ill go make my own l0oky langauge
[14:38:44] Aeyrix: michael_mbp: Bunch of the Ruby royalty in here love them some Elixir.
[14:38:45] michael_mbp: lol.. it's not obscure.
[14:38:51] Aeyrix: I dislike it because functional programming is awkward.
[14:38:59] Aeyrix: Rust is fun though. I write in Rust.
[14:39:02] sevenseacat: wheres my goddamn tiara.
[14:39:04] michael_mbp: jose valim got an award from what I last heard :)
[14:39:21] n2424: has joined #RubyOnRails
[14:39:27] hardtail: has joined #RubyOnRails
[14:39:33] Aeyrix: michael_mbp: It's built off a VM for a language that uses periods to denote statement ends.
[14:39:35] michael_mbp: Elixir's based on Erlang, something I've been meaning to look at too.
[14:39:37] Aeyrix: I refuse to take it seriously.
[14:39:43] michael_mbp: Aeyrix: Erland :p
[14:39:50] Aeyrix: I actually know Erlang.
[14:39:51] n2424: has left #RubyOnRails: ()
[14:39:57] Aeyrix: Someone on Twitter belittled me for not using it, so I learned it.
[14:40:08] michael_mbp: hate when that happens.
[14:40:13] michael_mbp: great motivation though :D
[14:40:27] Aeyrix: inb4 Radr belittles me for not knowing Elixir then times me to learn it. <_<
[14:40:55] sevenseacat: I started learning Elixir before it was cool. now everyone else knows it better than I do. *shrug*
[14:41:14] michael_mbp: So... if I had to start Rust vs. Elixir.. thoughts?
[14:41:14] Aeyrix: I'm waiting for you to finish that Ticketee implementation in Phoenix
[14:41:16] Aeyrix: so I can then blame you
[14:41:18] l0oky: Is elixir something like python?
[14:41:21] Aeyrix: michael_mbp: What languages do you know?
[14:41:23] Aeyrix: l0oky: Ruby.
[14:41:31] TheCuriousGuy: has joined #RubyOnRails
[14:41:31] Aeyrix: Functional, compiled Ruby-ish language running on the Erlang VM.
[14:41:34] michael_mbp: although, I don't think Elixir falls into the same segment as Rust.
[14:41:38] sevenseacat: i have to figure out the testing side of things
[14:41:39] Aeyrix: It doesn't.
[14:41:41] Aeyrix: Rust is mostly for systems.
[14:41:59] l0oky: andd Elixir is used for?
[14:42:03] Aeyrix: Hipster fucks.
[14:42:10] sevenseacat: not having any tests so far makes me feel squiddly.
[14:42:12] l0oky: Elixir on Rails :P
[14:42:23] Aeyrix: tbh I don't really know where Elixir fits in
[14:42:31] Aeyrix: It's kind of like a "toy" language.
[14:42:37] TheCuriousGuy: I want to learn TDD in Rails
[14:42:40] l0oky: Hipster language :P
[14:42:48] Aeyrix: l0oky: Kind of, I don't know.
[14:42:56] Aeyrix: I guess it's got the pro's of Ruby language
[14:42:58] l0oky: useless. For now.
[14:43:04] Aeyrix: plus the pro's of the Erlang VM making it major league for concurrency.
[14:43:07] Aeyrix: TheCuriousGuy: Cool.
[14:43:18] TheCuriousGuy: any idea where should I start?
[14:43:24] l0oky: something like Foxpro?
[14:43:39] stamina: has joined #RubyOnRails
[14:43:40] michael_mbp: Aeyrix: let's see. Qbasic, Pascal (when I was like 9-10ish), ANSI C, GNU C++; C/C++/Assembly/VHDL/Verilog for Microcontrollers / Python; then ES5/ES6, Ruby and I probably forgot a few... Aeyrix
[14:43:54] Aeyrix: michael_mbp: That's a really cool story.
[14:44:13] Aeyrix: You started early, nice.
[14:44:17] l0oky: You guys never heard of Foxpro right? haha
[14:44:22] Aeyrix: No, l0oky.
[14:44:27] l0oky: You know dBase...
[14:44:47] l0oky: It was a hipster language in Its days..
[14:44:47] michael_mbp: well I did engineering, specialised in Robotics. So I got to play at the MCU/register level for many years.
[14:45:37] Aeyrix: TheCuriousGuy: I'm sure there's a book
[14:45:42] michael_mbp: somewhat embarrasing at the things we get away with in Ruby/Rails in general (at such a high-level), when back at the MCU level, you're trying to crank out as much performance from those few Hz :)
[14:45:45] l0oky: michael_mbp: when someone tells me what do I program in I answer "I don't know.." hahah
[14:45:53] Aeyrix: wtf sevenseacat
[14:46:04] Pupeno: has joined #RubyOnRails
[14:46:22] l0oky: Erlang looks cool though
[14:46:37] krz: has joined #RubyOnRails
[14:46:37] l0oky: Interpreter?
[14:46:41] Aeyrix: michael_mbp: Ruby developers don't give a fuck.
[14:46:57] michael_mbp: hey Aeyrix check out my recent project http://mwdesilva.com/posts/upgraded-docker-platform-this-time-with-more-bells
[14:47:05] michael_mbp: Aeyrix: most don't.
[14:47:09] Aeyrix: g e t o u t
[14:47:25] michael_mbp: some one hates lxc with a vengence :)
[14:47:32] Aeyrix: Someone hates Docker with a vengeance.
[14:47:47] michael_mbp: uh.. Docker's based on lxc.
[14:47:50] Aeyrix: They don't even use LXC anymore.
[14:48:03] michael_mbp: Thought it did, at some point... ah.
[14:48:13] Aeyrix: They did a while ago
[14:48:15] Aeyrix: Then they went
[14:48:17] Aeyrix: MAXIMUM OVERHIPSTER
[14:48:22] Aeyrix: and made their own format
[14:48:27] Aeyrix: because interoperability can go to hell
[14:48:45] michael_mbp: Explains why M$ bought into 'em. *cough*.
[14:49:01] Aeyrix: that's taken already
[14:49:04] michael_mbp: well there are some bits of Docker tha... HAHA
[14:49:10] michael_mbp: ohh good one.
[14:49:18] Aeyrix: Yeah I have no love for Docker.
[14:49:29] Aeyrix: It started out okay then just kind of went full moron.
[14:49:34] l0oky: Is erlang an Interpreter?
[14:49:44] Aeyrix: l0oky: Programming language created by Ericsson.
[14:49:51] Aeyrix: Designed for telco's - massive concurrency.
[14:50:22] l0oky: Right.. I have some knowhow in concurrency
[14:50:25] Rubie: has joined #RubyOnRails
[14:50:34] l0oky: wanted to make on in nodejs xD
[14:50:41] michael_mbp: So far Docker has been OK; I've not run into any interesting issues just yet. My goals are at a smaller scale than say clustering with k8s or CoreOS/fleet/etcd etc.
[14:50:48] cac: has joined #RubyOnRails
[14:50:55] Aeyrix: ACTION is happy with his KVM.
[14:51:02] michael_mbp: l0oky: nice.. another thing I've been meanin to hack on some more.
[14:51:15] michael_mbp: sadly, I do client work a good 40 hrs/week.
[14:51:25] michael_mbp: ACTION needs a programming holiday.
[14:51:48] michael_mbp: actually, most of my holidays ARE coding sprints...
[14:51:55] michael_mbp: like Christmas, Easter.
[14:52:01] Aeyrix: > having holidays
[14:52:08] xrlabs: has joined #RubyOnRails
[14:52:28] michael_mbp: it's more like saying "ok, I'm gonna stop working and go on holiday, and code on something that really matters to me"
[14:52:36] l0oky: Everything that php has can be done in rails right?
[14:52:47] Aeyrix: I get "10%" time at work, kind of.
[14:52:52] Aeyrix: Slacktime can be used for our own purposes.
[14:52:56] Aeyrix: But I work in information security.
[14:52:57] michael_mbp: l0oky: and thensome.
[14:53:02] Aeyrix: No time for holidays when there's gibsons to be hacked.
[14:53:06] l0oky: michael_mbp: Have a look at Toptal
[14:53:19] michael_mbp: BUT, if all you're serving is static content, LAMP stacks seem to be doing the job for a few folks.
[14:53:22] l0oky: It's kind of freelance but It isn't at the same time
[14:53:36] devdazed: has joined #RubyOnRails
[14:53:47] l0oky: You work much less for more
[14:53:47] michael_mbp: l0oky: cheers for the tip, but I prefer to deal directly with clients.
[14:54:12] Aeyrix: Middle managers = chinese whispers with clients.
[14:54:21] Aeyrix: I work directly with mine too, so much better.
[14:54:26] Aeyrix: Nice relationships you form too.
[14:54:32] michael_mbp: I hate when startups are like "hey, we'll hire you, gut here's this tech challenge we want you to take"
[14:54:42] michael_mbp: I then send them a link to bits I succumbed to, such as https://github.com/bsodmike/alphasights-email-predictor
[14:54:53] IrishGringo: has joined #RubyOnRails
[14:55:01] l0oky: I hate startups.
[14:55:10] Aeyrix: I hate the cultur.e
[14:55:22] michael_mbp: As of late, I've just gotten tired of the whole "build something for us" and then get dicked around later on in the "interview" process.
[14:55:28] l0oky: "Congrats. You are the winner! You are hired!"
[14:55:40] l0oky: I don't wanna work for you!
[14:55:56] michael_mbp: Oh I had a fantastic exp. with startups in the US. They promised a H1B visa.
[14:56:03] centrx: Thanks, I'd like to Work From Outside please
[14:56:21] michael_mbp: I quit a job I had abroad (paying some $70k tax-free)
[14:56:29] michael_mbp: stupid on my part, moved back home.
[14:56:36] michael_mbp: they screwed up on applying of the visa.
[14:56:43] michael_mbp: Skype call, I'm 'fired' :)
[14:56:59] Aeyrix: wow what the hell
[14:57:00] Aeyrix: that's garbage
[14:57:19] michael_mbp: Yup bUT KARMA is a bitch.
[14:57:21] l0oky: oh well we all have some ups and downs
[14:57:30] michael_mbp: their co-founder forgot to stop the HR payroll
[14:57:41] michael_mbp: I told 'em to eff off, for screwing me over.
[14:57:50] Aeyrix: you got a month's?
[14:57:56] michael_mbp: way more than that.
[14:58:00] Aeyrix: good work
[14:58:09] michael_mbp: I had kept it to return.
[14:58:17] michael_mbp: but then they screwed me over.. man that was messed up.
[14:58:49] l0oky: this is getting undefined 'where'
[14:58:51] l0oky: User.find_by_activation_code(params[:activation_code]).where(!:activated)
[14:59:02] GoGoGarrett: has joined #RubyOnRails
[14:59:16] michael_mbp: !:activated... Wot?
[14:59:25] michael_mbp: how can you 'not-symbol'
[14:59:26] Aeyrix: not activated
[14:59:31] Aeyrix: it's not not-symbol
[14:59:35] Aeyrix: sorry, yes it
[14:59:36] Aeyrix: ignore me
[14:59:38] Aeyrix: welcome to activerecord
[14:59:47] michael_mbp: first check your find_by
[14:59:51] michael_mbp: see what its returning.
[14:59:55] l0oky: RubyMine ftw!
[14:59:55] michael_mbp: byebug or pry into it.
[15:00:20] michael_mbp: String#where :p
[15:00:25] michael_mbp: just a guess.
[15:00:26] Aeyrix: l0oky: You'll have to take the longer route.
[15:00:38] michael_mbp: so #where would work if it's an ARreflection.
[15:00:42] l0oky: i have longer routes
[15:00:59] givanse: has joined #RubyOnRails
[15:01:00] michael_mbp: Aeyrix: it's been a dry spell finding clients though.
[15:01:45] michael_mbp: most are after contract jobs, in their office, or the startup type. Not been having much luck on the remote scene as of late.
[15:01:55] l0oky: Why can't I use where() in find_by_* func
[15:02:06] Aeyrix: l0oky: find_by_* returns the first record.
[15:02:06] michael_mbp: l0oky: you can, just check what your find_by returns.
[15:02:44] l0oky: undefined method `where' for #<User:0x68d6738>
[15:02:54] michael_mbp: User.find_by_activation_code(params[:activation_code]).class
[15:03:11] michael_mbp: it's a user record itself
[15:03:28] michael_mbp: had you done User.where(activation_code: ...).where()
[15:03:41] michael_mbp: you can chain your where calls.
[15:03:43] Ericx2x: has joined #RubyOnRails
[15:04:09] michael_mbp: good thing about find_by vs. find, is that it'll return nil
[15:04:13] michael_mbp: if it doesn't find anything
[15:04:24] michael_mbp: find() will raise an AR RecordNotFound error
[15:04:57] michael_mbp: downside with find_by, you'll get the first match, rather than all the matching results.
[15:05:15] sinkensabe: has joined #RubyOnRails
[15:05:23] michael_mbp: thing of find_by() as a where(...).first
[15:05:25] Ericx2x: has joined #RubyOnRails
[15:05:31] srinidhi: has joined #RubyOnRails
[15:05:40] teufelChiCoder: has joined #RubyOnRails
[15:06:22] starfox_sf: has joined #RubyOnRails
[15:07:47] ararog: has joined #RubyOnRails
[15:10:53] IvanLing_: has joined #RubyOnRails
[15:12:49] baron: has joined #RubyOnRails
[15:13:55] Pupeno: has joined #RubyOnRails
[15:15:36] l0oky: I do this activation_url(@user.email, @user.activation_code)
[15:15:37] Ericx2x: has joined #RubyOnRails
[15:15:41] l0oky: I get this
[15:15:42] l0oky: Missing host to link to!
[15:16:06] qwertme: has joined #RubyOnRails
[15:16:24] l0oky: I should note this is happening only in my UserMailer
[15:18:23] jhass: l0oky: did you set default_url_options for ActionMailer?
[15:18:56] l0oky: Yeah that fixed the problem
[15:19:07] l0oky: strange why do I need to do that?
[15:19:24] michael_mbp: so it knows what host to use :)
[15:19:28] jhass: l0oky: your mailer might be invoked outside a request cycle (should even)
[15:19:44] michael_mbp: such as a background job
[15:19:50] jhass: so you have no request from which rails could guess the host
[15:20:00] l0oky: well I guess it isn't a background job
[15:20:10] l0oky: Because when I send an email
[15:20:19] michael_mbp: such as ActiveJob, but I prefer to bake in Resque/Sidekiq as neded
[15:20:23] l0oky: my request lags a bit
[15:20:41] michael_mbp: yeah that's cause of Rails' single thread nature.
[15:20:51] l0oky: thats bad
[15:20:52] michael_mbp: move it to a background job and it'll be smoother.
[15:21:05] michael_mbp: nope... background jobs are there for a reason.
[15:21:13] l0oky: I am used to node.js non blocking nature haha
[15:21:19] michael_mbp: if you want a con... yeah node then.
[15:22:03] l0oky: but then so node.js is more complicated ;)
[15:22:15] l0oky: not a ruby style
[15:23:19] michael_mbp: I think Ruby can be a bit more expressive in terms of metaprogramming. Sure, ES6/7 with BabelJS may make things a bit easier in that regard, but I've yet to dive into Node seriously before making final judgements.
[15:24:21] poincare101: has joined #RubyOnRails
[15:26:47] krz: gah looks like engines cant be inside app since rails initializes anything in this folder
[15:27:00] dkam: has joined #RubyOnRails
[15:27:20] michael_mbp: you can have as many engines as needed.
[15:27:35] krz: michael_mbp: you have a custom engine in the app/ dir? i.e. app/engines/foo_engine_name/ ?
[15:27:57] michael_mbp: load 'em from vendor/extensions
[15:28:03] krz: oh not lib?
[15:28:09] michael_mbp: sure, lib too if you wish.
[15:28:14] krz: i put mine in lib/engines
[15:28:25] sandstrom: has joined #RubyOnRails
[15:28:42] michael_mbp: keep app for the top-level app
[15:29:12] krz: placing the engine in app/engines/. sidekiq complains with warning: already initialized constant Admin::VERSION
[15:29:17] michael_mbp: I like to namespace engines, so I go Refinery style vendor/engines/namespace/lib/namespace/engine.rb
[15:29:22] krz: yea but no issues outside of app/
[15:29:42] michael_mbp: Rails autoloads stuff in app/
[15:29:48] michael_mbp: so probably running into that.
[15:29:54] soahccc: I don't know what I am doing wrong or if the documentation is incorrect but select_tag has the option include_blank and it's supposed to accept a string value but it's always blank :(
[15:29:54] alex88: has joined #RubyOnRails
[15:29:55] krz: yeap that was probably it
[15:30:07] krz: ty michael_mbp for the clarification
[15:30:23] michael_mbp: soahccc: try placeholder ?
[15:30:34] asheinfeld: has joined #RubyOnRails
[15:30:49] l0oky: soahccc: ^
[15:31:39] l0oky: Universities seem to teach more ASP.NET then Ruby on Rails :(
[15:31:40] renews: has joined #RubyOnRails
[15:32:10] l0oky: I really fell bad for these guys
[15:32:19] soahccc: doesn't work unfortunately :( https://gist.github.com/2called-chaos/fea09d76a491d05be09c Both give me empty options
[15:32:29] asheinfeld: has joined #RubyOnRails
[15:32:46] soahccc: I think I just add an option manually to the collection I make the options out of
[15:33:04] l0oky: soahccc: try value instead
[15:33:20] l0oky: soahccc: value: "yey text"
[15:34:17] l0oky: You have to include the first option though
[15:34:24] asheinfeld: has joined #RubyOnRails
[15:34:32] l0oky: set its value to "??? select group ???"
[15:35:09] l0oky: soahccc: http://stackoverflow.com/questions/5805059/how-do-i-make-a-placeholder-for-a-select-box
[15:36:22] asheinfeld: has joined #RubyOnRails
[15:38:18] asheinfeld: has joined #RubyOnRails
[15:40:00] eddie_v9: has joined #RubyOnRails
[15:40:01] poincare101: has joined #RubyOnRails
[15:40:21] asheinfeld: has joined #RubyOnRails
[15:41:49] yfeldblum: has joined #RubyOnRails
[15:43:19] workmad3: has joined #RubyOnRails
[15:46:07] premera: has joined #RubyOnRails
[15:47:31] premera: has joined #RubyOnRails
[15:47:56] premera: has joined #RubyOnRails
[15:48:19] premera: has joined #RubyOnRails
[15:49:48] premera: has joined #RubyOnRails
[15:50:13] premera: has joined #RubyOnRails
[15:50:36] premera: has joined #RubyOnRails
[15:50:58] premera: has joined #RubyOnRails
[15:51:23] premera: has joined #RubyOnRails
[15:51:48] premera: has joined #RubyOnRails
[15:51:55] ducklobster: has joined #RubyOnRails
[15:52:09] premera: has joined #RubyOnRails
[15:52:28] s2013: has joined #RubyOnRails
[15:52:55] l0oky: Cya guys, thank you all for your help :)
[15:53:05] RegulationD: has joined #RubyOnRails
[15:53:12] GoGoGarrett: has joined #RubyOnRails
[15:53:15] ProLoser: has joined #RubyOnRails
[15:58:09] chipotle: has joined #RubyOnRails
[15:59:25] asheinfeld: has joined #RubyOnRails
[16:00:00] michael_mbp: sure thing mate
[16:00:21] GPrime: has joined #RubyOnRails
[16:00:31] denym_: Hey guys. I have a html theme that uses opensans... after implementing it to my rails app the font is slightly minor than to the original theme... but everything is the same... if I check the chrome dev inspector in rails the font gets rendered as Arial and in the original theme as OTS derived font... any idea?
[16:02:41] twilling: has joined #RubyOnRails
[16:03:20] bronson: has joined #RubyOnRails
[16:04:05] balr0g: has joined #RubyOnRails
[16:04:10] SteenJobs: has joined #RubyOnRails
[16:06:03] penzur: has joined #RubyOnRails
[16:06:19] sinkensabe: has joined #RubyOnRails
[16:09:19] livathinos: has joined #RubyOnRails
[16:13:38] a1fa: has left #RubyOnRails: ()
[16:15:19] cornerma1: has joined #RubyOnRails
[16:16:48] robbyoconnor: has joined #RubyOnRails
[16:17:35] aloneintheworld: has joined #RubyOnRails
[16:20:13] tejasmanohar: has joined #RubyOnRails
[16:20:49] r0bby_: has joined #RubyOnRails
[16:21:23] michael_mbp: check your files are loading via the resource tab
[16:21:35] michael_mbp: try remove the files from the sprockets folder and double check.
[16:22:25] premera: has joined #RubyOnRails
[16:22:47] premera: has joined #RubyOnRails
[16:23:09] premera: has joined #RubyOnRails
[16:23:31] premera: has joined #RubyOnRails
[16:23:56] premera: has joined #RubyOnRails
[16:24:02] hfp_work: has joined #RubyOnRails
[16:24:17] premera: has joined #RubyOnRails
[16:24:31] hfp: has joined #RubyOnRails
[16:24:43] premera: has joined #RubyOnRails
[16:25:04] premera: has joined #RubyOnRails
[16:25:27] premera: has joined #RubyOnRails
[16:25:53] renews: has joined #RubyOnRails
[16:26:44] User458764: Does somebody knows how to represent a hierarchy of countries/regions/cities in yaml? I tried here https://gist.github.com/guibru-sh/3dd8311340fa87bcb0ff but without success
[16:28:45] scottmatheina: has joined #RubyOnRails
[16:28:49] cac: has joined #RubyOnRails
[16:29:40] baweaver: has joined #RubyOnRails
[16:30:34] baweaver_: has joined #RubyOnRails
[16:31:28] hfp: has joined #RubyOnRails
[16:31:46] fedexo: has joined #RubyOnRails
[16:31:55] baweaver_: has joined #RubyOnRails
[16:31:59] hfp_work: has joined #RubyOnRails
[16:32:10] cha1tanya: has joined #RubyOnRails
[16:34:06] IrishGringo: has joined #RubyOnRails
[16:34:43] annlewis: has joined #RubyOnRails
[16:35:20] smathy: has joined #RubyOnRails
[16:37:40] dkam: has joined #RubyOnRails
[16:40:22] tobobo: has joined #RubyOnRails
[16:40:54] erts: has joined #RubyOnRails
[16:46:00] yoongkang: has joined #RubyOnRails
[16:47:19] GoGoGarrett: has joined #RubyOnRails
[16:48:50] AustinLMayes: has joined #RubyOnRails
[16:52:38] Sigma00: denym_: add the font as a resource to your website
[16:52:53] Sigma00: denym_: https://www.google.com/fonts#UsePlace:use/Collection:Open+Sans
[16:53:09] Exuma: has joined #RubyOnRails
[16:55:06] starfox_sf: has joined #RubyOnRails
[16:57:23] ruv: has joined #RubyOnRails
[16:58:21] theery: has joined #RubyOnRails
[16:58:47] erich: has joined #RubyOnRails
[16:59:23] s2013: has joined #RubyOnRails
[16:59:44] erich: has joined #RubyOnRails
[17:00:45] erich: has joined #RubyOnRails
[17:03:09] Pupeno: has joined #RubyOnRails
[17:03:13] Pupeno: has joined #RubyOnRails
[17:04:59] gambl0re: has joined #RubyOnRails
[17:05:39] denym_: Sigma00: yeah found this was missing the googlefont link in my header oO so rookie
[17:07:04] sinkensabe: has joined #RubyOnRails
[17:08:51] DLSteve: has joined #RubyOnRails
[17:09:20] Lightsword: has joined #RubyOnRails
[17:10:00] workmad3: has joined #RubyOnRails
[17:13:07] poincare101: has joined #RubyOnRails
[17:13:09] squiercaster: has joined #RubyOnRails
[17:13:10] qwertme: has joined #RubyOnRails
[17:13:15] bmalum: has joined #RubyOnRails
[17:14:52] x44x45x41x4E: has joined #RubyOnRails
[17:17:28] SteenJobs: has joined #RubyOnRails
[17:17:43] Dzejmskrokan: has joined #RubyOnRails
[17:20:06] artto: has joined #RubyOnRails
[17:20:06] renews: has joined #RubyOnRails
[17:20:27] michael_mbp: for the yaml Q - http://stackoverflow.com/a/16335038/495653
[17:21:08] michael_mbp: Aeyrix: still here?
[17:21:11] Pazician: has joined #RubyOnRails
[17:21:53] gerep: has joined #RubyOnRails
[17:22:22] zamerick_: has joined #RubyOnRails
[17:23:41] Papierkorb: has joined #RubyOnRails
[17:23:59] RegulationD: has joined #RubyOnRails
[17:27:35] Pazician: has joined #RubyOnRails
[17:28:56] asheinfeld: has joined #RubyOnRails
[17:32:26] poincare101: has joined #RubyOnRails
[17:32:41] Rubie: has joined #RubyOnRails
[17:36:19] maz-dev: has joined #RubyOnRails
[17:36:34] fgo: has joined #RubyOnRails
[17:37:00] otherj: has joined #RubyOnRails
[17:38:47] blackmesa: has joined #RubyOnRails
[17:39:45] sbhatore: Hey, I'm contributing to rails, and I am a beginner. When are we supposed to use double quoted strings and where single quoted ? Seems like single quoted is preferred for stringified Hashes, etc. Can someone pour some more light on the matter ?
[17:41:01] duderonomy: has joined #RubyOnRails
[17:41:28] GoGoGarrett: has joined #RubyOnRails
[17:42:14] [H]unt3r: has joined #RubyOnRails
[17:42:15] tbuehlmann: sbhatore, I can't find anything about that in the contributing guide, only: "Follow the conventions in the source you see used already."
[17:42:43] tbuehlmann: my assumption: double quoted for strings with interpolation, single quoted for strings without
[17:43:02] lxsameer: has joined #RubyOnRails
[17:43:07] sbhatore: tbuehlmann: hmmm....Yeah, you are right
[17:43:32] lxsameer: hey guys , any one from Netherland in here?
[17:44:30] Pupeno: has joined #RubyOnRails
[17:45:30] gerep: I have two methods inside my helpers/application_helper.rb and I'm calling them in my view. Those methods receive a model and check for errors. https://gist.github.com/gerep/8f8b20fa3bb46ca37616
[17:45:54] starfox_sf: has joined #RubyOnRails
[17:46:06] gerep: The problem happens because when the method receives the model @user, it has no errors although it has validation errors in the controller create method
[17:46:20] gerep: Is the redirect_to refreshing everything?
[17:47:44] gerep: I'm passing the @user to the route, signup_path(@user) and also, the form field that were filled are blank
[17:47:49] gerep: What am I doing wrong?
[17:48:41] newish: has joined #RubyOnRails
[17:49:14] newish: has left #RubyOnRails: ()
[17:49:16] tbuehlmann: gerep, after redirecting you are assigning a new user object, I suppose. so, don't redirect, but render a view
[17:50:12] dkam: has joined #RubyOnRails
[17:51:12] gerep: tbuehlmann, You are correct :) That solve the problem, thanks!
[17:52:08] lapide_viridi: has joined #RubyOnRails
[17:52:18] yoongkang: has joined #RubyOnRails
[17:54:38] qejk: has joined #RubyOnRails
[17:55:49] sbhatore: has joined #RubyOnRails
[17:56:48] _blizzy_: has joined #RubyOnRails
[17:57:13] blackmesa: has joined #RubyOnRails
[17:58:16] qwertme: has joined #RubyOnRails
[17:59:38] DoctorMonocular: has joined #RubyOnRails
[18:00:18] Rubie: has joined #RubyOnRails
[18:05:30] squiercaster: has joined #RubyOnRails
[18:06:45] babasbot: has joined #RubyOnRails
[18:07:44] sinkensabe: has joined #RubyOnRails
[18:10:41] IrishGringo: has joined #RubyOnRails
[18:11:17] teufelChiCoder: has joined #RubyOnRails
[18:14:17] renews: has joined #RubyOnRails
[18:17:15] teufelChiCoder: has joined #RubyOnRails
[18:21:11] icehawk78: has joined #RubyOnRails
[18:23:27] mr_foobar: has joined #RubyOnRails
[18:25:13] nahtnam: has joined #RubyOnRails
[18:28:02] Tinyyy: has joined #RubyOnRails
[18:28:53] Pazician: has joined #RubyOnRails
[18:29:53] lxsameer: does any one knows about salary rate for a senior ruby dev in netherland ?
[18:30:04] stamina: has joined #RubyOnRails
[18:30:22] asheinfeld: has joined #RubyOnRails
[18:32:04] sargas: has joined #RubyOnRails
[18:32:33] sargas: has joined #RubyOnRails
[18:32:59] sargas: has joined #RubyOnRails
[18:35:21] GPrime: has joined #RubyOnRails
[18:35:34] GoGoGarrett: has joined #RubyOnRails
[18:39:10] dionysus69: has joined #RubyOnRails
[18:39:51] RegulationD: has joined #RubyOnRails
[18:44:21] cac: has joined #RubyOnRails
[18:44:31] bratsche: has joined #RubyOnRails
[18:47:25] Sigma00: look for companies with ruby positions on glassdoor or other related websites?
[18:50:25] scottmatheina: has joined #RubyOnRails
[18:50:36] poincare101: has joined #RubyOnRails
[18:53:04] Cache_Money: has joined #RubyOnRails
[18:57:07] marr: has joined #RubyOnRails
[18:58:27] blackmesa: has joined #RubyOnRails
[18:58:45] workmad3: has joined #RubyOnRails
[18:59:41] nahtnam: Does a rails session expire after you close the browser? For me it doesnt
[19:02:53] poincare101: has joined #RubyOnRails
[19:03:49] dkam: has joined #RubyOnRails
[19:04:19] Etriaph: has joined #RubyOnRails
[19:07:41] tobobo: has joined #RubyOnRails
[19:08:26] renews: has joined #RubyOnRails
[19:08:31] sinkensabe: has joined #RubyOnRails
[19:08:41] mhib: has joined #RubyOnRails
[19:09:12] sinkensabe: has joined #RubyOnRails
[19:10:06] twilling: has joined #RubyOnRails
[19:10:06] t_mmyv: has joined #RubyOnRails
[19:12:43] ProLoser: has joined #RubyOnRails
[19:20:29] nahtnam: How can I access a session set by rails in ember/
[19:20:57] asheinfeld: has joined #RubyOnRails
[19:22:49] cmmagid: has joined #RubyOnRails
[19:23:27] tbuehlmann: nahtnam, it's actually just a cookie, but you'd have to pull it apart, since a hash is added to it. what are you trying to achieve?
[19:23:43] fryguy: it MIGHT be just a cookie
[19:24:31] fryguy: and if it is just a cookie, the only way to read it is to embed the encryption key that rails uses to read it in your ember app, which ruins the security of the session and allows anybody to read session variables for your users
[19:24:50] tbuehlmann: fryguy, the cookie shouldn't be encrypted, right?
[19:24:50] fryguy: i would rethin whatever design you are working with
[19:25:02] fryguy: by default in rails 4+
[19:25:17] tbuehlmann: isn't there just a hash attached to it?
[19:25:21] tbuehlmann: so you can't tamper?
[19:25:23] fryguy: it's signed as well
[19:25:27] fryguy: with an hmac, yes
[19:25:46] tbuehlmann: have a source for the encryption thing?
[19:27:05] fryguy: http://api.rubyonrails.org/classes/ActionDispatch/Session/CookieStore.html
[19:27:17] fryguy: quote: If you have secret_key_base set, your cookies will be encrypted.
[19:27:32] volk_: has joined #RubyOnRails
[19:28:07] Coldblackice: has joined #RubyOnRails
[19:28:49] volk_: hey fellas, got a question ??? im coming from a mongo background where mongoid allows you to set fields on models with types and default values, etc. is there something similar to that for postgres/mysql? i have a db/structure file, but thats a pain in the balls to constantly open to check what fields a model has
[19:29:31] fryguy: volk_: there's the annotate gem
[19:29:41] GoGoGarrett: has joined #RubyOnRails
[19:29:48] volk_: let me look into it
[19:29:56] fryguy: also you can just type the name of a model in a REPL and you'll get a list of columns in the model (as parameters to the constructor for the class, so pry etc will show it to you)
[19:30:27] fryguy: or just keep a terminal open with your db client and use the describe table or \d commands (depending on rdbms) to query the structure
[19:30:48] volk_: right all of those are useful, but not always the same as having it directly in the model :/
[19:30:49] alaing: has joined #RubyOnRails
[19:31:50] fryguy: you can also explicitly set columsn for your models if you really want to, and stop/override activerecord from dynamically querying to determine the columns (this is a handy technique to facilitate 0-downtime deploys that involve migrations)
[19:32:18] tbuehlmann: fryguy, thanks
[19:32:49] Pazician: has joined #RubyOnRails
[19:33:08] tbuehlmann: just today I read about just the hashing method. looks like the security guide is not uptodate
[19:33:14] nahtnam: tbuehlmann: My rails app sets a session and i want to access it via emberjs
[19:33:35] tbuehlmann: then maybe a simple cookie will do?
[19:34:04] nahtnam: tbuehlmann: Well ill be storing the uid of the user and I dont want the user to be able to see it in plain text
[19:34:30] volk_: fryguy: the explicitely setting columns for my models, can you explain a bit more what you mean?
[19:34:35] volk_: explicitly *
[19:35:11] tbuehlmann: do you really need the user id or just some kind of auth token?
[19:36:04] nahtnam: tbuehlmann: The uid is the id that i receive from oauth
[19:36:09] fryguy: hrmm, can't find a good source for it
[19:36:17] cashnguns: has joined #RubyOnRails
[19:36:43] fryguy: nahtnam: if you don't want the user to see it in plain text, you can't access it from ember
[19:37:52] nahtnam: fryguy: Hm, ok. So would I have to make access tokens and use those?
[19:38:04] fryguy: sure something like that
[19:39:12] baweaver: has joined #RubyOnRails
[19:39:32] kadoppe: has joined #RubyOnRails
[19:40:06] IrishGringo: has joined #RubyOnRails
[19:40:08] ght: Any of you guys work much with OAuth2?
[19:40:17] hamster88: has joined #RubyOnRails
[19:40:25] hamster88: Greetings everyone :)
[19:40:31] ght: I"m using Rails 4.2 as the framework and #oauth is idle, so, figured I'd give it a shot here.
[19:40:43] jarray52: has joined #RubyOnRails
[19:41:44] fryguy: ght: just ask the question you want to ask
[19:42:21] hamster88: I have a question, If i have a users controller and model and avatar is associated with it and if i want the user to have ability to build a profile.. I only need to generate the profile model and the controller and views only right?
[19:42:29] bin_005: has joined #RubyOnRails
[19:43:03] baweaver_: has joined #RubyOnRails
[19:43:06] fryguy: hamster88: sounds right
[19:43:09] nahtnam: Im not sure if I want to have a public facing api now that i think of it
[19:43:17] nahtnam: I like ember though. Its fast/responsive :(
[19:43:42] Dzejmskrokan: has joined #RubyOnRails
[19:43:51] baweaver: has joined #RubyOnRails
[19:44:16] hamster88: and how should i proceed with associating a profile with the user. ?
[19:45:11] baweaver_: has joined #RubyOnRails
[19:45:19] fryguy: "has_one :profile" to the user model
[19:45:33] fryguy: or just put the fields for the profile right on the user model and skip creating a new model
[19:45:37] fryguy: which might be appropriate
[19:45:48] hamster88: and belongs_to :user << in profile model right?
[19:46:23] hamster88: just put the fields for the profile right on the user model and skip creating a new model <<< can you please elaborate this a bit.. ?
[19:46:45] fryguy: hamster88: what elaboration do you need
[19:46:52] ght: fryguy: When utilizing OAuth2, all OAuth2 providers seem to work the same, insofar as you pass a "client secret", provided when you register your app with the provider, and to allow user access to the provider on your Rails app, you provide a link to the OAuth2 provider with a return URI (link back to your Rails site) and your client secret. Once the user authorizes the app, the provider passes you back to the return URI you specified with a "code
[19:46:57] fryguy: you add columns to the user model and store things there
[19:47:00] User458764: has joined #RubyOnRails
[19:47:22] fryguy: ght: you got cut off
[19:47:31] ght: The problem is, we want to allow our Rails app to allow users to authorize multiple accounts with say, "Provider A", and all Provider A passes back when an account is authorized is that "code" field, which leaves us no ability to differentiate two providers.
[19:47:37] hamster88: rails g migration AddProfileIdToUsers << like that?
[19:47:49] ght: fryguy: Will try again, here:
[19:47:49] fryguy: hamster88: maybe
[19:47:52] Limix: has joined #RubyOnRails
[19:47:59] fryguy: ght: what is going to be in the user's profile
[19:48:41] toretore: has joined #RubyOnRails
[19:49:02] baweaver: has joined #RubyOnRails
[19:49:04] fryguy: ght: you know which provider you are working with when you make the request, so just store the provider then
[19:49:17] ght: fryguy: The question is, since these OAuth2 providers only pass back a "code" and no other unique identifer as to which account on "Product A" was authorized, are there any strategies you're aware of to differentiate between OAuth2 authorizatons to the same provider?
[19:49:34] ght: fryguy: The issue involves authorizing multiple accounts on the same provider, which our users want.
[19:50:16] fryguy: ght: user has_many :accounts, account has provider_type, provider_uid, and code fields
[19:51:16] ght: fryguy: So are you assigning a random string or integer to the provider_uid field?
[19:51:23] ght: to differentiate the authorizations?
[19:51:28] ght: From the same provider?
[19:52:06] fryguy: ght: does the oauth provider not give you an identity api to get information about the user?
[19:52:31] ght: Exactly, none of them seem to provide anything back but the code itself.
[19:52:32] fryguy: it's usually called /me in demos
[19:52:40] ght: No other unique identifiers.
[19:53:07] ght: oh wait
[19:53:11] fryguy: you should look up documentation for your provider and find the api for it
[19:53:21] ght: Yeah, I guess I could then use the returned code to pull identifying information
[19:53:27] fryguy: github/google/etc all provide a call to get information about the user, so you can do things like use their avatar on your site and stuff
[19:53:35] ght: That's a good idea, ok.
[19:53:37] ght: Thank you, very helpful.
[19:58:00] dopie: has joined #RubyOnRails
[20:02:38] renews: has joined #RubyOnRails
[20:02:58] smathy: has joined #RubyOnRails
[20:03:10] Blizzy: has joined #RubyOnRails
[20:03:52] artto_: has joined #RubyOnRails
[20:04:07] ryand-smith: has joined #RubyOnRails
[20:04:18] towski_: has joined #RubyOnRails
[20:04:55] skj3gg_: has joined #RubyOnRails
[20:05:30] culturelabs_: has joined #RubyOnRails
[20:05:35] crdpink: has joined #RubyOnRails
[20:05:35] BBHoss_: has joined #RubyOnRails
[20:05:41] tdguy_: has joined #RubyOnRails
[20:05:42] Signum_: has joined #RubyOnRails
[20:07:12] cina_: has joined #RubyOnRails
[20:07:20] drewdavis_: has joined #RubyOnRails
[20:07:24] jxf_: has joined #RubyOnRails
[20:07:40] mc_-: has joined #RubyOnRails
[20:07:48] siksi: has joined #RubyOnRails
[20:07:52] peteyg_: has joined #RubyOnRails
[20:07:55] nickenchuggets_: has joined #RubyOnRails
[20:08:27] kramsee_: has joined #RubyOnRails
[20:08:43] DefV_: has joined #RubyOnRails
[20:08:57] lacrosse___: has joined #RubyOnRails
[20:08:58] charliesome: has joined #RubyOnRails
[20:09:18] t-richards_: has joined #RubyOnRails
[20:10:52] hamster88: umm I have created the relationship between profile and users, how do i get to associate in database.. what sort of migration do i need to add?
[20:10:58] Bearie: has joined #RubyOnRails
[20:10:58] synfinatic_: has joined #RubyOnRails
[20:11:04] okdas_: has joined #RubyOnRails
[20:11:06] Shidash_: has joined #RubyOnRails
[20:11:12] Lat: has joined #RubyOnRails
[20:11:13] george2_: has joined #RubyOnRails
[20:11:15] Haydos_: has joined #RubyOnRails
[20:11:20] Junaos_: has joined #RubyOnRails
[20:11:22] Brando753-o_O_o: has joined #RubyOnRails
[20:11:25] hamster88: I can't get to decide what migration should i go with :/
[20:11:29] hyperdrive: has joined #RubyOnRails
[20:11:34] psmolen_: has joined #RubyOnRails
[20:11:36] Klumben_: has joined #RubyOnRails
[20:11:40] weaksauce: hamster88 what association is it?
[20:11:50] soahccc^: has joined #RubyOnRails
[20:11:51] xye-: has joined #RubyOnRails
[20:11:52] Mathieu: has joined #RubyOnRails
[20:11:53] hamster88: oh hello weaksauce :)
[20:12:14] sfr^^: has joined #RubyOnRails
[20:12:15] kartouch_: has joined #RubyOnRails
[20:12:15] hamster88: weaksauce, the association is like this way .. for user.rb > has_one :profile
[20:12:16] LBRapid_: has joined #RubyOnRails
[20:12:21] SegFaultAX_: has joined #RubyOnRails
[20:12:24] Plas: has joined #RubyOnRails
[20:12:30] hamster88: for profile.rb > belongs_to :user
[20:12:50] arielserafini_: has joined #RubyOnRails
[20:12:56] FooBarWidget_: has joined #RubyOnRails
[20:12:59] hamster88: so i can't get to decide what column should i add to user/profile to connect them together
[20:13:30] hamster88: because user will be creating a profile.. so i can't decide over that part
[20:13:44] baweaver: has joined #RubyOnRails
[20:13:48] DarkBushido_: has joined #RubyOnRails
[20:14:44] Junaos_: has left #RubyOnRails: ()
[20:14:50] waseem_: hamster88: Have you read the associatins rails guide?
[20:15:03] Junaos: has joined #RubyOnRails
[20:15:06] waseem_: !associations
[20:15:06] helpa: http://guides.rubyonrails.org/association_basics.html - Active Record Association Basics by Mike Gunderloy
[20:15:14] flxsource: has joined #RubyOnRails
[20:15:18] mosez: has joined #RubyOnRails
[20:15:19] Avon_: has joined #RubyOnRails
[20:15:33] dkam: has joined #RubyOnRails
[20:16:43] beingjohnm: has joined #RubyOnRails
[20:16:45] hamster88: waseem_, its a one to one association that i have created.. but migration field is tricky for me :/
[20:17:14] waseem_: hamster88: Read on one-to-one association in that guide. It'll answer your question.
[20:17:50] universa1: has joined #RubyOnRails
[20:18:10] Creede: has joined #RubyOnRails
[20:18:22] hamster88: let me give it a shot should work
[20:18:44] hyperdrive: has joined #RubyOnRails
[20:18:51] finges: has joined #RubyOnRails
[20:19:03] eggoez: has joined #RubyOnRails
[20:19:17] dpg: has joined #RubyOnRails
[20:19:35] widith_: has joined #RubyOnRails
[20:20:08] hamster88: waseem_, I read that and if i go by that.. i have things setup correctly. The thing i can't decide is .. should i generate migration to add ProfileId column to Users table or UsersId column to profile table
[20:20:09] GnuYawk: has joined #RubyOnRails
[20:20:19] eoy: has joined #RubyOnRails
[20:20:20] yocapybara: has joined #RubyOnRails
[20:20:40] melter: has joined #RubyOnRails
[20:20:46] ChoiKyuSang: has joined #RubyOnRails
[20:21:00] waseem_: hamster88: The thing that belongs to something else has the id of other thing that it belongs to.
[20:21:03] jokke: has joined #RubyOnRails
[20:21:38] mozzarella: has joined #RubyOnRails
[20:21:43] centrx: has joined #RubyOnRails
[20:22:11] _blizzy_: has joined #RubyOnRails
[20:22:20] hamster88: waseem_, so if profile belongs to the user, and user has one profile < so the profile column should be added to users table ?
[20:22:34] fortunate: has joined #RubyOnRails
[20:22:44] waseem_: hamster88: The opposite. :)
[20:22:48] MiracleBlue: has joined #RubyOnRails
[20:22:49] Dwarf: has joined #RubyOnRails
[20:22:52] mcr-credil: has joined #RubyOnRails
[20:22:57] marr123: has joined #RubyOnRails
[20:23:08] waseem_: hamster88: http://guides.rubyonrails.org/association_basics.html#the-belongs-to-association
[20:23:12] Pazician_: has joined #RubyOnRails
[20:23:17] SteenJobs: has joined #RubyOnRails
[20:23:20] waseem_: hamster88: See the image there. It has a very good example.
[20:23:31] jlpeters: has joined #RubyOnRails
[20:23:42] hamster88: like rails g migrate AddUserIdToProfile << that should to the job i think
[20:23:51] GoGoGarrett: has joined #RubyOnRails
[20:23:58] helpa: Why don't you try it and find out for yourself?
[20:24:22] Jamo___: has joined #RubyOnRails
[20:24:31] kiki_lam1: has joined #RubyOnRails
[20:24:40] hamster88: lets see what it does.
[20:24:42] fedexo_: has joined #RubyOnRails
[20:24:54] IrishGringo_: has joined #RubyOnRails
[20:24:55] ndrei_: has joined #RubyOnRails
[20:24:56] chrisarc1nd: has joined #RubyOnRails
[20:25:14] kaspergr1bbe: has joined #RubyOnRails
[20:25:16] Overand_: has joined #RubyOnRails
[20:25:57] firevolt: has joined #RubyOnRails
[20:26:41] aaronr_: has joined #RubyOnRails
[20:26:51] nickenchuggets__: has joined #RubyOnRails
[20:27:37] pontiki: has joined #RubyOnRails
[20:28:11] fluxsource: has joined #RubyOnRails
[20:28:12] kadoppe_: has joined #RubyOnRails
[20:28:16] mathie: has joined #RubyOnRails
[20:28:18] trollface: has joined #RubyOnRails
[20:28:18] FooBarWidget: has joined #RubyOnRails
[20:28:19] sfr^: has joined #RubyOnRails
[20:28:19] DarkBushido: has joined #RubyOnRails
[20:28:20] arielserafini_: has joined #RubyOnRails
[20:28:22] LBRapid: has joined #RubyOnRails
[20:28:22] epochwolf|2: has joined #RubyOnRails
[20:28:26] prasselpikachu_: has joined #RubyOnRails
[20:28:27] Avon: has joined #RubyOnRails
[20:28:27] Avon: has joined #RubyOnRails
[20:28:28] baron: has joined #RubyOnRails
[20:28:32] lupine_85: has joined #RubyOnRails
[20:28:33] Seich_: has joined #RubyOnRails
[20:28:34] jalcine-: has joined #RubyOnRails
[20:28:37] Shidash: has joined #RubyOnRails
[20:28:38] Lat: has joined #RubyOnRails
[20:28:39] sarink: has joined #RubyOnRails
[20:28:39] axil42_: has joined #RubyOnRails
[20:28:45] iooner_: has joined #RubyOnRails
[20:29:24] cjk101010_: has joined #RubyOnRails
[20:30:15] drewdavis: has joined #RubyOnRails
[20:30:25] PlasmaStar: has joined #RubyOnRails
[20:30:38] weaksauce: has joined #RubyOnRails
[20:30:41] george2: has joined #RubyOnRails
[20:31:03] Pazician_: has joined #RubyOnRails
[20:31:12] blackmesa: has joined #RubyOnRails
[20:31:21] martinbmadsen: has joined #RubyOnRails
[20:32:17] fryguy: has joined #RubyOnRails
[20:32:40] larissa: has joined #RubyOnRails
[20:33:12] blackmes1: has joined #RubyOnRails
[20:33:15] crdpink: has joined #RubyOnRails
[20:33:18] mostlybadfly: has joined #RubyOnRails
[20:34:09] peterhil`: has joined #RubyOnRails
[20:34:29] jtdowney_: has joined #RubyOnRails
[20:34:36] _jesterfraud: has joined #RubyOnRails
[20:34:37] balr0g: has joined #RubyOnRails
[20:34:46] kartouch: has joined #RubyOnRails
[20:34:48] cmmagid_: has joined #RubyOnRails
[20:34:49] universa1: has joined #RubyOnRails
[20:35:32] hamster88: if i want to check if a profile exists or not, should it be like .. if @profile_exists or what?
[20:35:37] higuys: has joined #RubyOnRails
[20:35:51] SegFaultAX: has joined #RubyOnRails
[20:36:01] Guest85049: has joined #RubyOnRails
[20:36:01] maZtah: has joined #RubyOnRails
[20:36:38] beneggett: has joined #RubyOnRails
[20:37:05] FernandoBasso: has joined #RubyOnRails
[20:37:14] pontiki: hamster88: you can say @profile.exists?, @profile.present?, or even @profile.persisted?
[20:37:53] dlitz_: has joined #RubyOnRails
[20:38:00] Anakat: has joined #RubyOnRails
[20:38:06] eyck_: has joined #RubyOnRails
[20:38:10] chrisarcand: has joined #RubyOnRails
[20:38:14] sung: has joined #RubyOnRails
[20:38:14] sung: has joined #RubyOnRails
[20:38:28] EminenceHC: has joined #RubyOnRails
[20:38:37] yfeldblum: has joined #RubyOnRails
[20:38:37] cschneid: has joined #RubyOnRails
[20:38:37] LBo: has joined #RubyOnRails
[20:38:37] Creede: has joined #RubyOnRails
[20:38:37] psmolen_: has joined #RubyOnRails
[20:38:37] cac: has joined #RubyOnRails
[20:38:37] marienz: has joined #RubyOnRails
[20:38:37] kies^: has joined #RubyOnRails
[20:38:37] Isthar: has joined #RubyOnRails
[20:38:48] Skelz0r_: has joined #RubyOnRails
[20:38:48] badeball_: has joined #RubyOnRails
[20:39:01] charliesome: has joined #RubyOnRails
[20:39:13] rlomax_: has joined #RubyOnRails
[20:39:16] moloch: has joined #RubyOnRails
[20:39:21] atmosx_: has joined #RubyOnRails
[20:39:21] cschneid: has joined #RubyOnRails
[20:39:24] weaksauce: hamster88 you'd have to go through the user object unless you have the profile using a find method
[20:39:46] robotbrain_: has joined #RubyOnRails
[20:39:52] weaksauce: hamster88 http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html
[20:40:06] BBHoss_: has joined #RubyOnRails
[20:40:06] Sypheren_: has joined #RubyOnRails
[20:40:06] baron_: has joined #RubyOnRails
[20:40:08] weaksauce: under the auto-generated methods replace other with whatever the association name is.
[20:40:20] sash__: has joined #RubyOnRails
[20:40:56] lesnik__: has joined #RubyOnRails
[20:41:25] ewilliam: has joined #RubyOnRails
[20:41:27] constantinexvi_: has joined #RubyOnRails
[20:41:28] shtirlic_: has joined #RubyOnRails
[20:41:32] elaptics`: has joined #RubyOnRails
[20:41:32] rmoriz_: has joined #RubyOnRails
[20:41:38] hamster88: weaksauce, a question here.. i have generated a userID to profile migration.. now i am wondering about userId thing. like how should i get that to get the right id of the user that is already logged in or the user who has that profile
[20:41:51] weaksauce: it should be user_id
[20:41:53] toydestroyer_: has joined #RubyOnRails
[20:42:13] goezz: has joined #RubyOnRails
[20:42:13] leslie1: has joined #RubyOnRails
[20:42:20] hamster88: that is user_id .. sorry for the typo.
[20:42:27] GSF: has joined #RubyOnRails
[20:42:29] Leeky_: has joined #RubyOnRails
[20:42:30] cashnguns: has joined #RubyOnRails
[20:42:34] funnel_: has joined #RubyOnRails
[20:42:42] RubyNewbey: has joined #RubyOnRails
[20:42:48] weaksauce: and you'd use one of those methods to build the profile object for you.
[20:43:15] kenj0: has joined #RubyOnRails
[20:43:20] zack6849_: has joined #RubyOnRails
[20:43:22] weaksauce: so the general pattern for this is find the object you want to create a relationship with. then use that to build the other object.
[20:44:04] markelite: has joined #RubyOnRails
[20:44:18] weaksauce: User.find_by(name: "something").first.build_profile({attributes: "hash", of: "profile things" })
[20:44:25] itkin-: has joined #RubyOnRails
[20:44:26] skakri`: has joined #RubyOnRails
[20:44:29] shawnatyger: has joined #RubyOnRails
[20:44:31] Elion46: has joined #RubyOnRails
[20:44:32] amitchellbullard: has joined #RubyOnRails
[20:44:33] thomasfedb_: has joined #RubyOnRails
[20:44:35] pusewicz_: has joined #RubyOnRails
[20:44:44] aguynamedben: has joined #RubyOnRails
[20:44:50] hellschreiber_: has joined #RubyOnRails
[20:44:52] Klumben: has joined #RubyOnRails
[20:44:59] hamster88: okay so that means, if i want to create a user profile, i need to first set the user_id and set the relationship with user right?
[20:45:08] russt_: has joined #RubyOnRails
[20:45:15] chridal_: has joined #RubyOnRails
[20:45:59] bryancp_: has joined #RubyOnRails
[20:46:26] fluchtreflex_: has joined #RubyOnRails
[20:46:36] danlucraft_: has joined #RubyOnRails
[20:46:38] waseem__: has joined #RubyOnRails
[20:47:16] weaksauce: you'd do user = User.create(name: "a name"); user.build_profile({...}); user.save. you shouldn't ever need to set the id manually
[20:47:30] workmad3: has joined #RubyOnRails
[20:47:31] weaksauce: you can use create instead of build if you want to save immediately
[20:48:18] skarn: has joined #RubyOnRails
[20:48:32] hamster88: how about something like this > https://gist.github.com/thedesignable/97ae5ae38943ba61897c
[20:49:14] fortunat1: has joined #RubyOnRails
[20:49:38] coffeeju1: has joined #RubyOnRails
[20:50:16] dopie: has joined #RubyOnRails
[20:51:06] jtperreault: has joined #RubyOnRails
[20:51:22] Tashi_: has joined #RubyOnRails
[20:52:29] rj-code: has joined #RubyOnRails
[20:52:29] Caius: has joined #RubyOnRails
[20:52:29] beauby: has joined #RubyOnRails
[20:52:40] rtl_: has joined #RubyOnRails
[20:52:42] Caius: has joined #RubyOnRails
[20:52:47] Erthe: has joined #RubyOnRails
[20:53:07] spectra: has joined #RubyOnRails
[20:53:24] fortunat1: has joined #RubyOnRails
[20:53:48] badeball: has joined #RubyOnRails
[20:53:51] jpterry: has joined #RubyOnRails
[20:53:58] K0nserv-_: has joined #RubyOnRails
[20:54:07] tetraktys: has joined #RubyOnRails
[20:54:08] vij-_: has joined #RubyOnRails
[20:54:09] Hamled|Erp: has joined #RubyOnRails
[20:54:17] suffice_: has joined #RubyOnRails
[20:54:30] n008f4g__: has joined #RubyOnRails
[20:54:31] subtwo: has joined #RubyOnRails
[20:54:32] penguinp1wernz: has joined #RubyOnRails
[20:54:36] tskogberg: has joined #RubyOnRails
[20:54:58] ght: has joined #RubyOnRails
[20:55:03] Silex: has joined #RubyOnRails
[20:55:43] Dfoolz: has joined #RubyOnRails
[20:55:46] zlude: has joined #RubyOnRails
[20:55:51] tetraktys: hey guys, in my dev environment my logo won't display. I use haml and as such typed = image_tag 'logo.png', but it renders /assets/logo-longhash.png as src
[20:56:14] daxroc: has joined #RubyOnRails
[20:56:50] renews: has joined #RubyOnRails
[20:57:25] skj3gg: has joined #RubyOnRails
[20:57:54] noah256_: has joined #RubyOnRails
[20:57:57] Sutffness: has joined #RubyOnRails
[20:57:57] hamster88: tetraktys, where does your logo resides?
[20:58:01] constantinexvi: has joined #RubyOnRails
[20:58:07] tetraktys: app/assets/images/logo.png
[20:58:08] hyperdrive: has joined #RubyOnRails
[20:58:12] Olipro_: has joined #RubyOnRails
[20:58:23] widith_: has joined #RubyOnRails
[20:58:29] Sylario_: has joined #RubyOnRails
[20:58:34] michaeldeol: has joined #RubyOnRails
[20:58:39] matt_d_: has joined #RubyOnRails
[20:58:41] thejoecarroll: has joined #RubyOnRails
[20:58:42] siempref_: has joined #RubyOnRails
[20:59:19] bartj3_: has joined #RubyOnRails
[20:59:24] ebryn: has joined #RubyOnRails
[20:59:45] hyperdrive: has joined #RubyOnRails
[20:59:54] nahtnam: has joined #RubyOnRails
[20:59:58] vij-: has joined #RubyOnRails
[21:00:07] jcm: has joined #RubyOnRails
[21:00:11] krzkrz: has joined #RubyOnRails
[21:00:19] andrew-l`: has joined #RubyOnRails
[21:00:27] hfp_: has joined #RubyOnRails
[21:00:29] sbhatore1: has joined #RubyOnRails
[21:00:30] peteyg: has joined #RubyOnRails
[21:00:38] crdpink: has joined #RubyOnRails
[21:00:40] ejnahc_: has joined #RubyOnRails
[21:00:43] TinkerTyper: has joined #RubyOnRails
[21:00:49] papercod1: has joined #RubyOnRails
[21:01:01] Casty: has joined #RubyOnRails
[21:01:13] ndrei: has joined #RubyOnRails
[21:01:20] AnoHito_: has joined #RubyOnRails
[21:01:23] fcser_: has joined #RubyOnRails
[21:01:24] Brandonn: has joined #RubyOnRails
[21:01:34] leex_: has joined #RubyOnRails
[21:01:37] hamster88: tetraktys, try doing this way.. = image_tag "logo.png"
[21:01:39] skyjumpe1: has joined #RubyOnRails
[21:01:47] mosez_: has joined #RubyOnRails
[21:01:53] six: has joined #RubyOnRails
[21:01:56] _jesterfraud: has joined #RubyOnRails
[21:02:01] daed: has joined #RubyOnRails
[21:02:06] JimmyNeutron: has joined #RubyOnRails
[21:02:12] lapidary: has joined #RubyOnRails
[21:02:13] nickjj: has joined #RubyOnRails
[21:02:21] Babelfish: has joined #RubyOnRails
[21:02:25] kitallis: has joined #RubyOnRails
[21:02:28] Synthead: has joined #RubyOnRails
[21:02:35] jriese: has joined #RubyOnRails
[21:02:38] fumduq: has joined #RubyOnRails
[21:02:41] Megatomte: has joined #RubyOnRails
[21:02:42] csmb: has joined #RubyOnRails
[21:02:52] maxmanders: has joined #RubyOnRails
[21:02:57] tetraktys: hamster88 the only difference being the double quotes?
[21:03:07] hamster88: tetraktys, yes
[21:03:23] tetraktys: didn't change unfortunately
[21:03:30] jpterry_: has joined #RubyOnRails
[21:03:41] tetraktys: when i try a non existing image the hash is not generated
[21:03:48] n3b: has joined #RubyOnRails
[21:03:51] Zackio: has joined #RubyOnRails
[21:03:51] Rixius: has joined #RubyOnRails
[21:03:52] hamster88: do you have anything else before that logo.. like a link tag or something?
[21:03:59] tetraktys: it is within a link yes
[21:04:06] apeiros: has joined #RubyOnRails
[21:04:20] hamster88: paste those two line of codes
[21:05:13] confact: has joined #RubyOnRails
[21:06:03] LiquidInsect: has joined #RubyOnRails
[21:06:05] tetraktys: https://gist.github.com/joostvanrijn/861a1956ebe8229164db
[21:06:10] hoodow: has joined #RubyOnRails
[21:06:10] hoodow: has joined #RubyOnRails
[21:06:32] thomasfedb: has joined #RubyOnRails
[21:06:32] thomasfedb: has joined #RubyOnRails
[21:06:44] Guest60848: has joined #RubyOnRails
[21:07:11] lapidary: I have a habtm relation on meals and volunteers for a soup kitchen database, how do I clean up meals_volunteers when I want to delete a meal? destroy is leaving the relations
[21:07:11] darrencauthon: has joined #RubyOnRails
[21:08:13] machty: has joined #RubyOnRails
[21:08:14] darrik: has joined #RubyOnRails
[21:08:31] aujt74: has joined #RubyOnRails
[21:08:34] TDJACR: has joined #RubyOnRails
[21:08:40] tbuehlmann: lapidary, you'd add a dependent: :delete_all option to the belongs_to association
[21:08:54] jimbeaudoin: has joined #RubyOnRails
[21:09:05] matt_d: has joined #RubyOnRails
[21:09:07] hamster88: tetraktys, try it this way = image_tag('svlogo.png')
[21:09:08] Lloyd: has joined #RubyOnRails
[21:09:11] lapidary: ahh thanks tbuehlmann
[21:09:35] workmad3: has joined #RubyOnRails
[21:09:41] hamster88: I tried that and that worked , give it a shot
[21:09:46] tetraktys: to no avail hamster88
[21:09:47] tbuehlmann: I'm sorry, I meant to the has_many association
[21:10:24] Skelz0r: has joined #RubyOnRails
[21:10:25] lapidary: well, I only use has_and_belongs_to_many so I hope it???s that one
[21:10:43] Dzejmskrokan: has joined #RubyOnRails
[21:11:18] hamster88: tetraktys, i just added a code as comment on your gist have a look
[21:11:46] hamster88: I used the same code for one of my projects.
[21:11:52] rakm: has joined #RubyOnRails
[21:12:07] smathy: has joined #RubyOnRails
[21:12:25] bin_005: has joined #RubyOnRails
[21:12:44] leslie: has joined #RubyOnRails
[21:12:44] leslie: has joined #RubyOnRails
[21:12:50] sypheren: has joined #RubyOnRails
[21:12:54] tetraktys: even when i just do image_tag('logo.png') it's not working, outside the link
[21:12:55] shtirlic: has joined #RubyOnRails
[21:12:58] markelite: has joined #RubyOnRails
[21:12:58] GreySyntax: has joined #RubyOnRails
[21:13:14] tetraktys: i've used it before just fin
[21:13:15] sinkensabe: has joined #RubyOnRails
[21:13:34] rmoriz: has joined #RubyOnRails
[21:14:13] bruno-_: has joined #RubyOnRails
[21:14:29] rhinon_: has joined #RubyOnRails
[21:14:38] tetraktys: my workaround would be putting it in public...
[21:14:59] jxie_: has joined #RubyOnRails
[21:15:08] robotbrain: has joined #RubyOnRails
[21:15:28] hamster88: you can give it a try
[21:15:34] okdas: has joined #RubyOnRails
[21:15:34] okdas: has joined #RubyOnRails
[21:15:40] edwinvdgraaf: has joined #RubyOnRails
[21:15:47] nikky3: has joined #RubyOnRails
[21:15:50] v4s: has joined #RubyOnRails
[21:15:54] mc_-: has joined #RubyOnRails
[21:15:55] zly: has joined #RubyOnRails
[21:15:56] hamster88: can you give me whatever it is showing when you inspect element?
[21:15:58] weltzooo3: has joined #RubyOnRails
[21:16:05] penguinpowernz: has joined #RubyOnRails
[21:16:08] hamster88: I mean for that logo thing.
[21:16:10] mosez: has joined #RubyOnRails
[21:16:12] starfox_1f: has joined #RubyOnRails
[21:16:23] mfoo_: has joined #RubyOnRails
[21:16:26] braincrash: has joined #RubyOnRails
[21:16:26] jarray52: has left #RubyOnRails: ()
[21:16:27] isjaylee: has joined #RubyOnRails
[21:16:31] leeky: has joined #RubyOnRails
[21:16:38] cina: has joined #RubyOnRails
[21:16:49] brandon__: has joined #RubyOnRails
[21:16:55] toydestroyer: has joined #RubyOnRails
[21:17:10] FastJack_: has joined #RubyOnRails
[21:17:13] aeffle: has joined #RubyOnRails
[21:17:14] aujt74_: has joined #RubyOnRails
[21:17:18] fluchtreflex: has joined #RubyOnRails
[21:17:19] fluchtreflex: has joined #RubyOnRails
[21:17:23] maxmanders_: has joined #RubyOnRails
[21:17:24] Diabolik: has joined #RubyOnRails
[21:17:39] Mch1: has joined #RubyOnRails
[21:17:48] skj3gg_: has joined #RubyOnRails
[21:17:51] tetraktys: hamster88 https://gist.github.com/joostvanrijn/861a1956ebe8229164db as a comment (you might need to inspect it)
[21:17:53] GoGoGarrett: has joined #RubyOnRails
[21:18:23] leex: has joined #RubyOnRails
[21:18:34] Mellett68_: has joined #RubyOnRails
[21:18:47] FCser: has joined #RubyOnRails
[21:18:47] Siyo_: has joined #RubyOnRails
[21:18:48] yoongkang: has joined #RubyOnRails
[21:19:09] boom1992: has joined #RubyOnRails
[21:19:21] JoPhantom: has joined #RubyOnRails
[21:19:39] n008f4g_: has joined #RubyOnRails
[21:19:58] robustus|Off: has joined #RubyOnRails
[21:20:03] thews_: has joined #RubyOnRails
[21:20:04] crashtown-: has joined #RubyOnRails
[21:20:05] siemprefresco: has joined #RubyOnRails
[21:20:10] ndrei_: has joined #RubyOnRails
[21:20:15] skarn: has joined #RubyOnRails
[21:20:15] aguynamedben: has joined #RubyOnRails
[21:20:26] isjaylee: anyone here have experience pushing to heroku with the forem gem? i'm having trouble getting it to recognize my local change (even though it's been committed)
[21:20:27] hypnosb: has joined #RubyOnRails
[21:20:32] \13k_: has joined #RubyOnRails
[21:20:35] alexblom: has joined #RubyOnRails
[21:20:39] Kovensky: has joined #RubyOnRails
[21:20:43] xybre: has joined #RubyOnRails
[21:20:44] tbuehlmann: has joined #RubyOnRails
[21:20:50] SirFunk: has joined #RubyOnRails
[21:20:52] sparr: has joined #RubyOnRails
[21:20:53] PaulePanter: has joined #RubyOnRails
[21:20:58] kiki_lamb: has joined #RubyOnRails
[21:21:00] nizmow: has joined #RubyOnRails
[21:21:03] euphoriaa: has joined #RubyOnRails
[21:21:03] DylanJ: has joined #RubyOnRails
[21:21:09] erihel: has joined #RubyOnRails
[21:21:29] steve_mc: has joined #RubyOnRails
[21:21:29] hamster88: tetraktys, just updated my comment
[21:21:31] jgt: has joined #RubyOnRails
[21:21:35] jgt: hey folks
[21:21:38] sonOfRa: has joined #RubyOnRails
[21:21:51] Marquel: has joined #RubyOnRails
[21:21:59] terrellt: has joined #RubyOnRails
[21:22:00] Silex: has joined #RubyOnRails
[21:22:01] xMopxShell: has joined #RubyOnRails
[21:22:03] Babelfish: has joined #RubyOnRails
[21:22:06] tbuehlmann: has joined #RubyOnRails
[21:22:09] bashusr: has joined #RubyOnRails
[21:22:16] hamster88: hello jgt !
[21:22:19] erichmenge: has joined #RubyOnRails
[21:22:22] Klumben: has joined #RubyOnRails
[21:22:31] benlieb: has joined #RubyOnRails
[21:22:37] Takumo: has joined #RubyOnRails
[21:22:37] Takumo: has joined #RubyOnRails
[21:22:55] tetraktys: still the same :/
[21:23:05] jgt: I???m trying to write a parameterized query, but I???m really new to SQL
[21:23:14] Bish: has joined #RubyOnRails
[21:23:22] jgt: where do I add the user???s input? https://gist.github.com/jezen/3adc9417c68c51e5e1c6
[21:23:30] jgt: I haven???t found an example of the correct syntax anywhere
[21:23:53] jgt: the end of my WHERE clause is completely incorrect
[21:24:00] swhitt: has joined #RubyOnRails
[21:24:12] AntiSpamMeta: has joined #RubyOnRails
[21:24:24] vircung|afk: has joined #RubyOnRails
[21:24:29] Scient: has joined #RubyOnRails
[21:24:30] cjk101010: has joined #RubyOnRails
[21:24:49] Emily: has joined #RubyOnRails
[21:25:10] queequeg2: has joined #RubyOnRails
[21:25:41] jgt: I???m both amazed and ashamed I managed to put off actually learning SQL for four years
[21:25:54] jso-: has joined #RubyOnRails
[21:26:32] scottmat_: has joined #RubyOnRails
[21:26:45] Davey_: has joined #RubyOnRails
[21:26:51] machuga_: has joined #RubyOnRails
[21:27:10] tetraktys: jgt, rails makes it too easy to not learn sql :(
[21:27:27] lexi87: has joined #RubyOnRails
[21:27:40] Zamerick__: has joined #RubyOnRails
[21:27:58] Eminence_: has joined #RubyOnRails
[21:27:58] robustus|Off: has joined #RubyOnRails
[21:28:04] dkam: has joined #RubyOnRails
[21:28:11] jgt: tetraktys: Yeah, and in my experience Kohana before that, and Wordpress before that???
[21:28:13] gambl0re: has joined #RubyOnRails
[21:28:38] erich: has joined #RubyOnRails
[21:28:44] lexi87: I am new to Rails meta tags. I am working on application.html.erb. I want to add a description and keywords for the website. I want them to be global for the entire website, so I have no interest in using a gem. Does someone know the line or is it multiple steps just to add meta description ?
[21:29:42] kanzure_: has joined #RubyOnRails
[21:30:02] jgt: lexi87: This isn???t specific to Rails; you should be able to add meta tags directly to the template
[21:30:12] werd-driven: has joined #RubyOnRails
[21:30:15] swistak35_: has joined #RubyOnRails
[21:30:19] ProLoser: has joined #RubyOnRails
[21:30:28] quazimod1: has joined #RubyOnRails
[21:30:30] Gabriel413: has joined #RubyOnRails
[21:30:31] jarray52: has joined #RubyOnRails
[21:30:42] rx: has joined #RubyOnRails
[21:30:42] tetraktys: lexi87, just put them in the application.html.erb
[21:30:52] lexi87: oh ok. Thanks was overthinking it then lol.
[21:31:05] hamster88: right after <%= csrf_meta_tags %>
[21:31:15] _joelsmith: has joined #RubyOnRails
[21:31:18] cornerma1: has joined #RubyOnRails
[21:31:29] cashnguns: has joined #RubyOnRails
[21:31:39] eggoez: has joined #RubyOnRails
[21:31:41] hamster88: tetraktys, check the size of your logo.png what is it showing up ?
[21:31:56] lexi87: works. Thanks!
[21:31:59] lexi87: has left #RubyOnRails: ()
[21:32:19] SteenJobs: anyone familiar with jquery dialogs?
[21:32:23] tetraktys: the actual image is 150x44 px
[21:32:33] nlko: has joined #RubyOnRails
[21:32:52] tetraktys: what is your question SteenJobs ?
[21:33:08] hamster88: tetraktys, why not assign an id to it and call it from css?
[21:33:29] blowmage`: has joined #RubyOnRails
[21:33:42] SteenJobs: tetraktys: i want to create a dialog box that opens for each image, but since all my images have the same class, i think it doesn???t work because when i click one of them it tries opening it for all of them (with .onClick) so how can i set it up to open individually for each pic?
[21:33:51] smathy: has joined #RubyOnRails
[21:33:53] tetraktys: hamster88, i could try displaying it as a backgorund img ill try it now
[21:33:54] djbkd_: has joined #RubyOnRails
[21:33:56] hamster88: oh forgot, you have class: navbar-brand already set.. so just use that in css and put the logo name
[21:33:58] pipework: has joined #RubyOnRails
[21:33:59] SteenJobs: maybe taking out.onClick is a good first step
[21:34:22] [epitron]: has joined #RubyOnRails
[21:34:24] hamster88: yeah try that way and check if that works.
[21:34:33] hamster88: Hey SteenJobs how are you bud? :)
[21:34:34] Paradox: has joined #RubyOnRails
[21:34:42] tetraktys: $(".class").on("click", function() { $(this)
[21:34:48] SteenJobs: haha sup brotha
[21:34:54] tetraktys: $(this) should return the actucal clicked item
[21:35:07] jamo: has joined #RubyOnRails
[21:35:17] SteenJobs: tetraktys: cool i???ll give it a shot
[21:35:20] w0bni: has joined #RubyOnRails
[21:36:48] slava__: has joined #RubyOnRails
[21:37:15] bphogan_: has joined #RubyOnRails
[21:38:00] SteenJobs: tetraktys: bossss. only problem is the image disappears when clicked and the dialog box pops up
[21:38:07] gmci: has joined #RubyOnRails
[21:38:24] tetraktys: SteenJobs, that's another question :) i should see more code in order to help you with that
[21:38:32] tetraktys: try gisting it
[21:38:38] webdestroya: has joined #RubyOnRails
[21:38:45] SteenJobs: tetraktys: yea gonna do that. i located the mysteriously disappearing image though
[21:39:04] SteenJobs: it???s at the bottom of the html right after </main>. feels like teleporting for some reason
[21:39:12] tetraktys: hamster88: the scss image_url also generates an assets path file with the hash
[21:39:25] jgt: so, anyone have any clues? I want to make a parameterized SQL query with heredoc
[21:39:43] gmci: has joined #RubyOnRails
[21:39:51] isjaylee: anyone have experience pushing an engine to heroku? i'm using the Forem gem and it's not recognizing my changes to the views.
[21:40:14] sinkensabe: has joined #RubyOnRails
[21:40:19] hamster88: tetraktys, give me a second let me check with my app should find something
[21:40:41] tetraktys: hamster88, does it generate the hash in your dev environment?
[21:40:47] dseitz: has joined #RubyOnRails
[21:40:47] weaksauce: has joined #RubyOnRails
[21:41:14] hamster88: tetraktys, yeah it does generate hash
[21:41:25] tetraktys: ok, good, i should not look into that :)
[21:41:34] hamster88: <img src="/assets/svlogo-d51d83549d423d7f44ea283e43cf70e53eb78e3678820251f4b368eda8bbe6a8.png" alt="Svlogo d51d83549d423d7f44ea283e43cf70e53eb78e3678820251f4b368eda8bbe6a8">
[21:41:41] hamster88: see that from inspector
[21:42:46] hamster88: tetraktys, one thing i would ask tho.. what is the size of your navbar-brand height x width
[21:45:07] helpa-bot: has joined #RubyOnRails
[21:45:51] wenchenx: has joined #RubyOnRails
[21:46:30] siddart: has joined #RubyOnRails
[21:47:25] tetraktys: hamster88 in another project with the same structure the hash is half the size...
[21:47:28] ipstatic_: has joined #RubyOnRails
[21:47:46] cac: has joined #RubyOnRails
[21:48:26] DLSteve: has joined #RubyOnRails
[21:49:13] jgt: I seem to have figured it out
[21:49:24] ss_much: has joined #RubyOnRails
[21:49:40] helpa: has joined #RubyOnRails
[21:49:55] jgt: for those interested: https://gist.github.com/jezen/a4cbd56c418a0c1c99cd
[21:50:32] jgt: I???m glad I figured that out. At 23:50 on a Saturday night. What am I doing with my life.
[21:50:36] atrius: has joined #RubyOnRails
[21:50:56] renews: has joined #RubyOnRails
[21:51:26] pulgalipe: has joined #RubyOnRails
[21:51:51] rhizome: being single, apparently
[21:52:18] hamster88: tetraktys, the hash is generated by app.scss so not worry about that.. what is the height and width of the navbar-brand class?
[21:52:51] michael_mbp: has joined #RubyOnRails
[21:53:04] jgt: not all nerds are hopeless with people they???re attracted to
[21:53:08] hamster88: weaksauce, i can't figure out a few things .. how to get the user_id thing to get working in profile thing :(
[21:53:22] rhizome: ok, the opposite: MWC :P
[21:53:52] jgt: rhizome: I???m 24 ;)
[21:54:03] mheld: has joined #RubyOnRails
[21:54:03] asheinfeld: has joined #RubyOnRails
[21:54:22] rj-code: has joined #RubyOnRails
[21:54:22] Caius: has joined #RubyOnRails
[21:54:22] beauby: has joined #RubyOnRails
[21:54:25] jgt: which implicity means, no wife, no kids (that I know of)
[21:54:55] hamster88: here goes the gist > https://gist.github.com/thedesignable/97ae5ae38943ba61897c
[21:55:11] Lightsword: has joined #RubyOnRails
[21:56:00] hamster88: jgt how is that implied? I have a friend of mine who married at age of 22 have 3 kids ..
[21:56:52] jgt: hamster88: I am both astounded and terrified
[21:57:02] jgt: kids are so expensive
[21:57:10] weaksauce: hamster88 @user.create_profile(params[:...])
[21:57:26] jgt: I need to fuel a 4.5L V8, and I live in Europe
[21:57:30] jgt: so I can???t afford kids
[21:57:49] hamster88: weaksauce, should i use :user_id or just :id in that params field?
[21:58:19] weaksauce: you shouldn't assign the userid manually
[21:58:37] hamster88: weaksauce, then ?
[21:58:51] weaksauce: also, your logic was off. you are finding the @user but never using it.
[21:59:08] Dzejmskrokan: has joined #RubyOnRails
[21:59:21] hamster88: jgt i am terrified too ... and i am glad i didn't got married lol and i agree... fueling your car is a priority..
[21:59:31] weaksauce: always assigning the profile to the logged in user. (assuming devise or something like that that has a helper to do that)
[21:59:34] hamster88: weaksauce, can you point me to what i am missing
[21:59:52] hamster88: yes , I have devise in this project
[22:00:25] hamster88: that means generating unique user_id using devise ?
[22:02:02] blackmes1: has joined #RubyOnRails
[22:03:10] weaksauce: hamster88 hang on. updating that gist... and no user id is automatically made when you create a user.
[22:03:19] jfarmer: has joined #RubyOnRails
[22:03:31] weaksauce: it's the `@user.id`
[22:04:00] weaksauce: hamster88 https://gist.github.com/anonymous/ab831d1529a411b75df1
[22:04:45] weaksauce: and it's usually done as params.require(:profile).permit(...)
[22:04:48] SteenJobs: tetraktys: got it to work and play nice
[22:04:54] jenrzzz: has joined #RubyOnRails
[22:05:06] tetraktys: good for you SteenJobs :)
[22:05:15] SteenJobs: thanks brother
[22:05:21] SteenJobs: i???ve been loving jquery so far
[22:06:23] mozzarella: has joined #RubyOnRails
[22:07:17] hamster88: weaksauce, as i have made changes to the controller i have to make changes to the form too ?
[22:07:49] weaksauce: hamster88 that's a tough question to answer without seeing the form? possibly?
[22:08:31] hamster88: weaksauce, https://gist.github.com/thedesignable/97ae5ae38943ba61897c << there you go
[22:08:33] darrencauthon: has joined #RubyOnRails
[22:09:47] MissionCritical: has joined #RubyOnRails
[22:10:03] siaw23: has joined #RubyOnRails
[22:10:42] siaw23: how can i override the application.css. i want to embed an html file in my app. but don???t want to apply my app???s css to it. how do i do that?
[22:11:23] dps: has joined #RubyOnRails
[22:12:04] GoGoGarrett: has joined #RubyOnRails
[22:12:05] hamster88: create a partial and include that only in app.scss or whatever it is..and define your html file classes and whatnot in that partial?
[22:12:38] hamster88: tetraktys, your prob got resolved bud?
[22:12:56] smathy: has joined #RubyOnRails
[22:13:39] tetraktys: no, it's the weirdest thing ever
[22:13:46] nickjj: has joined #RubyOnRails
[22:13:51] tetraktys: i'll look at it again tomorrow :)
[22:13:58] tetraktys: thanks for your help though
[22:14:14] rubyonrails458: has joined #RubyOnRails
[22:14:45] hamster88: tetraktys, i think the question i asked might have lost somewhere.. but here it is... what is the height and width of your navbar-brand ?
[22:15:17] tetraktys: my answer was: it doesn't matter. the src url doesn't show the image either
[22:15:32] tetraktys: the generated src doesnt show an image
[22:16:32] GnuYawk: has joined #RubyOnRails
[22:16:36] hamster88: well that makes purrfect sense than xD ... probably the assets pipeline is not added to the development rb
[22:16:47] RegulationD: has joined #RubyOnRails
[22:17:48] asheinfeld: has joined #RubyOnRails
[22:18:31] zorak8: has joined #RubyOnRails
[22:19:43] Etriaph: has joined #RubyOnRails
[22:20:30] mc_-: has joined #RubyOnRails
[22:23:05] theery: has joined #RubyOnRails
[22:25:01] kahuna_: has joined #RubyOnRails
[22:25:41] sandstrom: has joined #RubyOnRails
[22:25:43] kahuna_: has joined #RubyOnRails
[22:26:33] charliesome: has joined #RubyOnRails
[22:26:50] kahuna_: has joined #RubyOnRails
[22:28:02] sinkensabe: has joined #RubyOnRails
[22:31:41] nikky3: has left #RubyOnRails: ()
[22:32:08] johnkpaul: has joined #RubyOnRails
[22:32:24] aridere: has joined #RubyOnRails
[22:34:54] Limix: has joined #RubyOnRails
[22:36:13] mostlybadfly: has joined #RubyOnRails
[22:36:32] GPrime: has joined #RubyOnRails
[22:37:54] tagrudev: has joined #RubyOnRails
[22:38:43] dkam: has joined #RubyOnRails
[22:39:11] shwoodard: has joined #RubyOnRails
[22:39:13] mjc_: has joined #RubyOnRails
[22:40:37] GoGoGarrett: has joined #RubyOnRails
[22:41:23] [H]unt3r: has joined #RubyOnRails
[22:41:41] Casty: has joined #RubyOnRails
[22:43:17] Doddlin: has joined #RubyOnRails
[22:43:45] Doddlin: Hi all! Someone with a few mins to spare to check why my mails won???t work? :D
[22:44:26] Doddlin: https://gist.github.com/anonymous/9870cac95cbb465e78bf
[22:44:52] Doddlin: I get arg error on line 12 in space_contact_mailer
[22:45:09] Doddlin: and on line 55 in spaces_controller
[22:45:10] renews: has joined #RubyOnRails
[22:45:19] Doddlin: ???2 for 0..1???
[22:47:21] arBmind1: has joined #RubyOnRails
[22:49:45] ts310: has joined #RubyOnRails
[22:49:59] SteenJobs: has joined #RubyOnRails
[22:50:13] JoshL: has joined #RubyOnRails
[22:52:32] jarray52: has left #RubyOnRails: ()
[22:52:37] aloneintheworld: has joined #RubyOnRails
[22:52:37] ddv: Doddlin, it means you are giving the method 2 paremeters but it only takes 1 argument
[22:53:00] ddv: parameters*
[22:53:12] Doddlin: ddv, yeah but I???m looking at the docs and I can???t see what I???m passing wrong to the mail()
[22:53:19] Doddlin: since I guess that
[22:53:23] Doddlin: is where I???m wring
[22:53:38] seank__: has joined #RubyOnRails
[22:53:55] ddv: Doddlin, go to SpaceContactMailer
[22:54:04] ddv: and look at the contact_mail method
[22:55:17] Doddlin: ddv, contact_mail takes 3 args?
[22:55:34] ddv: sorry I meant line 12 in space_contact_mailer
[22:56:28] [epitron]: has joined #RubyOnRails
[22:56:30] Doddlin: yea, I just tried to put the template inside the hash, that made the email get sent but it does not use the template :S
[22:56:32] ddv: you are giving too many args to mail
[22:56:43] maz-dev: has joined #RubyOnRails
[22:57:10] [epitron]: has left #RubyOnRails: ("WeeChat 1.0.1")
[22:57:27] epitron: has joined #RubyOnRails
[22:58:21] Doddlin: ddv, so it is not possible to use mail the way I???m trying to?
[22:58:29] workmad3: has joined #RubyOnRails
[22:59:44] Noizept: has joined #RubyOnRails
[22:59:51] sinkensabe: has joined #RubyOnRails
[23:00:03] Anakat: has joined #RubyOnRails
[23:00:20] Doddlin: I mean, I should be able to set to:, temp_path and temp_name in the mail()?
[23:00:45] Doddlin: but that is 3 args which acc to the error is not OK :S
[23:01:05] ddv: Doddlin, please read the rails mailer documentation
[23:01:20] Doddlin: ddv, that is what I???m trying...
[23:05:36] ts310: has joined #RubyOnRails
[23:06:03] asheinfeld: has joined #RubyOnRails
[23:06:55] Axilla: has joined #RubyOnRails
[23:07:15] volk_: has joined #RubyOnRails
[23:08:32] weaksauce: Doddlin remove the brackets
[23:08:33] darrencauthon: has joined #RubyOnRails
[23:08:47] weaksauce: though even that is likely to fail
[23:09:14] Doddlin: weaksauce, haha yeah, just did, email is sent but still not using the template??? :(
[23:09:42] weaksauce: did you go to the api docs and lookup the mail method?
[23:10:00] weaksauce: that only accepts email headers as attributes.
[23:10:30] RegulationD: has joined #RubyOnRails
[23:10:32] armyriad: has joined #RubyOnRails
[23:11:14] Doddlin: weaksauce, I???m looking at this atm
[23:11:15] Doddlin: http://edgeguides.rubyonrails.org/action_mailer_basics.html#mailer-views
[23:11:18] Senjai: has joined #RubyOnRails
[23:11:46] Doddlin: ahaa, hang on, the ???body??? might have to go?!
[23:12:34] weaksauce: well it makes sense.
[23:13:40] Doddlin: it does indeed, template could by all means be considered as a ???header??? or info-only
[23:14:29] asheinfeld: has joined #RubyOnRails
[23:14:51] Doddlin: and @body became populated anyway, WOHO!:D
[23:15:21] Kilo`byte: has joined #RubyOnRails
[23:15:45] weaksauce: well if you pass in the body you want it will overwrite whatever the template rendered(assuming the code still rendered the template)
[23:15:57] Doddlin: now there is only ONE thing that is slightly disturbing??? Why are my redirects going to ???/spaces.1??? instead of ???/spaces/1???
[23:16:39] weaksauce: what does rake routes say about spaces_path?
[23:16:45] Doddlin: weaksauce, it works perfectly now! :) except the redirect
[23:16:48] Doddlin: I???ll check
[23:18:12] Doddlin: weaksauce, that I???m tired/stupid
[23:18:24] Doddlin: should be space_path()???. -.-
[23:20:00] weaksauce: personally I don't like the plural thing in rails.
[23:20:28] Doddlin: it???s confusing if you???re not used to it
[23:20:37] Doddlin: and it???s really hard to forget/miss
[23:20:55] Doddlin: hard to remember* jeeez
[23:21:06] bratsche: has joined #RubyOnRails
[23:21:07] smathy: has joined #RubyOnRails
[23:21:12] SteenJobs: how do i install a jquery plugin if there???s no gem for it?
[23:21:14] strcmp1: has joined #RubyOnRails
[23:21:45] SteenJobs: can i just include the .min.js file in my assets folder and the asset pipeline will pick it up?
[23:22:36] andatche: has joined #RubyOnRails
[23:23:52] weaksauce: SteenJobs you can use bower
[23:24:28] weaksauce: putting it into the asset folder is not as good as vendor for ease of upgrading.
[23:24:49] subtwo: has joined #RubyOnRails
[23:25:18] jenrzzz: has joined #RubyOnRails
[23:25:19] SteenJobs: weaksauce: ok cool thanks
[23:25:41] SteenJobs: who knew getting a jquery dialog window to close when you click outside of it, and be able to open it again later, could be so difficult to implement?
[23:26:09] weaksauce: SteenJobs https://rails-assets.org/
[23:26:19] weaksauce: that's what I was thinking of actually.
[23:26:30] weaksauce: still uses bower but makes it easier
[23:28:18] nertzy3: has joined #RubyOnRails
[23:28:55] jarray52: has joined #RubyOnRails
[23:29:20] SteenJobs: weaksauce: cool i???ll check it out
[23:30:31] erichmenge_: has joined #RubyOnRails
[23:30:38] harly_: has joined #RubyOnRails
[23:30:45] djbkd: has joined #RubyOnRails
[23:30:52] ChadyG_: has joined #RubyOnRails
[23:31:12] ArTiSTiX_: has joined #RubyOnRails
[23:31:16] _djbkd: has joined #RubyOnRails
[23:31:52] elaptics: has joined #RubyOnRails
[23:32:21] GoGoGarrett: has joined #RubyOnRails
[23:32:31] exchgr`: has joined #RubyOnRails
[23:32:55] lhz: has joined #RubyOnRails
[23:33:02] _djbkd: has joined #RubyOnRails
[23:33:13] mello: has joined #RubyOnRails
[23:33:15] baron: has joined #RubyOnRails
[23:33:23] waseem_: has joined #RubyOnRails
[23:33:50] TheMoonMaster: has joined #RubyOnRails
[23:34:24] EiNSTeiN_: has joined #RubyOnRails
[23:35:08] adam|: has joined #RubyOnRails
[23:35:56] russt: has joined #RubyOnRails
[23:36:07] Silent__: has joined #RubyOnRails
[23:36:07] Veejay: has joined #RubyOnRails
[23:37:28] tobobo: has joined #RubyOnRails
[23:38:31] ts310: has joined #RubyOnRails
[23:39:20] renews: has joined #RubyOnRails
[23:39:33] ruv: has joined #RubyOnRails
[23:40:35] differentreality: has joined #RubyOnRails
[23:44:36] lemur: has joined #RubyOnRails
[23:45:49] lemur: has left #RubyOnRails: ()
[23:46:09] baweaver: has joined #RubyOnRails
[23:47:52] zorak8: has joined #RubyOnRails
[23:48:03] kenndel: has joined #RubyOnRails
[23:49:19] dkam: has joined #RubyOnRails
[23:50:13] wethu: has joined #RubyOnRails
[23:51:13] sinkensabe: has joined #RubyOnRails
[23:51:23] gambl0re: i dont udnerstand, rails is strictly a back end framework?
[23:51:40] baweaver: Define backend
[23:51:45] baweaver: and what's the context here?
[23:52:09] gambl0re: database, server all that stuff
[23:52:23] gambl0re: mvc architecture..
[23:52:42] gambl0re: if im using rails with ember who also uses mvc, isnt there a conflict
[23:52:55] fgo: has joined #RubyOnRails
[23:53:02] gambl0re: mvc framework mixed with another mvc framework
[23:53:12] gambl0re: how do you organize?
[23:53:33] Pazician: has joined #RubyOnRails
[23:54:54] AntiSpamMeta: has joined #RubyOnRails
[23:55:07] wmoxam: has joined #RubyOnRails
[23:57:22] AntiSpamMeta: has joined #RubyOnRails
[23:58:08] one_zero: has joined #RubyOnRails
[23:58:33] GoGoGarrett: has joined #RubyOnRails
[23:59:37] DoctorMonocular: has joined #RubyOnRails