« Back to channel list

#RubyOnRails - 15 June 2015

« Back 1 day Forward 1 day »
[00:00:06] baron: has left #RubyOnRails: ()
[00:00:09] byprdct: has joined #RubyOnRails
[00:00:20] bar0n: has joined #RubyOnRails
[00:01:20] byprdct: has joined #RubyOnRails
[00:01:35] arcaos: has joined #RubyOnRails
[00:02:30] byprdct: has joined #RubyOnRails
[00:03:44] byprdct: has joined #RubyOnRails
[00:05:00] Rubie: has joined #RubyOnRails
[00:05:05] byprdct: has joined #RubyOnRails
[00:06:30] byprdct: has joined #RubyOnRails
[00:07:43] byprdct: has joined #RubyOnRails
[00:09:02] horsecowdog: has joined #RubyOnRails
[00:09:05] byprdct: has joined #RubyOnRails
[00:10:30] byprdct: has joined #RubyOnRails
[00:12:10] byprdct: has joined #RubyOnRails
[00:13:08] ogpastaling: has joined #RubyOnRails
[00:13:55] byprdct: has joined #RubyOnRails
[00:14:57] ght: Question: In devise, is there a method to check whether or not a user is signed in via rails console?
[00:15:25] byprdct: has joined #RubyOnRails
[00:15:38] ght: I've been researching and have not found anything, but surely there is.
[00:15:56] ght: And no, I'm not referring to the user_signed_in? and what not helper methods, I need to be able to check from rails console.
[00:15:59] edwinrozario: has joined #RubyOnRails
[00:16:16] blackmesa: has joined #RubyOnRails
[00:16:54] byprdct: has joined #RubyOnRails
[00:17:27] Rubie: has joined #RubyOnRails
[00:17:58] blackmesa: has joined #RubyOnRails
[00:18:25] byprdct: has joined #RubyOnRails
[00:19:41] krisquigley: has joined #RubyOnRails
[00:20:03] byprdct: has joined #RubyOnRails
[00:21:33] jcaho: has joined #RubyOnRails
[00:21:55] byprdct: has joined #RubyOnRails
[00:22:02] ChadyG: has joined #RubyOnRails
[00:23:18] byprdct: has joined #RubyOnRails
[00:24:40] byprdct: has joined #RubyOnRails
[00:25:16] twilling: has joined #RubyOnRails
[00:26:28] GnuYawk: has joined #RubyOnRails
[00:26:36] byprdct: has joined #RubyOnRails
[00:27:56] byprdct: has joined #RubyOnRails
[00:28:36] simplyianm: has joined #RubyOnRails
[00:29:25] byprdct: has joined #RubyOnRails
[00:30:49] byprdct: has joined #RubyOnRails
[00:32:25] byprdct: has joined #RubyOnRails
[00:33:49] byprdct: has joined #RubyOnRails
[00:33:54] x1337807x: has joined #RubyOnRails
[00:34:57] byprdct: has joined #RubyOnRails
[00:36:17] byprdct: has joined #RubyOnRails
[00:37:30] byprdct: has joined #RubyOnRails
[00:38:10] robustus: has joined #RubyOnRails
[00:38:55] byprdct: has joined #RubyOnRails
[00:39:56] rcm7: has joined #RubyOnRails
[00:40:08] byprdct: has joined #RubyOnRails
[00:40:53] darrencauthon: has joined #RubyOnRails
[00:40:56] bmurt: has joined #RubyOnRails
[00:41:24] byprdct: has joined #RubyOnRails
[00:41:33] mikajo: has joined #RubyOnRails
[00:42:34] byprdct: has joined #RubyOnRails
[00:44:03] byprdct: has joined #RubyOnRails
[00:44:50] kadoppe: has joined #RubyOnRails
[00:45:21] byprdct: has joined #RubyOnRails
[00:46:40] byprdct: has joined #RubyOnRails
[00:48:05] byprdct: has joined #RubyOnRails
[00:49:25] m0r0n: Can someone help me figure out why Capybara isn't finding my link
[00:49:26] m0r0n: https://gist.github.com/Zilenc3/a8a46e3bcaddbab46d57
[00:49:32] michaeldeol: has joined #RubyOnRails
[00:49:32] byprdct: has joined #RubyOnRails
[00:49:55] m0r0n: Anything in the nav is unclickable according to Capybara, but it can click links outside of the nav
[00:50:52] byprdct: has joined #RubyOnRails
[00:51:56] ayonkhan: has joined #RubyOnRails
[00:52:00] byprdct: has joined #RubyOnRails
[00:52:41] Radar: Hello again.
[00:53:07] byprdct: has joined #RubyOnRails
[00:54:07] El3ktra: has joined #RubyOnRails
[00:54:13] Aeyrix: El3ktra: so
[00:54:18] Aeyrix: you have an array of keywords
[00:54:20] byprdct: has joined #RubyOnRails
[00:54:22] Aeyrix: and you're mapping through them
[00:54:30] Aeyrix: I don't really see where your issue is.
[00:54:36] El3ktra: and the keywords work great, because I am using a field in the DB
[00:54:50] El3ktra: The problem is that I have another object, "artist", where there are two names (first and last)
[00:54:53] Aeyrix: You're using an association.
[00:54:58] Aeyrix: movie.artist
[00:55:00] El3ktra: so I have a function in the model that compiles the two names into one
[00:55:05] El3ktra: Aeyrix, yes
[00:55:15] El3ktra: and I want to map on that function
[00:55:25] Aeyrix: Two names into one string or two names into one array?
[00:55:30] Aeyrix: Because if it's one string, map won't wokr.
[00:55:34] El3ktra: two names, one string
[00:55:39] byprdct: has joined #RubyOnRails
[00:55:47] El3ktra: Yeah, I dont' think that I can use map
[00:55:57] Aeyrix: What're you trying to do with that, exactly?
[00:55:58] Aeyrix: That valeu.
[00:56:01] Aeyrix: Goddamn my typing...
[00:56:40] El3ktra: ok, suppose I have a table movies and a table actor
[00:56:45] El3ktra: I want to show all the actors in a comma list
[00:56:55] byprdct: has joined #RubyOnRails
[00:58:02] byprdct: has joined #RubyOnRails
[00:58:22] Aeyrix: I'm still not exactly seeing where your problem is, here. Like, what part are you stuck on?
[00:58:30] Aeyrix: Because you seem to have everything down without an issue.
[00:58:45] Aeyrix: I don't get why you're trying to use map on a string, though.
[00:59:09] byprdct: has joined #RubyOnRails
[00:59:10] El3ktra: Yeah, I dont' think that I can use map
[00:59:40] El3ktra: I am using a loop in the erb file to show each artist name
[00:59:40] jenrzzz: has joined #RubyOnRails
[01:00:16] byprdct: has joined #RubyOnRails
[01:00:41] Aeyrix: Paste your view to gist.github
[01:01:42] byprdct: has joined #RubyOnRails
[01:02:49] byprdct: has joined #RubyOnRails
[01:03:56] byprdct: has joined #RubyOnRails
[01:05:03] byprdct: has joined #RubyOnRails
[01:05:45] Dreamer3: has joined #RubyOnRails
[01:06:01] teufelCh_: has joined #RubyOnRails
[01:06:13] byprdct: has joined #RubyOnRails
[01:06:44] m0r0n: Can someone help me figure out why Capybara can't find any links in my nav? https://gist.github.com/Zilenc3/a8a46e3bcaddbab46d57
[01:07:17] Aeyrix: m0r0n: Provide sign_up view please.
[01:07:26] byprdct: has joined #RubyOnRails
[01:07:28] Aeyrix: Or, actually, no
[01:07:33] charliesome: has joined #RubyOnRails
[01:08:23] m0r0n: Aeyrix, Sorry layout? The only layout I have is my application.html.erb
[01:08:28] Aeyrix: That'll do.
[01:08:31] m0r0n: It's there
[01:08:35] m0r0n: Scroll down a bit
[01:08:41] Aeyrix: so it is, my FF broke
[01:08:48] byprdct: has joined #RubyOnRails
[01:08:50] Cache_Money: has joined #RubyOnRails
[01:10:04] byprdct: has joined #RubyOnRails
[01:10:22] Aeyrix: Is it just me or does the error not match the spec?
[01:10:43] m0r0n: I changed the title and forgot to re-run and update the gist
[01:10:46] m0r0n: but it's the same
[01:11:06] Aeyrix: I'm more referring to
[01:11:08] Aeyrix: Failure/Error: click_link "Ticketee"
[01:11:13] Aeyrix: There's no `click_link "Ticketee"` in that spec.
[01:11:22] Aeyrix: click_link "Sign up"
[01:11:24] m0r0n: Oh right. Yeah I was playing around, updating now
[01:11:31] byprdct: has joined #RubyOnRails
[01:11:36] chouhoulis: has joined #RubyOnRails
[01:11:38] michael_mbp: has joined #RubyOnRails
[01:12:09] workmad3: has joined #RubyOnRails
[01:12:43] timmac: has joined #RubyOnRails
[01:13:04] byprdct: has joined #RubyOnRails
[01:13:15] timmac: has left #RubyOnRails: ()
[01:13:37] simplyianm: has joined #RubyOnRails
[01:15:00] m0r0n: It is strange indeed.
[01:15:08] byprdct: has joined #RubyOnRails
[01:15:36] m0r0n: The only link it can grab is the "New Project" link
[01:16:19] byprdct: has joined #RubyOnRails
[01:16:37] Aeyrix: There's a new project link?
[01:16:42] pontiki: has joined #RubyOnRails
[01:16:43] Aeyrix: Not in that layout.
[01:17:12] m0r0n: In the root view, updating
[01:17:41] byprdct: has joined #RubyOnRails
[01:18:03] Aeyrix: m0r0n: Does that element, the sign-up link, have an ID?
[01:18:37] m0r0n: Aeyrix, No it does not
[01:18:55] bronson: has joined #RubyOnRails
[01:19:00] m0r0n: Didn't think about checking that
[01:19:03] byprdct: has joined #RubyOnRails
[01:19:33] Aeyrix: That doesn't change anything, really.
[01:19:41] centrx: has joined #RubyOnRails
[01:19:51] Aeyrix: click_link can take the textual representation of the link - "Sign up" - as an ID.
[01:20:02] Aeyrix: Out of curiosity
[01:20:07] Aeyrix: find_link('Sign up').click
[01:20:31] edwinrozario: has joined #RubyOnRails
[01:20:46] byprdct: has joined #RubyOnRails
[01:21:12] m0r0n: Trying it now, 1s
[01:21:46] m0r0n: It's the same case for find_link
[01:22:11] byprdct: has joined #RubyOnRails
[01:23:35] m0r0n: It's probably some trivial thing I'm overlooking, but I can't catch it.
[01:24:00] byprdct: has joined #RubyOnRails
[01:24:10] El3ktra: sorry I didn't post the liunk, I figure it out
[01:24:14] El3ktra: Artist.all.collect {|u| u.flName}.join ', '
[01:24:32] El3ktra: (flName is a function that returns firstname + " " + lastname)
[01:24:38] El3ktra: thanks for looking at this Aeyrix
[01:24:47] blackhuey: has joined #RubyOnRails
[01:25:25] byprdct: has joined #RubyOnRails
[01:25:27] givanse: has joined #RubyOnRails
[01:25:49] barriommx: has joined #RubyOnRails
[01:26:48] byprdct: has joined #RubyOnRails
[01:28:03] byprdct: has joined #RubyOnRails
[01:28:48] RegulationD: has joined #RubyOnRails
[01:28:49] beauby: has joined #RubyOnRails
[01:29:19] Aeyrix: El3ktra: tbh I have no idea here.
[01:29:24] byprdct: has joined #RubyOnRails
[01:29:26] Aeyrix: I admit I don't test as much as I probably should.
[01:29:32] Aeyrix: But that's a really weird error, and it doesn't make sense at all
[01:29:39] Peteykun: has joined #RubyOnRails
[01:29:44] Aeyrix: I kind of want to blame turbolinks
[01:29:49] Aeyrix: because like half the time, that's the issue.
[01:30:50] byprdct: has joined #RubyOnRails
[01:32:25] byprdct: has joined #RubyOnRails
[01:32:44] bruno-: has joined #RubyOnRails
[01:33:45] byprdct: has joined #RubyOnRails
[01:34:43] byprdct: has joined #RubyOnRails
[01:35:48] byprdct: has joined #RubyOnRails
[01:36:55] byprdct: has joined #RubyOnRails
[01:37:30] moeabdol: has joined #RubyOnRails
[01:37:33] Alex1651: has joined #RubyOnRails
[01:38:01] byprdct: has joined #RubyOnRails
[01:39:09] byprdct: has joined #RubyOnRails
[01:40:20] byprdct: has joined #RubyOnRails
[01:41:28] byprdct: has joined #RubyOnRails
[01:41:29] Merdam: has joined #RubyOnRails
[01:41:40] darrencauthon: has joined #RubyOnRails
[01:42:43] byprdct: has joined #RubyOnRails
[01:43:53] byprdct: has joined #RubyOnRails
[01:45:04] byprdct: has joined #RubyOnRails
[01:46:11] byprdct: has joined #RubyOnRails
[01:47:05] Xiti: has joined #RubyOnRails
[01:47:19] byprdct: has joined #RubyOnRails
[01:47:27] pulgalipe: has joined #RubyOnRails
[01:47:39] rickmasta: has joined #RubyOnRails
[01:48:05] qejk: has joined #RubyOnRails
[01:48:26] byprdct: has joined #RubyOnRails
[01:49:33] byprdct: has joined #RubyOnRails
[01:50:42] byprdct: has joined #RubyOnRails
[01:51:48] byprdct: has joined #RubyOnRails
[01:52:53] byprdct: has joined #RubyOnRails
[01:53:59] byprdct: has joined #RubyOnRails
[01:55:08] byprdct: has joined #RubyOnRails
[01:55:18] dopie: has joined #RubyOnRails
[01:56:14] byprdct: has joined #RubyOnRails
[01:57:32] byprdct: has joined #RubyOnRails
[01:58:36] byprdct: has joined #RubyOnRails
[01:59:10] merryfett: has joined #RubyOnRails
[01:59:42] byprdct: has joined #RubyOnRails
[02:00:47] byprdct: has joined #RubyOnRails
[02:02:01] byprdct: has joined #RubyOnRails
[02:03:12] byprdct: has joined #RubyOnRails
[02:04:25] byprdct: has joined #RubyOnRails
[02:05:04] ght: Question: I have two users, user1 and user2. Both have a unique per-user rvm install. user1 has a ruby script, and user2 is running Rails 2.4. In user2's Rails instance, no matter what I do, every time I try to call user1's ruby script (with system), it tells me "cannot find gem ___", which is a gem used by the user2's rails instance. I even tried having system not call user1's ruby script directly, but call a bash script which exports all of user
[02:05:35] ght: ..and then calls user1's ruby script. I get the same output. Surely this is possible, but how in god's holy name is it? I've been researching for hours.
[02:05:51] byprdct: has joined #RubyOnRails
[02:06:19] highcup: has joined #RubyOnRails
[02:07:01] byprdct: has joined #RubyOnRails
[02:07:03] one_zero: has joined #RubyOnRails
[02:08:11] byprdct: has joined #RubyOnRails
[02:08:34] krisquigley: has joined #RubyOnRails
[02:08:50] cytoskeletor: has joined #RubyOnRails
[02:09:07] beauby: has joined #RubyOnRails
[02:09:24] byprdct: has joined #RubyOnRails
[02:10:43] byprdct: has joined #RubyOnRails
[02:12:12] byprdct: has joined #RubyOnRails
[02:12:27] DoctorMonocular: has joined #RubyOnRails
[02:12:50] DoctorMonocular: has joined #RubyOnRails
[02:13:25] byprdct: has joined #RubyOnRails
[02:14:06] rickmasta: has joined #RubyOnRails
[02:14:16] Sylario: has joined #RubyOnRails
[02:14:32] ogpastaling: has joined #RubyOnRails
[02:14:47] byprdct: has joined #RubyOnRails
[02:15:54] byprdct: has joined #RubyOnRails
[02:16:08] yfeldblum: has joined #RubyOnRails
[02:17:00] byprdct: has joined #RubyOnRails
[02:18:07] byprdct: has joined #RubyOnRails
[02:18:50] Sigma00: uh, install the gem in user2's context
[02:18:59] Sigma00: add to gemfile/etc
[02:19:12] byprdct: has joined #RubyOnRails
[02:20:17] bronson: has joined #RubyOnRails
[02:20:18] byprdct: has joined #RubyOnRails
[02:20:44] cytoskeletor: I need a little help with getting a partial to reload with ajax. Here's my gist https://gist.github.com/Joshuaatt/df5c7274cb3633cd9749
[02:21:16] cytoskeletor: I'm not getting any errors, but the updated user data only shows with a full page refresh
[02:21:24] byprdct: has joined #RubyOnRails
[02:22:31] byprdct: has joined #RubyOnRails
[02:22:51] Sigma00: cytoskeletor: $('#purchace-orders').html("<%=j render 'users/users' %>"); <--- never gonna work
[02:23:19] Sigma00: you need an action in your controller to reply with the update info
[02:23:31] Sigma00: and then read that via XHR requests in javascript
[02:23:37] Sigma00: (ajax requests)
[02:23:38] byprdct: has joined #RubyOnRails
[02:24:17] Sigma00: if you want the entirety of users#show then just do an ajax request to the route
[02:24:44] byprdct: has joined #RubyOnRails
[02:25:53] byprdct: has joined #RubyOnRails
[02:27:01] byprdct: has joined #RubyOnRails
[02:27:17] cytoskeletor: The partial won't get the information from users#update
[02:27:48] Sigma00: you need to use a proper ajax request. You're not currently doing ajax at all
[02:28:06] byprdct: has joined #RubyOnRails
[02:28:30] pontiki: has joined #RubyOnRails
[02:29:16] byprdct: has joined #RubyOnRails
[02:29:50] towski_: has joined #RubyOnRails
[02:30:34] byprdct: has joined #RubyOnRails
[02:31:49] byprdct: has joined #RubyOnRails
[02:32:59] byprdct: has joined #RubyOnRails
[02:34:11] byprdct: has joined #RubyOnRails
[02:34:54] aloneintheworld: has joined #RubyOnRails
[02:35:15] beauby: has joined #RubyOnRails
[02:35:18] byprdct: has joined #RubyOnRails
[02:35:33] cytoskeletor: It seems to update the element the second time I run that js file. for example I update user name to Joe, name doesn't change. I update user name to Sally, updates and shows Joe.
[02:36:07] byprdct: has joined #RubyOnRails
[02:37:14] byprdct: has joined #RubyOnRails
[02:38:35] cytoskeletor: Sigma00: do you know why that would be?
[02:39:36] Sigma00: the ERB bit will render things once every time the JS file is called, which would be once per reload
[02:40:24] cytoskeletor: Which would be fine if it did it the first time it ran the file
[02:42:27] darrencauthon: has joined #RubyOnRails
[02:42:35] Sigma00: it makes no sense to do it that way, so it doesn't really matter
[02:42:46] Sigma00: you want async, you need to use ajax calls to a URL route
[02:45:56] cytoskeletor: Sigma00: Will you give me an idea of what that looks like please
[02:47:03] justintv90: has joined #RubyOnRails
[02:55:10] op: has joined #RubyOnRails
[02:57:28] erichu: has joined #RubyOnRails
[02:58:46] horsecowdog: has joined #RubyOnRails
[02:59:12] railsnubee: has joined #RubyOnRails
[02:59:13] ebbflowgo: has joined #RubyOnRails
[02:59:39] michaeldeol: has joined #RubyOnRails
[03:00:27] advorak: has joined #RubyOnRails
[03:00:49] workmad3: has joined #RubyOnRails
[03:01:43] simplyianm: has joined #RubyOnRails
[03:05:12] shyshy: has joined #RubyOnRails
[03:07:12] pehlert: has joined #RubyOnRails
[03:07:52] jcaho: has joined #RubyOnRails
[03:09:24] MEATCHICKEN: has joined #RubyOnRails
[03:09:26] tyrone: has joined #RubyOnRails
[03:09:36] x1337807x: has joined #RubyOnRails
[03:10:02] beauby: has joined #RubyOnRails
[03:10:08] j_mcnally: has joined #RubyOnRails
[03:11:32] braincrash: has joined #RubyOnRails
[03:13:39] hakunin: has joined #RubyOnRails
[03:14:16] Axsuul: has joined #RubyOnRails
[03:15:01] Spami: has joined #RubyOnRails
[03:15:30] ivanskie: has joined #RubyOnRails
[03:16:50] dopie: has joined #RubyOnRails
[03:17:39] RegulationD: has joined #RubyOnRails
[03:19:04] advorak: has joined #RubyOnRails
[03:19:53] jenrzzz: has joined #RubyOnRails
[03:21:34] earthquake: has joined #RubyOnRails
[03:21:48] bruno-: has joined #RubyOnRails
[03:23:23] sypheren: has joined #RubyOnRails
[03:23:56] sypheren: Has anyone used the codecademy lessons on rails?
[03:24:14] sypheren: It seems like I'm just mindlessly copying material and I don't feel like I'm understanding much
[03:24:28] Cache_Money: has joined #RubyOnRails
[03:26:10] moeabdol: has joined #RubyOnRails
[03:27:31] j_mcnally: has joined #RubyOnRails
[03:30:53] mheld: has joined #RubyOnRails
[03:31:01] Limix: has joined #RubyOnRails
[03:31:32] francois_: has joined #RubyOnRails
[03:32:09] michael_mbp: has joined #RubyOnRails
[03:32:40] Ropeney: has joined #RubyOnRails
[03:33:57] hahuang65: has joined #RubyOnRails
[03:34:28] konsolebox: has joined #RubyOnRails
[03:34:48] wethu: has joined #RubyOnRails
[03:36:56] teufelChiCoder: has joined #RubyOnRails
[03:42:56] lessless: has joined #RubyOnRails
[03:43:09] darrencauthon: has joined #RubyOnRails
[03:45:55] ylla: has joined #RubyOnRails
[03:48:32] Scripore: has joined #RubyOnRails
[03:50:01] chintanparikh: has joined #RubyOnRails
[03:53:19] dented42: has joined #RubyOnRails
[03:57:32] krisquigley: has joined #RubyOnRails
[03:59:17] SteenJobs: has joined #RubyOnRails
[03:59:20] siemprefresco: has joined #RubyOnRails
[04:00:35] rromanchuk: has joined #RubyOnRails
[04:01:17] hahuang65: has joined #RubyOnRails
[04:03:11] simplyianm: has joined #RubyOnRails
[04:05:53] merryfett: has joined #RubyOnRails
[04:16:07] ogpastaling: has joined #RubyOnRails
[04:17:32] x1337807x: has joined #RubyOnRails
[04:21:46] Cache_Money: has joined #RubyOnRails
[04:22:12] kies: has joined #RubyOnRails
[04:29:16] jcaho: has joined #RubyOnRails
[04:37:37] optimus55: has joined #RubyOnRails
[04:43:57] darrencauthon: has joined #RubyOnRails
[04:45:05] DysonReturns: has joined #RubyOnRails
[04:45:14] riotjones: has joined #RubyOnRails
[04:46:30] nahtnam: has joined #RubyOnRails
[04:47:16] hazelux: has joined #RubyOnRails
[04:49:04] hazelux: Hey people. Is there any way to sign out a user from the console or else? Using Devise.
[04:49:09] edwinrozario: has joined #RubyOnRails
[04:49:17] krz: has joined #RubyOnRails
[04:49:32] ivanskie: has joined #RubyOnRails
[04:49:38] workmad3: has joined #RubyOnRails
[04:53:37] x44x45x41x4E: has joined #RubyOnRails
[04:55:01] nobitanobi: has joined #RubyOnRails
[05:02:05] yfeldblum: has joined #RubyOnRails
[05:03:34] lxsameer: has joined #RubyOnRails
[05:03:43] lxsameer: has joined #RubyOnRails
[05:05:56] eoy: has joined #RubyOnRails
[05:06:34] RegulationD: has joined #RubyOnRails
[05:07:54] byprdct: has joined #RubyOnRails
[05:09:41] pragmatism: has joined #RubyOnRails
[05:13:26] DoctorMonocular: has joined #RubyOnRails
[05:15:40] moeabdol: has joined #RubyOnRails
[05:15:56] rhizome: delete their session record from the database
[05:16:38] raunicolae: has joined #RubyOnRails
[05:19:04] krz: has joined #RubyOnRails
[05:19:21] ArrogantPrick: has joined #RubyOnRails
[05:20:58] hazelux: rhizome: I can't seem to find a sessions table. Does devise create one for me?
[05:21:48] DoctorMonocular: has joined #RubyOnRails
[05:26:03] Ropeney: hazelux: its on the user model
[05:28:51] hazelux: Ropeney: not on mine, it seems. I only got IP, sign_in_count, reset_password_token and a bunch of datetimes.
[05:28:56] mike___1234: has joined #RubyOnRails
[05:29:31] SteenJobs: If I have a variable in my show page whose value changes after the show view is loaded, is there a way i can update the value of the variable to reflect the new value?
[05:30:56] Ropeney: hazelux: Sorry no that won't work, you can do a User.all.each { |u| sign_out u } in console?
[05:31:14] Ropeney: hazelux: or db:sessions:clear
[05:31:44] joaomdmoura: has joined #RubyOnRails
[05:32:41] riotjones: has joined #RubyOnRails
[05:33:10] fny: has joined #RubyOnRails
[05:33:51] ivanskie: has joined #RubyOnRails
[05:34:03] raunico3: has joined #RubyOnRails
[05:34:41] fny: Would anyone be willing to glance over a code spike for a gem? It's super short: https://github.com/fny/query_bundle
[05:35:07] fny: has left #RubyOnRails: ()
[05:35:16] tagrudev: has joined #RubyOnRails
[05:35:18] fny: has joined #RubyOnRails
[05:38:01] Pharaoh2: has joined #RubyOnRails
[05:39:12] mike___1234: has joined #RubyOnRails
[05:41:23] aganov: has joined #RubyOnRails
[05:43:29] earthquake: has joined #RubyOnRails
[05:44:41] darrencauthon: has joined #RubyOnRails
[05:46:14] hazelux: Ropeney: Neither worked : (. The first one gives me an undefined "warden" error because it's not in the context of a request
[05:46:19] hazelux: and that rake task doesn't exist
[05:46:24] krisquigley: has joined #RubyOnRails
[05:47:29] raunico3: has left #RubyOnRails: ()
[05:48:32] comrad: has joined #RubyOnRails
[05:48:44] comrad: has joined #RubyOnRails
[05:49:40] earthqua_: has joined #RubyOnRails
[05:52:40] bronson: has joined #RubyOnRails
[05:54:27] metus_violarium: has joined #RubyOnRails
[05:56:06] krokuz: has joined #RubyOnRails
[05:56:29] ndrei: has joined #RubyOnRails
[05:57:21] chouhoulis: has joined #RubyOnRails
[06:02:02] ebbflowgo: has joined #RubyOnRails
[06:04:24] chintanparikh: has joined #RubyOnRails
[06:05:51] rvanlieshout: has joined #RubyOnRails
[06:06:21] duncannz: has joined #RubyOnRails
[06:11:48] mauro1254: has joined #RubyOnRails
[06:14:40] michael_mbp: has joined #RubyOnRails
[06:17:19] michael_mbp: has joined #RubyOnRails
[06:18:16] n008f4g_: has joined #RubyOnRails
[06:21:01] francois_: has joined #RubyOnRails
[06:21:05] cornerman: has joined #RubyOnRails
[06:25:30] steve_mc: has joined #RubyOnRails
[06:28:29] emilkarl: has joined #RubyOnRails
[06:32:57] towski_: has joined #RubyOnRails
[06:34:07] SteenJobs: has joined #RubyOnRails
[06:35:16] armyriad: has joined #RubyOnRails
[06:38:23] workmad3: has joined #RubyOnRails
[06:40:20] artto: has joined #RubyOnRails
[06:40:26] SteenJobs: workmad3: yo yo yo
[06:45:26] darrencauthon: has joined #RubyOnRails
[06:45:27] arBmind: has joined #RubyOnRails
[06:46:33] arBmind: has joined #RubyOnRails
[06:51:26] maz-dev: has joined #RubyOnRails
[06:52:11] maz-dev: has joined #RubyOnRails
[06:52:58] srinidhi: has joined #RubyOnRails
[06:55:23] RegulationD: has joined #RubyOnRails
[06:56:11] roolo: has joined #RubyOnRails
[06:56:14] sandstrom: has joined #RubyOnRails
[06:56:24] pehlert: has joined #RubyOnRails
[06:56:59] cha1tanya: has joined #RubyOnRails
[06:58:51] Sylario: has joined #RubyOnRails
[06:59:19] bruno-: has joined #RubyOnRails
[07:00:03] SteenJobs: anyone still up?
[07:01:03] darutoko: has joined #RubyOnRails
[07:01:25] universa1: still? ... ;)
[07:01:27] raj___: has joined #RubyOnRails
[07:01:30] moeabdol: has joined #RubyOnRails
[07:01:41] strixd: has joined #RubyOnRails
[07:01:50] rvanlieshout: got a point there :)
[07:02:51] SteenJobs: always forget about the international reps here
[07:02:59] SteenJobs: and obvssss NYC is the center of the world, we all know that
[07:04:21] SteenJobs: i have a kind of convoluted question that i just can???t figure out the answer to
[07:05:05] SteenJobs: if any of you ladies/gents can spare a moment
[07:06:12] SteenJobs: (don???t wanna type it out if no one???s in the mood)
[07:07:59] hahuang65: has joined #RubyOnRails
[07:10:21] infoget: has joined #RubyOnRails
[07:12:51] sypheren: has joined #RubyOnRails
[07:13:39] sypheren: Frustrated with codecademy for rails
[07:13:46] sypheren: Feels like I'm not learning
[07:14:20] rvanlieshout: http://www.intelligentcommunity.org/index.php?src=news&refno=629
[07:14:23] rvanlieshout: center of the world... :)
[07:14:23] jgt: has joined #RubyOnRails
[07:14:28] teufelChiCoder: has joined #RubyOnRails
[07:14:47] edwinvdgraaf: has joined #RubyOnRails
[07:15:10] SteenJobs: rvanlieshout: haha that???s amazing
[07:15:19] SteenJobs: Sypheren: never did codecademy for rails
[07:15:54] SteenJobs: Sypheren: are you learning rails for the first time?
[07:15:58] sypheren: I'm not sure how else to learn it, larger books use a lot of wordy terms at first and intimidate
[07:17:22] SteenJobs: Sypheren: when i first started learning, there was definitely an initial stage where i was familiar with the ideas and concepts but wasn???t well versed enough to actually use any of it. that???s totally normal.
[07:17:42] SteenJobs: Sypheren: do the course and at least familiarize yourself with rails even if you???re not absorbing everything
[07:18:02] sypheren: I cant seem to power through it though, where do I go after that?
[07:18:50] SteenJobs: Sypheren: Radar???s wonderful book, Rails 4 in Action is highly touted here :)
[07:18:58] sypheren: I have a copy of it!
[07:19:13] sypheren: I talked to him a couple months ago when I had time to work on it during school
[07:19:25] sypheren: School's over now, so I'm getting back into it
[07:19:34] antgel: has joined #RubyOnRails
[07:19:40] SteenJobs: Sypheren: before i discovered this chat though, i went through Hartl???s tutorial and i found it incredibly helpful. didn???t absorb everything but definitely familiarized myself - and then started building my own projects - that???s where the true learning began, where i started really learning how things worked and how to implement them
[07:20:25] sypheren: I see :) So it gets you to a point where you can haphazardly start working on original projects?
[07:20:32] sypheren: And learn through them?
[07:20:50] SteenJobs: Sypheren: tis what i did
[07:21:08] francois_: has joined #RubyOnRails
[07:21:19] SteenJobs: and i spent a record breaking amount of time here asking questions - was without question the biggest game changer for me
[07:22:52] intinig: has joined #RubyOnRails
[07:23:13] SteenJobs: rvanlieshout: I have a weird sitch - you have a second?
[07:23:22] alex88: has joined #RubyOnRails
[07:24:15] sandstrom: has joined #RubyOnRails
[07:24:48] SteenJobs: rvanlieshout: ha awesome. here goes nothing:
[07:25:30] dhjondoh: has joined #RubyOnRails
[07:26:30] SteenJobs: rvanlieshout: on a user???s profile, they have a bio and a profile pic uploader with an update button. i implemented in-place editing for the bio, but i also added ???<%= f.hidden_field :bio, :value => @user.bio.blank? ? "Describe yourself!" : @user.bio %>??? within the update form to ensure that the bio isn???t left blank. the problem is, the in-place edited bio reverts back to the pre-edit bio when the update butto
[07:26:31] SteenJobs: pressed because @user was loaded in the controller before the in-place edit took place.
[07:26:32] Forgetful_Lion: has joined #RubyOnRails
[07:26:40] ndrei: has joined #RubyOnRails
[07:27:33] SteenJobs: rvanlieshout: somehow i need @user to reload after the in-place edit so that when update is pressed, @user.bio yields the new bio object rather than the former bio object.
[07:27:33] rvanlieshout: that controller is fired when that action is performed
[07:27:48] SteenJobs: my registrations controller is fired when update is pressed
[07:27:52] rvanlieshout: and that in-place is don using ajax?
[07:28:02] SteenJobs: using a gem called rest_in_place
[07:28:38] SteenJobs: the problem is, when @user.bio.blank is false, @user.bio is called, but @user contains the pre-edited bio rather than the post-edited bio so i need some way to update @user to the newer user object
[07:28:39] rvanlieshout: and that is triggerd at the same time as the form submission?
[07:28:45] SteenJobs: independent
[07:28:47] SteenJobs: i???ll gist you the view
[07:29:07] rvanlieshout: your statement about having to do a reload is wrong if it's independent
[07:29:21] rvanlieshout: if they are triggered at the same time, then you'll just have to wait for form submission for that in_place thing
[07:29:26] rvanlieshout: or not juse in place and only use form submission
[07:29:33] SteenJobs: nah so here???s the thing
[07:29:42] SteenJobs: @user is loaded in the show action of my user controller
[07:29:55] SteenJobs: then the in-place edit takes place, and the bio is updated
[07:29:58] rvanlieshout: but that's not something that remains there when the view is rendered
[07:30:04] rvanlieshout: server side and client side are separate things
[07:30:29] SteenJobs: but in that hidden-field, when it calls @user.bio, it???s calling the bio of the @user object that was loaded when the page was first loaded, before the in-place edit happened
[07:30:49] SteenJobs: rvanlieshout: https://gist.github.com/SteenJobs/a9afa1a7c0dead38d48c
[07:30:50] rvanlieshout: why do you have that hidden field again?
[07:31:20] sinkensabe: has joined #RubyOnRails
[07:31:22] SteenJobs: because if the bio is left empty, the bio can???t be edited in place - so i???m making sure that if the user has no bio, it???s automatically filled with some filler text
[07:31:46] rvanlieshout: why not do that in the action that renders this view?
[07:32:09] rvanlieshout: and why do you need a hidden field for that?
[07:32:37] SteenJobs: totally open to alternatives - was just the first thought i had to ensure there???s always text in the bio field
[07:33:05] rvanlieshout: ok. remove the hidden field and use <%= @user.bio.presence ""
[07:33:13] rvanlieshout: <%= @user.bio.presence || "Placeholder" %>
[07:33:27] GPrime: has joined #RubyOnRails
[07:35:17] krisquigley: has joined #RubyOnRails
[07:36:32] Brycebryce: has joined #RubyOnRails
[07:36:40] Brycebryce: has left #RubyOnRails: ()
[07:36:52] SteenJobs: rvanlieshout: ha never knew about .presence. that???s some good sugar.
[07:37:05] livathinos: has joined #RubyOnRails
[07:37:19] SteenJobs: rvanlieshout: thanks! but now if i try and edit the bio by deleting the current bio, it doesn???t use the placeholder text - just uses the text i deleted
[07:38:18] madsobel: has joined #RubyOnRails
[07:38:49] rvanlieshout: that's something fot that gem to solve
[07:39:33] SteenJobs: rvanlieshout: it actually might be something in my registrations controller - i???ve been hacking this gem. probs should???ve just built in-place editing from scratch tbh
[07:40:17] shinnya: has joined #RubyOnRails
[07:40:48] rvanlieshout: that in_place thing and placeholders is most likely not something you'll have to solve in the controller
[07:41:26] SteenJobs: rvanlieshout: it was something in my registrations controller - i???m almost there. now if i delete the text, the bio field is empty and can???t be edited, but when i refresh the page the placeholder text appears.
[07:41:34] rvanlieshout: but it's just wrong
[07:41:36] rvanlieshout: it's becoming a mess
[07:41:43] SteenJobs: rvanlieshout: i know :(
[07:41:53] rvanlieshout: it's something for that gem to solve
[07:41:57] SteenJobs: rvanlieshout: part of the reason is because i???m using devise
[07:42:03] madsobel: has left #RubyOnRails: ()
[07:42:05] rvanlieshout: that's really really not related
[07:42:26] SteenJobs: rvanlieshout: and trying to do an update from a user view with the gem, so i need to send the data from the view to not the user controller
[07:42:26] mojdk: has joined #RubyOnRails
[07:42:51] SteenJobs: rvanlieshout: because the update action is in my devise registrations controller
[07:43:01] SteenJobs: rvanlieshout: honestly i would get rid of the gem if i knew how to implement in-place editing without it
[07:43:18] mojdk: Does anyone have an idea about this issue? http://stackoverflow.com/questions/30802024/x90-from-ascii-8bit-to-utf-8-error-rails
[07:43:34] rvanlieshout: SteenJobs: it's not that hard
[07:43:38] rvanlieshout: make it work without JS first
[07:43:45] rvanlieshout: then just add a remote: true to your form and it's in place
[07:45:06] gaussblurinc1: has joined #RubyOnRails
[07:46:12] darrencauthon: has joined #RubyOnRails
[07:46:33] ndrei: has joined #RubyOnRails
[07:48:44] solars: has joined #RubyOnRails
[07:48:55] conta: has joined #RubyOnRails
[07:49:05] djellemah: has joined #RubyOnRails
[07:50:05] SteenJobs: rvanlieshout: figured it out
[07:50:14] SteenJobs: rvanlieshout: did a little hack in my controller
[07:50:18] cha1tanya: has joined #RubyOnRails
[07:51:57] hotpancakes: has joined #RubyOnRails
[07:52:14] SteenJobs: rvanlieshout: thanks so much for the .presence idea. much appreciated.
[07:53:52] hotpancakes: Hi everyone. I'm looking for the best way to truly understand a gem's code and structure. Some have recommended pry. How is pry better than just reading the source on github?
[07:57:20] rvanlieshout: i don't like pry
[07:57:59] emilkarl: has left #RubyOnRails: ()
[07:58:45] intinig: has joined #RubyOnRails
[08:00:04] bruno-: has joined #RubyOnRails
[08:02:43] yoongkang: has joined #RubyOnRails
[08:05:09] Hates_: has joined #RubyOnRails
[08:05:23] Hates_: has joined #RubyOnRails
[08:05:54] virgilming: has joined #RubyOnRails
[08:06:56] jsrn_: has joined #RubyOnRails
[08:07:08] Hates__: has joined #RubyOnRails
[08:09:13] Wizek: has joined #RubyOnRails
[08:12:07] intinig: has joined #RubyOnRails
[08:15:13] RTG`: has joined #RubyOnRails
[08:17:59] Pazician: has joined #RubyOnRails
[08:18:43] Pazician: has joined #RubyOnRails
[08:18:54] dici: has joined #RubyOnRails
[08:20:20] x-light: has joined #RubyOnRails
[08:22:48] artto: has joined #RubyOnRails
[08:23:21] hahuang65: has joined #RubyOnRails
[08:25:00] virgilming: I keep getting "permission denied" error while following the starter guide. I sudoed for several times but I guess I should not do that?
[08:25:46] rvanlieshout: permission denied on what?
[08:26:43] virgilming: like this: /.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:62:in `initialize': Permission denied @ rb_sysopen - /Users/virgilming/railsss/yeah/app/controllers/welcome_controller.rb (Errno::EACCES)
[08:26:59] dionysus69: has joined #RubyOnRails
[08:26:59] rvanlieshout: how did you start this?
[08:27:10] workmad3: has joined #RubyOnRails
[08:27:29] virgilming: I just followed the guide on http://guides.rubyonrails.org/getting_started.html
[08:28:44] rvanlieshout: so how did you start this? rails server? thin? puma? passenger?
[08:28:53] virgilming: rails server
[08:29:07] rvanlieshout: and then on start, or when you open an url?
[08:29:45] virgilming: I'm on OS X 10.10.3
[08:29:54] rvanlieshout: ok. so where is this thor in the getting started?
[08:30:07] rvanlieshout: and what are the permissions of that file it tries to open?
[08:30:49] maxshelley: has joined #RubyOnRails
[08:31:06] adre: has joined #RubyOnRails
[08:31:45] jenrzzz: has joined #RubyOnRails
[08:32:41] futilegames: has joined #RubyOnRails
[08:33:49] mingsheng: has joined #RubyOnRails
[08:34:05] livathinos: has joined #RubyOnRails
[08:34:32] dANO: has joined #RubyOnRails
[08:34:41] tedstriker: has joined #RubyOnRails
[08:35:04] bronson: has joined #RubyOnRails
[08:35:24] mingsheng_: has joined #RubyOnRails
[08:37:58] workmad3: has joined #RubyOnRails
[08:38:30] kwd: has joined #RubyOnRails
[08:38:55] Mia: has joined #RubyOnRails
[08:38:55] Mia: has joined #RubyOnRails
[08:39:15] arBmind: has joined #RubyOnRails
[08:40:15] virgilming: I cant figure out what your first question meant. The second is 644.
[08:42:00] virgilming: The guide does not specify anything called thor. Is this a part of Rails?
[08:42:36] virgilming: Curious... Then why...?
[08:44:15] RegulationD: has joined #RubyOnRails
[08:44:17] rvanlieshout: it's kinda hard to tell what's happening with only this limited set of information
[08:45:17] hardlin3r: has joined #RubyOnRails
[08:47:00] darrencauthon: has joined #RubyOnRails
[08:47:06] virgilming: eh... what other info then?
[08:47:32] rvanlieshout: how that thor got in there
[08:47:55] rvanlieshout: and !gist the full stack trace of the error + code to for that controller
[08:47:57] helpa: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[08:49:18] ndrei: has joined #RubyOnRails
[08:49:58] virgilming: I don't know. https://gist.github.com/VirgilMing/55a690746a7edc3c4d29
[08:51:01] rvanlieshout: well. you've created this rails app, right?
[08:51:20] marr: has joined #RubyOnRails
[08:51:32] virgilming: probably sudoed, can't quite remember
[08:51:32] rvanlieshout: so then you've added it
[08:51:39] teufelChiCoder: has joined #RubyOnRails
[08:51:41] rvanlieshout: i mean to the application
[08:51:43] virgilming: or it fails also...
[08:53:45] rvanlieshout: i think you just need a proper tutorial
[08:54:42] mfoo: has joined #RubyOnRails
[08:54:45] [gmi]: has joined #RubyOnRails
[08:56:40] mfoo: I've seen a lot of posts about containerising Rails using Docker. If people are spawning one rails instance per container, how does rails handle running migrations when they come up if you spawn multiple containers? Do people just spawn a single container with e.g. unicorn and run multiple rails workers inside it?
[08:56:52] virgilming: probably... I traced back the error message when I first tried `rails new`
[08:57:02] virgilming: it said Errno::EACCES: Permission denied @ dir_s_mkdir - /Users/virgilming/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0-static/debug_inspector-0.0.2
[08:57:36] rvanlieshout: as what user are you running the rails command?
[08:57:43] rvanlieshout: and in what directory?
[08:57:49] rvanlieshout: is that user able to create a new folder there?
[08:58:10] virgilming: no sudo, in a normal user who can run mkdir
[08:58:24] SteenJobs: any intuitive way come to mind to iterate through all of my users in my index file, but have bootstrap create a new row for every three user objects?
[08:58:39] virgilming: I have only one non-root user anyway..
[08:58:42] rvanlieshout: SteenJobs: .in_group_of
[08:58:57] SteenJobs: rvanlieshout: you???re like a walking/talking API doc
[08:59:20] rvanlieshout: virgilming: so a rails new foo directly gives that error?
[08:59:41] x-light: has joined #RubyOnRails
[08:59:47] SteenJobs: rvanlieshout: ah but here???s the tricky part???i want a new column for each user, but a new row for every three...
[09:00:12] rvanlieshout: that's not tricky
[09:00:24] rvanlieshout: @users.in_groups_of(3, false).each do |group|
[09:00:30] rvanlieshout: - group.each do |user|
[09:00:33] virgilming: and fyi, I always have sudoed since I came to know gem...
[09:00:36] SteenJobs: rvanlieshout: hey you???re supposed to make me work for the answer!!!
[09:00:46] virgilming: or gem will fail anyway...
[09:00:50] rvanlieshout: virgilming: it's more common to use bundler for the gems
[09:01:09] rvanlieshout: virgilming: and use a proper ruby version thing or installig it the proper way
[09:01:18] SteenJobs: rvanlieshout: that???s a sexy loop though. thanks so much brother.
[09:02:32] virgilming: can't really remembered how I installed rbenv... any idea how I may check if I broke things?
[09:03:48] Ergo: has joined #RubyOnRails
[09:04:28] yoongkang: has joined #RubyOnRails
[09:05:07] rvanlieshout: i've actually never used rbenv
[09:06:04] virgilming: ok... guess I'll have to seek help elsewhere. Thank you.
[09:12:16] jammanbo: has joined #RubyOnRails
[09:15:06] jammanbo: What does the stylish Rails developer do when where(???).first_or_create fails to build the join model in a has_many through association?
[09:15:56] rvanlieshout: present a validation message to the user?
[09:18:09] futilegames: has joined #RubyOnRails
[09:18:43] hakunin: has joined #RubyOnRails
[09:19:07] jammanbo: No, as in, what code does one use to achieve the desired effect of creating the record and join record if required? `physician.patients.where(???).first_or_create` will create the Patient but not the Appointment (or if you prefer PhysicianAppointment).
[09:20:47] dvjones89: has joined #RubyOnRails
[09:21:24] dvjones89: Morning folks!
[09:21:43] dvjones89: Well, "morning" to Brits like me, afternoon/evening to everyone else :-)
[09:22:11] DylanJ: jammanbo: patient = physician.....first_or_create \n patient.appointments.create( opts )
[09:22:26] srinidhi: has joined #RubyOnRails
[09:22:31] rvanlieshout: dvjones89: it's still morning here, and not Brittish.. :)
[09:22:46] virgilming: has left #RubyOnRails: ()
[09:22:57] dvjones89: Ha! My bad, I mispoke ^^
[09:23:05] ndrei: has joined #RubyOnRails
[09:23:14] dvjones89: Let's start again..."Hello!" ;-)
[09:23:19] DylanJ: guten morgen from the CEST
[09:23:29] dvjones89: guter morgen DylanJ
[09:23:56] stardiviner: has joined #RubyOnRails
[09:24:15] krisquigley: has joined #RubyOnRails
[09:25:05] rvanlieshout: goedemorgen :)
[09:29:25] charliesome: has joined #RubyOnRails
[09:29:29] babykosh: has joined #RubyOnRails
[09:30:12] haz111: has joined #RubyOnRails
[09:30:48] tcarter1719: has joined #RubyOnRails
[09:30:50] bruno-: has joined #RubyOnRails
[09:35:18] DEA7TH: has joined #RubyOnRails
[09:41:10] startupality: has joined #RubyOnRails
[09:42:12] arBmind: has left #RubyOnRails: ()
[09:45:04] krz: has joined #RubyOnRails
[09:45:51] ubear: has joined #RubyOnRails
[09:45:51] dhjondoh: has joined #RubyOnRails
[09:47:45] darrencauthon: has joined #RubyOnRails
[09:49:28] axl_: has joined #RubyOnRails
[09:49:28] pehlert: has joined #RubyOnRails
[09:51:33] hotpancakes: has joined #RubyOnRails
[09:52:18] bruno-: has joined #RubyOnRails
[09:52:18] teufelChiCoder: has joined #RubyOnRails
[09:54:05] mojdk: Does anyone know if the way that Rails uses ".to_json" is any different to what "native" Ruby does?
[09:54:22] rvanlieshout: mojdk: .method(:to_json).source_location can show you that
[09:54:54] babykosh: rails gods I???ve got a question???http://pastebin.com/01kVUUtG
[09:55:21] platzhirsch: has joined #RubyOnRails
[09:55:29] mojdk: What makes me wonder is that, when a try to encode two identical hashes outsite Rails, the .to_json method works just fine, but when I use it in my Rails app, I get an encoding exception
[09:55:33] platzhirsch: What's a sensible way of making good json serialization?
[09:55:52] rvanlieshout: mojdk: that's why you should check what's the difference actually is
[09:56:01] tbuehlmann: babykosh, why exactly do you avoid a default id column?
[09:57:04] babykosh: http://pastie.org/10240995
[09:58:42] tbuehlmann: babykosh, I read that. why exactly do you avoid a default id column?
[09:59:29] babykosh: I thought that by using the term DEFAULT I would get the value of the key???.but that is not working???.I don???t know what to use in place of DEFAULT
[10:00:07] tbuehlmann: babykosh, why exactly do you avoid a default id column?
[10:02:16] ndrei: has joined #RubyOnRails
[10:02:24] SteenJobs: in my search field, if it???s blank and i hit enter, it returns all users - but if i press the search button itself, it doesn???t execute if the search field is blank - anyone know how to fix that?
[10:02:33] babykosh: @tbuehlmann I???d prefer not to get off topic and start a long discussion on overall database design???..if it where ???models_labels.id??? would I be able to use ???DEFAULT????
[10:03:36] railsnubee: has joined #RubyOnRails
[10:03:54] arcaos: has joined #RubyOnRails
[10:04:46] mrbubbles: has joined #RubyOnRails
[10:06:00] stamina: has joined #RubyOnRails
[10:07:13] tbuehlmann: babykosh, no. what is DEFAULT supposed to be?
[10:07:26] gaussblurinc1: has joined #RubyOnRails
[10:08:31] tbuehlmann: babykosh, when using a custom primary key, either set it manually for each record or have an autoincrement thingy in your database and don't manually set it
[10:08:32] arBmind: has joined #RubyOnRails
[10:08:57] babykosh: @tbuehlmann I was hoping it could be used as a key term to retreive the value of that key set by rails???.but that is not what is happening
[10:09:22] tbuehlmann: no, rails won't set the primary key for you before saving the record
[10:09:33] qsun: has joined #RubyOnRails
[10:12:08] hahuang65: has joined #RubyOnRails
[10:12:43] michael_mbp: has joined #RubyOnRails
[10:12:50] pinecone: has joined #RubyOnRails
[10:13:08] sp1rs: has joined #RubyOnRails
[10:14:52] ndrei: has joined #RubyOnRails
[10:15:08] yfeldblum: has joined #RubyOnRails
[10:17:35] Ergo^: has joined #RubyOnRails
[10:18:25] toomus: has joined #RubyOnRails
[10:19:51] segy: has joined #RubyOnRails
[10:20:35] rickmasta: has joined #RubyOnRails
[10:20:40] toomus: What is the easiest way to merge two strings and remove duplications? eg. "test string" + "string" => "test string"
[10:26:26] acti0nman: has joined #RubyOnRails
[10:27:01] ndrei: has joined #RubyOnRails
[10:29:45] bin_005: has joined #RubyOnRails
[10:33:10] RegulationD: has joined #RubyOnRails
[10:34:27] dionysus69: has joined #RubyOnRails
[10:35:09] tvw: has joined #RubyOnRails
[10:36:23] mrbubbles: has joined #RubyOnRails
[10:37:53] bin_005_k: has joined #RubyOnRails
[10:37:55] jhass: toomus: got some real world examples?
[10:40:47] bruno-: has joined #RubyOnRails
[10:42:13] dideler: has joined #RubyOnRails
[10:42:43] krz: has joined #RubyOnRails
[10:42:44] drzel: has joined #RubyOnRails
[10:43:59] x44x45x41x4E: has joined #RubyOnRails
[10:45:49] bruno-: has joined #RubyOnRails
[10:47:21] ndrei: has joined #RubyOnRails
[10:48:02] intinig: has joined #RubyOnRails
[10:48:29] darrencauthon: has joined #RubyOnRails
[10:50:44] bruno-: has joined #RubyOnRails
[10:51:23] granthatcher: has joined #RubyOnRails
[10:52:06] granthatcher: has joined #RubyOnRails
[10:52:18] rodfersou: has joined #RubyOnRails
[10:55:48] bruno-: has joined #RubyOnRails
[10:55:56] GPrime: has joined #RubyOnRails
[10:57:27] hotpancakes: has joined #RubyOnRails
[11:00:03] GPrime: I've made a model instance method, how do I go about making a reference to the instance of the model that the instance method is being called on?
[11:00:23] Pupeno: has joined #RubyOnRails
[11:00:47] tbuehlmann: GPrime, if I understand you correctly, it's `self`
[11:00:49] bruno-: has joined #RubyOnRails
[11:01:22] grimey: has joined #RubyOnRails
[11:01:27] grimey: has left #RubyOnRails: ()
[11:01:47] kostyay_: has joined #RubyOnRails
[11:02:34] GPrime: tbuehlmann Thank you very much! it works
[11:03:00] infoget: has joined #RubyOnRails
[11:03:11] kostyay_: hi. is it possible to tell rails to precompile all but specific coffee file im working on in development mode? it takes ages to replace my application because there are many javascripts, but normally i only work on 1-2 files
[11:03:12] emilkarl: has joined #RubyOnRails
[11:03:22] kostyay_: replace =refresh
[11:05:22] workmad3: kostyay_: rails 4 at least will be caching the compiled versions and only recompiling on change, even in dev mode
[11:05:29] maz-dev: has joined #RubyOnRails
[11:05:58] lessless: has joined #RubyOnRails
[11:06:18] kostyay_: right, but i still have loads of js files that get loaded and after several refreshes of the application chrome/firefox hanging up on refreshes
[11:06:37] kostyay_: if i could atleast precompile the vendor js files into a single file that would speed it up
[11:07:02] kostyay_: it seems that the browsers have hard time dealing with many js files after several refreshes
[11:07:43] allcentury: has joined #RubyOnRails
[11:07:49] workmad3: yeah... no way to do that with sprockets yet
[11:08:29] kostyay_: do u have any other tips how to deal with this in development mode? its really frustrating
[11:08:59] yoongkang: has joined #RubyOnRails
[11:09:14] rvanlieshout: you should not precompile in development
[11:10:10] ndrei: has joined #RubyOnRails
[11:10:13] kostyay_: rvanlieshout: i have an issue with browser performance due to heavy js/many js files
[11:10:16] bruno-: has joined #RubyOnRails
[11:10:54] rvanlieshout: you could set config.assets.debug to false
[11:10:59] rvanlieshout: or use a browser that can handle it
[11:13:09] krisquigley: has joined #RubyOnRails
[11:15:17] arBmind1: has joined #RubyOnRails
[11:16:22] bobbobbins: has joined #RubyOnRails
[11:17:12] kostyay_: what browser do u find works best for development?
[11:17:33] rvanlieshout: safari imo, but haven't had any issues with the amount of js files
[11:18:42] benhuda: has joined #RubyOnRails
[11:18:51] kostyay_: what about the server that u use for development? unicorn or thin?
[11:19:02] bruno-: has joined #RubyOnRails
[11:19:30] kostyay_: is it faster than thin?
[11:20:18] rvanlieshout: don't know. never used thin
[11:21:08] Trefex: has joined #RubyOnRails
[11:22:51] renews: has joined #RubyOnRails
[11:23:49] diegoviola: has joined #RubyOnRails
[11:26:48] bruno-: has joined #RubyOnRails
[11:27:53] hahuang65: has joined #RubyOnRails
[11:29:31] toomus: has joined #RubyOnRails
[11:31:52] strixd: has joined #RubyOnRails
[11:33:40] sameerynho: has joined #RubyOnRails
[11:33:54] nickjj: kostyay_, there are alternatives but you'd have to step outside of sprockets
[11:35:25] nickjj: it's very possible to have everything setup where you can serve 60k+ kb of SAAS->CSS in dev mode in under 250ms per refresh as well as have hot reload only segments of your page if you happen to be using react
[11:35:30] lxsameer_: has joined #RubyOnRails
[11:36:05] kostyay_: what is the alternative to sprockets?
[11:36:20] bronson: has joined #RubyOnRails
[11:36:22] kostyay_: it currently takes about 30 seconds and sometimes more to refresh our application
[11:36:24] kostyay_: its horrible
[11:36:40] nickjj: there's a few options but personally i really like webpack
[11:36:41] rvanlieshout: it could also matter if you refresh the page using cmd+r or using enter in the address bar
[11:37:08] kostyay_: i always reload using cmd+r
[11:37:26] kostyay_: but then the browser gets stuck so i get frustrated and try to force the load using enter
[11:38:38] lxsameer: has joined #RubyOnRails
[11:39:36] dhjondoh: has joined #RubyOnRails
[11:40:56] roolo_: has joined #RubyOnRails
[11:41:49] teufelChiCoder: has joined #RubyOnRails
[11:43:09] roolo__: has joined #RubyOnRails
[11:44:14] Paradox: has joined #RubyOnRails
[11:45:22] Dwarf: has joined #RubyOnRails
[11:46:47] ndrei: has joined #RubyOnRails
[11:47:46] Oxynum: has joined #RubyOnRails
[11:47:52] mrbubbles: has joined #RubyOnRails
[11:49:18] darrencauthon: has joined #RubyOnRails
[11:50:17] jgpawletko: has joined #RubyOnRails
[11:52:47] yoongkang: has joined #RubyOnRails
[11:55:19] francois_: has joined #RubyOnRails
[11:56:05] ldnunes: has joined #RubyOnRails
[11:57:02] xhoy: has joined #RubyOnRails
[11:57:24] Scripore: has joined #RubyOnRails
[11:58:10] hotpancakes: has joined #RubyOnRails
[11:59:06] rustymyers: has joined #RubyOnRails
[12:01:15] jmignault: has joined #RubyOnRails
[12:01:22] arcaos: has joined #RubyOnRails
[12:01:23] doodlehaus: has joined #RubyOnRails
[12:03:23] dstarh: has joined #RubyOnRails
[12:03:41] ylla: has joined #RubyOnRails
[12:05:23] ekain: has joined #RubyOnRails
[12:06:49] shyshy: has joined #RubyOnRails
[12:07:06] ebbflowgo: has joined #RubyOnRails
[12:08:14] ebbflowgo: has left #RubyOnRails: ()
[12:10:15] platzhirsch: has joined #RubyOnRails
[12:13:12] maxshelley: has joined #RubyOnRails
[12:13:32] mostlybadfly: has joined #RubyOnRails
[12:16:41] ndrei: has joined #RubyOnRails
[12:16:48] AugustoCesar: has joined #RubyOnRails
[12:18:14] platzhirsch: has joined #RubyOnRails
[12:18:17] chipotle: has joined #RubyOnRails
[12:18:22] coderhs: has joined #RubyOnRails
[12:19:03] RegulationD: has joined #RubyOnRails
[12:21:33] tcarter1719: has joined #RubyOnRails
[12:21:37] platzhirsch1: has joined #RubyOnRails
[12:21:57] hsps_: has joined #RubyOnRails
[12:22:01] boom1992: has joined #RubyOnRails
[12:22:52] cytoskeletor: has joined #RubyOnRails
[12:26:14] jkamenik: has joined #RubyOnRails
[12:27:01] masone: has joined #RubyOnRails
[12:28:05] goodcodeguy: has joined #RubyOnRails
[12:28:17] allcentury: has joined #RubyOnRails
[12:29:15] qwertme: has joined #RubyOnRails
[12:30:22] bruno-: has joined #RubyOnRails
[12:33:29] Valien: has joined #RubyOnRails
[12:35:54] griffindy: has joined #RubyOnRails
[12:36:37] bruno-_: has joined #RubyOnRails
[12:36:57] allcentury: has joined #RubyOnRails
[12:38:00] bhorn1: has joined #RubyOnRails
[12:38:23] infoget: has left #RubyOnRails: ()
[12:38:54] bbrowning: has joined #RubyOnRails
[12:39:05] emachnic: has joined #RubyOnRails
[12:39:31] renews: has joined #RubyOnRails
[12:40:35] alexhartley: has joined #RubyOnRails
[12:41:50] charliesome: has joined #RubyOnRails
[12:43:06] chouhoulis: has joined #RubyOnRails
[12:44:38] jcaho: has joined #RubyOnRails
[12:44:42] Sylario: Not really rails, but i am thinking of migrating from Linux to OSX, is it possible to put a second screen on an IMac 2015?
[12:45:44] Sylario: Anly answer i found from google is 2013
[12:48:08] Scripore: has joined #RubyOnRails
[12:48:38] zlude: Sylario, it will support a monitor without any compromise in the main screen's resolution.
[12:49:00] Sylario: zlude: what do you mean, any compromise?
[12:49:45] zlude: Sylario, no big difference about main and second monitor minimal/maximum resolution
[12:49:55] Pazician: has joined #RubyOnRails
[12:49:59] darrencauthon: has joined #RubyOnRails
[12:50:05] Sylario: but isn't the imac using a crazy retyina resolution?
[12:50:07] garrypolley: has joined #RubyOnRails
[12:50:14] ebbflowgo: has joined #RubyOnRails
[12:51:30] gaussblurinc1: has joined #RubyOnRails
[12:52:35] zlude: Sylario, http://www.apple.com/imac-with-retina/specs/ -> CTRL + F for "Connections and Expansion"
[12:52:55] zlude: Support for DVI, VGA, and dual-link DVI (adapters sold separately)
[12:53:16] Sylario: Yeah but you said i need the same resolution on the second screen
[12:53:24] Sylario: is it only a mirror mode?
[12:54:20] zlude: support for extended desktop *and* video mirroring modes
[12:54:24] srinidhi: has joined #RubyOnRails
[12:55:42] zlude: I don't said you need same resolution.. But... Don't make sense you get a retina resolution and a second monitor minor than full hd 1920x1080
[12:56:38] alexhartley: has joined #RubyOnRails
[12:56:44] futilegames: has joined #RubyOnRails
[12:57:07] Sylario: I would be at least HD, but retina is strange, it seems it use a virtual resolution lower than the real to display finer fonts and everything else
[12:57:45] masone: has joined #RubyOnRails
[12:57:45] thatkid: has joined #RubyOnRails
[12:58:06] ruv: has joined #RubyOnRails
[12:58:21] allcentury: hi all - I have a rails app that has two different subdomains. How can I run this locally?
[12:58:41] allcentury: going to app.localhost:3000 and api.localhost:3000 doesn't appear to be working
[12:59:12] startupality: has joined #RubyOnRails
[12:59:27] umgrosscol: has joined #RubyOnRails
[13:00:08] bmurt: has joined #RubyOnRails
[13:00:20] blackmesa: has joined #RubyOnRails
[13:01:07] DylanJ: allcentury: you want to add app.localhost to your hostfile
[13:01:10] DylanJ: /etc/hosts
[13:01:31] DylanJ: same for api.localhost. personally i just make a fake domain at that point.
[13:02:07] krisquigley: has joined #RubyOnRails
[13:04:25] allcentury: DylanJ: so is the mapping in my host file just: api.localhost 127.0.0.01 ?
[13:04:51] DylanJ: ip hostname
[13:05:15] byprdct: has joined #RubyOnRails
[13:05:17] allcentury: got it - thank you much
[13:07:00] ndrei: has joined #RubyOnRails
[13:07:59] diegoviola: my boss just requested I look for NLP software, he apparently wants me to write something around some NLP engine for database lookups and spitting json out of that, is there something like that in Ruby?
[13:08:08] diegoviola: vague at best, I know
[13:08:36] dvjones89: allcentury: I think you could also use subdomain.lvh.me
[13:08:46] dvjones89: lvh.me resolves to 127.0.0.1 (localhost)
[13:08:59] allcentury: dvjones89: is that built into osx?
[13:09:54] Pazician: has joined #RubyOnRails
[13:09:56] dvjones89: allcentury: No, it's a real domain name that someone bought and configured to return 127.0.0.1 for the IP
[13:10:06] dvjones89: allcentury: It should work on any platform
[13:10:41] dvjones89: allcentury: Try the following command in a UNIX terminal to see what I mean: host lvh.me
[13:10:54] srinidhi: has joined #RubyOnRails
[13:10:56] dvjones89: No problem :-)
[13:10:58] rickmasta: has joined #RubyOnRails
[13:10:59] gabeodess: has joined #RubyOnRails
[13:11:45] DylanJ: diegoviola: natual language processing?
[13:12:04] rickmasta: has joined #RubyOnRails
[13:12:05] DylanJ: there are some NLP related ruby projects
[13:12:08] DylanJ: what are you trying to do?
[13:12:18] DylanJ: ACTION isn't a NLP person.
[13:12:21] DylanJ: but i've seen things.
[13:12:27] _2easy: has joined #RubyOnRails
[13:12:51] rickmasta: has joined #RubyOnRails
[13:12:58] DylanJ: there's lot of stemming things written in ruby for example
[13:13:51] DylanJ: chances are whatever the end goal is there's already some software that does just that.
[13:13:51] garrypolley: has joined #RubyOnRails
[13:13:55] rickmasta: has joined #RubyOnRails
[13:14:01] diegoviola: I see, thanks
[13:14:21] diegoviola: DylanJ: I'm not sure what my boss is trying to do, he just gave me some vague requests
[13:14:28] diegoviola: and then went away
[13:14:33] DylanJ: tell him to look at elastic search.
[13:14:37] DylanJ: tell him it does things.
[13:14:37] yfeldblum: has joined #RubyOnRails
[13:14:42] philcrissman: has joined #RubyOnRails
[13:14:44] DylanJ: an equally vague answer
[13:15:46] DylanJ: it's just that nlp is a big topic. he might as well have asked you to write a function that uses algorithms.
[13:15:57] k4nd4lf: has joined #RubyOnRails
[13:16:36] hahuang65: has joined #RubyOnRails
[13:17:11] allcentury: DylanJ: I mapped in my etc/hosts file 127.0.0.1 api.localhost and 127.0.0.1 app.localhost -- when I go to api.localhost it hits the right subdomain but app.localhost is hitting the api subdomain.
[13:17:19] startupality: has joined #RubyOnRails
[13:18:42] DylanJ: allcentury: does this code work in production with a real webserver?
[13:20:02] allcentury: devs here are using pow locally but that seems unnecessary
[13:21:16] DylanJ: just thinking what could be happening
[13:21:22] startupality: has joined #RubyOnRails
[13:21:51] DylanJ: maybe maaaaaybe
[13:22:01] DylanJ: maybe webbrick is expecing at least a tld.
[13:22:16] DylanJ: so try changing your hostfile to use api.localhost.com
[13:22:20] DylanJ: and app.localhost.com
[13:25:38] horsecowdog: has joined #RubyOnRails
[13:29:16] allcentury: DylanJ: no luck
[13:29:31] rustymye_: has joined #RubyOnRails
[13:30:32] DylanJ: same issue, api.localhost.com works but app.localhost.com serves what should be at api.localhost.com ?
[13:31:04] rustymyers: has joined #RubyOnRails
[13:32:49] diegobiavati: has joined #RubyOnRails
[13:34:26] gerep: has joined #RubyOnRails
[13:34:53] alexhart_: has joined #RubyOnRails
[13:34:57] DylanJ: allcentury: not sure what's happening. i thought that should work. let me know if you figure it out.
[13:34:59] RegulationD: has joined #RubyOnRails
[13:35:00] gerep: I'm using Rails 4.2.1 and I'm working on a lib and on every change I need to restart the server, is there way to avoid it?
[13:35:22] creature: has joined #RubyOnRails
[13:35:37] DylanJ: put load 'my/lib' somewhere
[13:36:01] DylanJ: like, in your tests or if you're not writing tests, in the action/method where you're using your lib.
[13:36:09] DylanJ: that should reload your libs code.
[13:36:20] maxshelley: has joined #RubyOnRails
[13:36:24] gerep: DylanJ, thanks ;)
[13:37:14] mikecmpbll: has joined #RubyOnRails
[13:37:34] masone: has joined #RubyOnRails
[13:38:24] Scripore: has joined #RubyOnRails
[13:38:28] maxshelley: has joined #RubyOnRails
[13:38:45] codeurge: has joined #RubyOnRails
[13:39:27] yoongkang: has joined #RubyOnRails
[13:40:36] JoshL: has joined #RubyOnRails
[13:41:07] renanoronfle: has joined #RubyOnRails
[13:42:27] gerep: I'm using the Prawn gem to generate a PDF, in the file name I'm sending also the path, like this: "#{Rails.root}/tmp/uploads/forms/#{merchant.id}.pdf". The "forms" directory is not created so I have and error: "No such file or directory @ rb_sysopen" Shouldn't it create the folder?
[13:42:37] Parker0: has joined #RubyOnRails
[13:42:46] gerep: When I remove the forms/ it works because the the uploads/ exist
[13:42:50] gerep: How can I fix that?
[13:43:06] Crashtown: has joined #RubyOnRails
[13:43:10] dvjones89: allcentury: Does it works if you revert your changes to /etc/hosts and use lvh.me instead?
[13:43:11] gerep: Or it depends on the gem command that's generating the PDF?
[13:43:36] DylanJ: gerep: i dont think prawn creates folders for you.
[13:43:47] DylanJ: just use FileUtil.mk_dir(path)
[13:43:53] gerep: DylanJ, ok, thanks again ;)
[13:44:11] DylanJ: .mkdir ** ;(
[13:44:31] DylanJ: it's mkdir_p if you need to create nested folders.
[13:44:53] ylla: has joined #RubyOnRails
[13:45:02] DylanJ: also FileUtils is the module. ggwp DylanJ
[13:45:17] gabeodess: has joined #RubyOnRails
[13:45:49] ndrei: has joined #RubyOnRails
[13:46:57] hotpancakes: has joined #RubyOnRails
[13:49:17] devdazed: has joined #RubyOnRails
[13:50:43] darrencauthon: has joined #RubyOnRails
[13:51:27] allcentury: DylanJ: sorry was in stand up. yes same issue. dvjones89: yep lvh.me does work
[13:52:05] jonathanwallace: has joined #RubyOnRails
[13:52:37] jonathanwallace1: has joined #RubyOnRails
[13:54:27] alho: has joined #RubyOnRails
[13:54:37] rickmasta: has joined #RubyOnRails
[13:55:32] rickmasta: has joined #RubyOnRails
[13:56:13] jkamenik1: has joined #RubyOnRails
[13:57:09] rickmasta: has joined #RubyOnRails
[13:57:18] sinkensabe: has joined #RubyOnRails
[13:57:59] rickmasta: has joined #RubyOnRails
[13:58:23] j_mcnally: has joined #RubyOnRails
[13:58:28] dhjondoh: has joined #RubyOnRails
[13:58:54] highcup: has joined #RubyOnRails
[13:59:24] rickmasta: has joined #RubyOnRails
[14:00:54] rickmasta: has joined #RubyOnRails
[14:01:26] jamiely: has joined #RubyOnRails
[14:02:16] earthquake: has joined #RubyOnRails
[14:02:37] Papierkorb: has joined #RubyOnRails
[14:03:09] Crashtown: has joined #RubyOnRails
[14:03:50] rickmasta: has joined #RubyOnRails
[14:03:56] gabeodess: has joined #RubyOnRails
[14:04:34] rickmasta: has joined #RubyOnRails
[14:04:46] treehug88: has joined #RubyOnRails
[14:05:18] rickmasta: has joined #RubyOnRails
[14:05:26] byprdct: has joined #RubyOnRails
[14:06:00] rickmasta: has joined #RubyOnRails
[14:06:03] foucist: has joined #RubyOnRails
[14:06:07] yoongkang: has joined #RubyOnRails
[14:06:21] alexhartley: has joined #RubyOnRails
[14:06:33] foucist: is there a more ruby-like version of doing .where('expires_at >= ?', Time.current) ?
[14:06:38] foucist: in rails 4
[14:06:44] rickmasta: has joined #RubyOnRails
[14:07:26] rickmasta: has joined #RubyOnRails
[14:08:32] strixd: https://github.com/activerecord-hackery/squeel makes it look abit nicer
[14:08:47] strixd: Article.where{created_at >= 2.weeks.ago}
[14:08:57] DylanJ: weeeeeiiiird
[14:09:02] DylanJ: awesome. but weird.
[14:09:04] mtchllbrrn: has joined #RubyOnRails
[14:09:17] DylanJ: well think how that works
[14:09:26] strixd: magic like everything
[14:09:43] keegnotrub: has joined #RubyOnRails
[14:09:48] keegnotrub: has left #RubyOnRails: ()
[14:09:53] RegulationD: has joined #RubyOnRails
[14:10:05] doodlehaus: has joined #RubyOnRails
[14:11:17] startupality: has joined #RubyOnRails
[14:13:04] blackmesa: has joined #RubyOnRails
[14:13:33] strixd: or https://github.com/jeremyevans/sequel @foucist
[14:14:24] platosha: has joined #RubyOnRails
[14:14:59] rickmasta: has joined #RubyOnRails
[14:15:07] axl__: has joined #RubyOnRails
[14:16:43] Jelmer_: has joined #RubyOnRails
[14:20:59] teufelChiCoder: has joined #RubyOnRails
[14:21:51] rickmasta: has joined #RubyOnRails
[14:22:06] Hates_: has joined #RubyOnRails
[14:22:24] Hates_: has joined #RubyOnRails
[14:22:38] rickmasta: has joined #RubyOnRails
[14:22:52] charliesome: has joined #RubyOnRails
[14:23:58] mary5030: has joined #RubyOnRails
[14:24:29] kies: has joined #RubyOnRails
[14:25:45] mary5030: has joined #RubyOnRails
[14:25:58] yaw: has joined #RubyOnRails
[14:26:34] tcarter1719: has joined #RubyOnRails
[14:27:40] sarink: has joined #RubyOnRails
[14:28:14] shinnya: has joined #RubyOnRails
[14:29:15] broman: has joined #RubyOnRails
[14:29:30] m0r0n: has joined #RubyOnRails
[14:30:03] maz-dev: has joined #RubyOnRails
[14:30:06] broman: can someone help me? im newbie on rails... i'm using rails 3.2 and i want to show an object attribute... the name attribute.. when i type object.name it says "no method name found" ... what should i do to get this working?
[14:31:52] nonparfumee: has joined #RubyOnRails
[14:32:20] DylanJ: broman: show us your code
[14:32:36] DylanJ: where are you calling object.name
[14:32:46] broman: DylanJ, at the view: <%= @carreira.nome %>
[14:32:59] broman: nome = name
[14:33:01] bobbobbins: has joined #RubyOnRails
[14:33:07] broman: on the model
[14:33:07] DylanJ: whats the /actual/ error?
[14:33:18] broman: attr_accessible :id, :nome
[14:33:20] Papierkorb: has joined #RubyOnRails
[14:33:26] broman: undefined method `nome' for #<Class:0x0000000808fc70>
[14:33:35] broman: if i do a @carreira.inspect
[14:33:38] broman: it shows everything
[14:33:47] bobbobbins: Hey, I have a function in one model that I want to user, but I'm querying the parent model, how do I do that?
[14:34:35] broman: but i just want to the the "nome" attribute
[14:34:51] Originerd: has joined #RubyOnRails
[14:35:10] DylanJ: how are you assigning @carreira in the controller?
[14:35:13] bobbobbins: for instance Product.options.filter_options... something like that, where options is a table joined to products with a has many
[14:35:43] broman: DylanJ, http://pastie.org/10241365
[14:36:21] DylanJ: you've got @carreiras
[14:36:28] DylanJ: try @carreiras[0].nome
[14:36:39] bratsche: has joined #RubyOnRails
[14:37:16] someish: has joined #RubyOnRails
[14:37:29] broman: DylanJ, why when i do a @carreira.inspect it shows me everything?
[14:37:43] broman: but carreira.nome doesnt
[14:37:53] DylanJ: I have no idea. I don't nknow how '@carreira' is being defined yet.
[14:37:53] krz: has joined #RubyOnRails
[14:38:04] DylanJ: you assign to @carreiras with an s at the end
[14:38:44] broman: when i do a inspect i get this: [#<Carreira id: 1, nome: "DPU", created_at: "2015-04-10 19:43:36", updated_at: "2015-04-10 19:43:36">]
[14:38:49] broman: i just want the nome attribute
[14:38:52] DylanJ: That's an array
[14:39:01] DylanJ: so you're calling .nome on an array
[14:39:18] hackeron: has joined #RubyOnRails
[14:39:20] broman: @carreira[0].nome
[14:39:32] broman: returns nothing! at least i'm not getting that error
[14:39:39] broman: but it doesn't show me what i want
[14:39:49] DylanJ: is .nome a field on your model?
[14:40:07] DylanJ: ah dumb question. i can see from the inspect
[14:40:16] yaw: has joined #RubyOnRails
[14:40:38] foucist: has joined #RubyOnRails
[14:40:40] DylanJ: if @carreira = what you just pasted.
[14:40:48] DylanJ: than @carreira[0].nome will work.
[14:41:02] broman: it doesn't work :)
[14:41:13] DylanJ: yeah but how are you testing it works?
[14:41:44] broman: no deal either
[14:41:49] DylanJ: if you add
[14:41:53] DylanJ: <%= "hello world" %>
[14:41:55] DylanJ: do you see that?
[14:42:12] bmurt: has joined #RubyOnRails
[14:42:36] broman: sorry.. yes
[14:42:56] DylanJ: can i see your view code?
[14:43:05] broman: <%= @carreira[0].nome.to_s %> <%= "hello world" %>
[14:43:18] K0nserv-: Any pointers on how I can make this work like I want
[14:43:19] K0nserv-: http://pastie.org/10241377
[14:43:32] treehug88: has joined #RubyOnRails
[14:43:35] broman: DylanJ, http://pastie.org/10241379
[14:44:00] DoubleMalt: has joined #RubyOnRails
[14:44:05] broman: DylanJ, line 81
[14:44:12] Papierkorb: has joined #RubyOnRails
[14:44:29] ogpastaling: has joined #RubyOnRails
[14:44:45] broman: DylanJ, if i do a @carreira[0].inspect i get #<Carreira id: 1, nome: "DPU", created_at: "2015-04-10 19:43:36", updated_at: "2015-04-10 19:43:36">
[14:45:16] Papierkorb_: has joined #RubyOnRails
[14:45:22] ubear: has joined #RubyOnRails
[14:45:30] Rubie: has joined #RubyOnRails
[14:45:32] JakFrist: has joined #RubyOnRails
[14:45:45] Pazician: has joined #RubyOnRails
[14:46:06] DylanJ: don't know what to tell you then. if that inspect works. and hello world shows up on the page.. then i have no idea wtf you did to your code.
[14:46:41] DylanJ: the only issue i can see if that you're putting this <%= outside of your product_content div
[14:47:00] DylanJ: so i'm inclined to say it's a rendering issue and not a rails issue.
[14:47:31] DylanJ: unless you have a .nome method in your model that's doing something dumb.
[14:47:41] DylanJ: ACTION is out of ideas.
[14:47:47] squiercaster: has joined #RubyOnRails
[14:48:50] broman: thank you ill try harder here
[14:50:05] DylanJ: broman: let me know what it is when you figure it out
[14:50:44] jstanton: has joined #RubyOnRails
[14:51:07] krisquigley: has joined #RubyOnRails
[14:51:44] broman: i fixed, DylanJ !
[14:51:44] givanse: has joined #RubyOnRails
[14:51:49] broman: it was a accessor defined
[14:51:59] broman: attr_accessor :nome
[14:52:04] broman: removed that and worked like a charm
[14:52:19] gambl0re: has joined #RubyOnRails
[14:52:30] DylanJ: that'll add a "nome()" and "nome=(x)" methods to instances of your model.
[14:52:30] diegoviola: so my boss asked me to do some research on NLP, they want basically code that does database lookups and gets out data based on input as json, I don't know why this idiot keeps giving me vague requests, what I'm supposed to do with this data?
[14:53:10] DylanJ: diegoviola: what exactly did he say?
[14:53:34] diegoviola: DylanJ: "I want you to do some research about how to do NLP, we need that for some project"
[14:54:19] j_mcnally: has joined #RubyOnRails
[14:54:32] DylanJ: tell him NLP is a big field. what exactly would he like to accomplish.
[14:54:46] DylanJ: he might as well have asked you "go learn linguistics, we need it for some project"
[14:55:21] diegoviola: DylanJ: then I asked what he meant exactly and he said "I want the code to perform some searchs on the database we have and return responses based on the search. If someone writes a question like 'What is the color of the sky' I want the code to get the proper answer"
[14:55:36] DylanJ: good luck
[14:55:36] diegoviola: DylanJ: yeah he's a fucking moron
[14:56:34] ogpastaling: has joined #RubyOnRails
[14:56:38] DylanJ: i would explain that it's not a trivial problem to solve.
[14:56:58] edwinvdgraaf: has joined #RubyOnRails
[14:57:34] thatkid: has joined #RubyOnRails
[14:57:50] j_mcnally: has joined #RubyOnRails
[15:00:46] Papierkorb: has joined #RubyOnRails
[15:01:23] alexhart_: has joined #RubyOnRails
[15:01:56] foucist: has joined #RubyOnRails
[15:02:13] DylanJ: diegoviola: https://github.com/thebigdb/akiva maybe that can point you in the right direction
[15:02:24] diegoviola: DylanJ: I don't think he knows what he is talking about
[15:03:21] Cache_Money: has joined #RubyOnRails
[15:03:42] maz-dev: has joined #RubyOnRails
[15:04:07] DylanJ: yeah that's common and when it happens you just need to be able to explain why it's not possible.
[15:05:09] uris: has joined #RubyOnRails
[15:05:23] hahuang65: has joined #RubyOnRails
[15:05:28] apeiros: before reinventing the wheel - I need all controller classes loaded for a rake task. is there a canonical way to do this? I'd assume there to be a way, given that prod rails loads all controllers (and a bit more)
[15:05:46] DylanJ: diegoviola: i had a feature request the other day for a project where a manager was like "we need to be able to figure out if this text is in X language" the text being maybe 5-10 words.
[15:06:11] Or1on: has joined #RubyOnRails
[15:06:44] DylanJ: it's possible. but it'll have a lot of false positives (all the loan words in a few langauges). does it actually provide any business value to our product?
[15:06:47] tbuehlmann: apeiros, you can depend on the "environment" task which loads the complete environment
[15:07:10] apeiros: tbuehlmann: doesn't environment task load it in dev mode? i.e. lazyloading?
[15:07:23] apeiros: ACTION checks
[15:07:35] tbuehlmann: if you set the environment to production, it shouldn't
[15:08:26] apeiros: but I don't want to run the rake task in production env :)
[15:08:36] apeiros: it should behave the same, independently of env
[15:09:19] DylanJ: apeiros: if your task is like "task import: :environment do"
[15:09:30] DylanJ: then you /should/ have access to controller classes.
[15:09:30] chouhoulis: has joined #RubyOnRails
[15:09:48] tbuehlmann: it's about eager loading them, right?
[15:09:50] apeiros: DylanJ: having access is insufficient. I need them already loaded
[15:09:55] n008f4g_: has joined #RubyOnRails
[15:10:03] DylanJ: loaded as in...
[15:10:18] apeiros: tbuehlmann: correct. without it, ApplicationController.subclasses would return an empty array
[15:10:32] apeiros: as in Kernel#load'ed or Kernel#require'd
[15:10:39] thatkid: hello, I'm writing a pattern to match the url like this, example.com/123-blahabla, URL should match if it is started with number like this, Can you help me to solve it?
[15:10:43] apeiros: or whatever other means rails uses to load files
[15:10:45] yoongkang: has joined #RubyOnRails
[15:10:53] rickmasta: has joined #RubyOnRails
[15:11:16] apeiros: I'll check setting the corresponding rails config prior to loading the env task??? maybe that works
[15:11:43] DylanJ: well i dont know the answer sadly. but i think needing access to code inside of a controller outside of a request is dumb.
[15:11:53] disgrntld: has joined #RubyOnRails
[15:12:31] apeiros: DylanJ: you're free to think that ;-)
[15:12:42] apeiros: the rake task basically prints all controllers and actions
[15:13:39] apeiros: there's a couple of ways to do that. but I think the easiest is tapping into rails' eager loading (or caching, as it calls it in the config) of all controllers and use .subclasses
[15:14:41] startupality: has joined #RubyOnRails
[15:14:59] apeiros: ok, actually not sure whether it is .eager_load = true or .cache_classes = true. I'll just try both :D
[15:15:52] hotpancakes: has joined #RubyOnRails
[15:16:01] pullphinger: has joined #RubyOnRails
[15:16:07] actiondispawhat: has joined #RubyOnRails
[15:16:15] apeiros: ok. that did not go as planned.
[15:17:14] apeiros: plan B then. query for all paths. load all controller files myself :-/ ugly since I might break expected load order???
[15:17:35] Pazician: has joined #RubyOnRails
[15:17:54] DylanJ: apeiros: what if you call Rails.application.reload_routes!
[15:17:58] DylanJ: in your rake task
[15:18:14] DylanJ: not sure if that will load your controllers.
[15:18:25] darrencauthon: has joined #RubyOnRails
[15:18:42] darrencauthon: has joined #RubyOnRails
[15:18:56] apeiros: DylanJ: nope. doesn't load the controllers
[15:19:10] apeiros: neither does Rails.eager_load!
[15:20:33] sonofdirt: has joined #RubyOnRails
[15:20:45] Scripore: has joined #RubyOnRails
[15:21:30] actiondispawhat: I have a controller action that basically serves as a proxy, so that I can make an ajax call to that action, then the action uses net::http to make a request to an external api and returns the result. But that action keeps being very slow, because it's spending a bunch of time on calling ActionDispatch::RequestId#call in middleware
[15:21:55] actiondispawhat: most of the time it's taking longer than the actual external api request. Or at least that's what new relic has been showing me consistently
[15:22:02] bbrowning: has joined #RubyOnRails
[15:22:08] baweaver: has joined #RubyOnRails
[15:22:09] apeiros: I know why setting the config doesn't work
[15:22:11] chrisja: has joined #RubyOnRails
[15:22:15] apeiros: :environment loads the config file
[15:22:22] apeiros: which overrides my setting :-S
[15:22:44] actiondispawhat: what could possibly be responsible for making this random method in middleware to take up so much time; enough to make it show up on new relic?
[15:23:32] apeiros: aaaaahahaha, I'm the devil.
[15:23:45] apeiros: conf = Rails.configuration; def conf.cache_classes(*); end; ???
[15:23:49] dented42: has joined #RubyOnRails
[15:23:54] apeiros: all controllers are loaded
[15:24:35] actiondispawhat: I'm not familiar enough with the chain of methods that lead up to ActionDispatch::RequestId#call getting invoked, but it seems like it's just one of the many methods that get called any time a request comes into rails
[15:25:22] apeiros: DylanJ, tbuehlmann: https://gist.github.com/apeiros/c51d14b5058bfbf43623
[15:25:32] apeiros: and thanks you two for your time! :D
[15:27:05] Sylario: Is there a mac editor supporting yaml out of the box with syntax coloration?
[15:27:14] apeiros: Sylario: sublime
[15:27:18] apeiros: and I think bbedit too
[15:27:21] bbrowning_: has joined #RubyOnRails
[15:27:28] Sylario: apeiros: thx
[15:27:55] Sylario: It seems textmate does not support YML...
[15:27:58] nonparfumee: has joined #RubyOnRails
[15:28:11] dopie: has joined #RubyOnRails
[15:28:19] apeiros: surprises me. but been a long time since I used TM
[15:28:23] startupality: has joined #RubyOnRails
[15:28:51] Sylario: no colors, it's for the person translating a file, and i want them to have a yml editor, i do not want to end up with an invalid file
[15:29:54] tcarter1719: has joined #RubyOnRails
[15:30:36] eduardodev: has joined #RubyOnRails
[15:31:30] eduardodev: has left #RubyOnRails: ()
[15:39:43] flori: has joined #RubyOnRails
[15:40:50] spyderman4g63: has joined #RubyOnRails
[15:41:02] blackmesa: has joined #RubyOnRails
[15:41:51] chipotle: has joined #RubyOnRails
[15:41:57] Pazician: has joined #RubyOnRails
[15:47:03] eddie_v9: has joined #RubyOnRails
[15:47:49] dvjones89: Sylario: I know your pain, nothing worse than hunting for a missing semicolon, especially when someone else crafted the file ;-)
[15:48:50] cnk: has joined #RubyOnRails
[15:50:10] DylanJ: apeiros: oh wow hahaha. n1
[15:51:32] SeriousMatters: has joined #RubyOnRails
[15:52:27] philcrissman: has joined #RubyOnRails
[15:52:40] jcaho: has joined #RubyOnRails
[15:53:45] Zadrel: has joined #RubyOnRails
[15:55:22] jenrzzz: has joined #RubyOnRails
[15:56:01] Synthead: how can I do an .order() with two fields, one using a join? If I use raw SQL, .joins() uses "as" on tables as it generates SQL and mangles .order()
[15:56:26] dented42: has joined #RubyOnRails
[15:56:54] tenderlove: has joined #RubyOnRails
[15:57:04] bronson: has joined #RubyOnRails
[15:57:28] ndrei: has joined #RubyOnRails
[15:58:00] rbennacer: has joined #RubyOnRails
[15:59:11] Fire-Dragon-DoL: has joined #RubyOnRails
[15:59:23] borodin_: has joined #RubyOnRails
[16:01:15] renews: has joined #RubyOnRails
[16:01:19] premera: has joined #RubyOnRails
[16:01:29] alexhartley: has joined #RubyOnRails
[16:01:46] premera: has joined #RubyOnRails
[16:01:48] borodin_: still struggling with getting assets to work in Production: https://gist.github.com/chewmanfoo/2ab848590e92d45add88 I'm probably missing a step, but I haven't found anything wrong yet...
[16:02:05] circ-user-xH81w: has joined #RubyOnRails
[16:02:08] borodin_: if anyone could help, I'll buy you lunch/a beer
[16:02:51] jschoolcraft: has joined #RubyOnRails
[16:03:07] tejasmanohar: has joined #RubyOnRails
[16:03:32] diegoviola: has joined #RubyOnRails
[16:03:45] diegoviola: has joined #RubyOnRails
[16:03:52] phat4life: has joined #RubyOnRails
[16:04:29] alexhartley: has joined #RubyOnRails
[16:05:20] Pazician: has joined #RubyOnRails
[16:05:22] jkamenik: has joined #RubyOnRails
[16:06:15] Fire-Dragon-DoL: has joined #RubyOnRails
[16:08:24] chelbs: has joined #RubyOnRails
[16:08:39] xxxsniperh4x0rxx: has joined #RubyOnRails
[16:09:32] hotpancakes: has joined #RubyOnRails
[16:11:07] Xiti: has joined #RubyOnRails
[16:11:49] Fire-Dragon-DoL: has joined #RubyOnRails
[16:14:22] smathy: has joined #RubyOnRails
[16:16:56] Senjai: Does after_touch always get called when a save happens?
[16:17:59] Senjai: nevermind
[16:19:46] bronson: has joined #RubyOnRails
[16:21:29] simplyianm: has joined #RubyOnRails
[16:23:04] edwinvdgraaf: has joined #RubyOnRails
[16:26:35] renews: has joined #RubyOnRails
[16:28:29] chintanparikh: has joined #RubyOnRails
[16:28:39] towski_: has joined #RubyOnRails
[16:31:52] teufelChiCoder: has joined #RubyOnRails
[16:31:53] Sou|cutter: has joined #RubyOnRails
[16:32:04] hotpanca_: has joined #RubyOnRails
[16:34:10] Sou|cutter: I have an API that has been getting a bunch of requests with invalid UTF-8 - specifically strings like "\xFF" . When those occur something is dumping a huge amount of data (looks like the entire rack env?) to the logs, and it's filling up my logs FAST
[16:34:11] dented42: has joined #RubyOnRails
[16:34:19] workmad3: borodin_: rails production settings assume you've got a web-server set up to serve static files and won't do that for you
[16:34:37] cnk: has joined #RubyOnRails
[16:34:40] workmad3: borodin_: see https://gist.github.com/chewmanfoo/2ab848590e92d45add88#file-production-rb-L25
[16:34:54] Sou|cutter: I made a middleware that scrubs the UTF-8, but something is -still- dumping the whole env to logs. Any idea what might be doing this?
[16:35:12] diegoviola: my boss asked me to research on machine learning and language processing, I asked what they need exactly and they mentioned they need something for their customer support, so when a person searchs for something they get accurate responses, machine learning might be overkill for that no? not to mention it's complex subject, full text search can probably do these things?
[16:35:47] workmad3: diegoviola: you should probably start with a decent full-text search setup, yeah
[16:36:07] diegoviola: did I mention my boss is a fucking idiot?
[16:36:19] acovrig: has joined #RubyOnRails
[16:36:25] diegoviola: hopefully this channel is logged and he reads that
[16:36:27] workmad3: diegoviola: you'll probably find they get better results than (no offence) a first-pass attempt by a novice to implement a machine-learning setup to give results :D
[16:36:31] SPYGAME: has joined #RubyOnRails
[16:36:36] workmad3: diegoviola: it is indeed publicly logged ;)
[16:37:15] SPYGAME: hey guys, would appreciate some help on this http://stackoverflow.com/questions/30850040/complex-conditional-filter-design
[16:37:24] artto: has joined #RubyOnRails
[16:37:46] workmad3: diegoviola: tbh, you'll probably find that a full-text search gives better results than even pretty advanced machine learning specialists trying to do that from scratch ;) but there may be machine-learning applications for index optimisation in there if you really want to dig deep :D
[16:38:05] tejasman1: has joined #RubyOnRails
[16:38:29] acovrig: I can???t get rails to run, https://gist.github.com/acovrig/764ccd5f86c60cff3b24 is it???s output, any ideas?
[16:39:05] workmad3: acovrig: start by trying 'spring stop'
[16:39:16] diegoviola: workmad3: yep
[16:39:18] acovrig: workmad3: it does this on a fresh boot
[16:39:29] diegoviola: workmad3: I'll go with full-text-search
[16:39:34] acovrig: `spring stop???: ???Spring is not running"
[16:39:51] krisquigley: has joined #RubyOnRails
[16:40:04] acovrig: spring stop doesn???t change anything in the output.
[16:40:04] joaomdmoura: has joined #RubyOnRails
[16:40:15] umgrosscol: Anyone here have a separate database users for their production environment and environment used to setup the database?
[16:40:17] guest56: has joined #RubyOnRails
[16:41:22] Sou|cutter: It doesn't seem to matter that my middleware to scrub the input is the first middleware either :/
[16:41:24] umgrosscol: acovrig: what are you requiring at line /home/acovrig/tester/config/application.rb:3
[16:41:50] acovrig: umgrosscol: require ???rails/all???
[16:42:10] acovrig: umgrosscol: it???s a fresh rails new testing && cd $_ && bundle install && rails s
[16:42:18] umgrosscol: diegoviola: ElasticSearch or Solr
[16:43:08] umgrosscol: acovrig: try bundle update
[16:43:28] diegoviola: umgrosscol: ok
[16:43:48] acovrig: umgrosscol: I suspect a bad install, would bundle update fix it?
[16:43:58] Pharaoh2: has joined #RubyOnRails
[16:44:07] acovrig: umgrosscol: same error???
[16:44:24] joaomdmoura: has joined #RubyOnRails
[16:45:21] SeriousMatters: has left #RubyOnRails: ()
[16:45:46] umgrosscol: acovrig: What rails version are you using?
[16:46:16] ogpastal_: has joined #RubyOnRails
[16:46:23] acovrig: Rails 4.2.1 and ruby 2.2.1p85 (2015-02-26 revision 49769) [armv7l-linux-eabihf]
[16:46:32] bruno-: has joined #RubyOnRails
[16:46:36] fortunate: has joined #RubyOnRails
[16:46:43] nonparfumee: has joined #RubyOnRails
[16:47:04] acovrig: umgrosscol: I updated the gist with the outupt of bundle update and rails s
[16:49:07] AzaToth: has joined #RubyOnRails
[16:50:08] acovrig: umgrosscol: if I have a bad install of rails, would you recommend I purge and re-install it (if so, how)?
[16:50:25] tcarter1719: has joined #RubyOnRails
[16:51:07] kahunaio: has joined #RubyOnRails
[16:51:31] umgrosscol: acovrig: With rvm? I'd assume you blow away your .rvm/gems/ruby-2.2.1/gems directory.
[16:51:54] tcarter1719: has joined #RubyOnRails
[16:53:37] acovrig: umgrosscol: `curl -L get.rvm.io | bash -s stable --rails??? took 5hr with 3 force reboots (system froze at 0% id, 45% wa); as I mention that, it seg faults trying to run top??? maybe I should re-install the OS...
[16:53:48] CeilingMoose: has joined #RubyOnRails
[16:54:02] umgrosscol: acovrig you get a segfault with top?
[16:54:10] umgrosscol: What os is this?
[16:54:10] pragmatism: has joined #RubyOnRails
[16:54:28] xxxsniperh4x0rxx: Sup guys. Is there a way I can easily find sites of people who have portfolios of doing rails work? I want to create my own portfolio and want some ideas for inspiration. I currently don't even really know rails except for some beginner stuff.
[16:54:31] hahuang65: has joined #RubyOnRails
[16:54:41] acovrig: and `free -m???; I wasn???t yesterday; Ubuntu 14.04.2 LTS running on Linux bananapi 3.4.90 #3 SMP PREEMPT Tue Jul 29 16:16:05 CST 2014 armv7l armv7l armv7l GNU/Linux
[16:55:11] umgrosscol: acovrig: Yeah, that shouldn't be broken like that.
[16:55:39] philcrissman: xxxsniperh4x0rxx: unless you're a front-end dev or designer, it's pretty rare for a rails dev to have a "portfolio" site. A github account, perhaps.
[16:55:43] acovrig: umgrosscol: I think something got corrupted where the script thought it was installed fine, but wasn???t
[16:55:49] edwinvdgraaf: has joined #RubyOnRails
[16:56:08] acovrig: probably when I was using a USB port on a laptop instead of a 2A wall adapter.
[16:56:15] xxxsniperh4x0rxx: philcrissman: ah, yeah i'm a front end dev so i have a portfolio which helped me find gigs
[16:56:17] krisquigley: has joined #RubyOnRails
[16:56:30] xxxsniperh4x0rxx: philcrissman: so github really stands out for getting hired with rails jobs?
[16:57:15] umgrosscol: acovrig: This is run on a banana pi board?
[16:57:30] philcrissman: xxxsniperh4x0rxx: I'm not really sure what you're asking, then. If your portfolio has worked, I'd do things in about the same way. Github is good if you want people to be able to see your code.
[16:57:33] smathy: xxxsniperh4x0rxx, if you're a designer, then there's really not a lot of your work which will be Rails specific.
[16:57:44] philcrissman: xxxsniperh4x0rxx: but that could also be a blog, or bitbucket, or whatever.
[16:57:52] acovrig: umgrosscol: specifically this one: http://www.bananapi.com/index.php/component/content/article?layout=edit&id=24
[16:58:18] smathy: xxxsniperh4x0rxx, you can teach yourself haml/less/scss etc. if you want, but honestly the backend guys will need to rip whatever you do apart anyway.
[16:58:34] umgrosscol: acovrig: I guess I would see about getting the OS stable first.
[16:58:50] acovrig: yea, it usually is, I guess I just had a bad image
[16:58:53] smathy: xxxsniperh4x0rxx, a great resource for finding good designers (kind of the other side of what you're looking for I think) is http://www.sortfolio.com/
[16:59:19] qwertme: has joined #RubyOnRails
[16:59:54] eddie_v9: is it possible to add a sass mixin with this? http://pastie.org/10241574
[17:00:13] xxxsniperh4x0rxx: smathy: thanks for the resource. to be honest some friends of mine are making way more than I am doing rails jobs and I want to be part of that. I feel like I need to do some sort of rails project that i can show off to people.
[17:00:30] xxxsniperh4x0rxx: although honestly a big part of me is not caring about how much more they make lol i'm pretty happy with where i'm at
[17:00:37] smathy: xxxsniperh4x0rxx, so you want to become a software developer?
[17:00:48] xxxsniperh4x0rxx: i'm already a front end developer
[17:01:09] xxxsniperh4x0rxx: but i feel like i should teach myself how to do backend of a fairly complex project
[17:01:20] xxxsniperh4x0rxx: to show off as something for when I apply to rails roles
[17:01:39] pragmatism: has joined #RubyOnRails
[17:01:51] yfeldblum: has joined #RubyOnRails
[17:02:01] blackmesa: has joined #RubyOnRails
[17:02:08] Spami: has joined #RubyOnRails
[17:02:26] umgrosscol: xxxsniperh4x0rxx: Just go whole hog and jump into dev ops.
[17:02:55] smathy: xxxsniperh4x0rxx, ok, for a lot of people "front end developer" really means that they know enough JS to do some DOM manipulation.
[17:03:01] cha1tanya: has joined #RubyOnRails
[17:03:03] umgrosscol: xxxsniperh4x0rxx: "full stack" or whatever the buzz word is now. It's part time programmer + part time sysadmin.
[17:03:33] smathy: xxxsniperh4x0rxx, if you're already an experienced software developer then ruby will be fairly simple for you to pick up, and Rails not too hard either.
[17:03:36] umgrosscol: smathy: Front end dev means someone who will handle accessibility woes for me.
[17:03:56] umgrosscol: smathy: Yeah... you just have to get used to all the method_missing magic.
[17:04:15] Pazician: has joined #RubyOnRails
[17:04:18] xxxsniperh4x0rxx: yea rails isn't that difficult
[17:04:25] pehlert: has joined #RubyOnRails
[17:04:25] xxxsniperh4x0rxx: i'm just trying to formulate how i can get a rails job asap
[17:04:48] xxxsniperh4x0rxx: not sure if i should put stuff up on a portfilio, github, or just show clients the actual projects i've worked on
[17:04:57] alexhartley: has joined #RubyOnRails
[17:04:58] pipework: xxxsniperh4x0rxx: Know your shit, do open source projects.
[17:05:01] xxxsniperh4x0rxx: also not even sure what i want to work on yet lol
[17:05:04] pipework: The more of that you got, the better off you are.
[17:05:07] xxxsniperh4x0rxx: i would love oding open source stuff
[17:05:14] pipework: You gotta to stay ahead.
[17:05:23] smathy: xxxsniperh4x0rxx, learn ruby (ie. you should be able to through the ruby koans without going to the docs), then start contributing to some open source projects, Rails itself, some popular gems, etc., then begin applying.
[17:05:24] The_Phoenix: has joined #RubyOnRails
[17:05:34] umgrosscol: xxxsniperh4x0rxx: apply for rails jobs.
[17:05:36] pipework: Eventually you can get paid to work on open source.
[17:05:48] xxxsniperh4x0rxx: What do you guys do to find opensource stuff to work on?
[17:05:48] umgrosscol: pipework: That's the dream.
[17:05:51] drale2k: has joined #RubyOnRails
[17:05:52] smathy: xxxsniperh4x0rxx, in the mean time, be contributing to other things like StackOverflow
[17:05:59] pipework: umgrosscol: Get there! Part time open source!
[17:06:06] pipework: Always be leveling up.
[17:06:10] smathy: xxxsniperh4x0rxx, do Rails projects, find things that are broken, fix them.
[17:06:27] pipework: Secondarily to that, work at cool places.
[17:06:41] umgrosscol: pipework: I am there. Just not ever going to be full time OS. Always some locally important thing.... and sysadmin :(
[17:07:03] pipework: umgrosscol: Life changes sometimes. Companies will pay people to work on open source full time.
[17:08:26] xxxsniperh4x0rxx: Is there some way I can filter opensource projects on github to find ones I can contribute to?
[17:10:33] cha1tanya: has joined #RubyOnRails
[17:11:40] Senjai: xxxsniperh4x0rxx: go to the ruby toolbox
[17:11:43] Senjai: pick something interesting
[17:11:44] smathy: xxxsniperh4x0rxx, yes, filter them by what I described above: do Rails projects, find things that are broken, fix them.
[17:12:00] baweaver: has joined #RubyOnRails
[17:12:00] Senjai: xxxsniperh4x0rxx: There is a lot of work needing to be done for CanCanCan
[17:12:04] smathy: xxxsniperh4x0rxx, so the github projects you'll contribute to are the ones you're using and that things are broken in.
[17:12:49] Senjai: xxxsniperh4x0rxx: https://github.com/CanCanCommunity/cancancan/issues/200 might be an easier one to tackle
[17:12:52] nertzy: has joined #RubyOnRails
[17:13:03] Senjai: You already get the test proving it isnt working
[17:13:20] shock_one: has joined #RubyOnRails
[17:13:42] nobitanobi: has joined #RubyOnRails
[17:14:10] maxshelley: has joined #RubyOnRails
[17:14:36] teufelChiCoder: has joined #RubyOnRails
[17:14:43] teufelChiCoder: has joined #RubyOnRails
[17:14:56] alho: has joined #RubyOnRails
[17:16:05] fuzzyhorns: has joined #RubyOnRails
[17:17:10] CeilingMoose: Does anyone have advice on caching shopping carts? It's just ActiveRecord/Rails right now -- not a separate service. I've been doing low-level caching on an application controller method, storing the cache using the session id as part of the key. It works fine, but I've never done this before and wonder if there's a better approach.
[17:17:54] Senjai: CeilingMoose: Fragment caching probably. But you would rarely need to cache the cart I would presume
[17:18:00] eoy: has joined #RubyOnRails
[17:18:01] Senjai: As it rarely never is a cold cache hit
[17:18:02] JakFrist: has joined #RubyOnRails
[17:18:07] Senjai: s/never/ever
[17:18:17] Senjai: Its more for things like product page
[17:19:25] CeilingMoose: I'm trying to reduce the number of DB hits between pages once items have been added to the cart.
[17:19:58] Senjai: Is the cart hit on every page?
[17:20:16] Senjai: http://guides.rubyonrails.org/caching_with_rails.html#fragment-caching
[17:20:21] CeilingMoose: It's loading as a before filter on the application controller, so yes, every page.
[17:20:27] doodleha_: has joined #RubyOnRails
[17:20:29] Senjai: So your cart view would be something like <% cache @cart do %
[17:20:37] Senjai: which would be busted everytime @cart is updated
[17:20:42] Senjai: assuming you touch the cart when you add things to it
[17:20:58] bronson: has joined #RubyOnRails
[17:21:01] CeilingMoose: Yes, I'm expiring the fragment every time an item is added or destroyed.
[17:21:06] CeilingMoose: Is this cache abuse?
[17:21:15] fortunate: has joined #RubyOnRails
[17:21:29] Senjai: wow typing today
[17:21:34] Senjai: No, you should just touch it
[17:21:44] Senjai: in cart_item, belongs_to :cart, touch: true
[17:21:59] Senjai: whenever a cart item is added, the cart is "touched" (as in calling touch on it)
[17:22:03] CeilingMoose: touch -- never heard of that.
[17:22:04] podman: has joined #RubyOnRails
[17:22:04] Senjai: which automatically bursts the cache
[17:22:29] Senjai: CeilingMoose: thing.touch == thing.update_attributes(updated_at: DateTime.now)
[17:22:41] Senjai: CeilingMoose: Except that it calls after_touch before_touch callbacks instead of update callbacks
[17:22:47] Senjai: thing.cache_key
[17:22:51] Senjai: call that on cart
[17:23:00] Senjai: It includes updated_at in the cache key, when updated at changes, so does the key
[17:23:14] Senjai: But I suggest you do a little more research on it :P
[17:23:26] axl__: has joined #RubyOnRails
[17:23:29] CeilingMoose: Awesome. I appreciate the tip.
[17:23:59] Pazician: has joined #RubyOnRails
[17:23:59] arcaos: has joined #RubyOnRails
[17:24:39] IFrank00: has joined #RubyOnRails
[17:26:25] pragmatism: has joined #RubyOnRails
[17:27:33] baweaver: has joined #RubyOnRails
[17:28:12] ubear: has joined #RubyOnRails
[17:29:15] btreeinfinity: has joined #RubyOnRails
[17:29:54] nonparfumee: has joined #RubyOnRails
[17:30:11] CeilingMoose: I'm suddenly not sure how I made it this far without running into "touch."
[17:30:47] ascarter: has joined #RubyOnRails
[17:30:48] shock_one: has joined #RubyOnRails
[17:32:16] Senjai: CeilingMoose: ;)
[17:32:45] alho: has joined #RubyOnRails
[17:33:00] Senjai: Don't abuse it, it can cause hell. If you do it too much you get to the point where touching a cart item can end up bursting all the caches of your entire site if you just have a cascading touch everywhere. E.g. touching car item will touch cart will touch something else etc etc
[17:33:13] tejasman1: has left #RubyOnRails: ()
[17:33:50] rromanchuk: has joined #RubyOnRails
[17:33:59] tejasmanohar: has joined #RubyOnRails
[17:34:38] CeilingMoose: Good to know -- I could imagine how that could happen.
[17:34:50] CeilingMoose: Spaghetti everywhere
[17:35:18] jenrzzz: has joined #RubyOnRails
[17:35:26] hardtail: I have added an image to my app/assets/images directory and am trying to display it in my application.erb.html view with <img src="../assets/images/item.jpg" /> but I keep getting 404 not found. How do I find out the correct path of images the directory? This is my first time doing this.
[17:36:22] ellisTAA: has joined #RubyOnRails
[17:36:49] CeilingMoose: Have you tried <%= image_tag('item.jpg') %> ?
[17:37:15] ellisTAA: morning. can i use nodejs in my sinatra project? i want to add a chat feature to my sinatra app and found a tutorial that uses node
[17:37:42] acovrig: CeilingMoose: stylesheet_tag = app/assets/stylesheets?
[17:38:00] hardtail: @CeilingMoose Ah, thank you kindly!!! I did not know this existed.
[17:38:34] kinduff: has joined #RubyOnRails
[17:38:34] kinduff: has joined #RubyOnRails
[17:39:03] btreeinfinity: has joined #RubyOnRails
[17:39:33] emilkarl: has joined #RubyOnRails
[17:40:08] jonahR: has joined #RubyOnRails
[17:40:54] otherj: has joined #RubyOnRails
[17:41:02] RegulationD: has joined #RubyOnRails
[17:42:07] acovrig: Is there a reference page with those things? I think I head about one that would make the rest of the <img> tag also.
[17:43:21] zly: Hi, I may have bit stupid question
[17:43:31] zly: How can I "refresh" instance variable?
[17:44:17] zly: I assign some record to a variable, then I'm doing something to that record
[17:44:28] rhizome: what is the "something?"
[17:44:43] zly: when I query directly for that record it returns the new data
[17:44:51] umgrosscol: zly: .save should queue it to be persisted.
[17:45:54] umgrosscol: zly: You want to fetch the record again from the persistence layer?
[17:46:03] zly: record is being saved but not directly on this variable
[17:46:21] Senjai: zly: @thing.reload
[17:46:33] Senjai: Ideally, you could call reset in the thing that changes it
[17:46:38] Senjai: If its an association
[17:47:07] zly: Senjai: works like a charm, thanks :)
[17:47:28] zly: Senjai: I just needed that for the test
[17:47:40] Senjai: http://api.rubyonrails.org/classes/ActiveRecord/Associations/CollectionProxy.html#method-i-reset is worth knowing
[17:47:46] Senjai: So you dont have to do reload when you dont have to
[17:47:50] Senjai: if you have to use it in your app code
[17:48:09] zly: Looks like a good read. Thanks
[17:48:19] zly: But like I wrote alrady - it's just for the test
[17:48:27] zly: already*
[17:48:51] drale2k: has joined #RubyOnRails
[17:49:00] bricker: has joined #RubyOnRails
[17:52:06] shock_one: has joined #RubyOnRails
[17:53:58] baweaver: has joined #RubyOnRails
[17:54:48] meoblast001: has joined #RubyOnRails
[17:55:19] mikecmpbll: has joined #RubyOnRails
[17:57:01] alexhartley: has joined #RubyOnRails
[17:59:14] hahuang65: has joined #RubyOnRails
[18:01:11] platzhirsch1: has left #RubyOnRails: ()
[18:02:18] simplyianm: has joined #RubyOnRails
[18:02:20] jsrn_: has joined #RubyOnRails
[18:02:52] otherj: is it possible to do something like this? https://gist.github.com/otherjustin/16a411ca4710f87f6ad7 I'm basically trying to break up one collection in a nested form into multiple sections but save them all back to the options table, but I get a map error. I'm not sure if there's a better way to accomplish this
[18:06:20] Spami: has joined #RubyOnRails
[18:08:01] JakFrist: has joined #RubyOnRails
[18:08:16] JoshL: has joined #RubyOnRails
[18:08:25] bluish: has joined #RubyOnRails
[18:08:32] edwinvdgraaf: has joined #RubyOnRails
[18:09:18] momomomomo: has joined #RubyOnRails
[18:09:28] Pharaoh2: has joined #RubyOnRails
[18:10:39] hotpancakes: has joined #RubyOnRails
[18:10:40] baweaver: has joined #RubyOnRails
[18:11:29] pragmatism: has joined #RubyOnRails
[18:11:48] simplyianm: has joined #RubyOnRails
[18:12:35] diegoviola: workmad3: I've suggested elasticsearch to my boss but he keep insisting that what they need is someone that "talks" to you, so NLP
[18:13:27] diegoviola: I'm not sure where to look now, I'm not that smart to write an AI from scratch
[18:13:36] Sou|cutter: diegoviola: I'd look for another job
[18:13:54] diegoviola: s/you/client/
[18:14:16] diegoviola: I've been hired to do development for this company, but it's been a week and I still don't have access to their code
[18:14:26] Frem: has joined #RubyOnRails
[18:14:36] Sou|cutter: sounds really disfunctional
[18:14:50] Senjai: diegoviola: Tell them they're stupid
[18:14:54] Senjai: Drop them and move on
[18:15:01] diegoviola: well, I've been slacking here and they're paying me, at least their internet connection is fast
[18:15:28] joaomdmoura: has joined #RubyOnRails
[18:15:53] diegoviola: the coffee here is not bad either
[18:15:56] Or1on: has joined #RubyOnRails
[18:16:05] Senjai: I couldn't do that :/
[18:16:19] Senjai: Are you a freelancer or an employee?
[18:17:05] kahunaio: has joined #RubyOnRails
[18:18:48] diegoviola: well, yeah, I'd rather be productive
[18:18:54] diegoviola: Senjai: they hired me as an employee
[18:19:05] diegoviola: but this is after 8 years of freelance
[18:19:34] Senjai: diegoviola: *shrug* you could always poke at open source for the time being
[18:20:22] simplyia_: has joined #RubyOnRails
[18:20:42] diegoviola: I asked them like 10 times already for their source code
[18:20:46] diegoviola: they keep giving shitty excuses
[18:21:13] Senjai: Wouldn't know why
[18:21:35] ndrei: has joined #RubyOnRails
[18:22:19] diegoviola: Senjai: I'm on probationary trial here at this company, I'll move on to work at another company after the trial is over
[18:22:36] diegoviola: because this is not making much sense
[18:23:30] Senjai: diegoviola: Any company that hires for a 'probationary trail' is probably not worth working at tbh
[18:23:43] diegoviola: Senjai: yep, they're full of shit
[18:25:02] diegoviola: one does work for a company or it doesn't, period
[18:25:19] weaksauce: diegoviola how do you keep finding these bad companies to work for?
[18:25:43] diegoviola: weaksauce: good companies are the exception, not the rule, in my experience
[18:26:19] simplyianm: has joined #RubyOnRails
[18:26:29] DLSteve: has joined #RubyOnRails
[18:26:34] weaksauce: I don't know... most aren't quite as bad as the one's I have heard you talking about.
[18:27:17] diegoviola: weaksauce: where do you look for jobs usually? if you do
[18:27:48] weaksauce: word of mouth usually
[18:28:06] cornerma1: has joined #RubyOnRails
[18:28:19] weaksauce: are you getting your stuff off elance or something?
[18:29:36] diegoviola: don't get me wrong, I've worked for nice companies too, it's just that the gigs I've been working on didn't last, they usually have trouble paying me
[18:30:10] diegoviola: paying internationally is hard
[18:31:03] doodlehaus: has joined #RubyOnRails
[18:31:09] arturhoo: has joined #RubyOnRails
[18:31:29] hakunin: has joined #RubyOnRails
[18:31:45] DoctorMonocular: has joined #RubyOnRails
[18:32:06] weaksauce: yeah it can be
[18:32:08] edwinvdgraaf: has joined #RubyOnRails
[18:32:08] diegoviola: banks and western union have excessive fees over here, that also doesn't make sense for the client
[18:32:16] diegoviola: it's cheaper at that point for them to hire someone locally
[18:32:28] kahunaio: has joined #RubyOnRails
[18:32:34] diegoviola: it doesn't mean the client is a bad one
[18:32:39] garrypolley: has joined #RubyOnRails
[18:32:56] diegoviola: it's just not strategically ok for them or me
[18:33:27] diegoviola: I shouldn't have said "good companies are the exception, not the rule", sorry :-)
[18:33:48] diegoviola: I don't think that's true
[18:34:55] tskogberg: has joined #RubyOnRails
[18:35:42] drale2k_: has joined #RubyOnRails
[18:36:09] crodjer: Is there a way to test the number of database queries made for a particular block?
[18:36:16] Criten: Hey guys, not great at regex... trying to write a rails model validation to ensure that a string is snakecase
[18:36:26] Criten: i'm assuming I want to use validate_format_for
[18:36:44] ciree: just letters?
[18:36:48] ciree: lowercase only?
[18:37:00] otherj: diegoviola, where are you located?
[18:37:09] Criten: yeah, so i guess just letters [a-z,_,1-9] ?
[18:37:09] pixelhandler: has joined #RubyOnRails
[18:37:20] Criten: and numbers i guess
[18:37:56] edwinvdgraaf: has joined #RubyOnRails
[18:38:20] ciree: ^[a-z0-9]_*[a-z0-9]$
[18:39:00] ciree: doesnt look right
[18:39:05] Criten: ciree: http://rubular.com/r/LyTwlVEtb8
[18:39:24] alexhartley: has joined #RubyOnRails
[18:39:29] art-solopov: has joined #RubyOnRails
[18:39:50] ararog: has joined #RubyOnRails
[18:40:02] ciree: ^[[a-z0-9]_]*[a-z0-9]$
[18:40:24] ciree: that one fails with an underscore in front :(
[18:40:35] Criten: that one doesnt seem to match anything for me?
[18:40:50] dredozubov: has left #RubyOnRails: ("Leaving...")
[18:41:03] Criten: no underscore in front should be fine..
[18:41:04] weaksauce: Criten http://rubular.com/r/gKPBNqsm7Z
[18:41:07] hakunin: has joined #RubyOnRails
[18:41:24] ciree: ^[a-z0-9][[a-z0-9]_]*[a-z0-9]$
[18:41:28] GnuYawk: has joined #RubyOnRails
[18:41:36] weaksauce: delete the _? from the front if you don't want to match starting underscore
[18:41:45] gambl0re: are rails gems just addon features you can use in your app?
[18:42:00] GnuYawk: is it possible to get data from form_for fields without submitting the form?
[18:42:00] diegoviola: otherj: south america
[18:42:12] bruno-: has joined #RubyOnRails
[18:42:20] Criten: GnuYawk: via ajax/javascript i guess :P
[18:42:38] art-solopov: Criten: Technically, that still will be submitting the form. ^_^
[18:42:44] Criten: trueeee...
[18:43:01] GnuYawk: I just want the data from the fields to be passed to the controller via a link_to
[18:43:03] Criten: Not really though... haha
[18:43:03] weaksauce: gambl0re they are just bundles of code. usually provide some feature or something
[18:43:23] Criten: weaksauce, ciree, thanks, you guys rock
[18:43:27] bin_005: has joined #RubyOnRails
[18:43:45] gambl0re: thats what i said..."addon features"
[18:44:31] weaksauce: gambl0re they don't need to do anything to be called a gem. it could be a bunch of text files that don't do anything.
[18:44:40] teufelChiCoder: has joined #RubyOnRails
[18:44:47] teufelChiCoder: has joined #RubyOnRails
[18:44:49] weaksauce: but they usually do something ;)
[18:45:05] gambl0re: ok thanks..
[18:45:20] krisquigley: has joined #RubyOnRails
[18:47:17] art-solopov: GnuYawk: Well, basically, you can get it via a get request, but this can result in a really long url. Just pass the data you need as link_to options.
[18:47:18] bruno-_: has joined #RubyOnRails
[18:47:47] GnuYawk: art-solopov: but the data I need is from the user via text_fields and number_fields
[18:48:16] fortunate: has joined #RubyOnRails
[18:48:21] art-solopov: GnuYawk: Hmm... Then I don't think you can avoid submitting a form. You still can submit it via a GET request, but do you really need to bother?..
[18:48:54] GnuYawk: art-solopov: the main reason i dont want to submit the data via a form is becuase this form_for is within ANOTHER form_for
[18:49:17] GnuYawk: so when I submit the inner form_for, it also submits the outer form_for which i do not want
[18:49:25] GnuYawk: maybe there is a way to fix that problem?
[18:50:26] baweaver: has joined #RubyOnRails
[18:50:56] voker57: has joined #RubyOnRails
[18:51:28] ellisTAA: has joined #RubyOnRails
[18:51:35] tskogberg: has joined #RubyOnRails
[18:51:46] Pazician: has joined #RubyOnRails
[18:53:26] art-solopov: GnuYawk: Well, the hackiest way possible would be to use JavaScript to pull the specific fields you need and submit *them* via an AJAX request. But I'm sure you can do better than this.
[18:54:08] netzfisch: has joined #RubyOnRails
[18:54:22] art-solopov: GnuYawk: Have you posted a StackOverflow question? If anything, we can upvote it and try to bring some attention to it, because IMHO that's a legitimately good question.
[18:56:59] teufelChiCoder: has joined #RubyOnRails
[18:58:57] Surt_Q: has joined #RubyOnRails
[18:59:27] pragmati_: has joined #RubyOnRails
[19:00:11] dopie: has joined #RubyOnRails
[19:00:34] dopie: https://gist.github.com/staycreativedesign/1615be6d35ec1deb706b how would i set :full to check and :essential to to checked?
[19:02:33] k4nd4lf: has joined #RubyOnRails
[19:04:10] haz111: has joined #RubyOnRails
[19:05:24] gabeodess: has joined #RubyOnRails
[19:05:31] meoblast001: has joined #RubyOnRails
[19:06:03] codeurge: has joined #RubyOnRails
[19:06:06] garrypolley: has joined #RubyOnRails
[19:07:28] srinidhi: has joined #RubyOnRails
[19:08:09] gabeodess: Hey, I???ve seen it before where when I get a 500 error in my browser in development it provides a command prompt where I can play around to figure out the error, but I???m not seeing it in my current project. Do I have to configure it somehow?
[19:09:13] n008f4g_: has joined #RubyOnRails
[19:09:19] broman: has joined #RubyOnRails
[19:09:52] siddart: has joined #RubyOnRails
[19:09:53] broman: can someone help me? im getting the error "Can't mass-assign protected attributes: id, carreira" .. i'm using rails 3.2 .. what should i do to fix it?
[19:10:11] smathy: has joined #RubyOnRails
[19:10:55] siddart: has joined #RubyOnRails
[19:11:09] Scripore: has joined #RubyOnRails
[19:11:27] garrypolley: has joined #RubyOnRails
[19:11:41] gabeodess: broman: you need to add attr_accessible :carreira, etc.. to your model
[19:12:13] baweaver: has joined #RubyOnRails
[19:13:05] broman: gabeodess, i have this on my model already
[19:13:19] siddart: has joined #RubyOnRails
[19:13:28] gabeodess: broman: I don???t know what the problem is then
[19:13:42] gabeodess: broman: maybe you are overriding it somewhere else in the model
[19:14:06] gabeodess: broman: with attr_protected or another instance of attr_accessible
[19:14:23] broman: gabeodess, http://pastie.org/10241787 theres my model
[19:14:51] gabeodess: broman: you do not have ???carreira??? there
[19:15:03] broman: gabeodess, nevermind.. figured it out! the problem was on the view
[19:16:07] otherj: has joined #RubyOnRails
[19:16:27] weaksauce: gabeodess try out better_errors gem.
[19:16:29] Yoda: has joined #RubyOnRails
[19:16:33] weaksauce: and binding_of_caller
[19:16:50] gabeodess: weaksauce: yeah, I know about that gem, but I???m pretty sure I???ve seen that feature without the gem
[19:17:02] gabeodess: weaksauce: thought it was built into rails 4 or something
[19:17:36] weaksauce: I think it's a 4.2 feature now gabeodess
[19:17:51] weaksauce: but I use those gems so I am not sure anymore.
[19:18:02] gabeodess: weaksauce: right, which is why I???m wondering why I don???t see it
[19:18:10] Coldblackice: has joined #RubyOnRails
[19:18:10] gabeodess: weaksauce: I???m on rails 4.2.1
[19:18:49] coderhs: has joined #RubyOnRails
[19:19:11] weaksauce: what kind of exception?
[19:19:23] weaksauce: gabeodess and it's dev env right?
[19:19:25] hazelux: has joined #RubyOnRails
[19:19:27] tskogberg: has joined #RubyOnRails
[19:19:40] gabeodess: weaksauce: yeah, I???m in dev.
[19:19:54] gabeodess: weaksauce: I get the normal error screen with the backtrace, but no prompt
[19:20:22] weaksauce: what's the type of error?
[19:21:04] gabeodess: weaksauce: https://www.dropbox.com/s/b5p4fw9diqnzdeb/Screenshot%202015-06-15%2015.20.53.png?dl=0
[19:21:16] gabeodess: weaksauce: IOError in Admin::BatchesController#import_cropster
[19:21:18] ellisTAA: has joined #RubyOnRails
[19:22:02] weaksauce: is this an upgraded 4.2 project or a new 4.2 project? seems like they may have added 'web-console' to 4.2 new projects.
[19:22:05] weaksauce: https://github.com/gsamokovarov/rails/commit/344882e3cea057c93cd8d460276e4e2ddf3c691b
[19:22:30] gabeodess: weaksauce: yeah, I may have upgraded from 4.1 since the project started...
[19:22:32] simplyianm: has joined #RubyOnRails
[19:23:03] gabeodess: weaksauce: cool, so if I add that gem it should work
[19:23:11] weaksauce: oh neat. you can add a console to any page
[19:23:23] weaksauce: thanks for getting me to look this up gabeodess
[19:23:39] gabeodess: weaksauce: haha, no problem, thanks for figuring it out for me :)
[19:24:05] jenrzzz: has joined #RubyOnRails
[19:24:16] alho: has joined #RubyOnRails
[19:24:23] codeurge: has joined #RubyOnRails
[19:25:37] Yoda: has left #RubyOnRails: ("Wake me up.. when September ends")
[19:26:16] gabeodess: weaksauce: worked like a charm :)
[19:26:25] kadoppe: has joined #RubyOnRails
[19:26:38] smathy: has joined #RubyOnRails
[19:26:41] gabeodess: weaksauce: on another note, if I upload a file through a form, how can I access that file in the controller?
[19:27:26] gabeodess: weaksauce: params[:file] just returns the filename as a string, no path.
[19:29:07] weaksauce: gabeodess are you using paperclip or carrierwave?
[19:29:39] gabeodess: weaksauce: no, I just want to parse a CSV and drop it into an ActiveJo
[19:29:50] weaksauce: ah. http://guides.rubyonrails.org/form_helpers.html#what-gets-uploaded
[19:29:52] otherj: can anyone help me with using multiple checkboxes into one (nested) field like this? I'm getting a map error https://gist.github.com/otherjustin/16a411ca4710f87f6ad7
[19:30:22] weaksauce: well that should work for you gabeodess, just replace the saving with the using. or do whatever you want to do with it
[19:30:38] gabeodess: weaksauce: thanks, looking???
[19:30:46] weaksauce: save it then note where you saved it, then start the background job
[19:31:06] Rubie: has joined #RubyOnRails
[19:32:41] yfeldblum: has joined #RubyOnRails
[19:34:21] benhuda: has joined #RubyOnRails
[19:35:06] nonparfumee: has joined #RubyOnRails
[19:35:36] alho_: has joined #RubyOnRails
[19:36:20] nym: has joined #RubyOnRails
[19:36:52] gabeodess: weaksauce: oh, maybe I can???t find it because I didn???t specify multipart on my form???
[19:38:22] mitchless: has joined #RubyOnRails
[19:38:28] mitchless: has left #RubyOnRails: ()
[19:38:41] DoubleMalt: has joined #RubyOnRails
[19:41:51] gambl0re: is it really necessary how authentication/authorization works when there are gems to handle all of that stuff for you?
[19:42:02] SeanLazer: has joined #RubyOnRails
[19:42:23] nobitanobi: has joined #RubyOnRails
[19:42:48] art-solopov: gambl0re: It is. Devise Railscast advises to build your own authentication first if possible.
[19:44:30] gambl0re: i did the michael hartl tutorial and the authorization/authentication section just screwed me...
[19:46:06] simplyianm: has joined #RubyOnRails
[19:46:25] Rubie: has joined #RubyOnRails
[19:46:46] cnk: gambl0re: Rails Tutorial is a deep dive. Useful for everyone at some point - but this may not be the point for you. Try a different book.
[19:47:10] gambl0re: for those thats done the tutorial, you'll know what im talking about.
[19:47:33] fortunate: has joined #RubyOnRails
[19:47:43] ArrogantPrick: has joined #RubyOnRails
[19:47:44] sandstrom: has joined #RubyOnRails
[19:48:05] gambl0re: i was able to follow along with the tutorial except for the auth stuff...and the testing. testing messed me up also.
[19:48:17] gambl0re: everything else pretty straight forward.
[19:48:51] art-solopov: gambl0re: Look for a Railscast on basic authentication. It's free and surprisingly not particularly complicated.
[19:49:56] hazelux: has joined #RubyOnRails
[19:50:17] weaksauce: devise is nice for authentication. pundit is nice for authorization
[19:51:09] bendangelo: has joined #RubyOnRails
[19:51:24] arBmind: has joined #RubyOnRails
[19:53:07] x1337807x: has joined #RubyOnRails
[19:53:10] JoshL: has joined #RubyOnRails
[19:54:18] edwinvdgraaf: has joined #RubyOnRails
[19:56:29] simplyianm: has joined #RubyOnRails
[19:56:37] edwinvdgraaf: has joined #RubyOnRails
[20:00:42] darrencauthon: has joined #RubyOnRails
[20:01:00] simplyianm: has joined #RubyOnRails
[20:01:23] ChargedLight: has joined #RubyOnRails
[20:02:24] baweaver: has joined #RubyOnRails
[20:04:19] bin_005: has joined #RubyOnRails
[20:05:22] siddart: has joined #RubyOnRails
[20:05:26] highcup: has joined #RubyOnRails
[20:06:52] Xiti: has joined #RubyOnRails
[20:08:33] hardlin3r: has joined #RubyOnRails
[20:10:37] solars: has joined #RubyOnRails
[20:11:24] eoy: has joined #RubyOnRails
[20:12:58] volk_: has joined #RubyOnRails
[20:13:19] volk_: hey guys, wondering ??? has anybody here used cancan much
[20:14:02] hnanon: has joined #RubyOnRails
[20:14:22] simplyianm: has joined #RubyOnRails
[20:14:51] x-light: has joined #RubyOnRails
[20:15:13] hnanon: I have this in my model:
[20:15:18] hnanon: def strip_phone_number self.phone_number.gsub!(/[^0-9]/, '') end
[20:15:44] hnanon: And... before_validation :strip_phone_number
[20:16:06] hnanon: I'm getting the error: undefined method `gsub!' for nil:NilClass
[20:16:15] hnanon: phone_number is a string
[20:16:16] vickleton: has joined #RubyOnRails
[20:16:48] Senjai: volk_: Sup
[20:17:12] Senjai: hnanon: Its not a string at that time
[20:17:23] Senjai: hnanon: Is it possible for a phone_number to be nil?
[20:17:36] volk_: Senjai: im just trying to add a ???reset_password??? functioanlity, and i???m wondering if cancan is the way to go for dealing with unauthed roles like that. or should i jsut deal with that in a custom manner?
[20:17:43] Senjai: hnanon: phone_number.try!(:gsub!, /regexc/, '')
[20:18:18] Senjai: volk_: can :update, User { |user| user == @user } ?
[20:18:38] volk_: Senjai: well the thing is if i forgot my password, i dont have a user, i need to auth via some reset token
[20:18:39] Senjai: Essentially, if the current_user can update themselves
[20:18:51] Senjai: use devise for that
[20:18:55] volk_: yeah tahts what i thought
[20:19:08] volk_: except this code base is big and theres no devise
[20:19:10] workmad3: has joined #RubyOnRails
[20:19:17] volk_: too much change needed for devise i think
[20:19:30] volk_: and migration
[20:19:34] Senjai: volk_: You dont need to be logged in, so you dont need cancan
[20:19:38] volk_: yeah thats what i thought
[20:19:47] volk_: cancan is basically only for logged in users right
[20:19:53] volk_: and handling orles
[20:19:56] Senjai: Well, its only for authenticated resources.
[20:20:03] Senjai: Which can be a user, a project, or a team
[20:20:07] Senjai: or whatever
[20:20:12] Senjai: https://github.com/plataformatec/devise/blob/master/app/controllers/devise/passwords_controller.rb
[20:20:17] volk_: right right, i was just being general but yeah cool
[20:20:38] Senjai: volk_: :)
[20:21:03] hnanon: Senjai: Thank you. That worked flawlessly.
[20:21:21] Senjai: hnanon: Don't overuse try! though :) And understand the difference between try and try!
[20:21:26] thebatu1: has joined #RubyOnRails
[20:21:44] hnanon: Doesn't try! actual mutate the value?
[20:22:43] Senjai: try is different
[20:22:46] Senjai: "Note that this doesn???t prevent a NoMethodError if you attempt to call a method that doesn???t exist on a valid object."
[20:22:53] Senjai: Whereas try! will raise a NoMethodError
[20:22:55] Senjai: like normal
[20:23:04] Senjai: Essentially never use try without the !
[20:23:33] Senjai: http://apidock.com/rails/v4.2.1/Object/try%21
[20:23:57] Senjai: In rails 3, try is the same as try! (there was no different versions), but in rails 4 you want try!
[20:24:08] Xiti: has joined #RubyOnRails
[20:24:18] hnanon: Got it. Thanks again.
[20:25:05] ellisTAA: has joined #RubyOnRails
[20:25:10] highcup: has joined #RubyOnRails
[20:26:42] simplyianm: has joined #RubyOnRails
[20:27:20] bronson: has joined #RubyOnRails
[20:27:48] thebatu1: hello, I am getting the error u"ndefined method `image_will_change!'" after adding comments model. the error happens when I try to create new post with an image 'carrierwave' I have looked into this answer but I didnt understand the solution. http://stackoverflow.com/questions/7491595/carrierwave-rails-3-1-undefined-method-image-will-change. the code can be found here https://github.com/thebatu/blog/commit/99b591ee14aa0ca7fd9e9056
[20:27:48] thebatu1: 4ac6e3680d870337#diff-3b4cc13a815e6a32db590e41f5d00d49
[20:28:17] michaeldeol: has joined #RubyOnRails
[20:29:03] qwertme: has joined #RubyOnRails
[20:29:17] hnanon: Can someone explain this: digits = digits.join '(%s) %s-%s' % [ digits[0,3], digits[3,3], digits[6,4] ]
[20:30:52] hnanon: Nevermind. I guess I can use the number_to_phone helper.
[20:31:15] pragmatism: has joined #RubyOnRails
[20:31:56] djbkd: has joined #RubyOnRails
[20:32:14] simplyianm: has joined #RubyOnRails
[20:32:33] gambl0re: im getting an error msg: NameError in AuthorSessionsController#create
[20:32:37] pragmatism: has joined #RubyOnRails
[20:32:52] gambl0re: highlighting this line in my code " if login(params[:email], params[:password])"
[20:33:04] gambl0re: where is the name error?
[20:33:05] alho: has joined #RubyOnRails
[20:33:50] gambl0re: im using sorcery gem for authorization/authentication
[20:34:11] krisquigley: has joined #RubyOnRails
[20:34:24] pragmatism: has joined #RubyOnRails
[20:37:15] Sou|cutter: has left #RubyOnRails: ("woop")
[20:37:21] ChargedLight: full gist of controller and error?
[20:39:40] simplyianm: has joined #RubyOnRails
[20:39:43] _blizzy_: has joined #RubyOnRails
[20:40:05] gambl0re: https://gist.github.com/anonymous/b61f7fd645eaac459e0a ...right here buddy
[20:40:24] _blizzy_: gambl0re, have you tried Devise?
[20:40:36] _blizzy_: also, please tell me you are hashing your passwords
[20:40:43] gambl0re: you guys kicked me out...
[20:40:52] _blizzy_: that doesn't mean you can't come back in
[20:40:58] _blizzy_: just don't paste in chat
[20:41:00] jhass: don't confuse a kick with a ban, yeah
[20:41:09] gambl0re: theres my code...
[20:41:17] jhass: but you also completely ignored the crosspost notice
[20:41:26] jhass: and I think I remember you did so in the past
[20:42:28] jhass: gambl0re: so where's login defined?
[20:42:51] hnanon: gambl0re: I'm also using Sorecery.
[20:42:56] hnanon: I have the line: if @user = login(params[:email], params[:password])
[20:43:13] hnanon: I guess try replacing my @user with your @author.
[20:44:08] ChargedLight: gambl0re, can ypu also show your users controller and full error in a gist please?
[20:44:10] tfitts: has joined #RubyOnRails
[20:44:11] gambl0re: https://gist.github.com/anonymous/6fdbefa6811c81fe7008
[20:45:10] hnanon: gambl0re: Try my suggestion and let me know what happens.
[20:46:02] ArrogantPrick: has joined #RubyOnRails
[20:46:16] gambl0re: https://gist.github.com/anonymous/6f4ee4dbf14a525b92e9
[20:46:37] gambl0re: i included the author_session_controller.rb file and the error message
[20:47:18] gambl0re: line #8 is the highlighted error
[20:47:52] hnanon: Try: if @author = login(params[:email], params[:password])
[20:48:30] weaksauce: gambl0re have you seen the gist usage help? you can split files up and you can turn on syntax highlighting by just naming the file something.rb
[20:48:35] siddart: has joined #RubyOnRails
[20:48:53] tfitts: I have a few views that pull up lists of records that need work done on them, for example verifying a title matches against an online title or verifying inventory. Normally only 1 person works on these and maybe gets 100 at a time but we're soon going to have more people working on them simultaneously. I'm thinking of creating a polymorphic ModelReservations (or some other name) model
[20:48:53] tfitts: where when the first person gets their 100 to work on I would create an entry for each id in the ModelReservation table so that if someone else tries to get work seconds later they don't both get assigned the same unfinished work. Does this sound like the way to go or does someone have a recommendation for me to do it differently
[20:49:33] gambl0re: im doing this tutorial http://tutorials.jumpstartlab.com/projects/blogger.html#i5:-authentication.
[20:49:39] gambl0re: im on section 5. authorization
[20:50:10] simplyianm: has joined #RubyOnRails
[20:50:17] gambl0re: i did every step exactly as stated. i tihnk the author left out a key step as most tutorials tend to do to screw up the learners.
[20:50:41] hnanon: gambl0re: Did you try what I suggested?
[20:51:18] gambl0re: yea i edited the line to if @author = login(params[:email], params[:password]) in the author_sessions_controller.rb file
[20:51:29] hnanon: Same error?
[20:51:30] gambl0re: still no go
[20:51:57] alho: has joined #RubyOnRails
[20:52:47] hnanon: Did you permit the params?
[20:53:11] tfitts: gambl0re: are you using pry?
[20:53:14] gambl0re: http://ruby-doc.org/core-1.9.3/NameError.html NameError = Raised when a given name is invalid or undefined.
[20:53:17] jenrzzz: has joined #RubyOnRails
[20:53:40] tfitts: hnanon: params is raw params, doesn't need to be permitted
[20:53:48] ChargedLight: gambl0re, do you have params permitted in your controller?
[20:53:49] hnanon: Did you post your full controller?
[20:54:02] gambl0re: full controller?
[20:54:04] ChargedLight: oh right, he's not using strong params
[20:54:06] hnanon: tfitts: Yes, you're right.
[20:54:11] highcup: has joined #RubyOnRails
[20:54:23] gambl0re: you guys want the full controller file
[20:54:32] simplyianm: has joined #RubyOnRails
[20:54:32] tfitts: gambl0re: that's what they're saying
[20:54:45] mike___1234: has joined #RubyOnRails
[20:55:06] gambl0re: i have 6 controller files
[20:55:07] tfitts: what does the login form look like? should you be using user_params[:email]?
[20:55:15] gambl0re: ill show you
[20:55:15] stevednd: has joined #RubyOnRails
[20:55:18] ChargedLight: Did u added authenticates_with_sorcery! to your Author.rb model?
[20:55:28] tfitts: or sorry, author_params
[20:55:53] gambl0re: login form -> https://gist.github.com/anonymous/f1a747bf1ea510fbcb98
[20:56:06] hnanon: What ChargedLight said.
[20:56:07] gambl0re: let me check chargedlight
[20:56:17] teufelCh_: has joined #RubyOnRails
[20:57:19] gambl0re: are you talking about in my authors_controller.rb file?
[20:57:25] gambl0re: i dont see that line anywhere...
[20:57:33] joaomdmoura: has joined #RubyOnRails
[20:57:54] gambl0re: the tutorial didnt mention anything about adding that line...unless i missed it which i doubt.
[20:58:32] ChargedLight: not in controller
[20:58:59] hnanon: It's in the tutorial.
[20:59:09] hnanon: Click authentication on the right nav.
[20:59:13] pragmatism: has joined #RubyOnRails
[20:59:17] hnanon: Scroll down about two screens.
[20:59:31] ChargedLight: Let?s see what Sorcery created inside of the file app/models/author.rb:
[20:59:38] ChargedLight: from your tutorial
[20:59:41] beneggett: has joined #RubyOnRails
[20:59:44] hnanon: class Author < ActiveRecord::Base
[20:59:50] hnanon: authenticates_with_sorcery!
[20:59:54] simplyianm: has joined #RubyOnRails
[21:00:03] yaw: has joined #RubyOnRails
[21:00:04] ChargedLight: the last part of Running the Generator chapter
[21:00:27] gambl0re: oh ok...i already did that part
[21:00:41] gambl0re: i just checked my file..
[21:00:49] hnanon: So you had it in your model already?
[21:02:46] garrypolley: has joined #RubyOnRails
[21:02:55] jcaho: has joined #RubyOnRails
[21:03:05] ChargedLight: and you also did rake db:migrate after it, right? Just like in tutorial
[21:03:06] hnanon: I found this guide to be better for authentication: https://github.com/NoamB/sorcery/wiki/Simple-Password-Authentication
[21:03:20] hnanon: It's from the gem's wiki.
[21:03:31] benhuda: has joined #RubyOnRails
[21:03:35] ChargedLight: agree with hnanon, it's always better to use official docs
[21:03:37] gambl0re: yes...i did migrate
[21:03:38] smathy: I like sorcery actually, it's a nice one.
[21:03:45] hnanon: sub "user" for "author".
[21:03:58] pragmatism: has joined #RubyOnRails
[21:04:04] gambl0re: im using sorcery cause the tutorial is using sorcery. i wouldny make sense if i used device if the tutorial was using sorcery.
[21:04:08] yfeldblum: has joined #RubyOnRails
[21:04:09] hnanon: I only use Sorcery.
[21:04:20] simplyianm: has joined #RubyOnRails
[21:04:29] ChargedLight: devise generates a lot of trash in my opinion
[21:04:45] ChargedLight: while sorcery is simple and light
[21:04:48] gambl0re: where is the name error?...what does it even mean
[21:05:08] gambl0re: what the hell is this wrong constant name garbage
[21:05:23] ellisTAA: has joined #RubyOnRails
[21:05:33] keypusher: has joined #RubyOnRails
[21:05:39] shock_one: has joined #RubyOnRails
[21:05:46] hnanon: If he's using "author" for the model instead of "user" would he need to use "current_author" instead of "current_user"?
[21:06:16] x-light: has joined #RubyOnRails
[21:06:55] thomasfedb: Radar, hollah
[21:06:57] gaboesquivel: has joined #RubyOnRails
[21:06:59] gambl0re: where the f*ck is the nameerror... if login(params[:email], params[:password])
[21:07:05] jgt: has joined #RubyOnRails
[21:07:29] gambl0re: what are you suggesting me to change...and ill do it right now
[21:07:46] DysonReturns: has joined #RubyOnRails
[21:07:57] pancake-breakfas: has joined #RubyOnRails
[21:08:54] ChargedLight: hnannon, i think not, till current_user is core method
[21:09:24] hnanon: Yeah, I see that.
[21:10:01] hnanon: gambl0re: show me your author model
[21:10:06] jstanton: has joined #RubyOnRails
[21:10:21] white_magic: has joined #RubyOnRails
[21:10:31] white_magic: is anyone here using ruby with sqlite on windows?
[21:11:10] gambl0re: class Author < ActiveRecord::Base
[21:11:10] gambl0re: authenticates_with_sorcery!
[21:11:10] gambl0re: validates_confirmation_of :password, message: "should match confirmation", if: :password
[21:11:15] edwinrozario: has joined #RubyOnRails
[21:11:45] gambl0re: also i copied/pasted everything in the examples to avoid any typos..
[21:12:08] bin_005: has joined #RubyOnRails
[21:12:16] pancake-breakfas: has left #RubyOnRails: ("WeeChat 1.2")
[21:12:56] ProLoser: has joined #RubyOnRails
[21:13:36] ellisTAA: has joined #RubyOnRails
[21:13:38] ProLoser: i am using byebug, how do i see what the call stack is?
[21:13:39] ChargedLight: btw, did you restart your server after installing and configuring sorcery?
[21:13:56] gambl0re: im not sure..
[21:14:09] hnanon: show me your db schema
[21:14:20] gambl0re: whats that..
[21:14:46] hnanon: db > schema.rb
[21:14:50] gambl0re: nevermind it works....
[21:14:53] jjasonclark: has joined #RubyOnRails
[21:14:54] gambl0re: restarting the server did it
[21:14:56] white_magic: Anyone here use sqlite w/ RoR on Windows?
[21:14:56] hnanon: Working now?
[21:15:12] ChargedLight: you are welcome
[21:15:17] hnanon: It happens.
[21:15:33] gambl0re: something simple like...
[21:15:37] ChargedLight: my first actual help on this chennel (ta-da) :D
[21:15:43] darrencauthon: has joined #RubyOnRails
[21:17:21] bricker: ACTION 100 brickercoins to ChargedLight 
[21:17:36] Scripore: has joined #RubyOnRails
[21:17:58] siddart: has joined #RubyOnRails
[21:18:53] bronson: has joined #RubyOnRails
[21:19:21] tfitts: white_magic: I have before, I use vagrant now
[21:20:18] startupality: has joined #RubyOnRails
[21:21:05] dopie: has joined #RubyOnRails
[21:21:19] white_magic: tfitts: I'm having this dependency issue - if I try running 'rails server', I get told "C:/Ruby22/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x86-mingw32/lib/sqlite3.rb:6:in `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)"
[21:21:45] white_magic: I'm not sure what I'm doing wrong, because I put all the sqlite3 binaries in the ruby installation's bin folder
[21:24:29] jstanton: has joined #RubyOnRails
[21:24:36] IFrank00: Hi quick question I'm looking for Multiple scope login with devise I have 3 Models Members Clients and Admins.
[21:25:05] tfitts: white_magic: I'm not against windows or programming on windows but have you considered running vagrant?
[21:26:04] white_magic: tfitts: I'm not.. is that a VM that gets spun up very quickly and lets me develop in Linux?
[21:26:14] tfitts: and has a shared folder
[21:26:18] tfitts: so you can develop in windows
[21:26:22] tfitts: and it is instantly synced to your linux box
[21:26:43] tfitts: I started out developing for rails in windows and it's just not worth it
[21:26:43] Axsuul: has joined #RubyOnRails
[21:27:14] tfitts: well, with my server environment in windows
[21:27:20] tfitts: I still develop in windows but run it in the vm
[21:28:21] white_magic: brb gotta restart system cause of vagrant..
[21:28:31] pragmatism: has joined #RubyOnRails
[21:29:26] SteenJobs: has joined #RubyOnRails
[21:29:58] givanse: has joined #RubyOnRails
[21:30:27] bricker: vagrant used to crash my computer all the time, that's partly why I stopped using it
[21:30:51] drale2k: has joined #RubyOnRails
[21:32:02] FernandoBasso: has joined #RubyOnRails
[21:33:11] white_magic: has joined #RubyOnRails
[21:34:36] centrx: has joined #RubyOnRails
[21:35:03] doublemalt_: has joined #RubyOnRails
[21:36:20] hotpanca_: has joined #RubyOnRails
[21:37:21] fortunate: has joined #RubyOnRails
[21:37:52] alho: has joined #RubyOnRails
[21:38:01] bronson: has joined #RubyOnRails
[21:39:22] Pharaoh2: has joined #RubyOnRails
[21:39:51] baweaver: has joined #RubyOnRails
[21:41:24] gambl0re: how do i make it so that my /articles page is the root?
[21:41:47] ndrei: has joined #RubyOnRails
[21:42:08] smathy: gambl0re, when you open up your `config/routes.rb` file, isn't there a bunch of comments in there?
[21:43:49] gambl0re: i removed it....
[21:43:56] gambl0re: i got it...thanks
[21:46:19] ProLoser: is it normal to spin up a new instance of a model to perform saves on it from inside an after_save callback?
[21:46:23] ProLoser: so that it doesn't fire recursively?
[21:46:52] pragmatism: has joined #RubyOnRails
[21:47:50] tfitts: ProLoser: you're saving changes to a model in an after_save callback?
[21:48:03] ProLoser: like if x changed update y
[21:48:11] tfitts: couldn't you just put it in a before save
[21:48:37] tfitts: you can still do if x changed set y
[21:48:47] tfitts: then it does that and only loads/saves once
[21:49:23] Cache_Money: has joined #RubyOnRails
[21:49:44] x1337807x: has joined #RubyOnRails
[21:50:33] Zadrel: aynone knows how do i set focus to a div that have an id with jquery?
[21:50:41] dvjones89: white_magic: I also support tfitts in his commendation of Vagrant, it takes so much pain out of platform issues like the one you're describing
[21:50:45] tfitts: $('#id').focus();
[21:50:48] viiralvx: has joined #RubyOnRails
[21:51:25] white_magic: dvjones89: i installed vagrant, but first i'm giving the RailsInstaller a stab
[21:52:21] edwinvdgraaf: has joined #RubyOnRails
[21:52:26] dvjones89: white_magic: Let me know how you get on - I've only ever done rails development on OS X / Unix so I'd be interested to know how these things work on Windows
[21:52:35] tfitts: white_magic: at some point you're almost certainly going to deploy to a linux environment, and then when your application that worked perfectly in your windows environment breaks, you will look back on this moment and wonder why.
[21:52:51] ogpastaling: has joined #RubyOnRails
[21:53:04] white_magic: you make a good point..
[21:53:10] tfitts: dvjones89: it's been 18 months since i did it. maybe things have changed. I struggled through it and made it work. I had my project fully working in windows
[21:53:53] dvjones89: But you still ended up using Vagrant? I guess it's just not worth battling against the tide?
[21:53:55] tfitts: it seems like it took me a week to figure out the platform differences. I could probably do it in a few hours now, but I'd rather just not.
[21:54:40] dvjones89: Yeah, I totally understand that. I actually run Vagrant on OS X, not because it's hard to run rails locally, but because Vagrant just makes it so simple.
[21:54:44] michaeldeol: has joined #RubyOnRails
[21:54:49] tfitts: dvjones89: yeah, I mean if you're never going to put in in a different environment then I guess you could make an argument for developing it in windows, but I think it's better for your dev environment to as closely mirror your production as possible.
[21:54:52] dvjones89: Especially if I mess something up, I can just blow away the VM and start again
[21:55:34] tfitts: from experience, when I thought it didn't really matter, and learned that it does really matter.
[21:55:50] startupality: has joined #RubyOnRails
[21:56:11] dvjones89: That's how we all learn, right? :-)
[21:56:12] mostlybadfly: has joined #RubyOnRails
[21:57:36] nonparfumee: has joined #RubyOnRails
[21:58:33] duderonomy: has joined #RubyOnRails
[22:00:38] pragmatism: has joined #RubyOnRails
[22:01:21] michaeldeol: has joined #RubyOnRails
[22:02:00] Etriaph: has joined #RubyOnRails
[22:03:45] daryl256: has joined #RubyOnRails
[22:04:10] yfeldblum: has joined #RubyOnRails
[22:08:08] lalalaaa: has joined #RubyOnRails
[22:08:17] simplyianm: has joined #RubyOnRails
[22:08:26] lalalaaa: Hi! I've been able to start my Puma web server with my Rails app just fine for months now. But now all of a sudden I'm getting `ERROR: No application configured, nothing to run`. None of my configs have changed. Anybody know what's going on?
[22:08:37] pulgalipe: has joined #RubyOnRails
[22:08:39] baron: has joined #RubyOnRails
[22:08:56] baron: has left #RubyOnRails: ()
[22:09:05] bar0n: has joined #RubyOnRails
[22:09:58] garrypolley_: has joined #RubyOnRails
[22:10:05] blackmesa: has joined #RubyOnRails
[22:11:23] highcup: has joined #RubyOnRails
[22:11:36] garrypolley: has joined #RubyOnRails
[22:13:46] Lightsword: has joined #RubyOnRails
[22:14:38] simplyianm: has joined #RubyOnRails
[22:15:20] _blizzy_: has joined #RubyOnRails
[22:15:26] Guest6: has joined #RubyOnRails
[22:17:26] shock_one: has joined #RubyOnRails
[22:18:49] yfeldblum: has joined #RubyOnRails
[22:18:58] bricker: lalalaaa: maybe yor environment is wrong
[22:19:01] bricker: ruby version perhaps
[22:19:15] rickmasta: has joined #RubyOnRails
[22:19:30] jjasonclark: has joined #RubyOnRails
[22:21:27] recurrence: has joined #RubyOnRails
[22:21:59] recurrence: Hi, I???m trying to construct an activerecord query that returns an object where one of its??? has_many dependents has a certain property value. How would I go about doing that?
[22:22:00] RandyT: has joined #RubyOnRails
[22:22:38] asteros: has joined #RubyOnRails
[22:23:04] krisquigley: has joined #RubyOnRails
[22:23:10] bricker: recurrence: http://guides.rubyonrails.org/active_record_querying.html#specifying-conditions-on-the-joined-tables
[22:23:18] recurrence: ooo thanks bricker!
[22:23:27] lalalaaa: bricker: nope, i've set production in https://gist.github.com/anonymous/a49864ff65ecfcfa04ee and ruby version is the same
[22:23:38] Pharaoh2: has joined #RubyOnRails
[22:24:16] lalalaaa: bricker: i did do a `chown -R www:www /home/www/myapp` though but quickly changed it back to `myapp:wheel` like before
[22:24:39] lalalaaa: bricker: im running puma as root so that shouldn't matter i guess
[22:24:54] lalalaaa: * used to run
[22:25:05] bricker: never used Puma, sorry
[22:26:19] GPrime: has joined #RubyOnRails
[22:27:10] teufelChiCoder: has joined #RubyOnRails
[22:27:20] codeurge: has joined #RubyOnRails
[22:27:25] teufelChiCoder: has joined #RubyOnRails
[22:28:06] simplyianm: has joined #RubyOnRails
[22:28:31] RandyT: has joined #RubyOnRails
[22:30:46] lalalaaa: aaaaaah thats weird
[22:31:50] centrx: AAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHh
[22:32:10] lalalaaa: the sound of victory :-)
[22:32:18] bricker: lalalaaa: what was it
[22:32:48] Oog_: has joined #RubyOnRails
[22:33:12] lalalaaa: for some reason when running as root the tmp/ folder _must_ be owned by root
[22:34:12] Oog_: thoughts on http://blog.codeclimate.com/blog/2012/10/17/7-ways-to-decompose-fat-activerecord-models/ ?
[22:34:25] lalalaaa: must be a bug since root owns the place
[22:35:19] sinkensabe: has joined #RubyOnRails
[22:35:35] lalalaaa: * is supposed to own the place
[22:37:55] x1337807x: has joined #RubyOnRails
[22:37:58] fortunate: has joined #RubyOnRails
[22:40:02] RandyT: has joined #RubyOnRails
[22:40:50] aloneintheworld: has joined #RubyOnRails
[22:43:00] gambl0re: its been haning on this line => "remote: Bundle complete! 16 Gemfile dependencies, 62 gems now installed." for a few minutes. should i just abort.
[22:44:44] twilling: has joined #RubyOnRails
[22:47:59] silverdust: When users visit a before_action authenticate URL that redirects them to authentication page in devise. How can we set it such that the user return to the page they were trying to visit?
[22:48:04] ciree: how can i add the current parameters to a form tag?
[22:49:29] balr0g: has joined #RubyOnRails
[22:50:35] simplyianm: has joined #RubyOnRails
[22:51:18] lalalaaa: bricker: correction: the error was due to me not being in the root path of my app when starting puma =)
[22:54:59] gambl0re: heroku run rake db:migrate --- when i run this command, does heroku copy my database as it is on my machine and upload it to their site?
[22:56:07] bricker: lalalaaa: :P
[22:56:22] tobobo: has joined #RubyOnRails
[22:56:33] gambl0re: what does that command actual do?
[22:56:56] simplyianm: has joined #RubyOnRails
[22:57:14] bricker: gambl0re: no, it runs the migrations on the remote server
[22:57:25] bricker: it runs `rake db:migrate` on the heroku server
[22:57:36] Axsuul: has joined #RubyOnRails
[22:57:38] edwinvdgraaf: has joined #RubyOnRails
[22:57:55] gambl0re: can you elaborate a little bit more?
[22:58:25] bricker: gambl0re: do you know what the `rake db:migrate` command does?
[22:58:44] SteenJobs: have any of you ever used import.io API in a rails app before?
[22:58:55] edwinrozario: has joined #RubyOnRails
[22:59:04] bricker: gambl0re: it runs pending migrations. Read this, it should help you understand: http://edgeguides.rubyonrails.org/active_record_migrations.html
[22:59:33] ChadyG: has joined #RubyOnRails
[23:00:04] pragmatism: has joined #RubyOnRails
[23:01:10] attlasbot: has joined #RubyOnRails
[23:01:11] gambl0re: do you want to check out my app?
[23:05:39] attlasbot: has joined #RubyOnRails
[23:06:47] pragmatism: has joined #RubyOnRails
[23:08:14] JoshL: has joined #RubyOnRails
[23:08:17] Scripore: has joined #RubyOnRails
[23:08:24] ChadyG_: has joined #RubyOnRails
[23:10:47] Ropeney: has joined #RubyOnRails
[23:14:22] eliasbagley: has joined #RubyOnRails
[23:16:23] startupality: has joined #RubyOnRails
[23:17:52] shock_one: has joined #RubyOnRails
[23:18:16] spyderman4g63: has joined #RubyOnRails
[23:20:49] RTG`: has joined #RubyOnRails
[23:21:37] asteros: has joined #RubyOnRails
[23:21:55] IFrank00: Hi quick question I'm looking for Multiple scope login with devise I have 3 Models Members Clients and Admins.
[23:22:26] AlvaroFernandoMS: has joined #RubyOnRails
[23:22:38] rickmasta: has joined #RubyOnRails
[23:23:50] charliesome: has joined #RubyOnRails
[23:23:52] beneggett: has joined #RubyOnRails
[23:24:21] mike___1234: has joined #RubyOnRails
[23:24:22] Casty: has joined #RubyOnRails
[23:24:39] Axsuul: has joined #RubyOnRails
[23:25:07] IFrank00: Im look for a way to do site/sign_in for Admins Members and Clients with the same form
[23:25:17] simplyianm: has joined #RubyOnRails
[23:25:23] totesmuhgoats: has joined #RubyOnRails
[23:25:54] GPrime: has joined #RubyOnRails
[23:26:19] sarink: has joined #RubyOnRails
[23:27:38] bricker: IFrank00: what's the problem you're having?
[23:27:52] blackhuey: has joined #RubyOnRails
[23:28:04] jenrzzz: has joined #RubyOnRails
[23:29:36] IFrank00: bricked I has 3 models with devise a Admin a Member and a Client. I will like to have a single login path for Members and Clients and the Admin one can be different this what I setup
[23:32:12] quazimodo: has joined #RubyOnRails
[23:33:50] IFrank00: https://gist.github.com/Frank004/9504e2a670fa02e7c9f3
[23:34:53] sar1nk: has joined #RubyOnRails
[23:35:20] Pazician: has joined #RubyOnRails
[23:36:38] simplyianm: has joined #RubyOnRails
[23:36:58] tweeeaks: has joined #RubyOnRails
[23:37:03] IFrank00: bricker, my problem https://gist.github.com/Frank004/9504e2a670fa02e7c9f3#file-nav-html-erb
[23:38:19] bricker: what's "error"
[23:39:12] IFrank00: I need to make a route path that scope when login to the edit or destroy and when not log in a path to sign_in for any type of user
[23:39:35] yaw: has joined #RubyOnRails
[23:40:12] michael_mbp: has joined #RubyOnRails
[23:40:50] baweaver: has joined #RubyOnRails
[23:41:07] IFrank00: undefined local variable or method `edit_user_registration_path' for #<#<Class:0x007feeb25d6a30>:0x007feeb1a9cc28>
[23:41:27] yaw: it's really cumbersome creating a join table for tables that don't use integer ids :(
[23:42:23] yaw: maybe in the future `create_join_table` would be flexible on the data type and column names
[23:42:35] IFrank00: I'm using this devise_group :user, contains: [:member,:client, :admin] but it only work for current_user or current_user_sign?
[23:43:32] yaw: especially as uuids are coming in vogue
[23:45:15] IFrank00: bricker, if I'm not been clear you let me know as I like to get some help with this :)
[23:46:41] ChadyG: has joined #RubyOnRails
[23:47:12] ekain: has joined #RubyOnRails
[23:47:34] jenrzzz: has joined #RubyOnRails
[23:48:19] bahar: has joined #RubyOnRails
[23:49:03] drale2k_: has joined #RubyOnRails
[23:49:54] bricker: IFrank00: your routes don't have the edit user registration path helper defined, so you should make one. That should come from Devise but I'm not sure.
[23:51:01] simplyianm: has joined #RubyOnRails
[23:53:15] IFrank00: yes I know. I was trying to use the same meth as for mapping group but that only give me the current_user as I create the group :user
[23:53:37] IFrank00: this another workaround I was think
[23:54:13] twilling: has joined #RubyOnRails
[23:55:03] beneggett: has joined #RubyOnRails
[23:55:27] cirn0: has joined #RubyOnRails
[23:58:05] IFrank00: http://stackoverflow.com/questions/7787855/whats-the-best-way-to-handle-logging-in-and-out-with-multiples-scopes-roles-wit
[23:59:40] RegulationD: has joined #RubyOnRails