« Back to channel list

#RubyOnRails - 10 July 2015

« Back 1 day Forward 1 day »
[00:02:06] leonardoajim: has joined #RubyOnRails
[00:02:56] n1x: has joined #RubyOnRails
[00:03:03] blackmesa: has joined #RubyOnRails
[00:04:26] leonardoajim: has joined #RubyOnRails
[00:04:30] charliesome: has joined #RubyOnRails
[00:04:54] Ergo: has joined #RubyOnRails
[00:06:09] alphaatom: has joined #RubyOnRails
[00:06:30] Rixius: has joined #RubyOnRails
[00:06:38] circ-user-zvHoD: has joined #RubyOnRails
[00:07:55] Aswebb_: has joined #RubyOnRails
[00:08:07] alphaatom: has joined #RubyOnRails
[00:08:33] snockerton: has left #RubyOnRails: ()
[00:08:36] Miesco: Hi. When I use 'rails new', it is saying I don't have permission. Here is my `gem env`: http://paste.debian.net/280858/
[00:09:35] bonhoeffer: has joined #RubyOnRails
[00:10:36] Aeyrix: Miesco: Paste the error to gist.github.com, please.
[00:12:07] bricker: has joined #RubyOnRails
[00:12:57] alphaatom: has joined #RubyOnRails
[00:13:01] IanV0rn2341: has joined #RubyOnRails
[00:14:03] cnk: Miesco: but what kind of permission error? to write to the location where you want the new project? or ?
[00:15:26] Miesco: Aeyrix: I am sorry but 'pastebinit' does not support gist.github.com. What program can I use to paste to gist.github.com?
[00:15:48] hotpancakes: has joined #RubyOnRails
[00:16:16] Aeyrix: Just use whatever
[00:16:19] Aeyrix: paste.debian is fine
[00:17:31] dudo: has joined #RubyOnRails
[00:17:32] arkiver: has joined #RubyOnRails
[00:17:51] baweaver: has joined #RubyOnRails
[00:17:56] Coldblackice: has joined #RubyOnRails
[00:18:09] arkiver: Could this be a bug: https://gist.github.com/arkiver/203e77e70064dac3194e ?
[00:18:33] Aeyrix: What the hell
[00:19:00] arkiver: running on a heroku server. rails v4.2.0
[00:19:04] arkiver: and ruby 2.1.5
[00:19:06] viiralvx: has joined #RubyOnRails
[00:19:43] LambdaSource: has joined #RubyOnRails
[00:19:52] Aeyrix: arkiver: http://stackoverflow.com/questions/7549564/rails-3-ruby-1-9-2-date-tomorrow-not-correct
[00:20:11] quazimodo: it's meeeeee
[00:20:55] quazimodo: I asked in #ruby but i'll ask here too - I'm getting this -weird- namespacing issue => https://gist.github.com/siassaj/0364592698a14636afbf
[00:21:17] hanss: has joined #RubyOnRails
[00:21:45] arkiver: Aeyrix: weird & that was 3 years ago..
[00:22:20] Detch: has joined #RubyOnRails
[00:24:27] fgo: has joined #RubyOnRails
[00:24:52] laphlaw: has joined #RubyOnRails
[00:25:08] alphaatom: has joined #RubyOnRails
[00:26:15] mcr-credil: has joined #RubyOnRails
[00:26:52] laphlaw: rails newbie here.. I'm trying to run background jobs, and came across this resource: http://guides.rubyonrails.org/active_job_basics.html
[00:27:00] alphaatom: has joined #RubyOnRails
[00:27:40] cnk: laphlaw: that sounds like a good starting point
[00:28:04] laphlaw: problem is, rails is complaining:
[00:28:05] bruno-: has joined #RubyOnRails
[00:28:14] laphlaw: "Could not find generator job."
[00:28:38] laphlaw: oh, is it new? i'm using rails 4.0
[00:29:02] Elion: has joined #RubyOnRails
[00:29:18] alphaatom: has joined #RubyOnRails
[00:29:46] cnk: You???ll need Rails 4.2.0beta1 or greater if you want to use Active Job as part of Rails (you can also use require it as a gem in older versions of Rails)
[00:29:53] cnk: from https://quickleft.com/blog/getting-started-with-active-job/
[00:30:30] cnk: sounds like you have located the problem
[00:31:26] SteenJobs: has joined #RubyOnRails
[00:31:50] hotpancakes: has joined #RubyOnRails
[00:31:54] rhizome: since Stripe only allows you to find customers based on their Stripe token, should customers be found locally via email or whatever before figuring out whether to create a new Stripe customer?
[00:33:19] yfeldblum: has joined #RubyOnRails
[00:34:04] Miesco: Aeyrix: https://gist.github.com/ad242541d3108accd6a7
[00:34:16] zorak8: has joined #RubyOnRails
[00:34:33] Aeyrix: Miesco: run this:
[00:35:20] Aeyrix: Miesco: echo "`which ruby && which gem && which bundler`" | curl -F "sprunge=<-" sprunge.us
[00:35:41] simplyianm: has joined #RubyOnRails
[00:35:51] Aeyrix: It'll output a "sprunge.us" URL
[00:35:53] Aeyrix: just paste that back here
[00:36:03] Aeyrix: sprunge is just a text host for consoles
[00:37:32] yizr: has joined #RubyOnRails
[00:37:39] hfp_work: has joined #RubyOnRails
[00:37:42] rushed: has joined #RubyOnRails
[00:37:45] SteenJobs: has joined #RubyOnRails
[00:38:09] hfp: has joined #RubyOnRails
[00:38:18] jake_g: has joined #RubyOnRails
[00:39:29] Miesco: Aeyrix: http://sprunge.us/DiDS
[00:40:04] duderonomy: has joined #RubyOnRails
[00:40:06] Aeyrix: Miesco: Did you install ruby with apt-get or yum?
[00:40:13] Miesco: Aeyrix: Yes
[00:40:22] nickenchuggets: has joined #RubyOnRails
[00:40:22] nickenchuggets: has joined #RubyOnRails
[00:42:07] Aeyrix: Apparently AFK. Lame.
[00:42:27] Miesco: Aeyrix: Its alright.
[00:43:11] artto: has joined #RubyOnRails
[00:44:04] owenjones: has joined #RubyOnRails
[00:44:30] stef1a: has joined #RubyOnRails
[00:44:38] bahar: has joined #RubyOnRails
[00:45:09] sevenseacat: has joined #RubyOnRails
[00:45:09] simplyianm: has joined #RubyOnRails
[00:47:35] Dreamer3: ok what is that mac app that has apis
[00:47:43] Dreamer3: like a help doc browser
[00:47:45] Dreamer3: i just saw it the other day
[00:48:11] jake_g: Dreamer3: https://kapeli.com/dash Like that?
[00:48:30] Dreamer3: do you use it? nice?
[00:48:39] Dreamer3: oh i guess there is trial
[00:48:40] jake_g: No. I???ve just heard of it.
[00:48:50] Lightsword_: has joined #RubyOnRails
[00:48:59] jake_g: Seems like it???d be helpful if you were away from internet
[00:49:03] Miesco: Aeyrix: Can you help?
[00:49:28] Dreamer3: internet is slow :)
[00:49:32] Dreamer3: local docs is always best :)
[00:49:33] Pupeno: has joined #RubyOnRails
[00:49:33] stef1a: i have a FactoryGirl factory and a spec that look like this: https://gist.github.com/smlance/a7bb2a14d557de023716. can someone explain why i'm getting the association type mismatch? i have single table inheritance on the User class, where Student, Faculty, and Admin are the models inheriting from User.
[00:49:37] Aeyrix: Miesco: You need to speak to Radar first.
[00:49:41] Aeyrix: He's king of apt-get installs.
[00:49:44] Dreamer3: usually i have them in a folder and server it up locally by a local web server
[00:49:45] Aeyrix: idk where he is though
[00:50:10] one_zero: has joined #RubyOnRails
[00:50:27] sevenseacat: its Miesco time again? :D
[00:50:30] aderium: has joined #RubyOnRails
[00:50:43] Miesco: Aeyrix: No he doesn't support apt-get installs
[00:51:03] jake_g: Hi everyone. I???m trying to get better at SQL and am having a hard time with this query. Candidates applying for a position can be commented on or voted on. I???m trying to write a scope for ???trending candidates??? based on most votes + comments in the past 24 hours. I???m getting `RuntimeError: unsupported: Time` Can anyone help?
[00:51:07] jake_g: Heres the scope: http://pastie.org/10283225
[00:51:27] Aeyrix: sevenseacat: I was looking for you
[00:51:30] Lightsword: has joined #RubyOnRails
[00:51:33] sevenseacat: ACTION hides
[00:51:35] Aeyrix: for this ^
[00:51:39] Aeyrix: because Radar is afk
[00:51:41] Aeyrix: and you weren't in chan
[00:52:08] mclee: has joined #RubyOnRails
[00:52:09] sevenseacat: I'm not actually sevenseacat, I'm her cat.
[00:52:15] sevenseacat: sorry, can't help.
[00:53:01] duderonomy: has joined #RubyOnRails
[00:54:01] ausum_possum: has joined #RubyOnRails
[00:54:49] Lightsword_: has joined #RubyOnRails
[00:56:04] one_zero_x: has joined #RubyOnRails
[00:56:19] stef1a: never mind, got it working.
[00:56:48] bob14: has joined #RubyOnRails
[00:57:05] aderium: has joined #RubyOnRails
[00:57:45] tvw: has joined #RubyOnRails
[00:59:25] Aeyrix: sevenseacat: >:(
[00:59:32] Aeyrix: Miesco: Is there any reason you've used apt-get?
[00:59:39] Aeyrix: There's practically a fucking global campaign about not doing it that way.
[01:00:55] jordanstorz: has joined #RubyOnRails
[01:01:01] joey77: is there anyone here who can help me deploy my rails app to an EC2 instance? I've been trying for the past 3 days and still haven't been able to do it. I've read about 20 different guides as well :(
[01:01:15] Aeyrix: joey77: What have you tried?
[01:01:33] ekain: has joined #RubyOnRails
[01:01:36] sevenseacat: and what are you having a problem with?
[01:01:43] Aeyrix: That should be a ruboto command.
[01:01:47] Aeyrix: A helpa command as well.
[01:01:53] ProLoser: has joined #RubyOnRails
[01:02:21] one_zero: has joined #RubyOnRails
[01:02:45] rushed: joey77: heroku will do it for you if you're interested in a paas solution
[01:03:31] joey77: Aeyrix: ive just been going through guides and watching videos. I've been trying to use nginx, passenger, and capistrano, but something different goes wrong each time depending on the guide.
[01:03:56] joey77: right now, i have nginx running on ec2 instance but then i get capistrano errors when trying to deploy
[01:05:00] stantona: has joined #RubyOnRails
[01:05:13] jake_g: No takers on my SQL question? I ???got the tests passing??? with `find_by_sql` but it feels wrong. Anyone have suggestions for what path to go down to start refactoring this scope http://pastie.org/10283246
[01:05:30] jordanstorz: has joined #RubyOnRails
[01:05:32] joey77: rushed: id rather not use heroku
[01:05:51] bonhoeffer: has joined #RubyOnRails
[01:05:57] jake_g: Oops. That pastie is missing the closing end for the lambda but once thats in there it works
[01:06:20] Aeyrix: joey77: "i get errors"
[01:06:21] Aeyrix: that's nice
[01:06:22] Aeyrix: what errors?
[01:06:27] Aeyrix: Come on, help us help you.
[01:06:29] Aeyrix: We can't read minds.
[01:06:42] Miesco: Aeyrix: Is it because /var/lib is first in the GEM PATHS?
[01:06:44] ausum_possum: joey77: worst comes to worst you can manually git fetch/pull while ssh'ed :D
[01:07:00] Aeyrix: Miesco: My question was "why are you still using apt-get"?
[01:07:03] joey77: Aeyrix: cap aborted!
[01:07:04] joey77: LoadError: cannot load such file -- capistrano/bundler
[01:07:16] Aeyrix: joey77: Did you install ruby with apt-get or yum?
[01:07:32] Miesco: Aeyrix: Because my the guy from debian basically told me to
[01:07:42] Aeyrix: The guy from debian?
[01:07:47] rhizome: isn't it 'bundler/capistrano'?
[01:07:59] Miesco: Aeyrix: The guy who maintains the ruby package I think
[01:08:18] sevenseacat: good, go bug them for help then.
[01:08:21] joey77: Aeyrix: rvm install i think, but this error is on my local machine
[01:08:29] mclee: has joined #RubyOnRails
[01:08:58] rhizome: that's system ruby. you're going to have to jump through hoops at the application level unless you want to hop to root for changes
[01:09:44] joey77: rhizome: it's 'capistrano/bundler' according to guides
[01:09:52] bonhoeffer: has joined #RubyOnRails
[01:10:20] rhizome: ok. i'm going off cap2, maybe it changed for cap3
[01:10:55] duderonomy: has joined #RubyOnRails
[01:11:02] mcr-credil: has joined #RubyOnRails
[01:11:50] charliesome: has joined #RubyOnRails
[01:11:54] joey77: is there a guide somewhere that actually works?
[01:12:40] joey77: getting my rails app running on an ec2 instance preferably using git for pushing changes
[01:12:52] goodcodeguy: has joined #RubyOnRails
[01:13:07] sevenseacat: all of the guides out there likely worked at some point in time. things change.
[01:13:13] leonardoajim: has joined #RubyOnRails
[01:13:19] Miesco: sevenseacat: Okay done.
[01:13:22] rhizome: not sure. i've deployed successfully using rubber
[01:14:17] giowong: has joined #RubyOnRails
[01:14:42] n1x: has joined #RubyOnRails
[01:15:11] Aeyrix: I'm going to write a uh
[01:15:12] stantonnet: has joined #RubyOnRails
[01:15:14] joey77: well f me then, i dont know what i should do
[01:15:15] Aeyrix: based on best practice
[01:15:39] Aeyrix: joey77: I would help you but to be honest
[01:15:42] Aeyrix: I've never used Capistrano
[01:15:44] Aeyrix: I don't know why
[01:15:46] x-light: has joined #RubyOnRails
[01:15:50] Aeyrix: I just never really got around to using it
[01:15:51] Aeyrix: so I can't help you with it
[01:16:32] leonardoajim: has joined #RubyOnRails
[01:16:56] giowong: im using the mixpanel_client ruby gem and was wondering if there was a way to inject the time variable into to the api request
[01:17:03] joey77: Aeyrix: i was just ryingt o use capistrano since it seems like the popular thing to use
[01:18:20] ProLoser: has joined #RubyOnRails
[01:18:53] ivanskie: has joined #RubyOnRails
[01:20:27] paulcsmith: has joined #RubyOnRails
[01:22:25] nettoweb: has joined #RubyOnRails
[01:25:06] Aeyrix: joey77: There's no reason I haven't used it
[01:25:08] Aeyrix: just i never learned it
[01:25:34] Aeyrix: i assume someone else can help with that bit
[01:25:37] rhizome: joey77: might be more of an amazon thing than cap, but have you checked into #capistrano yet?
[01:25:38] Aeyrix: but as for setting up the EC2 instance to work
[01:25:58] rhizome: i used rubber because aws docs are ultra-butt
[01:26:10] beauby: has joined #RubyOnRails
[01:26:14] christiandsg: has joined #RubyOnRails
[01:26:32] xicreative: has left #RubyOnRails: ()
[01:26:44] joey77: rhizome: not yet
[01:26:59] eggoez: has joined #RubyOnRails
[01:28:11] joey77: ill try rubber
[01:28:45] ght: Question: I'm trying to pull all the entires in this table and it's returning active record associations instead of the actual value.
[01:28:59] ght: The string is current_user.accounts.tags.each do |tag|
[01:29:17] ght: What should I append to that string to ensure it pulls the actual value and not the AR association?
[01:29:25] ght: I tried to_a to no avail
[01:29:43] Limix: has joined #RubyOnRails
[01:30:06] viiralvx: has joined #RubyOnRails
[01:31:16] rhizome: ght: just use the object
[01:31:41] ght: I take that back, it's got the .first call in it
[01:32:39] adavia: any idea why i get Uncaught SyntaxError: Unexpected identifier here http://pastie.org/10283268
[01:32:52] ght: current_user.accounts.first.tags.each do |tag|
[01:32:59] ght: I believe it's the .first call that's making it an AR record
[01:34:52] ght: Disregard, resolved it.
[01:35:50] SteenJobs: has joined #RubyOnRails
[01:36:38] segy: has joined #RubyOnRails
[01:36:41] dcunit3d: has joined #RubyOnRails
[01:36:44] acovrig: has joined #RubyOnRails
[01:37:22] acovrig: Is there a gem or something easy like that for a photo gallery, or should I use something like fancybox manually?
[01:37:28] ght: Ok, so here's a new question if anyone is there: I have an AJAX call in my profile.coffee that relies on a URL defined by a gon variable, and I notice in my JS console in my browser I'm getting cross-origin request blocked errors for "The same origin policy disallows reading the remote resource at https://undefined...
[01:37:40] rhizome: if i'm using AASM and have a form that depends on states going to one method, is there any way around a big ol' if state1?...elsif state2?...etc. block?
[01:37:47] ght: I assume that's happening in development becuase Rails is concating the assets on every page load, will this happen in production?
[01:38:03] ewitchin: has joined #RubyOnRails
[01:38:05] rhizome: what's a "gon variable?"
[01:38:13] n1x: has joined #RubyOnRails
[01:39:30] ght: Anyone here have experience with "gon"? Despite reading the documentation as far as setting initializers and the like, setting global variables isn't working.
[01:39:54] ght: When I define an initializer I get a gon is undefined error.
[01:43:00] Miesco: Aeyrix: I think I fixed it
[01:44:28] artto: has joined #RubyOnRails
[01:47:00] buffym: has joined #RubyOnRails
[01:47:17] eggoez: has joined #RubyOnRails
[01:47:21] towski_: has joined #RubyOnRails
[01:47:23] Miesco: export GEM_HOME='/home/shawn/.gem/ruby/2.1.0'
[01:47:39] rushed: has joined #RubyOnRails
[01:47:48] Miesco: Aeyrix: Pretty simple eh?
[01:48:06] Aeyrix: Still doesn't fix the underlying issue of using apt's ruby.
[01:48:13] Aeyrix: The packagers for Ruby just make such a mess.
[01:48:20] Aeyrix: I'd take it over if I had anything to do with Debian.
[01:49:29] giowong: has joined #RubyOnRails
[01:50:23] beauby: has joined #RubyOnRails
[01:52:45] mingsheng: has joined #RubyOnRails
[01:53:18] x44x45x41x4E: has joined #RubyOnRails
[01:55:03] x44x45x41x4E: has left #RubyOnRails: ()
[01:55:08] Ropeney: has joined #RubyOnRails
[01:56:03] fgo: has joined #RubyOnRails
[01:56:44] Aswebb_: has joined #RubyOnRails
[01:56:57] Lightsword_: has joined #RubyOnRails
[01:57:52] microdex: has joined #RubyOnRails
[01:58:01] yashinbasement: what does it mean when msms gives the validation error in exporting the database
[01:58:04] hotpancakes: has joined #RubyOnRails
[01:58:41] sevenseacat: man, github pages is awesome. push code, blog updates. so win.
[02:00:48] rushed: yashinbasement: msms? typo? wrong channel?
[02:01:01] yashinbasement: yeah I know sorry
[02:01:14] yashinbasement: sql channel is always quite
[02:01:28] yashinbasement: can't help myself
[02:01:41] sevenseacat: Miesco: I hope you realize that everything you're doing is non-standard and is going to make no sense to anyone in the future, including you.
[02:02:35] adavia: any idea why i get Uncaught SyntaxError: Unexpected identifier here http://pastie.org/10283268
[02:02:45] jesterfraud: has joined #RubyOnRails
[02:03:27] skkeeper: has joined #RubyOnRails
[02:03:34] rushed: adavia: look at the output, not the template :) and probably escape your message
[02:03:44] Aeyrix: sevenseacat: At this point I don't think they care.
[02:03:50] Aeyrix: It's been, what, three weeks?
[02:04:04] sevenseacat: since last friday apparently.
[02:04:08] Aeyrix: One week.
[02:04:11] Aeyrix: Feels like three. :^)
[02:04:33] adavia: rushed: umm what do you mean
[02:05:13] JeramyRR: has joined #RubyOnRails
[02:05:42] rushed: adavia: which part?
[02:06:00] adavia: escaping the message
[02:06:09] Creeves: has joined #RubyOnRails
[02:07:12] rushed: adavia: you're unsure what escaping is? or why you would need it in this case?
[02:07:24] adavia: why would i need it
[02:07:32] rushed: adavia: have you looked at the output?
[02:08:25] ivanskie: has joined #RubyOnRails
[02:09:48] beauby: has joined #RubyOnRails
[02:10:54] Miesco: sevenseacat: It is debian standard.
[02:11:13] sevenseacat: keep telling yourself that.
[02:11:23] Aeyrix: Miesco: Debian's ruby install is fucking atrocious
[02:11:32] Miesco: Aeyrix: Why?
[02:11:36] Aeyrix: Feel free to get the packager in here
[02:11:39] Aeyrix: I'll tell them it myself
[02:11:43] Aeyrix: so would half of this channel
[02:11:54] Miesco: Aeyrix: Seriously, why?
[02:12:00] Aeyrix: There's a really, really good reason that things like chruby exist
[02:12:20] n1x: has joined #RubyOnRails
[02:12:32] Aeyrix: Unless you *absolutely* know what you're doing when you choose sysruby over ruby-install ruby
[02:12:37] Aeyrix: you are guaranteed to get rekt
[02:12:43] rushed: Miesco: in general you want to be using ruby ecosystem tools to build ruby (one option is RVM) as opposed to OS packages
[02:12:51] Aeyrix: RVM isn't an option.
[02:13:01] Aeyrix: I'm actually running into issues after installing a sysruby, despite the fact I've been working with the system for about five years.
[02:13:05] sevenseacat: the fact that you're needing to fuck around, change settings, set env variables, just to get things to work is a sure sign that things are broken.
[02:13:17] Aeyrix: "IT'S WORKING FINE IT'S STANDARD"
[02:13:27] Aeyrix: "i had to change this environment variable! super easy!"
[02:13:30] Aeyrix: > standard
[02:13:38] sevenseacat: not to mention you've had 'things are clean and shiny and perfect' about ten times and then you need to fix something else
[02:13:50] Aeyrix: That was me many moons ago.
[02:13:58] Aeyrix: I refused to install UnrealIRCd from anything other than apt-get.
[02:14:02] sevenseacat: whereas with tools that are built for ruby, you install and then you're done.
[02:14:03] simplyianm: has joined #RubyOnRails
[02:14:10] sevenseacat: thats how things should work.
[02:14:16] sevenseacat: thats the standard.
[02:14:25] sevenseacat: not your broken fucked-up setup.
[02:14:28] Aeyrix: Ideally, apt-get install ruby should install ruby-install and chruby :^)
[02:14:39] ltramos: has joined #RubyOnRails
[02:14:39] sevenseacat: Aeyrix: that would be lovely, wouldnt it
[02:14:44] Aeyrix: sevenseacat: I'm gonna make a package for it.
[02:14:51] Aeyrix: Then try and hijack debian ruby
[02:14:53] Aeyrix: and replace it
[02:15:05] peady_: has joined #RubyOnRails
[02:16:21] Sehryn: has joined #RubyOnRails
[02:16:43] Miesco: sevenseacat: Its simple on debian; you just use sudo and install to /var/lib
[02:16:52] Miesco: sevenseacat: Thats where all the gems go
[02:16:59] sevenseacat: thats not where your gems are going
[02:17:05] Aeyrix: oh christ
[02:17:10] sevenseacat: because just today you changed GEM_HOME
[02:17:27] Miesco: If you want to put them in home dir, you just set an env variable
[02:17:38] sevenseacat: then why has it taken you a week to do it?
[02:17:41] Aeyrix: [ twitching intensifies ]
[02:18:07] sevenseacat: if its so easy and standard
[02:18:29] Miesco: sevenseacat: Well I had ~/.ruby-version that had some weird version of ruby in it which was causing all the problems. /usr/bin/gem was using ~/.ruby-version.
[02:18:46] hotpancakes: has joined #RubyOnRails
[02:18:59] Miesco: I think chruby made that file .ruby-version. I didn't have a clean start.
[02:19:14] stef1a: has joined #RubyOnRails
[02:19:38] sevenseacat: ACTION puts a hand on Aeyrix's head before he has a full-blown freakout attack
[02:19:55] Aeyrix: My coworker is looking at me funny now.
[02:21:40] owenjones: has joined #RubyOnRails
[02:21:43] dan0034001: has joined #RubyOnRails
[02:21:44] charliesome: has joined #RubyOnRails
[02:22:36] magtan0205: has joined #RubyOnRails
[02:22:56] siemprefresco: has joined #RubyOnRails
[02:23:10] n1x: has joined #RubyOnRails
[02:25:15] magtan0205: hi all, rails beginner here
[02:25:40] Aeyrix: I wrote a p lame script to install Ruby "properly" https://gist.github.com/Aeyrix/c3889061812af4deb352
[02:25:50] Aeyrix: It *should* in theory override any shitty system ruby
[02:26:25] simplyianm: has joined #RubyOnRails
[02:26:59] christiandsg: has joined #RubyOnRails
[02:27:31] magtan0205: has joined #RubyOnRails
[02:28:38] hotpancakes: has joined #RubyOnRails
[02:29:04] owenjones: has joined #RubyOnRails
[02:30:12] Oog: has joined #RubyOnRails
[02:30:21] Oog: ActiveRecord::UnknownPrimaryKey: Unknown primary key for table regions_zip_codes in model Region::HABTM_ZipCodes.
[02:30:23] Oog: has_and_belongs_to_many :zip_codes
[02:30:27] rubyonrails188: has joined #RubyOnRails
[02:30:41] helpa: Oog: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[02:31:41] Oog: https://gist.github.com/anonymous/2e3bc73df036e88a9b20
[02:32:35] Oog: i have a region i do region.zip_codes << ZipCode.where(...) and get the primary key error - i thought this was how i create the relationships
[02:32:57] sevenseacat: well, where() will return a relation of zip codes
[02:33:06] jesterfraud: has joined #RubyOnRails
[02:33:13] Miesco: sevenseacat: Just so you know, chruby uses PATH_HOME
[02:33:21] sevenseacat: you cant add a relation to a relation like that
[02:33:42] Oog: what is the correct way to do it
[02:34:08] sevenseacat: http://guides.rubyonrails.org/association_basics.html#has-and-belongs-to-many-association-reference
[02:34:13] sevenseacat: you can add a single zip code like that
[02:34:44] spalenza: has joined #RubyOnRails
[02:35:05] sevenseacat: however, a full error with the code thats causing it might help us to help you.
[02:35:12] sevenseacat: like helpa asked you to.
[02:35:36] Miesco: Anyways thanks for the help
[02:36:00] sevenseacat: I eagerly await the next episode of 'Miesco breaks Ruby'
[02:36:20] ght: Question: I have an Ajax call that is called on document ready. It works when the page is loaded initially or manually refreshed, but not called if a user loads another page, then clicks the link to the page with the Ajax call in the top nav
[02:36:24] ght: Is there something other than document ready that should be used to ensure a function beneath is called every time a page loads, regardless of whether it's called from a link in the top nav or loaded directly?
[02:36:32] n1x: has joined #RubyOnRails
[02:36:47] sevenseacat: ght: if you're using turbolinks, you need to hook onto page:load as well as ready
[02:36:56] ght: Framework is Rails 4.2.x, I'm using jquery selector to ensure the code only calls on the controller/action in question, in this case profile index
[02:37:06] rushed: ght: what does the code do?
[02:37:11] ght: sevenseacat: Ok, let me check that, I thought I disabled turbolinks for this page due to it causing problems.
[02:37:13] christiandsg: has joined #RubyOnRails
[02:37:14] ght: Thank you.
[02:37:47] rushed: ght: binding using .on might be what you're looking for (ie not needing to solve the problem at all)
[02:38:00] Oog: https://gist.github.com/anonymous/b6a4f9cd49c3988edaf0
[02:38:05] Oog: sevenseacat: doesnt work for single objec teither
[02:38:13] Oog: there are both errors
[02:38:24] jordanstorz: has joined #RubyOnRails
[02:38:33] ght: sevenseacat: Yes, I have turbolinks disabled for this page via "data-no-turbolink="true"" under content_for(:body_attributes)
[02:38:47] sevenseacat: ght: no idea what that means. good luck.
[02:38:53] rushed: Oog: have you migrated? what does your schema for the three tables look like at the moment?
[02:39:02] ght: Ok, in case curious, it's the method for disabling turbolinks per-page.
[02:39:08] Oog: rushed: yes i have migrated how do i show you the schema?
[02:39:16] Oog: i just did a rake db:migrate:reset
[02:39:17] sevenseacat: really not curious. i hate turbolinks and disable it as soon as I get the change.
[02:39:24] Oog: turbolinks is terrible
[02:39:27] Oog: its like spring
[02:39:28] ght: Ok, so, turbolinks is disabled.
[02:39:36] baweaver: has joined #RubyOnRails
[02:39:38] sevenseacat: I wouldn't be so sure.
[02:39:39] ght: So armed with that knowledge, anyone know?
[02:39:46] Oog: get rid of the gem
[02:39:57] rushed: not liking something, or not feeling it's useful for your case doesn't make something terrible~
[02:40:24] sevenseacat: this is true.
[02:40:37] rushed: ght: you haven't answered my question about what it does or if .on might be appropriate :)
[02:40:39] beauby: has joined #RubyOnRails
[02:40:46] sevenseacat: however, both turbolinks and spring cause infinitely more problems than they solve.
[02:40:47] ght: Honestly with all the problems it causes in regards jquery calls, I'm not sure why they enable it by default in the first place.
[02:40:53] ght: Unless there's something I"m unaware of.
[02:42:14] ght: Every rails channel discussion I'm involved in, whenever it's related to JS / jQuery / CS, the first thing several people say is "burn turbolinks with fire"
[02:42:19] ght: So why do they leave it in the build?
[02:42:32] listrophy: ght: because dhh likes it
[02:42:48] dideler: has joined #RubyOnRails
[02:42:57] listrophy: and people don't revolt because it's sufficiently easy to remove
[02:42:58] Oog: rushed: how do i show you the schema? schema.db ?
[02:43:20] sevenseacat: dhh wont allow for its removal. people have tried.
[02:44:04] Oog: i read HABTM dont have primary keys so i dont know why its trying to find one?
[02:44:25] ght: HABTM have a join table that consists of the foreign keys of the two linked tables.
[02:44:30] ght: HABTM relationships.
[02:44:33] listrophy: imho, turbolinks is a decent idea, but there are much better ideas already out there with large communities behind them
[02:44:54] artto: has joined #RubyOnRails
[02:45:06] Oog: http://stackoverflow.com/questions/17630714/why-do-i-get-an-unknown-primary-key-exception-for-a-join-table-in-rails-4
[02:46:07] rushed: Oog: is that your question?
[02:46:30] Oog: it suggests setting self.primary_key but other people say it is wrong
[02:46:50] rushed: Oog: it's about a table with a compound key do you have that?
[02:47:06] Oog: HABTM join table has no primary key
[02:47:18] listrophy: Oog: if you use habtm, you shouldn't create an active record class for it
[02:47:35] Oog: i dont have a model for the join table
[02:47:50] listrophy: cool. that's not the problem, then
[02:48:30] rushed: Oog: k, so that question isn't related to your situation :) you probably want to verify that your schema matches what you think it is, and if you're not sure what to do provide us with what your schema currently is and the error you're getting :)
[02:48:48] listrophy: Oog: can you create a gist with the error and the schema.rb?
[02:48:55] Oog: rushed: here are the errors https://gist.github.com/anonymous/b6a4f9cd49c3988edaf0
[02:49:32] sevenseacat: looks related to paper trail?
[02:49:39] peady: has joined #RubyOnRails
[02:49:46] Oog: the schema https://gist.github.com/anonymous/31fe0c21d7db4738750e
[02:50:13] RegulationD: has joined #RubyOnRails
[02:50:59] viiralvx: has joined #RubyOnRails
[02:51:05] eminencehc_: has joined #RubyOnRails
[02:51:14] Oog: maybe that is it...... is there anything wrong with adding a pkey to the join table...? that might fix papertrail
[02:51:20] Oog: or maybe i need to set_primary_key
[02:51:23] sevenseacat: yeah it wont work
[02:51:37] jesterfraud: has joined #RubyOnRails
[02:51:52] Oog: if i set a pkey itll break HABTM?
[02:52:00] rushed: Oog: a join table w/ a primary key is a join model and should use has many through
[02:52:02] yizr: has joined #RubyOnRails
[02:52:43] Oog: why does adding a pkey break stuff? it should just be an extra ignored column right?
[02:52:59] sevenseacat: a habtm table cannot have any other columns.
[02:53:34] rushed: Oog: because that's the way the ORM you've chosen to use at the moment works :)
[02:53:48] Oog: ok i guess ill do has_many through thanks
[02:53:52] Oog: papertrail......... smh
[02:55:24] mclee: has joined #RubyOnRails
[02:55:39] leonardoajim: has joined #RubyOnRails
[02:55:42] shyshy: has joined #RubyOnRails
[02:56:12] mary5030: has joined #RubyOnRails
[02:56:39] Oog: it was paper trail now r.zip_codes << works with single zip code or a collection
[02:56:44] chinmay_dd_: has joined #RubyOnRails
[02:57:06] qejk: has joined #RubyOnRails
[02:57:09] SteenJobs: has joined #RubyOnRails
[02:57:10] mcr-credil: has joined #RubyOnRails
[02:57:57] hahuang65: has joined #RubyOnRails
[02:59:20] chinmay_dd__: has joined #RubyOnRails
[03:01:26] Limix: has joined #RubyOnRails
[03:01:32] GriffinHeart: has joined #RubyOnRails
[03:03:11] Aeyrix: [12:35:59] <sevenseacat> I eagerly await the next episode of 'Miesco breaks Ruby'=
[03:03:17] Aeyrix: glad i came back to that messag
[03:03:40] Aeyrix: "do this"
[03:03:44] Aeyrix: "... okay we can't help"
[03:03:45] sevenseacat: next time i'll be all like 'what does the standard say?'
[03:03:46] Aeyrix: "why not?"
[03:04:00] sevenseacat: 'this isnt part of the standard? oh okay'
[03:04:02] Aeyrix: https://www.youtube.com/watch?v=48rz8udZBmQ
[03:04:58] haltEnigma: has joined #RubyOnRails
[03:05:40] hotpancakes: has joined #RubyOnRails
[03:05:53] kb3ien: has joined #RubyOnRails
[03:05:57] jordanstorz: has joined #RubyOnRails
[03:05:58] eggoez: has joined #RubyOnRails
[03:06:28] kb3ien: My `rails generate` hangs forever, the open file handle that it's reading is AF_LOCAL "/tmp/spring/f7d7415c8e2a052c43f10695522d4a16" What's this about ?
[03:06:39] Aeyrix: fucking spring
[03:07:58] sevenseacat: grr, when programming exercises expect you to automagically know things that havent been discussed yet
[03:08:48] theery: has joined #RubyOnRails
[03:09:08] nickenchuggets: has joined #RubyOnRails
[03:09:08] nickenchuggets: has joined #RubyOnRails
[03:09:17] kb3ien: Like recursion? sorry I had to ...
[03:10:24] Oog: has joined #RubyOnRails
[03:10:44] chouhoulis: has joined #RubyOnRails
[03:10:51] Oog: https://gist.github.com/anonymous/449a221a8d0dd87b37f6 so now that i have a regular table as the join table i have to make a rails model for that intervening table right?
[03:11:00] beauby: has joined #RubyOnRails
[03:11:23] sevenseacat: nvm, just grumbling
[03:11:45] Oog: and what do i call it RegionsZipCodes ?
[03:11:54] hahuang65: has joined #RubyOnRails
[03:12:06] sevenseacat: that would be a terrible name for a model.
[03:12:24] Aeyrix: [ heart attack intensifies ]
[03:12:30] kb3ien: What options are there to debug rails doing that
[03:12:42] rushed: kb3ien: what have you tried?
[03:12:53] Oog: sevenseacat: what would you call it given my migrations
[03:13:10] Oog: create_table :regions_zip_codes do |t|
[03:13:13] sevenseacat: your migrations give no scope for a join model, so I'd delete them
[03:13:26] braincrash: has joined #RubyOnRails
[03:13:38] sevenseacat: and I'd either come up with a decent name for the join model, or if it doesnt have one and has no meaning, i'd use HABTM and not have one
[03:13:44] chouhoulis: has joined #RubyOnRails
[03:14:03] rushed: kb3ien: suffice it to say that doesn't generally happen, have you "spring stop" and tried again, restarted? does it happen on a clean project?
[03:14:13] Oog: sevenseacat: what do you mean no scope?
[03:14:23] kb3ien: http://pastebin.ca/3055134
[03:14:27] sevenseacat: Oog: your existing migrations are for a HABTM table.
[03:14:40] Oog: yes i know - i need to make the model though right?
[03:14:52] sevenseacat: for a HABTM association? no.
[03:15:06] Oog: ohhhh so i can create the table like this with a primary key
[03:15:13] Oog: and still use has_and_belongs_to_many on the model
[03:15:19] hahuang65: has joined #RubyOnRails
[03:15:24] sevenseacat: no, a HABTM join table cannot have a primary key.
[03:15:27] bungoman: has joined #RubyOnRails
[03:15:37] Oog: i cant do a real HABTM beause of paper trail
[03:15:45] sevenseacat: great, fix paper trail.
[03:15:55] Oog: already done
[03:16:14] Oog: i cant just stop development and wait for papertrail to be fixed though
[03:16:49] sevenseacat: well you can rearchitect your code if you like
[03:16:59] sevenseacat: come up with a decent name for your join model, then create the model and table
[03:17:07] sevenseacat: however I'd rather fix the source of the problem
[03:17:25] sevenseacat: also, your bug report is terrible
[03:18:19] rushed: Oog: do you need to be recording a history of this relationship? is there a business case for using the data you expect papertrail to be capturing? for the cases you might need the data would be be recorded elsewhere?
[03:18:45] Oog: hmm so maybe i can disable paper trail on the join table...?
[03:20:51] Pupeno_: has joined #RubyOnRails
[03:24:29] Xiti: has joined #RubyOnRails
[03:24:31] hahuang61: has joined #RubyOnRails
[03:25:04] Lytol: has joined #RubyOnRails
[03:29:34] XCMer: has joined #RubyOnRails
[03:30:01] christiandsg: has joined #RubyOnRails
[03:30:42] urbanmonk: has joined #RubyOnRails
[03:33:17] bronson: has joined #RubyOnRails
[03:35:52] mcr-credil: has joined #RubyOnRails
[03:38:46] hotpancakes: has joined #RubyOnRails
[03:39:49] haltEnigma: has joined #RubyOnRails
[03:40:59] djinni`: has joined #RubyOnRails
[03:41:29] dustinm`: has joined #RubyOnRails
[03:43:01] a346: has joined #RubyOnRails
[03:43:21] yfeldblum: has joined #RubyOnRails
[03:45:37] Aswebb_: has joined #RubyOnRails
[03:45:39] artto: has joined #RubyOnRails
[03:45:41] jordanstorz: has joined #RubyOnRails
[03:46:47] riskish: has joined #RubyOnRails
[03:48:08] sarink: has joined #RubyOnRails
[03:48:20] haltEnigma: hi, I'm new to Rails . I've built a simple action_mailer , everything seems to work fine (?) However it doesn't actually send the email. I'm guessing i'm configuring the delivery method the wrong way.I've already tried configuring the delivery method both with :smtp and :sendmail making a separate file on config/intializers ,i've also tried configu
[03:48:20] haltEnigma: ring the delivery method in environments but nothing seems to work. Any ideas what the actual problem may be ?https://gist.github.com/anonymous/8103ef5eacef97851dcb
[03:50:07] nya: has joined #RubyOnRails
[03:51:13] xcesariox: has joined #RubyOnRails
[03:51:18] FCser: has joined #RubyOnRails
[03:52:16] nyaa: has joined #RubyOnRails
[03:52:38] dan0034001: has joined #RubyOnRails
[03:56:56] Aeyrix: sevenseacat:
[03:57:04] Aeyrix: what in seven hells is "chruby-exec"
[03:57:21] Creeves: haltEnigma: have you tried it in production mode?
[03:57:21] Aeyrix: -bash: chruby: command not found
[03:57:26] Aeyrix: $ chruby-exec
[03:57:26] Aeyrix: chruby-exec: RUBY and COMMAND required
[03:57:47] Creeves: haltEnigma: those env variables for your username and password
[03:58:04] Creeves: those should be the environmental variable keys, not the actual values
[03:58:25] Creeves: ie. password: ENV["MAILER_PWD"]
[03:58:39] Creeves: rather than password: ENV["hunter2"]
[03:59:24] haltEnigma: Creeves: got it , thanks.
[04:03:03] Aeyrix: sevenseacat: fixed, it's what happens when you don't include chruby.sh in your path
[04:03:09] Aeyrix: by path i mean source it
[04:03:23] Aeyrix: homebrew doesn't do it for you, nor does it explicitly tell you to
[04:03:34] Aeyrix: it's tucked away with the rest of the log spam you get from a hb install
[04:03:35] Aeyrix: so i missed it
[04:12:51] Lytol: has joined #RubyOnRails
[04:13:59] buffym: has joined #RubyOnRails
[04:14:44] spalenza: has joined #RubyOnRails
[04:15:00] fgo: has joined #RubyOnRails
[04:15:21] hotpancakes: has joined #RubyOnRails
[04:16:33] cornerma1: has joined #RubyOnRails
[04:17:28] braincra-: has joined #RubyOnRails
[04:18:46] Ropeney: has joined #RubyOnRails
[04:20:29] ynonp: has joined #RubyOnRails
[04:22:13] FCser: has joined #RubyOnRails
[04:22:30] haltEnigma: has joined #RubyOnRails
[04:26:21] choke: has joined #RubyOnRails
[04:27:17] SteenJobs: has joined #RubyOnRails
[04:27:20] adavia: any idea why when using <%= bootstrap_form_for(:micropost, url: microposts_path) do |f| %> wont show field errors but then if i do <%= bootstrap_form_for(@micropost, remote: true) do |f| %> works fine?
[04:27:51] sevenseacat: the first is just weird.
[04:28:21] FCser: has joined #RubyOnRails
[04:28:21] adavia: sevenseacat: saying that to me?
[04:28:51] sevenseacat: I don't know why you would use that form.
[04:28:52] adavia: sevenseacat: why weird
[04:28:59] sevenseacat: I don't even know what it would do.
[04:29:08] adavia: sevenseacat: i only need to create microposts
[04:29:20] bruno-: has joined #RubyOnRails
[04:29:23] sevenseacat: 'i have a form for a micropost! which one? it doesnt matter'
[04:29:47] sevenseacat: 'just some generic micropost'
[04:29:59] adavia: im not following
[04:30:43] sevenseacat: first is saying 'i have a form for some random micropost'. second is saying 'i have a form for this exact @micropost instance'
[04:32:52] adavia: sevenseacat: lets say i only want to create micropost then if i use <%= bootstrap_form_for(@micropost) do |f| %> the second time i try to submit the form it will look for a patch action
[04:33:03] giowong: has joined #RubyOnRails
[04:34:40] sevenseacat: it will only do that if the @micropost has been saved
[04:34:56] sevenseacat: if it has not been saved, it will continue to post to the create action
[04:36:30] ynonp: has joined #RubyOnRails
[04:36:36] jarray52: has joined #RubyOnRails
[04:36:38] adavia: sevenseacat: what should i need to change here then? http://pastie.org/10283433
[04:36:55] fgo: has joined #RubyOnRails
[04:37:11] adavia: only create microposts
[04:37:14] Aeyrix: to work of course!
[04:37:17] sevenseacat: I don't think users/new is the right template to render there
[04:37:24] sevenseacat: but apart from that, it looks okat.
[04:37:39] sevenseacat: not how I would do it, but okay.
[04:39:51] adavia: sevenseacat: but like i said with that code and having <%= bootstrap_form_for(@micropost, remote: true) do |f| %> then i get this after the first submit Routing ErrorNo route matches [PATCH] "/microposts/50"
[04:40:17] sevenseacat: because the @micropost is saved to the DB with the ID 50
[04:40:35] sevenseacat: so your form is editing an existing micropost, not creating a new one
[04:40:57] adavia: i only want to create posts
[04:41:50] sevenseacat: so dont render the form with an existing post
[04:41:55] Frem: has joined #RubyOnRails
[04:42:02] sevenseacat: where are you defining @micropost before you render the form?
[04:42:02] neanderslob: has joined #RubyOnRails
[04:43:34] chinmay_dd__: has left #RubyOnRails: ()
[04:45:17] mcr-credil: has joined #RubyOnRails
[04:45:55] FCser: has joined #RubyOnRails
[04:46:26] artto: has joined #RubyOnRails
[04:46:28] SPYGAME: has joined #RubyOnRails
[04:48:10] sarink: has joined #RubyOnRails
[04:49:35] dan0034001: has joined #RubyOnRails
[04:49:59] dan0034001: has joined #RubyOnRails
[04:50:51] theery: has joined #RubyOnRails
[04:51:01] willywos: has joined #RubyOnRails
[04:53:32] SteenJobs: has joined #RubyOnRails
[04:53:40] eggoez: has joined #RubyOnRails
[04:58:28] chinmay_dd: has joined #RubyOnRails
[04:58:30] mike___1234: has joined #RubyOnRails
[04:58:44] chrissonar: has joined #RubyOnRails
[04:59:25] dcunit3d: has joined #RubyOnRails
[04:59:49] fgo: has joined #RubyOnRails
[05:03:07] hahuang65: has joined #RubyOnRails
[05:05:45] sarink: has joined #RubyOnRails
[05:06:46] hd1: has left #RubyOnRails: ()
[05:10:26] eggoez: has joined #RubyOnRails
[05:11:32] jesterfraud: has joined #RubyOnRails
[05:14:31] hahuang65: has joined #RubyOnRails
[05:14:54] DanKnox: has joined #RubyOnRails
[05:15:57] dhjondoh: has joined #RubyOnRails
[05:16:44] GriffinHeart: has joined #RubyOnRails
[05:20:58] iamse7en: has joined #RubyOnRails
[05:21:03] giowong: has joined #RubyOnRails
[05:21:24] sarink: has joined #RubyOnRails
[05:21:38] givanse: has joined #RubyOnRails
[05:21:50] giowong: anyone know how to get first day of month with date/time objects?
[05:22:08] giowong: require 'active_support/core
[05:22:19] giowong: _ext' is throwing some deprecation errors
[05:25:48] Limix: has joined #RubyOnRails
[05:26:47] jesterfraud: has joined #RubyOnRails
[05:28:57] earthquake: has joined #RubyOnRails
[05:31:13] rvanlieshout: has joined #RubyOnRails
[05:34:17] eGGsha: has joined #RubyOnRails
[05:34:30] Aswebb_: has joined #RubyOnRails
[05:34:51] sillypog: has joined #RubyOnRails
[05:35:16] ProLoser: has joined #RubyOnRails
[05:35:33] jarray52: has left #RubyOnRails: ()
[05:42:49] tagrudev: has joined #RubyOnRails
[05:45:23] hotpancakes: has joined #RubyOnRails
[05:46:30] icyflame: has joined #RubyOnRails
[05:47:09] artto: has joined #RubyOnRails
[05:50:14] raj___: has joined #RubyOnRails
[05:51:08] FCser: has joined #RubyOnRails
[05:54:14] metus_violarium: has joined #RubyOnRails
[05:57:39] roolo: has joined #RubyOnRails
[05:59:22] konsolebox: has joined #RubyOnRails
[05:59:53] LeoDee: has joined #RubyOnRails
[06:01:55] ivanskie: has joined #RubyOnRails
[06:10:13] arup_r: has joined #RubyOnRails
[06:10:53] Lytol: has joined #RubyOnRails
[06:11:54] ynonp: has joined #RubyOnRails
[06:16:11] bhuvanaurora: has joined #RubyOnRails
[06:17:20] nandx64: has joined #RubyOnRails
[06:17:25] GriffinHeart: has joined #RubyOnRails
[06:17:57] jenrzzz: has joined #RubyOnRails
[06:18:46] siemprefresco: has joined #RubyOnRails
[06:19:48] eGGsha: has joined #RubyOnRails
[06:20:05] Anubix: has joined #RubyOnRails
[06:21:12] mcr-credil: has joined #RubyOnRails
[06:22:49] neilfse: has joined #RubyOnRails
[06:24:05] XCMer: has joined #RubyOnRails
[06:24:21] cfillion: has joined #RubyOnRails
[06:24:46] hahuang65: has joined #RubyOnRails
[06:27:47] solars: has joined #RubyOnRails
[06:30:58] jenrzzz: has joined #RubyOnRails
[06:32:26] FrankD_: blech i had to change my whole schema to use mysql2 from t.references to t.integers
[06:32:41] FrankD_: which meant i had to rename things because "_id" wasnt being appended
[06:32:46] FrankD_: what a bunch of grossness
[06:33:03] rvanlieshout: hmm. i've used references quite often even with mysql2
[06:33:08] sevenseacat: not going to ask why you had to do that
[06:33:25] FrankD_: sevenseacat, nobody had any answers for me
[06:33:34] FrankD_: but it wasnt creating foreign key constraints properly
[06:33:41] tbuehlmann: yeah, references (or belongs_to) should definitively work
[06:33:50] sevenseacat: indeed, references work just fine.
[06:34:10] FrankD_: well im still using belongs_to :P
[06:34:13] FrankD_: https://gist.github.com/fdimitri/1716120b681876b24e9c
[06:34:18] FrankD_: care to tell me what i mightve been doing wrong?
[06:34:35] sevenseacat: can tell you exactly what you're doing wrong
[06:34:50] sevenseacat: you don't have an owners table, so you have to change some of rails auto-inferring magic
[06:35:03] FrankD_: right, instead of ALTER TABLE `directory_entries` ADD CONSTRAINT `fk_rails_026bdd426e`
[06:35:03] FrankD_: FOREIGN KEY (`owner_id`)
[06:35:03] FrankD_: REFERENCES `owners` (`id`)
[06:35:13] sevenseacat: it should reference users, not owners, yep
[06:35:18] FrankD_: it should be ALTER TABLE `directory_entries` ADD CONSTRAINT `fk_rails_026bdd426e`
[06:35:19] FrankD_: FOREIGN KEY (`owner_id`)
[06:35:19] FrankD_: REFERENCES `directory_entries` (`id`)
[06:35:28] FrankD_: well no, directory entry owns a directry entry :p
[06:35:35] FrankD_: self-ownership
[06:35:51] FrankD_: otherwise youd need a join table, which is slower
[06:35:53] tbuehlmann: FrankD_, I meant belongs_to in the migration, not the model. it's an alias for references
[06:35:54] raj___: has joined #RubyOnRails
[06:35:56] sevenseacat: i assumed it was related to the previous migration
[06:36:19] sevenseacat: then yes, thats what it should be. got a copy of the migration that failed?
[06:36:37] FrankD_: tbuehlmann, oh yeah i still have all the belongs_to/has_many stuff
[06:37:13] sevenseacat: it'll need to be changed to use something like this https://github.com/rubysherpas/r4ia_examples/blob/master/ticketee/db/migrate/20150403021520_create_comments.rb
[06:37:29] FrankD_: hmm no, im not using rails, but #ruby was QQing because I was using ActiveRecord and said it was a #rubyonrails question
[06:37:34] FrankD_: when i was like wtf :P im not using rails
[06:37:54] sevenseacat: activerecord comes under the purview of rails, yes.
[06:40:13] FrankD_: https://gist.github.com/fdimitri/1716120b681876b24e9c
[06:40:18] MaDErroR123: has joined #RubyOnRails
[06:40:24] FrankD_: there i put my new migration there, that's what wound up working
[06:40:55] sevenseacat: yeah you could have left the t.references, and just changed the foreign key part
[06:40:59] MaDErroR123: has joined #RubyOnRails
[06:41:01] buffym: has joined #RubyOnRails
[06:41:08] FrankD_: that wouldve saved me some work
[06:41:12] sevenseacat: like the example i posted
[06:41:25] sevenseacat: author is still a reference, but the FK is changed to point to the users table
[06:41:28] FrankD_: i thought it would still try to create what it was creating
[06:42:01] sevenseacat: today you learned, ask questions in the right place :P
[06:42:27] FrankD_: haha well i did ask here, nobody had any idea earlier :D
[06:42:56] sevenseacat: the reason your old code worked in sqlite3 is because AR doesnt support foreign keys at all in sqlite3 - its a noop
[06:42:57] chouhoul_: has joined #RubyOnRails
[06:43:01] luckyruby: has joined #RubyOnRails
[06:43:11] sevenseacat: now that you're using a dbms that actually uses FKs, asplosions
[06:43:44] FrankD_: https://github.com/fdimitri/carbide-server
[06:43:49] FrankD_: im horrible with ruby :p
[06:43:55] sevenseacat: i'll take your word for it
[06:43:57] FrankD_: but im trying to make a collaborative web based IDE
[06:44:56] luckyruby: I've got a query that returns 24k records. Log shows Completed 200 OK in 51316ms (Views: 42507.1ms | ActiveRecord: 3808.3ms). Any tips to speed up rendering of the view?
[06:45:17] sevenseacat: luckyruby: don't render 24000 records in it? :)
[06:45:40] FrankD_: http://imgur.com/u3k4imb
[06:45:41] tbuehlmann: that was fimple
[06:45:45] FrankD_: anyone know a good UX guy? :P
[06:45:54] tbuehlmann: damnit bleeding thumb, don't you type things wrong
[06:46:15] luckyruby: ok, just checking in case there was some low hanging fruit.
[06:46:15] tbuehlmann: hate knives, I'm not made for these
[06:46:17] sevenseacat: FrankD_: sorry, I only know UX people. that was a lil' sexist.
[06:46:29] Anakat: has joined #RubyOnRails
[06:46:35] FrankD_: know any good UX ladies or gents?
[06:46:38] FrankD_: or others?
[06:47:04] Aeyrix: tbuehlmann: heh
[06:47:04] sevenseacat: luckyruby: it's going to be slow no matter what you do, tbh.
[06:47:07] Aeyrix: i used to have a few
[06:47:12] Sylario: has joined #RubyOnRails
[06:47:17] Aeyrix: unfortunately balisongs are illegal in australia
[06:47:21] Aeyrix: so i don't have mine anymore
[06:47:22] luckyruby: I typically say "bye guys" regardless of gender. Is that considered inappropriate?
[06:47:28] Aeyrix: luckyruby: don't open this can of worms
[06:47:35] tbuehlmann: aren't those supposed to safe you from crocodiles and koalas?
[06:47:41] sevenseacat: because then Aeyrix and I will get into another fight
[06:47:41] Aeyrix: tbuehlmann: that's a machete
[06:47:43] Aeyrix: balisongs are
[06:47:48] Aeyrix: "butterfly knives"
[06:47:52] tbuehlmann: see, all the same
[06:48:00] FrankD_: im just glad i got a working collab vty and file drag and drop uploads into the directory tree
[06:48:03] Aeyrix: i kinda wish i could get another
[06:48:08] Aeyrix: luckyruby: the answer is 'yes'
[06:48:52] sevenseacat: I wouldn't say inappropriate, but I would say exclusionary.
[06:48:56] tbuehlmann: future stories about my thumb will involve such a balisongswhateverthatis
[06:49:00] sevenseacat: we're not all guys here.
[06:49:01] Aeyrix: doot doot dootdootdootdoot
[06:49:11] Aeyrix: tbuehlmann: if you get one, ship me one
[06:49:11] FrankD_: .. i had to add mutexes on my createFile/createDirectory/dirExists functions to make it work correctly without creating dupe directories in the db. what a pita.
[06:49:35] FrankD_: only way i could think of to keep everything right though
[06:50:02] sevenseacat: i can smell chlorine... why are my neighbours in their pool in this weather
[06:50:28] Aeyrix: i have one hell of a headache
[06:50:29] tbuehlmann: you could just acompany them
[06:50:33] Aeyrix: vicodin please
[06:50:37] ewitchin: has left #RubyOnRails: ()
[06:50:53] FrankD_: mmm ambien
[06:50:58] FrankD_: im about to do something stupid again
[06:51:01] FrankD_: like buy a second 980 Ti
[06:51:03] Aeyrix: sevenseacat: amusingly i also have leg pain
[06:51:04] tbuehlmann: oh dear, what are we maudlin
[06:51:11] benhuda: has joined #RubyOnRails
[06:51:50] SteenJobs: FrankD_: i???ve coded right through ambien hahah
[06:51:57] Aeyrix: It shows.
[06:52:06] FrankD_: damn 4k monitors take 1.21 gigawatts of GPU to run at decent framerates
[06:52:12] roolo: has joined #RubyOnRails
[06:52:30] tbuehlmann: sounds like a scene from back to the future
[06:52:33] FrankD_: SteenJobs, I have been for the past hour or so
[06:52:35] SteenJobs: +100 for the BTTF reference
[06:52:52] SteenJobs: FrankD_: haha that???s great. my doc didn???t believe me???clearly he doesn???t know what it???s like to code.
[06:52:52] Aeyrix: Once you hit 88fps...
[06:52:56] artto: has joined #RubyOnRails
[06:53:11] FrankD_: i take.. interesting tacts while coding on ambien
[06:53:23] Aeyrix: i try not to drive my computer under the influence
[06:53:46] GriffinHeart: has joined #RubyOnRails
[06:53:58] tbuehlmann: don't drink and dependency inject?
[06:54:07] SteenJobs: keep it going
[06:54:17] FrankD_: i just had to hack the crap out of flow.js, which is a multipart file chunk uploader so it would tell the server which directory you dragged a file/directory into
[06:54:22] raj___: has joined #RubyOnRails
[06:54:48] SteenJobs: FrankD_: you feel a slight cognitive decline but then power right through. it???s weird cuz you???re totally self aware that your brain isn???t revving with full force
[06:55:03] FrankD_: and of course write a webrick implementation for the server side to handle uploading files since i couldnt figure a good way to do it through websockets :P
[06:55:21] Aeyrix: actionpack!
[06:55:24] Aeyrix: or whatever the fuck it's called
[06:55:27] Aeyrix: actioncable?
[06:55:39] SteenJobs: actionfigures?
[06:55:46] FrankD_: actionpack?
[06:55:47] sevenseacat: lightscameraaction?
[06:55:53] FrankD_: bitchin technology
[06:55:57] SteenJobs: sevenseacat: so how???s the iOS progress coming along :P
[06:56:03] FrankD_: sorry, SNL celeb jeopardy reference
[06:56:03] alphaatom: has joined #RubyOnRails
[06:56:16] SteenJobs: but but but
[06:56:22] Aeyrix: Elixir is
[06:56:26] cswelin: has joined #RubyOnRails
[06:56:28] Aeyrix: not for iOS
[06:56:34] sevenseacat: I dont even use iOS
[06:56:45] SteenJobs: haha the other day i was saying i wish there were analogues of you guys in the iphonedev channel
[06:56:46] bonhoeffer: has joined #RubyOnRails
[06:56:48] FrankD_: i honestly dont know how my project functions
[06:56:51] sevenseacat: yeah I know :P
[06:56:57] SteenJobs: 1) the channel would be much more entertaining
[06:56:57] sevenseacat: FrankD_: thats a bit worrying
[06:57:05] SteenJobs: 2) there would actually be answers to my questions that worked.
[06:57:08] eGGsha: has joined #RubyOnRails
[06:57:23] FrankD_: sevenseacat, well i dont know WHY it continues to function and behave nicely
[06:57:28] Aeyrix: Have you considered that
[06:57:36] Aeyrix: the reason why we have an entertaining and helpful channel
[06:57:38] FrankD_: i figured with my ruby skills itd be even more horribly convoluted by now :p
[06:57:43] Aeyrix: is because we don't develop for iPhone? :^)
[06:57:51] SteenJobs: Aeyrix: hey hey, i wish i was developing rails
[06:57:52] FrankD_: (ie I had basically none before I started this)
[06:57:59] SteenJobs: Aeyrix: so far the iOS SDK has been a nightmare
[06:58:17] SteenJobs: Aeyrix: but got an awesome opportunity with a brand new startup and it???s an iOS app.
[06:58:31] SteenJobs: Aeyrix: the worst part? there???s a server component and it???s built with???.Django
[06:58:51] luckyruby: anyone here go to Railsconf this year?
[06:59:40] choke: has joined #RubyOnRails
[07:00:38] michael_mbp: has joined #RubyOnRails
[07:00:56] Aeyrix: SteenJobs: soft jej
[07:00:58] Aeyrix: Django is
[07:01:02] Aeyrix: okay, for a python project
[07:01:09] Aeyrix: looking back at python now though
[07:01:12] Aeyrix: i can barely read it
[07:01:30] FrankD_: thats ok, i bet you could barely read my ruby code
[07:01:40] Aeyrix: not right now
[07:01:45] SteenJobs: Aeyrix: so the python doesn???t bother me much
[07:01:49] bonhoeffer: has joined #RubyOnRails
[07:01:49] SteenJobs: Aeyrix: but django compared to rails does
[07:02:08] SteenJobs: Aeyrix: every single thing i encounter in the app i can???t help but think ???if only this was rails???
[07:02:12] Aeyrix: i realised why i feel so garbage
[07:02:18] Aeyrix: i've been up for like three days
[07:02:20] SteenJobs: Aeyrix: you forgot to sleep
[07:02:34] Aeyrix: > so tired i forgot why i'm tired
[07:02:38] rodfersou: has joined #RubyOnRails
[07:02:40] nickenchuggets: has joined #RubyOnRails
[07:02:44] Aeyrix: didn't forget, just had *A LOT* going on
[07:02:46] SteenJobs: dude, i???m in the same boat. 3 all nighters this week with this iOS app since we did a soft launch.
[07:02:47] Aeyrix: it was more important than sleeping
[07:02:52] Aeyrix: wow rough
[07:03:28] SteenJobs: Aeyrix: trying to learn iOS as fast as i can while simultaneously studying the code i inherited
[07:03:45] SteenJobs: i miss rails :(
[07:03:50] FrankD_: I should move back to references instead of integers and just keep the foreign key assocs i wrote?
[07:03:59] rvanlieshout: SteenJobs: using swift?
[07:04:04] SteenJobs: rvanlieshout: yessir
[07:04:06] sevenseacat: silly heads, the lot of you
[07:04:20] SteenJobs: sevenseacat: if i slept i???d never be able to get your insights
[07:04:36] sevenseacat: if I don't get my 7-8 hours I turn into even more of a crankypants
[07:04:50] tbuehlmann: I wonder what people turn up in here when I go to sleep..
[07:04:51] SteenJobs: rvanlieshout: it was pretty natural to pickup coming from Ruby. It seems like there aren???t hugely profound differences between the big OO languages.
[07:04:53] rvanlieshout: let's all hope that doesn't happen too often then :)
[07:04:56] FrankD_: i have to move the whole client side of my project into rails.. its currently a semi-monolithic mess of dynamically rewritten content through PHP
[07:04:59] sevenseacat: rvanlieshout: :P
[07:05:02] luckyruby: sevenseacat: if I don't get sleep, I get really bad anxiety :(
[07:05:09] sevenseacat: luckyruby: I get that anyway
[07:05:13] rvanlieshout: SteenJobs: well. i believe they are inspired by it
[07:05:30] SteenJobs: rvanlieshout: makes sense. ruby is as dope as it gets :)
[07:05:33] FrankD_: who knew making a functioning GUI would be so hard :P
[07:05:36] XCMer: has joined #RubyOnRails
[07:05:47] sevenseacat: ACTION raises hand
[07:06:01] sevenseacat: GUI apps are evil to create.
[07:06:10] sevenseacat: and the ruby tooling aint so great.
[07:06:39] robertfalken: has joined #RubyOnRails
[07:06:56] luckyruby: SteenJobs: what company do you work for?
[07:07:22] SteenJobs: luckyruby: they???re brand brand new, i???m numero 3???and the only dev. do you have an iphone?
[07:07:36] FrankD_: good thing theres so much MIT licensed JS crap out there! :P
[07:07:36] luckyruby: yea, iphone 6
[07:07:45] SteenJobs: luckyruby: checkout mojilab keyboard in the appstore.
[07:07:47] FrankD_: writing a VTY emulator for a browser from scratch wouldve sucked hard
[07:08:08] comrad: has joined #RubyOnRails
[07:08:12] ekem: calling unicode emoji, not even once
[07:08:19] SteenJobs: not unicode
[07:08:33] ekem: keep telling yourself that
[07:08:47] SteenJobs: basically we create real-time trending content based on current events, trending movies, tv shows, etc.
[07:09:06] SteenJobs: all integrated as a custom keyboard extension for the iphone
[07:09:16] ekem: you lost me at iphone
[07:09:24] SteenJobs: i lurvvv mac
[07:09:28] ekem: im sorry.
[07:09:53] FrankD_: so ruby vs node.js.. opinions? I kind of just picked Ruby because I was like ooh shiny threads
[07:10:04] SteenJobs: btw in case anyone is looking for a way to gather data and has no patience for writing a web crawler, i???ve been using import.io and it???s incredible.
[07:10:04] ekem: they do different things FrankD_
[07:10:10] ekem: rails is a web framework
[07:10:18] FrankD_: well i said ruby, no RoR
[07:10:21] ekem: node.js is a way to run js serverside
[07:10:22] luckyruby: FrankD_: I like node.js as small apps.
[07:10:51] FrankD_: anyone here done any webRTC stuff?
[07:11:00] luckyruby: FrankD_: I have
[07:11:05] SteenJobs: iOS needs to get their callbacks shit together. where???s my ???before_action????!
[07:11:08] tbuehlmann: I like my server side nodejs as I like my <something else>, I don't like <something else>
[07:11:11] FrankD_: luckyruby, got any good links for me?
[07:11:17] robertfalken: nodejs vs ruby, i guess it depends on what you want to build
[07:11:20] luckyruby: no, i think webrtc is going to fail
[07:12:50] FrankD_: robertfalken, say a websockets based server for a collaborative IDE :P
[07:13:06] luckyruby: FrankD_: http://ortc.org/
[07:13:08] michael_mbp: has joined #RubyOnRails
[07:13:35] FrankD_: honestly it made some things a lot harder, there's a lot of stuff out there that i had to write the server side from scratch when there were good node.js examples
[07:14:20] robertfalken: FrankD_: nodejs is still my go to for anything sockets :) but other than that, and really small web applications or cli tools, i probably go with ruby more often than I should, simply because i love how beautiful it is
[07:14:43] FrankD_: heh really it feels so.. sloppy to write in :p
[07:15:21] FrankD_: luckyruby, hmm
[07:16:19] blackmesa: has joined #RubyOnRails
[07:18:01] aganov: has joined #RubyOnRails
[07:18:23] gremax: has joined #RubyOnRails
[07:18:28] krokuz__: has joined #RubyOnRails
[07:18:29] darutoko: has joined #RubyOnRails
[07:21:27] Aeyrix: OS X user here. Fight me.
[07:22:27] Aeyrix: FrankD_: I detest NodeJS.
[07:22:32] srinidhi: has joined #RubyOnRails
[07:22:58] SteenJobs: Aeyrix: yeaaa bro. what comp do you use?
[07:23:04] MaDErroR123: has joined #RubyOnRails
[07:23:07] Aeyrix: Right now, 13" MBP.
[07:23:10] Aeyrix: Home is a 27" iMac.
[07:23:16] Aeyrix: Phone is a HTC One. :^)
[07:23:40] SteenJobs: *27??? imac is dope though
[07:23:52] Aeyrix: Got it yesterday.
[07:23:57] SteenJobs: Aeyrix: just picked up the new 15??? MBP, i???m still giddy about it
[07:24:05] Aeyrix: SteenJobs: I have a 15" at home.
[07:24:08] Aeyrix: 13" is for work.
[07:24:17] Aeyrix: I managed to spill coffee on it within like six months.
[07:24:22] sevenseacat: i like the hardware of my 13" MBP.
[07:24:30] SteenJobs: Aeyrix: oh nice. yea i got this for work and home. needed an upgrade from my 2011 air. 4GB ram -> 16GB ram
[07:24:31] sevenseacat: apart from the keyboard.
[07:24:40] Aeyrix: sevenseacat: I hear mixed reviews of the keyboard.
[07:24:47] Aeyrix: I really like it, a lot of people don't.
[07:24:54] Aeyrix: Don't like chiclet?
[07:25:33] sevenseacat: i dont like the rearranged ctrl/alt/cmd buttons, and no home/end/page up/page down
[07:25:42] Aeyrix: My iMac has the fullsize keyboard with all those.
[07:26:04] SteenJobs: Aeyrix: what???s it like coding on a 27??? screen with retina display?
[07:26:05] krz: has joined #RubyOnRails
[07:26:07] Aeyrix: SteenJobs: http://i.imgur.com/DdykFF2.png
[07:26:13] Aeyrix: interesting
[07:26:20] Trefex: has joined #RubyOnRails
[07:26:20] sevenseacat: the cmd button is in such an awkward place imo.
[07:26:23] Aeyrix: it's like coding in a cinema
[07:26:33] SteenJobs: haha that???s amazing!
[07:27:05] Aeyrix: Runs Yosemite, gonna upgrade to El Capitan on Saturday.
[07:27:10] Aeyrix: And a bunch of Linux VMs.
[07:27:32] GriffinHeart: has joined #RubyOnRails
[07:28:09] skroon: has joined #RubyOnRails
[07:28:16] dhjondoh: has joined #RubyOnRails
[07:29:22] edwinvdgraaf: has joined #RubyOnRails
[07:29:43] livathinos: has joined #RubyOnRails
[07:30:03] SteenJobs: Aeyrix: that???s awesome. any particular apps that you???re fond of?
[07:30:20] SteenJobs: Aeyrix: yea
[07:30:25] Aeyrix: Textual 5 for IRC
[07:30:29] Aeyrix: Atom text editor
[07:30:38] Aeyrix: VirtualBox for VMs
[07:30:46] SteenJobs: i use sublime, i really like all the plugins
[07:30:47] Aeyrix: homebrew for everything else :P
[07:30:53] SteenJobs: yea homebrew obvs
[07:30:59] Aeyrix: I'm not paying $70 for a text editor
[07:31:05] SteenJobs: i didn???t pay anything...
[07:31:13] Aeyrix: the nag screen pisses me off
[07:31:13] SteenJobs: it was free from their site?
[07:31:14] Aeyrix: so i just use atom
[07:31:21] rvanlieshout: i don't mind paying for software that i use
[07:31:30] Aeyrix: rvanlieshout: i pay for github
[07:31:32] rvanlieshout: good things just aint free
[07:31:33] Aeyrix: and github made atom
[07:31:38] tbuehlmann: I payed for sublime, and I'm happy about that. it's a tool I use regularly, why not pay for and support it?
[07:31:39] ekem: https://pbs.twimg.com/media/CE0Jp9_WMAI6eZB.png:large
[07:31:42] sevenseacat: given i've been using sublime text at least six hours a work day for the past five years
[07:31:48] sevenseacat: I think $70 is a tiny price
[07:32:03] ekem: deny vim and fail hard
[07:32:03] Aeyrix: sevenseacat: relative to other tools
[07:32:05] Aeyrix: in the same category
[07:32:09] Aeyrix: i can't justify the price
[07:32:20] SteenJobs: money doesn???t grow on trees ya know
[07:32:37] sevenseacat: the only other tool at the time comparable was textmate, which was a similar price
[07:32:52] edwinvdgraaf: has joined #RubyOnRails
[07:32:54] rvanlieshout: Aeyrix: sure can, if it saves you enough time
[07:32:56] sevenseacat: and didnt have as awesome a plugin system
[07:33:02] Aeyrix: rvanlieshout: which it doesn't
[07:33:11] rvanlieshout: then it's not the right tool for you
[07:33:14] rvanlieshout: and you shouldn't buy it
[07:33:18] Aeyrix: so i don't pay for it
[07:33:22] Aeyrix: congratulations, you argued with me to ultimately agree with me
[07:33:41] SteenJobs: oh coders and their tech
[07:33:42] sevenseacat: well that conversation made no sense.
[07:33:51] rvanlieshout: some people just want everything for free
[07:34:15] krokuz_: has joined #RubyOnRails
[07:34:19] Silox|: has joined #RubyOnRails
[07:34:22] edwinvdg_: has joined #RubyOnRails
[07:34:26] Aeyrix: > use proprietary operating system
[07:34:35] Aeyrix: > use proprietary irc client because it's subjectively the nicest
[07:34:37] sevenseacat: I dont want the flakiness of a browser in my editor
[07:34:39] Aeyrix: > i want everything for free
[07:34:53] adac: has joined #RubyOnRails
[07:34:59] SteenJobs: > deserves free things since paid for 27??? imac
[07:35:14] Aeyrix: i get some stuff for free as a result of the imac tho
[07:35:20] rvanlieshout: Aeyrix: what irc client?
[07:35:21] Aeyrix: like i don't have to pay for all my apps again
[07:35:23] SteenJobs: like free attention?
[07:35:24] Aeyrix: rvanlieshout: textual 5
[07:35:27] Aeyrix: SteenJobs: ye
[07:35:33] Aeyrix: my girlfriend comes around more now
[07:35:34] Aeyrix: due to imac
[07:35:37] GPrime: has joined #RubyOnRails
[07:35:59] Trefex: has joined #RubyOnRails
[07:37:14] hotpancakes: has joined #RubyOnRails
[07:39:30] srinidhi: has joined #RubyOnRails
[07:40:31] Aswebb_: has joined #RubyOnRails
[07:41:52] Hates_: has joined #RubyOnRails
[07:42:03] teedex: has joined #RubyOnRails
[07:42:04] Hates_: has joined #RubyOnRails
[07:43:17] Polysics: has joined #RubyOnRails
[07:43:37] Polysics: why does it look like that I am missing the tidy_bytes method in my application?
[07:43:52] teedex_: has joined #RubyOnRails
[07:43:54] Polysics: we deal with some shady CSV data and need to normalize it to UTF8
[07:44:46] rvanlieshout: cause it's a plain ruby string
[07:45:35] rvanlieshout: and not a mb_chars-thing-ish?
[07:47:11] Polysics: rvanlieshout: thanks, the documentation is not exactly obvious on that :)
[07:47:20] DEA7TH: has joined #RubyOnRails
[07:47:27] LearningCN: has joined #RubyOnRails
[07:47:31] DEA7TH_: has joined #RubyOnRails
[07:48:15] rvanlieshout: i'm also not fully sure about that though
[07:48:53] ndrei: has joined #RubyOnRails
[07:51:41] Polysics: it looks like it makes the string into some weird hybrid :)
[07:52:27] tomoyuki28jp: has joined #RubyOnRails
[07:55:14] tomoyuki28jp: When I use bower-rails, asset precompile always fails on CentOS server with this error: 'ExecJS::ProgramError: Unexpected token: eof (undefined) (line: 46, col: 0, pos: 1394)'. The wired thing is asset precompile works fine on my mac. Any idea why? I tried both of node.js and RubyRacerRuntime on my centos server.
[07:55:41] arBmind: has joined #RubyOnRails
[07:56:05] tomoyuki28jp: I've been struggling with this about a week so far...
[07:56:07] eminencehc_: has joined #RubyOnRails
[07:56:38] webdestroya: has joined #RubyOnRails
[07:57:59] DoubleMalt: has joined #RubyOnRails
[07:58:38] exadeci: has joined #RubyOnRails
[07:58:44] hololeap: has joined #RubyOnRails
[08:00:18] Polysics: I try to stay as far away from the whole JS build chain as it is feasible :)
[08:01:36] rushed: tomoyuki28jp: give up? (ie remove centos, precompiling on the server, or bower-rails from the equation)
[08:02:47] tomoyuki28jp: rushed: If I don't uglify js assets, precompile works on server too :(
[08:03:37] x-light: has joined #RubyOnRails
[08:07:02] tomoyuki28jp: rushed: Any advice?
[08:07:28] rushed: tomoyuki28jp: sure, remove centos, precompiling on the server, bower-rails, our uglify from the equation
[08:07:55] rushed: tomoyuki28jp: I mean a week is a long time, if you haven't found a solution already...
[08:09:44] tomoyuki28jp: rushed: Thanks
[08:10:27] tomoyuki28jp: Since precompile work on my local machine, using asset_sync is one solution.
[08:10:51] Anubix: has left #RubyOnRails: ()
[08:12:08] krz: has joined #RubyOnRails
[08:12:10] eGGsha: has joined #RubyOnRails
[08:12:53] Anubix1: has joined #RubyOnRails
[08:13:16] axl_: has joined #RubyOnRails
[08:13:30] Anubix1: What you prefer to use with rails, LESS or SASS?
[08:14:20] raj___: has joined #RubyOnRails
[08:14:24] Trefex: has joined #RubyOnRails
[08:22:54] rickmasta: has joined #RubyOnRails
[08:25:41] Ergo: has joined #RubyOnRails
[08:26:40] noodman: has joined #RubyOnRails
[08:26:53] mingsheng: has joined #RubyOnRails
[08:28:01] dcunit3d: has joined #RubyOnRails
[08:30:48] Polysics: SASS works, LESS works... less.
[08:30:49] bruno-: has joined #RubyOnRails
[08:31:01] Polysics: sass has less dependencies on the yucky JS chain
[08:32:04] lxsameer: has joined #RubyOnRails
[08:32:04] lxsameer: has joined #RubyOnRails
[08:32:41] Anubix1: well okey :)
[08:32:58] tomoyuki28jp: I've created a github issue for bower-rails https://github.com/rharriso/bower-rails/issues/154
[08:34:08] bonhoeffer: rails 4 best practice for nested resource in controller (just before_filter to look up primary resource?)
[08:34:31] sevenseacat: bonhoeffer: seems legit.
[08:35:17] bonhoeffer: how i used to do it, wasn???t sure if there was a new method developed in the last 2 years since i???ve done nested resources
[08:36:11] bonhoeffer: what is the diff: before_actiona and before_filter
[08:36:19] sevenseacat: in rails 4, nothing.
[08:36:36] microdex: has joined #RubyOnRails
[08:36:43] bonhoeffer: got it ??? thanks
[08:37:24] chinmay_dd: has joined #RubyOnRails
[08:38:29] blackmesa: has joined #RubyOnRails
[08:41:31] hahuang65: has joined #RubyOnRails
[08:44:02] livathinos: has joined #RubyOnRails
[08:45:46] edwinvdgraaf: has joined #RubyOnRails
[08:45:58] krz: has joined #RubyOnRails
[08:47:05] gremax: has joined #RubyOnRails
[08:47:52] yfeldblum: has joined #RubyOnRails
[08:49:18] yfeldblum: has joined #RubyOnRails
[08:52:51] glaksmono_: has joined #RubyOnRails
[08:53:03] glaksmono_: anyone is using this gem? http://www.rubydoc.info/gems/health_check/1.5.1
[08:53:24] jamey-uk: has joined #RubyOnRails
[08:53:51] brazenbraden: has joined #RubyOnRails
[08:57:01] Anubix1: has left #RubyOnRails: ()
[08:58:41] ndrei: has joined #RubyOnRails
[09:01:05] brazenbraden: Hi guys. A little stuck. I have a model concern included in a model inside one of my engines and all works fine but rspec complains saying it cant find it (uninitialized constant). This is the gist: https://gist.github.com/brazenbraden/e3221034ba4877fabf1d
[09:02:26] marr: has joined #RubyOnRails
[09:02:28] Cork: i have a none resource route and need to generate an url for it (with params) is concating a string the only way or is there anything one can use beside url_for?
[09:02:51] edwinvdgraaf: has joined #RubyOnRails
[09:03:13] rvanlieshout: Cork: what have you tried in your url_for
[09:03:41] Cork: well as it isn't a resource i can't use controller, so i've looked for another hash option
[09:03:44] Cork: but can't find one
[09:03:56] Cork: giving url_for(string) works, but then it has no point
[09:04:00] Cork: as i still can't get the params in there
[09:04:14] chinmay_dd: has joined #RubyOnRails
[09:04:33] rvanlieshout: you can always use controller
[09:04:36] rvanlieshout: you could also give it a name
[09:04:56] Cork: what name should i give it when there isn't a controller for the path?
[09:05:16] rvanlieshout: !gist your routes
[09:05:16] helpa: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[09:05:21] rvanlieshout: and what you've tried
[09:05:58] Cork: well i've tried controller: "login", action: "index" but it fails as the route doesn't exist
[09:06:07] helpa: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[09:06:25] Cork: get "/:target_controller(/:target_action(/:target_id))", to: "clients#type"
[09:06:35] rvanlieshout: so give that a name
[09:06:45] Cork: what name?
[09:06:45] rvanlieshout: then use foobar_path(other params)
[09:06:56] Cork: but there is no foobar...
[09:06:58] rvanlieshout: clients_type_path
[09:07:05] Cork: but that isn't the path
[09:07:16] rvanlieshout: get "...", to: "..", as: :clients_type
[09:07:27] rvanlieshout: clients_type_path(target_id: 3, foo: :bar)
[09:07:45] Cork: ok then where do i enter the target_controller and action?
[09:08:11] Cork: cleints_type_path(target_controller: "login", target_action: "index) ?
[09:08:11] brazenbraden: to: 'controller#action'
[09:08:20] rvanlieshout: maybe you need to read the rails guides about routing
[09:08:23] bronson: has joined #RubyOnRails
[09:08:31] Cork: your missing what the route does
[09:08:55] rvanlieshout: open action type on clients controller
[09:09:19] x44x45x41x4E: has joined #RubyOnRails
[09:10:15] brazenbraden: So how do I get my application wide concern which is included inside an engine to be found by rspec when running tests within the engine?
[09:10:43] edwinvdgraaf: has joined #RubyOnRails
[09:11:19] chinmay_dd: has joined #RubyOnRails
[09:11:34] edwinvdg_: has joined #RubyOnRails
[09:14:28] SteenJobs: has joined #RubyOnRails
[09:15:16] Detch: has joined #RubyOnRails
[09:16:03] arup_r: has joined #RubyOnRails
[09:18:48] solars: hi, if I use connection.executed is there a way to get a hash with field/row names (from the select)
[09:19:04] brazenbraden: I tried including the concern inside the engine with include ::Applicable (it was just include Applicable before - which works fine in practice but rspec complained uninitialised constant Contactmod::Contact::Applicable which is the incorrect "path") and now it just says uninitialised constant Applicable. I have told my dummy app to autoload the concern files but that has made no difference..)
[09:21:34] jeromelanteri: problem: i need to read image from dragonfly upload (but ok... nop), but i need to do this from nested linked with cocoon. then for do that, i think about give a special id name (same as a cell id name input...). then i need, from the view (or helper) to read the auto-generate id of the previous input. how to do that ?
[09:23:48] jeromelanteri: the id name of the input file_field is like travail_photos_attributes_0_photo. And then this come from travail[photos_attributes][0][photo] .... who is the table where the pivture is from.
[09:25:07] jeromelanteri: but when the form call it, how to find/read it ? f.object.title give me the title... f.input is a method form... is ther any method to call for read this data, and maybe transform with regex from helper ?
[09:28:12] dionysus69: has joined #RubyOnRails
[09:28:54] ProLoser: has joined #RubyOnRails
[09:31:05] ndrei: has joined #RubyOnRails
[09:31:29] bruno-: has joined #RubyOnRails
[09:32:44] eGGsha: has joined #RubyOnRails
[09:33:07] dANO-: has joined #RubyOnRails
[09:33:54] DEA7TH_: has joined #RubyOnRails
[09:34:47] fighella: has joined #RubyOnRails
[09:35:39] bin_005: has joined #RubyOnRails
[09:35:41] teedex: has joined #RubyOnRails
[09:37:27] microdex: has joined #RubyOnRails
[09:41:35] brazenbraden: blegh, maybe testing isnt all that important.
[09:45:03] arup_r: has joined #RubyOnRails
[09:45:44] x44x45x41x4E: has left #RubyOnRails: ("Away, for now.")
[09:46:57] livathinos: has joined #RubyOnRails
[09:48:15] raj___: has joined #RubyOnRails
[09:48:40] TheCuriousGuy: has joined #RubyOnRails
[09:49:45] xlogic: has joined #RubyOnRails
[09:50:58] jeromelanteri: is there a channel for javascript f...ing regex ?
[09:51:06] raj___: has joined #RubyOnRails
[09:51:34] SteenJobs: has joined #RubyOnRails
[09:52:04] BaNzoun3t: Hey, using haml in the view, is it possible to set multiple prop with only one condition? insted of having to write this %fieldset{disable: (true if foo), class: ('hidden' if foo)} ?
[09:53:02] edwinvdgraaf: has joined #RubyOnRails
[09:53:07] universa1: BaNzoun3t: if foo; %fieldset.hidden{disable: true}
[09:53:23] jeromelanteri: because this: /([a-z]*)\]\[([a-z_]*)\]\[([0-9]*)\]\[([a-z]*)/.exec(input.name); with input name = travail[photo_attributes][05454][photo], as to give me back each part chars srting without [ or ], but not... why ?
[09:54:13] jeromelanteri: BaNzoun3t: i think not, this seems to be the short way.
[09:54:58] jk_scowling: has joined #RubyOnRails
[09:55:51] microdex: has joined #RubyOnRails
[09:55:56] Anubix1: has joined #RubyOnRails
[09:56:46] Anubix1: When i use bootstrap in rails and in header use: <%= javascript_include_tag 'application', media: 'all', 'data-turbolinks-track' => true %> then in source is maybe 14 rows of bootstrap parts, which i dont use at all
[09:57:06] Anubix1: is there some chance to include only parts which i work with?
[09:57:46] universa1: jeromelanteri: \[([\w_]+)\]\[([\w_]+)\]\[([\w_]+)\]
[09:58:30] universa1: Anubix1: yes. read the docs for whatever bootstrap integration you use. there usually is a bootstrap file which lists all components.
[09:59:21] Anubix1: unversa1: And then i should include it manually with script src="" or there is some ROR asset?
[09:59:21] brazenbraden: maybe im not googling for the right keywords but I'm not finding anything to help with rspec finding my application wide concerns used inside of engine models :( https://gist.github.com/brazenbraden/e3221034ba4877fabf1d
[09:59:35] BaNzoun3t: universa1: I don't really want to write if ... %fieldset.hidden{} else % fieldset it feels wrong :s, is it possible to have a helper returing the properies?
[09:59:44] jarr0dsz: has joined #RubyOnRails
[10:00:27] universa1: Anubix1: no. you define it in your assets. where you now have require bootstrap, you write your own file, which requires all components you want.
[10:00:48] universa1: the base bootstrap file is basically just a large file with requires / includes / imports...
[10:00:54] brazenbraden: BaNzoun3t, what about using a decorator? Helpers sit in the global namespace so not the best option.
[10:01:37] Anubix1: universa1: OK thank you
[10:02:43] universa1: BrazenBraden: your engine knows nothing about your base application. if you have dependencies that way you basically hard-connected both which remove the benefit of having encapsulated engines, which are seperateable.
[10:03:05] eGGsha: has joined #RubyOnRails
[10:03:26] blackhuey: has joined #RubyOnRails
[10:03:27] jeromelanteri: universa1: no... it not catch words. Looks like \]\[ kill the process.
[10:03:44] Anubix1: has left #RubyOnRails: ()
[10:03:47] universa1: BrazenBraden: so application can have dependencies on engine, but engine is a stand-alone piece, which has no dependencies to your application
[10:03:58] universa1: jeromelanteri: the regular expression works for me. i tried it on rubular.com ...
[10:03:58] jeromelanteri: it give me back same : ]___
[10:04:17] brazenbraden: universa1, this is true.. the engines were never meant to be used independantly.. just used them to keep some of the related stuff together (its bad i know)
[10:04:53] jeromelanteri: wrong, your regexp can not works for: travails[photos_attributes][016354][photo], try it really.
[10:05:10] universa1: jeromelanteri: i did.
[10:05:19] universa1: jeromelanteri: https://regex101.com/#javascript
[10:05:19] jeromelanteri: first you not catch 'travail', then you not catch numbers too...
[10:05:30] hotpancakes: has joined #RubyOnRails
[10:05:51] universa1: jeromelanteri: you enver clearly said what you wnated to match... i just adopted from your regex.
[10:05:53] brazenbraden: universa1, by having 'require File.expand_path(Rails.root.join("config", "environment"), __FILE__)' in the rails_helper, wouldnt that in effect allow the engine to see whats in the rest of the app?
[10:06:03] universa1: BrazenBraden: i've no clue.
[10:06:38] brazenbraden: universa1, hmm ok.. what about manually requiring the concerns? (will try it)
[10:06:52] universa1: jeromelanteri: (\w+)\[([\w_]+)\]\[([\w_]+)\]\[([\w_]+)\] -- now it has a match with 4 groups...
[10:07:13] universa1: jeromelanteri: https://regex101.com/r/eX4hH4/1
[10:08:05] universa1: BrazenBraden: no clue, not using concerns.
[10:09:48] jeromelanteri: yes, this tool help me a lot, thanks. i have it... i go try on code.
[10:10:04] brazenbraden: universa1, ok, ignoring the "concern" bit, what about if just standard libs or classes in say, a /app/libs folder or something?
[10:10:26] universa1: BrazenBraden: do not require them from an engine...
[10:10:43] universa1: BrazenBraden: engines are usually gems, so they have no clue about apps code.
[10:11:01] Axy: has joined #RubyOnRails
[10:11:01] Axy: has joined #RubyOnRails
[10:11:05] blackmes1: has joined #RubyOnRails
[10:11:10] brazenbraden: universa1, i know that is how it should be....
[10:11:22] Lightsword_: has joined #RubyOnRails
[10:11:24] universa1: BrazenBraden: if you need that stuff in multiple engines, extract it into a gem and depend on that in each engine.
[10:12:02] brazenbraden: universa1, hmm interesting idea.. its needed in pretty much every model in the entire application
[10:12:37] raj___: has joined #RubyOnRails
[10:13:18] gaussblurinc1: has joined #RubyOnRails
[10:13:47] nso95: has joined #RubyOnRails
[10:15:12] jeromelanteri: universa1: and how to read this: travail[phtoso_attributes][2552][photo] inside a partial form from view (or from helpers) ?
[10:15:27] DEA7TH_: has joined #RubyOnRails
[10:15:31] jeromelanteri: this has to be an id...
[10:15:42] universa1: jeromelanteri: what are you actually trying to do?! ...
[10:16:50] gaussblurinc1: what advantages has 'has_many_and_belongs_to' approach over 'join model' approach ? Join models give me another space where I could put ids of joined models and also methods ( like scopes ). Am I missing something else?
[10:17:17] universa1: gaussblurinc1: you use a join model, if the join needs / has logic.
[10:17:21] jeromelanteri: i have a simple_form, with nested model, this nested model includ photo and method for upload picture file. then for exermple, when i add a nested form (model named photo) from artcile (model article named "travail"), i would like to preview the photro i upload from this nested div part.
[10:17:45] universa1: gaussblurinc1: you use habtm if you want just a plain many-to-many association.
[10:18:14] universa1: jeromelanteri: so preview it after it has been submitted to the server?
[10:18:16] jeromelanteri: then for preview (render the picture) it, i have to put it inside an named id.
[10:18:38] jeromelanteri: yes... this works fine only for one nested added at a time...
[10:18:56] jeromelanteri: if i add twio or more, the preview stay in the "new" id one.
[10:19:20] jeromelanteri: then i need each time to name an idea with unic name.
[10:19:40] universa1: jeromelanteri: i think you don't actually need ids. the preview place is unique for each nested photo?
[10:19:45] ndrei: has joined #RubyOnRails
[10:20:51] krz: has joined #RubyOnRails
[10:20:55] jeromelanteri: the place is unique, but how to localise it from javascript ? if no ids. Then, for 'old' pictures allready added and submited, the cocoon generate automatically ids for each... so ...
[10:21:14] helpa: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[10:21:14] DoctorMonocular: has joined #RubyOnRails
[10:21:21] jeromelanteri: i just try to do same method as cocoon ... but it is a pain for me.
[10:21:25] edwinvdgraaf: has joined #RubyOnRails
[10:21:31] brazenbraden: Why does rspec want a dummy app when I have the actual app sitting there?
[10:22:24] metus_violarium: has joined #RubyOnRails
[10:22:38] universa1: BrazenBraden: because you're doing it wrong? :p again your engine has no access to your actual app. you can surely change the reference to the actual app.
[10:22:47] universa1: or just symlink your dummy app folder, to your main folder.
[10:23:08] yashinbasement: has joined #RubyOnRails
[10:24:02] brazenbraden: universa1, everything is wrong :S This is what happens when you follow the YOLO design principles..
[10:24:18] tagrudev: that's how it's supposed to work
[10:24:18] metus_violarium: has joined #RubyOnRails
[10:24:50] SteenJobs: has joined #RubyOnRails
[10:24:51] jeromelanteri: https://gist.github.com/jerome2/19bcf40ef138d72ee5d4
[10:25:00] metus_violarium: Hello. Does somebody want to make with me opensource project no matter what? :D
[10:25:14] chipotle: has joined #RubyOnRails
[10:25:32] universa1: jeromelanteri: !gist-usage -- for future reference.
[10:25:32] helpa: jeromelanteri: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.markdown
[10:26:08] brazenbraden: tagrudev, it was fun but I may have to put your design principles to bed now :(
[10:26:33] jeromelanteri: helpa: ok thanks, i have to read it quiet for learn this way to do well.
[10:26:42] tagrudev: it's hard you know :D
[10:26:58] MaDErroR123: has joined #RubyOnRails
[10:27:00] brazenbraden: i do.. been holding on to them hard for 2 years
[10:27:10] brazenbraden: grown attached
[10:27:36] adre: has joined #RubyOnRails
[10:27:37] jeromelanteri: maybe my problem from javascript come from a bad techic of selection...
[10:27:52] vigintas: has joined #RubyOnRails
[10:28:20] blackmes1: has joined #RubyOnRails
[10:28:29] universa1: jeromelanteri: %img.preview; in your js look for siblings .image -> img.preview --> render the preview there
[10:28:46] universa1: no need for ids, regular expression, etc...
[10:30:27] universa1: $(input).siblings(".image").children("img.preview") ... something like this.
[10:30:32] MaDErroR123: has joined #RubyOnRails
[10:30:38] jeromelanteri: so what you tell me is to just add a class named ".preview" to my %img, and then point on it from javascript code instead of point at id #new.. right ?
[10:30:51] robertfalken: has joined #RubyOnRails
[10:30:54] universa1: jeromelanteri: yes.
[10:31:04] JDeen: has joined #RubyOnRails
[10:31:37] bruno-: has joined #RubyOnRails
[10:32:32] stamina: has joined #RubyOnRails
[10:33:56] livathinos: has joined #RubyOnRails
[10:34:26] xlogic: I'm debating here on how's the best approach to store some Categories and Statuses for different Record Types on a platform ... Having a STI Table, vs having a custom table for each Type vs Enums vs Static YAML Files loading into constants or so
[10:34:39] hotpancakes: has joined #RubyOnRails
[10:34:48] rvanlieshout: enum if it's only a state
[10:34:52] chinmay_dd: has joined #RubyOnRails
[10:34:55] xlogic: anyone has some good advice?
[10:35:25] xlogic: rvanlieshout yeah ... that I think it makes sense ... because of the ? and bang methods right?
[10:35:30] Creeves: has joined #RubyOnRails
[10:35:54] jeromelanteri: universa1: no... but... is it a way from "closest()" ?
[10:36:44] xlogic: rvanlieshout: I've seen people everywhere using the enum without explicit integer association which I think is kinda dangerous
[10:37:11] xlogic: if you add a new status to the array and switch positions ... the data gets all messed up
[10:39:30] sevenseacat: has joined #RubyOnRails
[10:39:41] rvanlieshout: xlogic: it all depends on whats different between them
[10:40:01] rvanlieshout: and most people also know that you shouldn't switch position :)
[10:40:08] rvanlieshout: but i like explicit integer association
[10:40:11] rvanlieshout: cause we group states
[10:40:20] rvanlieshout: 1xx = , 2xx = , etc
[10:41:39] xlogic: exactly ... :)
[10:41:45] xlogic: "and most people also know that you shouldn't switch position :)"
[10:41:55] rvanlieshout: and code review should solve that
[10:42:01] xlogic: we're supposing they know ... but it can just break easily
[10:42:06] camilasan: has joined #RubyOnRails
[10:42:09] rvanlieshout: huge difference = 2 models, almost no difference = just boolean
[10:42:16] rvanlieshout: sti and enum are somewhere in between i guess
[10:43:47] starfox_sf: has joined #RubyOnRails
[10:43:51] xlogic: STI, not sure if I'm a big fan of that approach :S
[10:44:05] xlogic: kinda affraid it may be a little overwhelming
[10:44:11] xlogic: and one Class for each "Type"
[10:44:15] xlogic: and each "Category"
[10:44:29] rvanlieshout: what's a 'type' or 'category'?
[10:44:46] rvanlieshout: it's just not possible to tell what is a proper solution based on things in generic
[10:45:14] gremax: has joined #RubyOnRails
[10:45:41] raj___: has joined #RubyOnRails
[10:47:10] vigintas999: has joined #RubyOnRails
[10:47:22] vigintas999: hello guys, do any of you know any good advanced ruby/rails training houses in uk? jbi is over-booked till october =( price is not a major concern. thanks a lot!
[10:49:29] abuzze_: has joined #RubyOnRails
[10:51:56] xlogic: rvanlieshout let's say Categories = "sale, rent, sale_and_rent" and Statuses = "in_acquisition, in_preparation, active, blocked, reserved, rented, sold, archived"
[10:53:04] xlogic: or categories can be document types also ... "identification card, passport, agreement, etc ..."
[10:53:11] Toska: has joined #RubyOnRails
[10:55:35] zorak8: has joined #RubyOnRails
[10:56:01] abuzze: has joined #RubyOnRails
[10:56:39] microdex: has joined #RubyOnRails
[11:00:16] chouhoulis: has joined #RubyOnRails
[11:01:56] mostlybadfly: has joined #RubyOnRails
[11:02:09] jordanstorz: has joined #RubyOnRails
[11:04:13] yashinbasement: has joined #RubyOnRails
[11:04:14] rvanlieshout: imo that are just 2 enums
[11:04:19] rvanlieshout: or a relationship with a category
[11:06:03] vigintas999: has joined #RubyOnRails
[11:08:23] nettoweb: has joined #RubyOnRails
[11:08:28] bronson: has joined #RubyOnRails
[11:12:31] edwinvdgraaf: has joined #RubyOnRails
[11:12:46] jordanstorz: has joined #RubyOnRails
[11:16:28] edwinvdg_: has joined #RubyOnRails
[11:18:22] jk_scowl_: has joined #RubyOnRails
[11:18:52] SteenJobs: has joined #RubyOnRails
[11:22:23] wethu: has joined #RubyOnRails
[11:26:29] okdas: has joined #RubyOnRails
[11:26:29] okdas: has joined #RubyOnRails
[11:26:54] dEPy: has joined #RubyOnRails
[11:28:40] edwinvdgraaf: has joined #RubyOnRails
[11:32:29] chipotle: has joined #RubyOnRails
[11:32:34] kb3ien: has joined #RubyOnRails
[11:32:40] JDeen: Woups :P discard ^^^^
[11:34:54] edwinvdgraaf: has joined #RubyOnRails
[11:36:45] creature: has joined #RubyOnRails
[11:37:26] diegoviola: has joined #RubyOnRails
[11:38:43] ndrei: has joined #RubyOnRails
[11:38:48] urbanmonk: has joined #RubyOnRails
[11:39:36] hotpancakes: has joined #RubyOnRails
[11:39:53] cryptocronus: has joined #RubyOnRails
[11:40:05] urbanmonk: has joined #RubyOnRails
[11:42:25] skroon: how can I make sure that devise uses it's default omniauth strategy, instead of local credential checking?
[11:42:47] edwinvdgraaf: has joined #RubyOnRails
[11:42:51] ldnunes: has joined #RubyOnRails
[11:43:12] nettoweb: guys I have a ticket with order_minimum and order_maximum, how I could buid a select with these numbers? starting at order_minimum till order_maximum
[11:43:16] teedex: has joined #RubyOnRails
[11:43:25] arBmind1: has joined #RubyOnRails
[11:45:24] buffym: has joined #RubyOnRails
[11:45:48] Lightsword_: has joined #RubyOnRails
[11:48:52] eGGsha: has joined #RubyOnRails
[11:49:50] gremax: has joined #RubyOnRails
[11:49:54] nettoweb: is there a better way than (ticket.order_minimum.to_i..ticket.order_maximum.to_i).each?
[11:49:55] BrazenBraden_: has joined #RubyOnRails
[11:52:12] spalenza: has joined #RubyOnRails
[11:52:52] n008f4g_: has joined #RubyOnRails
[11:53:56] _2easy: has joined #RubyOnRails
[11:55:36] spalenza: has joined #RubyOnRails
[11:56:31] yashinbasement: how to speicify haml css
[11:56:33] El3ktra: has joined #RubyOnRails
[11:59:00] yashinbasement: like in the form I have html: { class: 'form-horin..'}
[11:59:24] yashinbasement: and I want to have submit button to be nice integrated with bootstrap
[12:00:13] nfk: has joined #RubyOnRails
[12:01:25] Trefex: has joined #RubyOnRails
[12:03:07] robertfalken: has joined #RubyOnRails
[12:08:14] balr0g: has joined #RubyOnRails
[12:10:20] rushed: has joined #RubyOnRails
[12:13:05] shyshy: has joined #RubyOnRails
[12:15:34] tvw: has joined #RubyOnRails
[12:17:13] hotpancakes: has joined #RubyOnRails
[12:17:43] zeeraw: has joined #RubyOnRails
[12:18:14] pulgolino: has joined #RubyOnRails
[12:18:43] Papierkorb: has joined #RubyOnRails
[12:22:00] krokuz_: has joined #RubyOnRails
[12:22:27] blackmes1: has joined #RubyOnRails
[12:26:37] tens0r: has joined #RubyOnRails
[12:28:10] Criten: has joined #RubyOnRails
[12:30:31] jonathanwallace: has joined #RubyOnRails
[12:31:23] william3: has joined #RubyOnRails
[12:32:11] jamiely: has joined #RubyOnRails
[12:32:31] starfox_sf: has joined #RubyOnRails
[12:33:45] bhuvanaurora: has joined #RubyOnRails
[12:33:59] chrissonar: is there a better approach than: https://gist.github.com/christianrolle/82858d8287b12f544ad7 to test an alias?
[12:35:53] krz: has joined #RubyOnRails
[12:37:26] hotpancakes: has joined #RubyOnRails
[12:38:32] null__: has joined #RubyOnRails
[12:38:32] null__: has joined #RubyOnRails
[12:38:45] gaussblurinc1: has joined #RubyOnRails
[12:39:08] SteenJobs: has joined #RubyOnRails
[12:44:03] ultimate_trxta: has joined #RubyOnRails
[12:45:09] arup_r1: has joined #RubyOnRails
[12:46:58] aderium: has joined #RubyOnRails
[12:47:46] Limix: has joined #RubyOnRails
[12:47:46] ekain: has joined #RubyOnRails
[12:49:23] nzst: has joined #RubyOnRails
[12:51:14] hashrocket: has joined #RubyOnRails
[12:51:36] Grundell: has joined #RubyOnRails
[12:52:45] eGGsha: has joined #RubyOnRails
[12:57:10] jordanstorz: has joined #RubyOnRails
[12:58:02] microdex: has joined #RubyOnRails
[13:00:51] bmurt: has joined #RubyOnRails
[13:00:56] jkamenik: has joined #RubyOnRails
[13:01:15] shoelessone: has joined #RubyOnRails
[13:02:13] jordanstorz: has joined #RubyOnRails
[13:02:20] a346: has joined #RubyOnRails
[13:02:48] teedex: has joined #RubyOnRails
[13:03:22] DEA7TH_: has joined #RubyOnRails
[13:06:40] bmurt: has joined #RubyOnRails
[13:09:08] joelataylor: has joined #RubyOnRails
[13:10:21] nettoweb: has joined #RubyOnRails
[13:13:39] creature: has joined #RubyOnRails
[13:15:11] chipotle: has joined #RubyOnRails
[13:15:11] hardtail: I am building a Registry of vehicles. Trying to make an approval process of each vehicle for Admins to manage cars submitted by users. I just ran ??? rails g migration AddApprovedToVehicles approved:boolean and migrated the changes. In my create_vehicles migration I must add the boolean field to the table correct?
[13:15:16] bungoman: has joined #RubyOnRails
[13:16:58] acconrad_: has joined #RubyOnRails
[13:17:14] n1lo: has joined #RubyOnRails
[13:17:32] n1lo: has left #RubyOnRails: ()
[13:18:00] cryptocronus: has joined #RubyOnRails
[13:19:58] garrypolley: has joined #RubyOnRails
[13:21:40] ramortegui: has joined #RubyOnRails
[13:21:47] chouhoulis: has joined #RubyOnRails
[13:24:17] blackmes1: has joined #RubyOnRails
[13:25:40] Limix: has joined #RubyOnRails
[13:26:47] mando: has joined #RubyOnRails
[13:27:31] arup_r: has joined #RubyOnRails
[13:27:51] burgestrand: has joined #RubyOnRails
[13:28:15] arup_r1: has joined #RubyOnRails
[13:28:24] hakunin: has joined #RubyOnRails
[13:29:06] shoelessone: has joined #RubyOnRails
[13:30:14] rick12: has joined #RubyOnRails
[13:30:37] nya: has joined #RubyOnRails
[13:30:46] paulcsmith: has joined #RubyOnRails
[13:31:21] rick12: HI guys need help with integrating payment gateway in reservation site...... how to achievev this scenario with rails appliation https://www.nycexecutivelimo.com/hourly-reservation.html
[13:32:04] k4nd4lf: has joined #RubyOnRails
[13:32:09] burgestrand: has left #RubyOnRails: ()
[13:32:10] hotpancakes: has joined #RubyOnRails
[13:33:49] bungoman: has joined #RubyOnRails
[13:34:51] rick12: how to achievev this scenario with rails appliation https://www.nycexecutivelimo.com/hourly-reservation.html with rails 4 application....
[13:35:05] zeeraw: has joined #RubyOnRails
[13:35:41] JoshL: has joined #RubyOnRails
[13:35:43] DEA7TH_: has joined #RubyOnRails
[13:36:14] ddv: rick__: by using your brain
[13:36:15] sevenseacat: rick__: you'll have to be a bit more specific or i'll assume you're just advertising that site.
[13:36:46] doodlehaus: has joined #RubyOnRails
[13:38:13] SteenJobs: has joined #RubyOnRails
[13:38:30] xlogic: has joined #RubyOnRails
[13:39:25] rick12: sevenseacat_ I have integrated stripe gem and but I have no idea how to achieve this scenario.
[13:39:31] sevenseacat: what scenario?
[13:40:04] rick12: ddv_ used all my brain and even bagged couple of times but no solution.
[13:40:38] rick12: sevenseacat_ I have never came across this scenario where we are collecting users creditcard details in the same form
[13:40:52] sevenseacat: rick__: you're going to have to be a bit more specific.
[13:41:59] charliesome: has joined #RubyOnRails
[13:42:10] rick12: how to achieve same payment method with rails 4 application ... sevenseacat_
[13:42:21] rick12: which is given in that url
[13:42:32] sevenseacat: *explain* what you need.
[13:42:35] ddv: rick__: you want to implement credicard payments?
[13:42:50] surrealanalysis: has joined #RubyOnRails
[13:43:54] ddv: rick__: I see and what is currently not working? Any error messages?
[13:44:19] rick12: I am trying to understand how amount is collect from customer on hourly bases.
[13:45:22] Schalla: has joined #RubyOnRails
[13:45:22] Schalla: has joined #RubyOnRails
[13:46:28] rick12: just like carts if a product has a amount then we can do collect money as we know the amount........ But here the amount is not specified and I want to know what exactly is going on as my client want users cc details......
[13:47:41] sevenseacat: ACTION not touching this with a ten foot pole
[13:48:17] rick12: customer/user first enters all creditcard details then a mail is sent to the company. At company they calculate the total amount and they get the amount from the customer/users creditcard and confirm the customer/user ride/reservation.
[13:49:39] sevenseacat: I get worried when people who really dont know, start working with money
[13:49:45] sevenseacat: really worried
[13:49:50] dcunit3d: has joined #RubyOnRails
[13:50:05] ddv: sounds a bit like that mtgox
[13:50:12] rick12: It looks like they gave text_fields but this can be vunerable
[13:50:58] rick12: they are collecting users cc details, this way they can miss-use their stuff......
[13:51:28] sarink: has joined #RubyOnRails
[13:51:38] rick12: sevenseacat_ I really don't know about this. So is the reason I am here for help
[13:51:42] noodman: has joined #RubyOnRails
[13:51:46] mrbubbles: If I???ve made a bit of a mess of my DB with some funky migrations can I just delete the migrations and run a command to have it reset the DB and then go through the migrations again?
[13:52:01] Papierkorb: mrbubbles: bin/rake db:rollback
[13:52:11] Papierkorb: mrbubbles: do that once for every migration to undo
[13:52:39] Papierkorb: mrbubbles: oh, and that only works for the latest migration to the past, won't work if you messed up somewhere else.
[13:52:44] mrbubbles: Yep that???s fine
[13:52:54] mrbubbles: I???ll try that :) thanks Papierkorb
[13:53:09] peady: has joined #RubyOnRails
[13:53:14] cfurrow: has joined #RubyOnRails
[13:53:15] JakFrist: has joined #RubyOnRails
[13:53:30] Papierkorb: afterwards just do bin/rake db:migrate again, that'll apply all outstanding migrations at once. So if you have rollbacked twice, it'll migrate both migrations again
[13:54:16] mrbubbles: is there any way to see the status of the last migration that was applied
[13:54:22] eggoez: has joined #RubyOnRails
[13:54:31] mrbubbles: for some reason migrate/rollback is just returning silently but I???m not sure why
[13:54:49] devdazed: has joined #RubyOnRails
[13:55:14] Papierkorb: for migrate, if it returns without output it did nothing. For rollback, I don't know
[13:55:15] livathinos: has joined #RubyOnRails
[13:55:18] rick12: mrbubbles_ open database and check the migration did the work or not
[13:55:32] mando: has joined #RubyOnRails
[13:55:55] mrbubbles: Yep no it didn???t seem to do anything
[13:56:15] brotspinne: has joined #RubyOnRails
[13:56:15] rick12: if rollback isn't working that mean nothing happen'd check db/migrate/ folder
[13:56:41] Toska: has joined #RubyOnRails
[13:56:53] rick12: you see anything in db/migrate folder ?
[13:57:16] mrbubbles: yeh the migrations are there
[13:57:20] SteenJobs: has joined #RubyOnRails
[13:57:40] mrbubbles: I???m tempted to just delete the funky few last migrations and then then do a db:reset and let it recreate up to the last ???clean"point
[13:58:01] rick12: hmm interesting
[13:58:16] bahar: has joined #RubyOnRails
[13:58:29] Papierkorb: mrbubbles: if your DB contains nothing of value, then yes, that'll just work
[13:58:34] rick12: you can do that mean .... but then again it will truncate tables
[13:59:01] microdex: has joined #RubyOnRails
[13:59:05] rick12: * you can do that way*
[13:59:05] Papierkorb: just db:drop and db:setup
[13:59:26] mrbubbles: should the Schema.define version in schema.rb match the last migration applied?
[14:00:52] jamey-uk: has joined #RubyOnRails
[14:00:59] bratsche: has joined #RubyOnRails
[14:01:05] stef1a: has joined #RubyOnRails
[14:01:23] bungoman: has joined #RubyOnRails
[14:02:17] smathy: has joined #RubyOnRails
[14:02:52] jamey-uk1: has joined #RubyOnRails
[14:03:23] shoelessone: has joined #RubyOnRails
[14:03:26] j_mcnally: has joined #RubyOnRails
[14:05:06] Sehryn: has joined #RubyOnRails
[14:05:48] IrishGringo: has joined #RubyOnRails
[14:06:40] momomomomo: has joined #RubyOnRails
[14:07:19] axl__: has joined #RubyOnRails
[14:07:20] jonathanwallace: has joined #RubyOnRails
[14:08:15] Trefex: has joined #RubyOnRails
[14:08:21] blun7: has joined #RubyOnRails
[14:08:42] gerep: has joined #RubyOnRails
[14:08:52] gerep: Is category strict word on Heroku?
[14:08:59] DoctorMonocular: has joined #RubyOnRails
[14:09:16] gerep: My application runs locally but on Heroku I get: ActionView::Template::Error (undefined method `category' for #<Company:0x007f26255eb148>)
[14:09:31] gerep: I ran db:migrate and all
[14:09:48] gerep: Tried resetting the database too, no results
[14:10:47] ausum_possum: has joined #RubyOnRails
[14:10:54] gaussblurinc1: I have one-to-many relationship, but my belongs_to model in this relationship doesn't fill up well. https://gist.github.com/lolgear/865bc42bb466c9c89fc5
[14:11:08] werelivinginthef: has joined #RubyOnRails
[14:11:10] gerep: sevenseacat, https://gist.github.com/anonymous/f7c9ee5f4e5c93b0d761#file-new-html-slim-L17
[14:11:21] edwinvdgraaf: has joined #RubyOnRails
[14:11:38] sevenseacat: gaussblurinc1: you're not saving the campaign after assigning the ad_audience to it
[14:12:00] sevenseacat: gerep: so, how do categories and companies relate?
[14:12:13] ausum_possum: hey guys. does anybody know how exactly nginx knows to automatically start up rails just by setting the root path in nginx.conf? is the "rails server -p 3000" done all behind the scenes?
[14:12:18] gerep: sevenseacat, category is a column in the companies table
[14:12:20] sevenseacat: ausum_possum: !guys
[14:12:20] helpa: ausum_possum: We're not all guys here - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
[14:12:25] sevenseacat: gerep: apparently not.
[14:13:06] gerep: sevenseacat, https://gist.github.com/anonymous/0c71704992e477f5c155
[14:13:19] sevenseacat: gerep: is that whats on heroku?
[14:13:25] j_mcnally: has joined #RubyOnRails
[14:13:29] gerep: sevenseacat, yes
[14:13:42] gerep: sevenseacat, I just ran rake db:setup
[14:13:45] sevenseacat: gist the full error from heroku
[14:13:46] gerep: sevenseacat, why?
[14:13:50] gerep: sevenseacat, ok
[14:13:52] gaussblurinc1: sevenseacat: thanks!
[14:13:53] bruno-: has joined #RubyOnRails
[14:13:59] zeeraw: has joined #RubyOnRails
[14:14:27] gerep: sevenseacat, https://gist.github.com/anonymous/10797483ef412d2795b4
[14:14:46] koos303: has joined #RubyOnRails
[14:14:56] Scripore: has joined #RubyOnRails
[14:15:07] sevenseacat: your company definitely doesnt have a category.
[14:15:14] woodson88: has joined #RubyOnRails
[14:15:15] sevenseacat: if you run rake db:setup, then you have to run rake db:migrate.
[14:15:20] gerep: I did that
[14:15:35] gerep: I'll check the table on heroku
[14:16:17] jkamenik: has joined #RubyOnRails
[14:16:46] spiman: has joined #RubyOnRails
[14:17:22] gerep: sevenseacat, https://gist.github.com/anonymous/6f3c3c121049a117a3fe
[14:18:11] victortyau: has joined #RubyOnRails
[14:18:38] Toska: has joined #RubyOnRails
[14:18:43] gerep: sevenseacat, see? that's weird
[14:19:43] sevenseacat: I'd check the heroku rails console.
[14:19:56] bungoman: has joined #RubyOnRails
[14:20:20] gerep: sevenseacat, ok
[14:20:59] charliesome: has joined #RubyOnRails
[14:21:03] erich: has joined #RubyOnRails
[14:21:17] starfox_sf: has joined #RubyOnRails
[14:23:05] edwinvdgraaf: has joined #RubyOnRails
[14:23:21] AzaToth: has joined #RubyOnRails
[14:23:42] skroon: How can I make sure if i'm using devise which I only want to have do authentication via omniauth-oauth2 to always redirect the login screen to the loginscreen from the oauth2 provider?
[14:23:50] skroon: as opposed to having to choose the provider
[14:23:57] skroon: which is again an additional step
[14:24:08] edwinvdg_: has joined #RubyOnRails
[14:24:40] dopie: has joined #RubyOnRails
[14:24:52] gerep: sevenseacat, https://gist.github.com/anonymous/1e5b29713da8813d5bce
[14:25:04] blackmes1: has joined #RubyOnRails
[14:25:12] gerep: sevenseacat, As you'll see, the Company model has the category column and I have added a new Compoany and it shows :(
[14:25:12] sevenseacat: are you actually looking at the right app?
[14:25:19] gerep: sevenseacat, Yes, the only one
[14:25:38] gerep: sevenseacat, I'll change the column name and test it, what you think?
[14:26:13] sevenseacat: gerep: does it work in development?
[14:26:20] gerep: sevenseacat, yes
[14:26:45] benhuda: has joined #RubyOnRails
[14:26:53] gerep: sevenseacat, that's what made think it could be something related with Heroku
[14:26:58] sshuff: has joined #RubyOnRails
[14:27:00] gerep: sevenseacat, some strict words issue?
[14:27:30] sevenseacat: its usually something thats forgotten to be run, eg. a commit or a push or a migrate or a restart
[14:27:34] pullphinger: has joined #RubyOnRails
[14:27:36] sevenseacat: or the wrong URL, as the case was yesterday
[14:27:45] chipotle: has joined #RubyOnRails
[14:28:06] gerep: sevenseacat, I'll git push -f to heroku
[14:28:29] gerep: sevenseacat, it is all ok
[14:28:37] gerep: sevenseacat, it is not a problem with commit
[14:29:25] leonardoajim: has joined #RubyOnRails
[14:29:37] gerep: sevenseacat, restarting the application did it :( heroku ps:restart
[14:29:53] gerep: sevenseacat, I thought it was restarted when pushing commit
[14:30:00] gerep: sevenseacat, thanks a lot for your patience :)
[14:31:04] blackmes1: has joined #RubyOnRails
[14:31:53] kies^: has joined #RubyOnRails
[14:31:54] RegulationD: has joined #RubyOnRails
[14:32:05] helpa: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
[14:32:19] oflannabhra: has joined #RubyOnRails
[14:34:25] brotspinne: momomomomo: could you fix your name to be 'mo'*5 please?
[14:34:33] brotspinne: it's not really DRY
[14:34:45] momomomomo: brotspinne: the best things in life are only dry when they're martinis
[14:35:38] blun7: has joined #RubyOnRails
[14:36:25] momomomomo_: has joined #RubyOnRails
[14:36:30] fwaokda: has joined #RubyOnRails
[14:38:31] microdex: has joined #RubyOnRails
[14:39:37] SteenJobs: has joined #RubyOnRails
[14:39:53] chinmay_dd_: has joined #RubyOnRails
[14:40:30] chinmay_dd_: has left #RubyOnRails: ()
[14:43:08] brotspinne: momomomomo: so what about "m"+%Q(o)+(?m+'o'+%q<m>+111.chr)*2
[14:43:34] brotspinne: reads much more relaxed
[14:43:46] momomomomo: brotspinne: agreed, but not obfuscated enough
[14:43:57] mary5030: has joined #RubyOnRails
[14:44:06] brotspinne: it's just about being DRY
[14:44:16] brain_shim: has joined #RubyOnRails
[14:44:26] nzst: has joined #RubyOnRails
[14:44:40] brotspinne: >> 'is this an eval bot?'
[14:44:41] zeeraw: has joined #RubyOnRails
[14:45:03] momomomomo: not anymore!
[14:45:09] mary5030: has joined #RubyOnRails
[14:45:41] spiman_: has joined #RubyOnRails
[14:46:53] jtdoncas: has joined #RubyOnRails
[14:47:29] Betray1st: has joined #RubyOnRails
[14:49:01] mando: has joined #RubyOnRails
[14:50:17] brotspinne: momomomomo: NoMemoryError.name[4..5]*5
[14:50:17] brain_shim: I'm using a Rails Engine gem that includes a bunch of helpers into ActionView::Base at initialization, but I want to have the choice to include it manually in a more finely grained basis.
[14:50:48] moeabdol: has joined #RubyOnRails
[14:50:48] riotjones: has joined #RubyOnRails
[14:51:00] brain_shim: I'm including the controller portion into my ApplicationController, what would my equivalent be helper wise?
[14:51:05] jkamenik: has joined #RubyOnRails
[14:52:55] brain_shim: Maybe better to link where it's being included in the gem https://github.com/s12chung/dom_routes/blob/master/lib/dom_routes.rb
[14:54:01] brotspinne: brain_shim: use the helper() method in the controller
[14:54:40] brotspinne: like: helper DomRoutes::ViewHelpers
[14:54:43] hotpancakes: has joined #RubyOnRails
[14:55:52] brain_shim: I'm looking at the api docs and it looks like that was deprecated before rails 3, am I looking in the wrong place?
[14:55:58] brain_shim: http://apidock.com/rails/v2.3.8/ActionController/Helpers/ClassMethods/helper
[14:56:18] brotspinne: brain_shim: looks good to me http://api.rubyonrails.org/classes/AbstractController/Helpers/ClassMethods.html#method-i-helper
[14:56:35] hotpanca_: has joined #RubyOnRails
[14:56:54] brain_shim: yup, I'm barking up the wrong docs. Thanks!
[14:56:57] brotspinne: brain_shim: apidock is not a good source because places can change where rails methods are defined
[14:57:28] brain_shim: brotspinne: Ah! Thanks!
[14:58:01] brotspinne: brain_shim: http://apidock.com/rails/AbstractController/Helpers/ClassMethods/helper
[14:58:39] brotspinne: brain_shim: you can see the module changed from ActionController to AbstractController
[15:00:21] theery: has joined #RubyOnRails
[15:00:32] adavia: has joined #RubyOnRails
[15:00:43] IrishGringo: has joined #RubyOnRails
[15:01:16] j_mcnally: has joined #RubyOnRails
[15:04:14] shoelessone: has joined #RubyOnRails
[15:04:31] garrypolley: has joined #RubyOnRails
[15:04:51] jkamenik: has joined #RubyOnRails
[15:07:02] mauro1254: has joined #RubyOnRails
[15:08:08] mauro1254: I guys, I need to move from ActiveRecord Session Store to Cookies Store, is there a tutorial that explain how to expire sessions when using Cookie Store?
[15:08:33] erich: has joined #RubyOnRails
[15:09:26] jriese: has joined #RubyOnRails
[15:09:37] erich: has joined #RubyOnRails
[15:10:47] mauro1254: has left #RubyOnRails: ()
[15:10:47] eminencehc_: has joined #RubyOnRails
[15:10:53] mauro1254: has joined #RubyOnRails
[15:11:26] DEA7TH_: has joined #RubyOnRails
[15:12:09] garrypolley: has joined #RubyOnRails
[15:13:21] krz: has joined #RubyOnRails
[15:13:42] mauro1254: I guys, I need to move from ActiveRecord Store to Cookies Store for session, is there a tutorial that explain how to expire sessions when using Cookie Store?
[15:13:43] stef1a: has joined #RubyOnRails
[15:15:43] brotspinne: mauro1254: change the secret key http://api.rubyonrails.org/classes/ActionDispatch/Session/CookieStore.html
[15:16:18] mauro1254: I know that
[15:16:40] mauro1254: The problem is that now session duration is set to 1 hour
[15:16:48] mauro1254: and there is also a check on creation date
[15:17:04] mauro1254: How can I achieve that with cookies?
[15:17:21] werelivinginthef: has joined #RubyOnRails
[15:17:30] mauro1254: How can I prevent the user to modify cookie Expires / Max Age field
[15:17:34] jkamenik: has joined #RubyOnRails
[15:18:20] brotspinne: mauro1254: you can add a timestamp to the session or a secret token which you store in the database which can be deleted later which makes the cookie invalid
[15:18:58] mauro1254: brotspinne: I want to move to cookies store in order to avoid to save data in the DB
[15:19:25] w0rd-driven: has joined #RubyOnRails
[15:19:36] mauro1254: Is it possible to save it in the cookie itself?
[15:19:47] brotspinne: mauro1254: yes with a timestamp
[15:19:57] jhack: has joined #RubyOnRails
[15:20:08] mauro1254: The cookie is encrypted, therefore should be safe to do that
[15:20:09] brotspinne: when the cookie is created you save the current time in it and when you read the cookie you check if the cookie is not too old
[15:20:26] brotspinne: well at least it's signed
[15:20:47] mauro1254: secret_key_base
[15:20:58] mauro1254: => encrypted => SAFE
[15:21:23] hmnhf: has joined #RubyOnRails
[15:21:55] brotspinne: mauro1254: I think it's just signed but this is still safe. the user can't manipulate values in it http://guides.rubyonrails.org/security.html#session-storage
[15:21:55] j_mcnally: has joined #RubyOnRails
[15:25:05] brotspinne: mauro1254: but keep in mind that the cookie is not encrypted
[15:25:36] mauro1254: Does it mean that data is visible to users?
[15:25:47] brotspinne: mauro1254: potentially yes
[15:25:54] Oog: has joined #RubyOnRails
[15:26:03] mauro1254: Strange ... I cannot read data in it ...
[15:26:07] mauro1254: It seems encrypted
[15:26:12] mauro1254: I'm on rails 4.2
[15:26:14] brotspinne: mauro1254: give it to me
[15:26:15] Oog: ive got a little chat client. want new messages to stream in from the rails backend. i think i need to do longpolling? does rails support that?
[15:28:25] brotspinne: Oog: maybe you looking for http://api.rubyonrails.org/classes/ActionController/Live/SSE.html
[15:28:42] acconrad_: has joined #RubyOnRails
[15:29:00] mauro1254: https://cowbell-labs.com/2013-04-10-decrypt-rails-4-session.html
[15:29:12] brotspinne: Oog: also good source http://tenderlovemaking.com/2012/07/30/is-it-live.html
[15:29:50] garrypolley: has joined #RubyOnRails
[15:30:04] chipotle: has joined #RubyOnRails
[15:30:09] jamesrward: has joined #RubyOnRails
[15:30:17] jkamenik: has joined #RubyOnRails
[15:30:18] jamesrward: I'm fairly new to rails and trying to get a handle on the Rails console to do quick Active Record queries. I have two models countries and groups that can each have many of each other through countries_groups. I'm trying to output any group with more than one country associated.
[15:30:26] jamesrward: Group.where(Country.count > 1).first This returned a group with only 1 country associated so I'm clearly looking at this the wrong way
[15:30:27] mauro1254: brotspinne: check the link
[15:30:30] Oog: cool i think so thanks!
[15:31:42] bar0n: has joined #RubyOnRails
[15:32:10] brotspinne: mauro1254: ah yes here it says "If you have secret_key_base set, your cookies will be encrypted. This goes a step further than signed cookies in that encrypted cookies cannot be altered or read by users. This is the default starting in Rails 4." but it's not in the guide though http://api.rubyonrails.org/classes/ActionDispatch/Session/CookieStore.html
[15:34:32] mauro1254: It seems encrypted ...
[15:34:36] mauro1254: Need to leave
[15:35:17] catphish: has joined #RubyOnRails
[15:35:31] Aswebb_: has joined #RubyOnRails
[15:35:32] catphish: where does rails get its timezone offsets from?
[15:35:47] brotspinne: catphish: application.rb
[15:36:00] oflannabhra: has joined #RubyOnRails
[15:36:00] joelataylor: has joined #RubyOnRails
[15:37:16] catphish: brotspinne: that's how you *use* the timezones, i'm interested in where rails gets the offsets for each zone from
[15:39:03] brotspinne: jamesrward: something like Group.joins( :countries ).group( 'groups.id' ).having( 'count( group_id ) > 1' ) it might be needed to join on countries_groups
[15:39:14] catphish: ah, here it is "The version of TZInfo bundled with Active Support only includes the definitions necessary to support the zones defined by the TimeZone class. If you need to use zones that aren't defined by TimeZone, you'll need to install the TZInfo gem (if a recent version of the gem is installed locally, this will be used instead of the bundled version.)"
[15:39:45] brotspinne: catphish: gotcha
[15:40:00] podman: has joined #RubyOnRails
[15:41:00] Scripore: has joined #RubyOnRails
[15:41:47] jamesrward: @brotspinne Beautiful works like a charm and makes perfect sense to me. I was looking for a little too much magic from Rails I think :)
[15:43:51] bruno-: has joined #RubyOnRails
[15:46:03] dcunit3d: has joined #RubyOnRails
[15:46:48] joelataylor: has joined #RubyOnRails
[15:46:50] catphish: has left #RubyOnRails: ("Leaving")
[15:51:16] nicken: has joined #RubyOnRails
[15:52:17] gambl0re: has joined #RubyOnRails
[15:52:48] bruno-: has joined #RubyOnRails
[15:52:49] theery: has joined #RubyOnRails
[15:53:21] jamey-uk: has joined #RubyOnRails
[15:53:57] jarr0dsz: has joined #RubyOnRails
[15:54:41] arBmind: has joined #RubyOnRails
[15:56:47] MaDErroR123: has joined #RubyOnRails
[15:57:11] bruno-: has joined #RubyOnRails
[15:58:40] ncrmro: has joined #RubyOnRails
[15:58:53] hanss: has joined #RubyOnRails
[16:00:44] bruno-: has joined #RubyOnRails
[16:01:31] ncrmro: Any one know how to select and create a has_many :through join table with an existing assosiaction?
[16:02:31] CheckYourSix: has joined #RubyOnRails
[16:02:49] towski_: has joined #RubyOnRails
[16:02:52] jamey-uk: has joined #RubyOnRails
[16:03:56] theery: has joined #RubyOnRails
[16:04:59] shoelessone: has joined #RubyOnRails
[16:05:35] jkamenik: has joined #RubyOnRails
[16:06:30] stef1a: has joined #RubyOnRails
[16:06:34] imkmf: has joined #RubyOnRails
[16:08:30] disgrntld: has joined #RubyOnRails
[16:08:34] garrypolley: has joined #RubyOnRails
[16:08:39] Lytol: has joined #RubyOnRails
[16:10:00] gremax: has joined #RubyOnRails
[16:10:03] starfox_sf: has joined #RubyOnRails
[16:13:06] jeanjack: has joined #RubyOnRails
[16:13:12] bricker: has joined #RubyOnRails
[16:13:15] JoshL: has joined #RubyOnRails
[16:13:37] clintb_: has joined #RubyOnRails
[16:14:12] krz: has joined #RubyOnRails
[16:15:04] eGGsha: has joined #RubyOnRails
[16:15:28] jeanjack: is there a way to have an hot reload of the config/database.yml when server is running ? i tried to change /etc/hosts to point the hostname to another one but the change isn't applied for Rails
[16:15:42] bronson: has joined #RubyOnRails
[16:15:44] ProLoser: has joined #RubyOnRails
[16:17:43] sonofdirt: has joined #RubyOnRails
[16:17:56] j_mcnally: has joined #RubyOnRails
[16:18:23] bricker: jeanjack: nothing built-in
[16:19:50] jeanjack: bricker: ok, i looked for some gems but all i seen is to use one database in read only and another one to make the writes
[16:20:05] maletor_: has joined #RubyOnRails
[16:20:09] bricker: jeanjack: I must have missed part of your question
[16:20:44] centrx: has joined #RubyOnRails
[16:21:47] jamiely: has joined #RubyOnRails
[16:22:26] [Butch]: has joined #RubyOnRails
[16:22:45] sohrab: has joined #RubyOnRails
[16:24:09] jeanjack: i want that when a database fail rails connect to an other one, but I'm looking for very reduced modification in the code
[16:24:12] sohrab: has joined #RubyOnRails
[16:24:55] sohrab: has left #RubyOnRails: ()
[16:24:55] shoelessone: has joined #RubyOnRails
[16:25:17] omosoj: has joined #RubyOnRails
[16:25:23] omosoj: has left #RubyOnRails: ()
[16:25:43] omosoj: has joined #RubyOnRails
[16:26:29] omosoj: i'm trying to troubleshoot a rails app. it was deployed to a heroku-like platform but it can only read its postgres db now. any ideas?
[16:26:33] jkamenik: has joined #RubyOnRails
[16:26:37] paulcsmith: has joined #RubyOnRails
[16:26:57] [H]unt3r: has joined #RubyOnRails
[16:27:55] ararog: has joined #RubyOnRails
[16:28:14] ncrmro_: has joined #RubyOnRails
[16:28:25] gremax: has joined #RubyOnRails
[16:28:35] bricker: jeanjack: That shouldn't be handled by your rails app, it should be handled by the database or with a loadbalancer like HAProxy
[16:29:13] momomomomo: has joined #RubyOnRails
[16:29:20] stamina: has joined #RubyOnRails
[16:29:23] moeabdol: has joined #RubyOnRails
[16:31:56] chipotle: has joined #RubyOnRails
[16:35:50] DoctorMonocular: has joined #RubyOnRails
[16:36:47] gerep: has joined #RubyOnRails
[16:38:34] jtdoncas: has joined #RubyOnRails
[16:40:00] oflannabhra: has joined #RubyOnRails
[16:41:35] xlogic: has joined #RubyOnRails
[16:42:13] neanderslob: has joined #RubyOnRails
[16:44:12] pharserror: has joined #RubyOnRails
[16:44:42] Fire-Dragon-DoL: has joined #RubyOnRails
[16:48:36] hotpancakes: has joined #RubyOnRails
[16:48:54] SteenJobs: has joined #RubyOnRails
[16:48:59] spalenza_: has joined #RubyOnRails
[16:52:23] shinnya: has joined #RubyOnRails
[16:53:45] krz: has joined #RubyOnRails
[16:54:53] jkamenik: has joined #RubyOnRails
[16:55:22] pixelhandler: has joined #RubyOnRails
[16:59:02] shoelessone: has joined #RubyOnRails
[16:59:28] bungoman: has joined #RubyOnRails
[16:59:30] Scripore: has joined #RubyOnRails
[17:02:33] hahuang65: has joined #RubyOnRails
[17:02:57] JakFrist: has joined #RubyOnRails
[17:06:06] starfox_sf: has joined #RubyOnRails
[17:09:26] ProLoser: has joined #RubyOnRails
[17:11:59] gaussblurinc1: has joined #RubyOnRails
[17:13:26] allcentury: has joined #RubyOnRails
[17:13:58] drupald: has joined #RubyOnRails
[17:14:20] axl_: has joined #RubyOnRails
[17:15:12] cornerma1: has joined #RubyOnRails
[17:16:03] bruno-: has joined #RubyOnRails
[17:21:29] fgo: has joined #RubyOnRails
[17:21:37] pharserror: has joined #RubyOnRails
[17:22:58] sonofdirt: has joined #RubyOnRails
[17:23:59] Rodya_: has joined #RubyOnRails
[17:24:06] hahuang61: has joined #RubyOnRails
[17:24:06] rubyonrailed: has joined #RubyOnRails
[17:25:31] eggoez: has joined #RubyOnRails
[17:28:00] cnk: has joined #RubyOnRails
[17:28:43] dici: has joined #RubyOnRails
[17:28:58] blackmes1: has joined #RubyOnRails
[17:30:08] dudo: has joined #RubyOnRails
[17:30:22] jtdoncas: has joined #RubyOnRails
[17:30:29] sillypog: has joined #RubyOnRails
[17:30:58] iamse7en: has joined #RubyOnRails
[17:31:02] bruno-: has joined #RubyOnRails
[17:31:15] zeeraw: has joined #RubyOnRails
[17:31:44] livathinos: has joined #RubyOnRails
[17:32:54] Unknown59167: has joined #RubyOnRails
[17:33:04] chipotle: has joined #RubyOnRails
[17:33:10] Unknown59167: has left #RubyOnRails: ()
[17:33:59] brain_shim: has joined #RubyOnRails
[17:34:38] bronson: has joined #RubyOnRails
[17:36:23] werelivinginthef: has joined #RubyOnRails
[17:39:51] hahuang65: has joined #RubyOnRails
[17:40:01] DoubleMalt: has joined #RubyOnRails
[17:41:34] chouhoulis: has joined #RubyOnRails
[17:41:49] RegulationD: has joined #RubyOnRails
[17:42:12] chouhoulis: has joined #RubyOnRails
[17:42:12] smathy: So quiet.
[17:42:20] nogic: has joined #RubyOnRails
[17:43:07] eminencehc_: has joined #RubyOnRails
[17:43:37] ProLoser: has joined #RubyOnRails
[17:43:55] startupality: has joined #RubyOnRails
[17:43:56] intuxicated: has joined #RubyOnRails
[17:43:56] intuxicated: has joined #RubyOnRails
[17:44:03] djbkd: has joined #RubyOnRails
[17:44:13] theery: has joined #RubyOnRails
[17:46:18] x1337807x: has joined #RubyOnRails
[17:46:23] awefulBrown: has joined #RubyOnRails
[17:46:54] startupality: how to make sure that my credit card doesnt get charged thorugh aws s3? like i am a bit hesitant to leave my cc there, is there any feature which allows setting the monthly limits or anything similar?
[17:47:15] werelivinginthef: has joined #RubyOnRails
[17:48:00] cfurrow: has joined #RubyOnRails
[17:48:00] konsolebox: has joined #RubyOnRails
[17:48:07] centrx: startupality, In Billing & Management you can set Alerts and Limits too I think
[17:48:48] konsolebox: has joined #RubyOnRails
[17:49:31] konsolebox: has joined #RubyOnRails
[17:53:00] hotpancakes: has joined #RubyOnRails
[17:53:45] workmad3: has joined #RubyOnRails
[17:54:11] Limix: has joined #RubyOnRails
[17:54:14] pothibo: has joined #RubyOnRails
[17:55:21] quazimodo: has joined #RubyOnRails
[17:55:24] quazimod1: has joined #RubyOnRails
[17:56:35] jtdoncas: has joined #RubyOnRails
[18:00:52] a346: has joined #RubyOnRails
[18:01:05] mando: has joined #RubyOnRails
[18:02:36] jonathanwallace: has joined #RubyOnRails
[18:02:53] startupality: has joined #RubyOnRails
[18:02:58] towski_: has joined #RubyOnRails
[18:05:47] PlasmaStar: has joined #RubyOnRails
[18:08:01] Lightsword: has joined #RubyOnRails
[18:09:31] Lytol: has joined #RubyOnRails
[18:10:26] n008f4g_: has joined #RubyOnRails
[18:11:24] Creeves: has joined #RubyOnRails
[18:12:34] chouhoul_: has joined #RubyOnRails
[18:16:25] jwalker14: has joined #RubyOnRails
[18:16:30] baweaver: has joined #RubyOnRails
[18:16:30] hotpancakes: has joined #RubyOnRails
[18:19:05] doodlehaus: has joined #RubyOnRails
[18:19:22] djbkd: has joined #RubyOnRails
[18:19:48] sshuff: has joined #RubyOnRails
[18:20:08] JoshL: has joined #RubyOnRails
[18:20:45] bds: has joined #RubyOnRails
[18:22:26] JakFrist: has joined #RubyOnRails
[18:23:56] Surt_Q: has joined #RubyOnRails
[18:26:11] toretore: has joined #RubyOnRails
[18:28:11] Grundell: has joined #RubyOnRails
[18:28:32] workmad3: has joined #RubyOnRails
[18:29:10] chouhoulis: has joined #RubyOnRails
[18:29:22] vickleton: has joined #RubyOnRails
[18:29:37] stef1a: has joined #RubyOnRails
[18:33:03] sillypog: has joined #RubyOnRails
[18:33:14] mfp_: has joined #RubyOnRails
[18:33:16] kies^: has joined #RubyOnRails
[18:33:48] Scripore: has joined #RubyOnRails
[18:34:34] chipotle: has joined #RubyOnRails
[18:35:36] b1205: has joined #RubyOnRails
[18:35:37] baweaver: has joined #RubyOnRails
[18:36:02] symbol: has joined #RubyOnRails
[18:36:56] elaptics: smathy: sshhh :)
[18:37:09] smathy: Sorry, you were sleeping?
[18:37:14] symbol: has joined #RubyOnRails
[18:37:46] haltEnigma: has joined #RubyOnRails
[18:38:02] elaptics: I should be - been up since 4am
[18:39:41] mfp_: has joined #RubyOnRails
[18:39:51] hahuang65: has joined #RubyOnRails
[18:40:36] symbol: has joined #RubyOnRails
[18:44:21] benlieb: has joined #RubyOnRails
[18:44:58] baweaver: has joined #RubyOnRails
[18:46:01] symbol: has joined #RubyOnRails
[18:46:44] Spami: has joined #RubyOnRails
[18:49:16] haltEnigma: my action_mailer wasn't sending emails ,spent about two hours trying to route the problem , which i though was in my code. All i had to do was enable gmail's security features....
[18:50:42] bricker: you figured it out!
[18:51:16] rndm: is it normal for assets:precompile to want to connect to the db? i thought that was fixed in rails 4
[18:51:35] qnsi: has joined #RubyOnRails
[18:52:10] AzaToth: has joined #RubyOnRails
[18:52:36] qnsi: has left #RubyOnRails: ()
[18:52:38] bruno-: has joined #RubyOnRails
[18:52:53] ferski: has joined #RubyOnRails
[18:54:13] jroith: has joined #RubyOnRails
[18:55:29] umgrosscol: has joined #RubyOnRails
[18:55:56] FCser: has joined #RubyOnRails
[18:55:56] ferski: Any idea why my test fails? I changed one column from when to habit_type and now my test fails. undefined method `habit_time=' for #<Habit:0x00000004e2c1c0> When I run rails console, my objects responds to habit_time etc. In my factory I do habit_time "everyday", and habit_time is a string
[18:57:12] Lightsword: has joined #RubyOnRails
[18:59:39] slash_nick: ferski: you changed it to habit_type? and called habit_time=?
[18:59:48] sonofdirt: has joined #RubyOnRails
[18:59:57] slash_nick: Maybe just a mistake in ^^ what you said in here
[19:01:02] ferski: slash_nick, the rspec/factory wanted to assign something I guess. I never use it, I am just checking if factory is valid
[19:01:12] garrypolley: has joined #RubyOnRails
[19:01:33] ferski: slash_nick, oh, sorry yes I changed it to habit_time
[19:01:36] slash_nick: ferski: "Any idea why my test fails? I changed one column from when to habit_type and now my test fails. undefined method `habit_time='" habit_type OR habit_time?
[19:02:54] ivanskie: has joined #RubyOnRails
[19:04:10] Lightsword: has joined #RubyOnRails
[19:05:13] ferski: ok nevermind, I reseted my test database and it works now
[19:07:24] srinidhi: has joined #RubyOnRails
[19:07:59] j_mcnally: has joined #RubyOnRails
[19:11:13] yaymukund: has joined #RubyOnRails
[19:16:41] maletor_: has joined #RubyOnRails
[19:20:06] eminencehc_: has joined #RubyOnRails
[19:20:15] shivam_v: has joined #RubyOnRails
[19:20:33] ndrei: has joined #RubyOnRails
[19:21:27] cfurrow: has joined #RubyOnRails
[19:24:59] DEA7TH_: has joined #RubyOnRails
[19:27:41] momomomomo: has joined #RubyOnRails
[19:27:56] baweaver: has joined #RubyOnRails
[19:28:42] hotpancakes: has joined #RubyOnRails
[19:29:03] j_mcnally: has joined #RubyOnRails
[19:30:57] cryptocronus: has joined #RubyOnRails
[19:31:22] djbkd: has joined #RubyOnRails
[19:31:56] yaymukund: has joined #RubyOnRails
[19:33:16] momomomomo: has joined #RubyOnRails
[19:33:58] zedro: has joined #RubyOnRails
[19:34:40] jroith: has joined #RubyOnRails
[19:34:57] Lytol: has joined #RubyOnRails
[19:35:42] DoubleMalt: has joined #RubyOnRails
[19:36:26] chipotle: has joined #RubyOnRails
[19:41:57] znn: has joined #RubyOnRails
[19:42:25] revpj: has joined #RubyOnRails
[19:43:01] znn: i am considering switching to ruby from js, and i've been depending on this module hashing my passwords: https://github.com/ncb000gt/node.bcrypt.js/
[19:43:18] znn: actually, wrong channel
[19:43:19] znn: has left #RubyOnRails: ()
[19:43:42] lxsameer: has joined #RubyOnRails
[19:47:05] LambdaSource: has joined #RubyOnRails
[19:48:10] startupality: has joined #RubyOnRails
[19:48:51] garrypolley: has joined #RubyOnRails
[19:49:03] moeabdol: has joined #RubyOnRails
[19:50:50] peterhil: has joined #RubyOnRails
[19:52:55] hotpancakes: has joined #RubyOnRails
[19:53:13] vere: has joined #RubyOnRails
[19:55:37] Limix: has joined #RubyOnRails
[19:57:54] blackmes1: has joined #RubyOnRails
[19:59:31] djbkd: has joined #RubyOnRails
[19:59:42] oflannabhra: has joined #RubyOnRails
[19:59:55] Etriaph: has joined #RubyOnRails
[19:59:59] bronson: has joined #RubyOnRails
[20:00:41] bungoman: has joined #RubyOnRails
[20:00:46] bin_005: has joined #RubyOnRails
[20:07:59] momomomomo_: has joined #RubyOnRails
[20:08:17] bin_005_v: has joined #RubyOnRails
[20:09:30] n1lo: has joined #RubyOnRails
[20:11:04] sonofdirt: has joined #RubyOnRails
[20:11:50] Lytol: has joined #RubyOnRails
[20:13:48] Haegin: has left #RubyOnRails: ()
[20:14:10] hardtail: Hello everyone
[20:14:22] Ratler: has joined #RubyOnRails
[20:14:36] hardtail: Hoping someone can shed some insight on this for me.
[20:16:13] garrypolley_: has joined #RubyOnRails
[20:16:40] zorak8: has joined #RubyOnRails
[20:16:44] ght: Question: We are running a rails 4.2 site in development, and we have long ago updated an image in app/assets/images, and yet for some reason, no matter how many times I run rake assets:clean or rake assets:clobber, even when accessing the site from an entirely seperate machine
[20:16:49] ght: that has never seen the site before
[20:16:52] ght: The image that displays is the old one
[20:17:06] ght: Where on earth could the server side cached asset be stored?
[20:17:31] hardtail: I have a Vehicle model that defines properties of a car. I need to create an Image model now that belongs_to my Vehicle model. I will be using ImageMagick and CarrierWave. To my understanding I can define my model with such things as ???front, back, driver-side, passenger-side??? etc. which would allow the user to upload one image at a time per category. How do I go about designing the Model so in one area the user can add multiple images?
[20:18:12] baweaver: has joined #RubyOnRails
[20:18:12] christiandsg: has joined #RubyOnRails
[20:18:51] doodlehaus: has joined #RubyOnRails
[20:19:52] ght: I even manually went into the site's tmp directory and hosed the sprokets cache
[20:19:55] ght: Anyone?
[20:20:55] hardtail: It seems we arrived at the wrong hour XD
[20:20:55] eGGsha: has joined #RubyOnRails
[20:21:01] nzst: has joined #RubyOnRails
[20:21:38] rhizome: you've waited almost four minutes
[20:22:23] hardtail: lol I know the life and times of the entitled isn???t it rhizome? I kid I kid, I appreciate any help and don???t take it for granted.
[20:22:51] ght: This is the craziest god damn thing in the universe.
[20:23:02] Frem: has joined #RubyOnRails
[20:23:05] bricker: bold claim!
[20:23:12] rhizome: ght: did you restart the application after changing the image?
[20:23:29] acconrad__: has joined #RubyOnRails
[20:23:57] s2013: has joined #RubyOnRails
[20:24:00] leonardoajim: has joined #RubyOnRails
[20:24:54] bricker: ght: does the image exist on the server? I mean, it's not a mystery where your app reads assets from. So go to that place and see if the asset is there.
[20:25:14] ght: lol, yes, of course, the image exists on the server as specified, in app/assets/images.
[20:25:25] ght: It has to do with the image_tag cache, but I've cleared all known assets repeatedly.
[20:25:32] ght: This is bizarre.
[20:25:37] rhizome: did. you. oh nevermind
[20:25:50] djbkd: has joined #RubyOnRails
[20:28:44] Rodya_: has joined #RubyOnRails
[20:29:15] bricker: ght: The image that you don't want to be on the server, is there on the server?
[20:29:25] smathy: Hardtail, you're going to basically do this: http://stackoverflow.com/q/21411988/152786
[20:30:12] smathy: (which was #1 google result when searching for `multiple file upload using carrierwave`)
[20:31:01] weaksauce: ght is there a cdn involved or some offsite storage?
[20:31:45] hardtail: smathy: Thanks, I will review this. My fault, I did not search at all. Thought I would come in here and start a discussion. I will do better next time.
[20:33:56] blackmes1: has joined #RubyOnRails
[20:34:06] garrypolley: has joined #RubyOnRails
[20:34:30] smathy: Hardtail, np, I just like people to know when it's a topic like this - there's really a lot of resources around for this sort of thing.
[20:34:38] HenriettaSalt: has joined #RubyOnRails
[20:35:15] jenrzzz: has joined #RubyOnRails
[20:36:08] garrypolley: has joined #RubyOnRails
[20:36:17] eminencehc_: has joined #RubyOnRails
[20:36:22] acovrig: has joined #RubyOnRails
[20:36:45] ght: Weaksauce: No, I'm directly accessing it from the site.
[20:36:58] acovrig: I???m trying to do a DB relation: has_many (an event has_many items); I added teh has_many to my model, how do I get rails to use it?
[20:37:06] ght: Could apache be cachine it somehow? I've even changed the filename and updated the link_to image_tag code
[20:37:10] ght: caching*
[20:37:36] hardtail: Smathy, understood. Thanks again. I will do my best to research thoroughly before I ask questions.
[20:37:47] Limix: has joined #RubyOnRails
[20:37:48] chipotle: has joined #RubyOnRails
[20:37:56] smathy: Hardtail, you're welcome.
[20:37:58] clintb_: has joined #RubyOnRails
[20:38:17] smathy: acovrig, http://guides.rubyonrails.org/association_basics.html
[20:38:20] Rodya_: has joined #RubyOnRails
[20:38:28] Matadoer: has joined #RubyOnRails
[20:38:31] eggoez: has joined #RubyOnRails
[20:38:44] yfeldblum: has joined #RubyOnRails
[20:39:01] momomomomo_: has joined #RubyOnRails
[20:39:02] acovrig: smathy: yes, I added the has_many to my model, do I need to manually modify my migration files?
[20:39:08] ght: This is insane.
[20:39:28] jonathanwallace: has joined #RubyOnRails
[20:39:36] ght: I've rake assets:clobber, rake assets:clear, rails c / Rails.cache.clear, I've tried renaming the image, I've cleared the browser cache, remoted to another machine and accessed the site
[20:39:40] ght: All to no avail.
[20:40:07] bricker: ght: maybe you're looking at the wrong URL
[20:40:14] bricker: ght: if you change something something else does it update?
[20:40:15] s2013: sup yalll
[20:40:17] s2013: smathy you around?
[20:40:28] ght: The URL is correct, it's the only place this image is referenced, per grep -irl "nameofimage.svg" ./*
[20:40:28] smathy: ACTION is
[20:40:46] ght: bricker: Yes, updates are populating, for example, when I screwed up when attempting to update the image tag to the new filename, I saw it instantly.
[20:40:57] ght: It's a rails 4.2 site running in development with passenger and apache.
[20:41:33] smathy: acovrig, depends on many things like: what your migration files have currently, whether the foreign key table is a new one, whether you're happy to delete the table with the foreign key in it, etc.
[20:41:33] s2013: hows it going smathy
[20:41:38] smathy: acovrig, that's why the guide is there.
[20:41:56] smathy: s2013, hi. I was about to give you an answer the other day (yesterday probably) but you disappeared.
[20:42:05] s2013: yeah sorry. had to catch my flight
[20:42:09] ght: Is there any way to bypass the image_tag caching and force the client to pull the image every time?
[20:42:13] ght: Obviously not ideal, but for testing purposes.
[20:42:22] s2013: do you still remember your answer? its been bugging me
[20:42:33] smathy: Oh, here it is: > Hmm, gone now, I think s2013 just has to fire `rails:attachBindings` and jquery_ujs will do what it needs to do
[20:43:06] smathy: ght, image_tag renders an HTML <img> element, it doesn't cache.
[20:43:08] s2013: oh wth is that? never even heard of it
[20:43:22] smathy: s2013, read the jquery_ujs.js source.
[20:43:36] iamse7en: has joined #RubyOnRails
[20:43:42] smathy: I only skimmed it quickly, but I think that's how UJS triggers the bindings for all the data-* stuff.
[20:43:44] ght: smarthy: But there's an aspect of rails caching the images, in fact you can see it display the checksum value or what have you prior to loading the image for a split second.
[20:43:46] s2013: so where do i 'fire' it? im a bit confused
[20:43:51] s2013: thing is i took off data-remote
[20:43:53] ght: Is it possible to disable that on a single call?
[20:43:57] ght: Or would that have to be site-wide?
[20:44:14] ght: As in, disable caching for development?
[20:44:28] smathy: ght, the checksum is just part of the filename, there's no point in disabling it. If you want a new checksum, change the underlying asset.
[20:44:53] mary5030: has joined #RubyOnRails
[20:45:24] ght: smathy: Not sure how much of what I've typed you've caught, but I've altered the file name, altered the directory location of the filename, Rails.cache.clear, rake assets:clobber, rake assets:clear, tried multiple machines, etc.
[20:45:36] ght: so you're saying, armed with that knowledge, I should do what exactly? "Change the asset"?
[20:46:04] ght: Am I missing something in terms of deleting any and all legacy cached references in rails 4.2?
[20:46:17] bricker: It's something dumb that he's missing, something that we can't possibly see
[20:46:24] smathy: ght, you can disable caching in your browser, then it will not use its local cache at all. You can also do a full reload of a page in most browsers, in Chrome you do this by having the developer tools panel open and long-clicking on the Refresh/Reload button. You'll get a menu pop up with "Empty Cache and Hard Reload" as an option.
[20:46:31] bricker: we're going to sit here trying to help him debug and then it's going to be some typo or something
[20:46:35] ght: smathY: I have local caching via firebug.
[20:46:42] ght: bricker: Expert analysis, thank you.
[20:46:43] mary5030: has joined #RubyOnRails
[20:46:45] momomomomo: where's the code
[20:46:56] smathy: ght, this is a problem in just dev?
[20:46:57] smathy: (I haven't been following)
[20:46:58] ght: Sorry, I have local caching disabled.
[20:47:08] ght: smathy: Yes, that's correct, the site is only in development at this time.
[20:47:15] benlieb: has joined #RubyOnRails
[20:47:19] smathy: ght, do you have a public/assets folder?
[20:47:24] bricker: ght: This happens every day and it's always something obvious.
[20:47:45] ght: smathy: I do not, I have a public folder, but no assets subdirectory.
[20:48:19] smathy: ght, and you're using just `rails server` from the command line to run your server?
[20:48:31] ght: No, this is passenger / apache2
[20:48:35] ght: on an internal development box
[20:48:48] smathy: ght, ok, so maybe apache is caching it :)
[20:48:53] momomomomo: passenger caching is probably the issue
[20:48:54] ght: Yes, I suggested that.
[20:49:00] pothibo: has joined #RubyOnRails
[20:49:01] momomomomo: smathy: no, passenger caches without hitting the ruby stack
[20:49:10] bricker: ght: where are your assets being served from if not public/assets?
[20:49:11] ght: Interesting, let me look into clearing the passenger cache.
[20:49:12] momomomomo: it's their new 'turbocaching' bug (aka feature)
[20:49:17] ght: bricker: app/assets
[20:49:19] ght: Rails 4.2
[20:49:20] smathy: bricker, he's in dev, rails is serving them.
[20:49:31] momomomomo: are you sure rails is, or has passenger cached them?
[20:49:39] smathy: Right, sure.
[20:49:41] momomomomo: AFAIK, passenger doesn't have a TTL for its 'turbocaching'
[20:49:44] smathy: I just meant generally, first time.
[20:49:45] ght: momomomo: This is a good idea.
[20:49:50] ght: I'm looking into it, thank you sir.
[20:50:02] momomomomo: ght, just remove passenger/apache in dev
[20:50:04] momomomomo: and use thin
[20:50:07] momomomomo: see if that does it
[20:50:23] bricker: I have used passenger/apache in dev a lot and never had this problem
[20:50:26] ght: Well before I go reconstructing our otherwise-working dv box I'm going to see if I can't clear the passenger cache
[20:50:29] momomomomo: bricker: the new passenger 4?
[20:50:29] ght: One second, thank you.
[20:50:40] bricker: momomomomo: no passenger 3
[20:51:02] momomomomo: bricker: smathy http://torquebox.org/news/2014/12/05/torquebox-4-0-0-alpha1-released/ ctrl +f to "passenger"
[20:51:45] bricker: momomomomo: Yes I am aware of the new version of passenger as I'm using it in production all over the place
[20:51:49] bricker: what's your point
[20:51:52] momomomomo: bricker: I'm so sorry
[20:51:54] workmad3: has joined #RubyOnRails
[20:51:55] startupality: has joined #RubyOnRails
[20:52:01] blackmes1: has joined #RubyOnRails
[20:52:10] momomomomo: that you're using passenger
[20:52:35] bricker: I can't roll my eyes any harder without hurting myself
[20:52:47] s2013: smathy ok i think i got something.. in the console i get this error message for like .1 sec resource interpreted as document but transferred with mime type text/javascript .. i had to make a screen capture and then play it frame by frame to capture the error
[20:52:50] momomomomo: bricker: it was a joke in bad taste, I'm aware
[20:52:56] smathy: momomomomo, that's just passenger 5 though right?
[20:53:04] momomomomo: whichever is the new version
[20:53:11] momomomomo: aye passenger 5 I guess
[20:53:28] hotpancakes: has joined #RubyOnRails
[20:53:40] momomomomo: which had multiple serious bring-down-your-servers bug in their first production release
[20:53:46] smathy: Ok, might have been worth checking that ght was using that :)
[20:54:16] momomomomo: but passenger on a new dev box
[20:54:17] momomomomo: with a new app
[20:54:26] momomomomo: ght: which version of passenger are you using?
[20:54:28] revpj: has left #RubyOnRails: ()
[20:54:29] smathy: Oh, I didn't realize this was a new dev box.
[20:54:34] smathy: I wasn't paying attention for most of it.
[20:55:23] smathy: ght, is a snarky one at times so my motivation is low.
[20:56:38] momomomomo: https://blog.phusion.nl/2015/03/07/phusion-passenger-5-0-2/
[20:56:50] momomomomo: smathy: fair enough man, I just hopped in, and hopping out now :P
[20:56:59] pharserror: has joined #RubyOnRails
[20:57:02] momomomomo: "There was a bug in 5.0.1 where requests could sometimes become stuck when the response is too large. As a result, requests would pile up, resulting in "requests queue full" or "this website is under heavy load" errors. "
[20:57:57] bricker: we ran into that problem but the updates fixed it
[20:57:58] towski_: has joined #RubyOnRails
[20:58:33] smathy: ACTION doesn't surf the cutting edge with things as important as app servers
[20:59:00] smathy: ...or in other words slow and reliable > fast and 3am alerts.
[20:59:00] momomomomo: ACTION doesn't trust phusion who has been dishonest about their performance and reliability with app servers
[20:59:24] smathy: ACTION heard you the other 3000 times you said it ;)
[20:59:33] momomomomo: ACTION doesn't like phusion OK?!?
[20:59:41] bricker: ACTION runs his own performance tests like a responsible developer
[20:59:55] momomomomo: ACTION points to running 5.0.1 in production
[20:59:56] smathy: No, wait, you *DON'T* like them now? I thought you loved them.
[21:00:12] JakFrist: has joined #RubyOnRails
[21:00:24] hotpancakes: has joined #RubyOnRails
[21:01:03] s2013: man this is one of the most annoying issues ive ever faced :\
[21:01:06] momomomomo: in all seriousness though, there are some components which are fine to run at near edge; I just disagree with the way phusion operates and markets
[21:01:16] momomomomo: and distrust them, heavily
[21:01:19] Exuma: has joined #RubyOnRails
[21:01:29] [Butch]: has joined #RubyOnRails
[21:02:04] ndrei: has joined #RubyOnRails
[21:02:57] pixelhandler: has joined #RubyOnRails
[21:03:26] Exuma: hey, does anyone use rails + docker in production?
[21:03:34] djbkd: has joined #RubyOnRails
[21:03:59] j_mcnally: has joined #RubyOnRails
[21:04:17] smathy: s2013, sorry, nothing in what you mentioned triggered any lightbulbs.
[21:04:36] s2013: rails is basically sending the wrong mime type
[21:05:40] x1337807x: has joined #RubyOnRails
[21:06:10] fmcgeough: has joined #RubyOnRails
[21:06:50] acovrig: Is there a guide on associations? I can???t seem to get it working???
[21:07:06] wasp__: has joined #RubyOnRails
[21:07:20] bin_005_v: has joined #RubyOnRails
[21:07:50] s2013: the official one is pretty good
[21:07:55] s2013: but also look up richard schneems
[21:08:18] benlieb: has joined #RubyOnRails
[21:08:38] ght: Here's a question: How do you go about determining what filename a cached asset has?
[21:09:19] ght: I'm looking in firebug and under the images pane it acts like it's getting every image but the one in question, adn the one in question appears for a split second as a string of checksum chars, then loads.
[21:09:30] ght: Presumably because it's the only one that's part of an image_tag link_to and thus is caching somehow.
[21:10:36] mase-chatter: has joined #RubyOnRails
[21:10:42] ght: Never mind, found it by inspecting that specific element in firebug.
[21:11:20] ght: When Firebug reports the path is /assets/imagename-32423j234jl32lk42j3klj.svg, what is the physical path to that file in Rails 4.2 development?
[21:11:29] ght: I'll just execute a find for that filename.
[21:11:33] acovrig: I have events with a has_many items and items with a belongs_to events; why would Event.find(1).items return no such column: items.event_id: SELECT "items".* FROM "items" WHERE "items"."event_id" = ?
[21:11:43] mase-chatter: can anyone recomend a good basic forum gem
[21:12:49] cnk: mase-chatter: https://www.ruby-toolbox.com/categories/forum_systems
[21:13:16] cnk: That said, discourse is sooooo much better than anything else, I would seriously consider running that
[21:13:39] mase-chatter: cnk, thanks! i'll check out discourse
[21:14:47] mase-chatter: discourse looks awesome
[21:14:58] Grundell: has joined #RubyOnRails
[21:15:06] mando: has joined #RubyOnRails
[21:15:13] peady: has joined #RubyOnRails
[21:16:20] siemprefresco: has joined #RubyOnRails
[21:17:06] bungoman: has joined #RubyOnRails
[21:17:23] ght: Ok, so, when I inspect this image in Firebug, the image returned has the following filename:
[21:17:26] ght: /assets/ourimage2-4732c749f23670d77718029fb7eb558ae4c69b2ab6bdcc6c0a2eb4c56b66a708.svg
[21:17:38] OffTheRails: has joined #RubyOnRails
[21:17:58] siempref_: has joined #RubyOnRails
[21:17:59] ght: However, if I grep / find / updatedb and locate that entire string, or various segments of that string, a file with that name appears nowhere on our site.
[21:18:13] ght: Not just our site, anywhere on the filesystem.
[21:18:15] ght: Is that expected?
[21:18:16] RickJamesTheThir: has joined #RubyOnRails
[21:18:37] blackmesa: has joined #RubyOnRails
[21:18:37] Ergo: has joined #RubyOnRails
[21:19:12] RickJamesTheThir: I was needing help when creating a new instance of a model
[21:20:49] RickJamesTheThir: so when I create a new instance of a model I have a name and a file. The file is not part of the model but I want to do something with it in the create method. In the form I have a file that can uploaded. When I submit it and it tries to create the model it gives me an error. "unknown attribute example_file"
[21:21:19] nicken: has joined #RubyOnRails
[21:22:09] Senjai: Will skip_before_action only skip actions defined using before_action and not before_filter
[21:22:12] FernandoBasso: has joined #RubyOnRails
[21:22:26] ght: The answers are sparse this afternoon, gentlemen.
[21:22:31] yaymukund: has joined #RubyOnRails
[21:23:36] christiandsg: has joined #RubyOnRails
[21:24:07] bricker: Senjai: both, before_action is an alias for before_filter
[21:25:21] dcunit3d: has joined #RubyOnRails
[21:25:33] Senjai: bricker: That's what I thought
[21:25:44] Senjai: There was something else that was going on with git history, I've remedied it
[21:25:59] Senjai: Love me some git bisect
[21:26:03] pipework: Using elixir? har har har
[21:26:39] bungoman: has joined #RubyOnRails
[21:27:20] pharserror: has joined #RubyOnRails
[21:27:39] blackmes1: has joined #RubyOnRails
[21:30:19] Kneecaps: has joined #RubyOnRails
[21:31:11] jonathanwallace: has joined #RubyOnRails
[21:31:40] willywos: has joined #RubyOnRails
[21:31:46] HenriettaSalt: has joined #RubyOnRails
[21:32:18] sonofdirt: has joined #RubyOnRails
[21:32:21] febuiles: has joined #RubyOnRails
[21:32:32] bruno-: has joined #RubyOnRails
[21:32:56] CheckYourSix: has joined #RubyOnRails
[21:32:59] sonofdirt: has joined #RubyOnRails
[21:34:13] allcentury: has joined #RubyOnRails
[21:36:31] haltEnigma: has joined #RubyOnRails
[21:37:37] stef1a: has joined #RubyOnRails
[21:38:23] rhizome: ght: did you enable some assets bunko for dev?
[21:38:55] haltEnigma: has joined #RubyOnRails
[21:39:07] chipotle: has joined #RubyOnRails
[21:39:20] arashb: has joined #RubyOnRails
[21:39:26] haltEnigma: has joined #RubyOnRails
[21:40:58] haltEnigma: has joined #RubyOnRails
[21:41:16] rndm: has left #RubyOnRails: ("WeeChat 0.4.2")
[21:41:23] haltEnigma: what is the use of tinymce-rails ?
[21:42:00] bungoman: has joined #RubyOnRails
[21:42:04] rhizome: rich text editor
[21:44:03] ProLoser: has joined #RubyOnRails
[21:46:04] bricker: haltEnigma: if you're looking for a rich text editor, also look at CKEditor, it's 100% better than tinymce imo
[21:46:18] bricker: maybe even 200% better
[21:46:26] bricker: Somewhere between 100-200% better
[21:46:38] bricker: Like maybe 160% better
[21:46:56] rhizome: poppycock, not a smidge over 140%
[21:48:16] haltEnigma: bricker: thanks , i'll take a look at it
[21:48:55] Papierkorb: has joined #RubyOnRails
[21:49:19] pharserror: can VIM not do rich text?
[21:50:11] pharserror: I have no idea what tinymce
[21:50:18] charliesome: has joined #RubyOnRails
[21:50:42] pharserror: just trollin'
[21:50:49] Papierkorb: you won't say
[21:51:09] Papierkorb: oh, you did, cheers
[21:51:53] LambdaSource: has joined #RubyOnRails
[21:52:18] Surt_Q: has joined #RubyOnRails
[21:53:46] bricker: what is going on hjere
[21:55:09] hyperbot: has joined #RubyOnRails
[21:56:54] axl_: has joined #RubyOnRails
[21:59:39] hyperbot: has joined #RubyOnRails
[22:00:29] kadoppe: has joined #RubyOnRails
[22:00:37] hotpancakes: has joined #RubyOnRails
[22:00:52] leonardoajim: has joined #RubyOnRails
[22:02:22] loc22: has joined #RubyOnRails
[22:03:52] charliesome: has joined #RubyOnRails
[22:04:11] Scripore: has joined #RubyOnRails
[22:04:44] benhuda: has joined #RubyOnRails
[22:05:13] Rodya_: has joined #RubyOnRails
[22:05:23] Miesco: has joined #RubyOnRails
[22:05:28] Miesco: Hi. What does `gem pristine --all` do?
[22:06:02] neanderslob: has joined #RubyOnRails
[22:06:08] edwinvdgraaf: has joined #RubyOnRails
[22:06:08] Pupeno: has joined #RubyOnRails
[22:06:50] infinitone: has joined #RubyOnRails
[22:08:17] ivanskie: has joined #RubyOnRails
[22:09:17] momomomomo_: has joined #RubyOnRails
[22:09:41] bricker: Miesco: "Restore all installed gems to pristine condition
[22:10:00] Miesco: bricker: What do you mean by "pristine"?
[22:10:28] bricker: Miesco: type "gem pristine --help", it explains it pretty clearly
[22:10:49] Miesco: bricker: What is a cached gem?
[22:10:50] bricker: Miesco: it resets your local copy of the gem to be as if you had just installed it for the firset time
[22:11:05] bricker: Miesco: your local copy of the gem
[22:11:24] Miesco: bricker: The gem changes?
[22:11:41] bricker: Miesco: you can change it
[22:11:48] bricker: if you're debugging or whatever
[22:12:15] mrbubbles: has joined #RubyOnRails
[22:13:21] Miesco: bricker: Isn't a gem a library? Why would someone modify a library?
[22:13:54] bricker: Miesco: debugging or testing
[22:14:00] bricker: or accidentally
[22:14:22] Miesco: bricker: Why would I be debugging a library?
[22:14:33] bricker: Miesco: you might be debugging your code which uses the libary
[22:14:47] bricker: Or you might be hunting down a bug
[22:14:47] Miesco: bricker: Then how is that changing the library if I am changing my code?
[22:14:49] rhizome: lets just cut to the chase: you wouldn't be
[22:14:58] bricker: rhizome: I do it all the time
[22:15:13] rhizome: because you're you
[22:15:15] bricker: I've found plenty of bugs by placing debuggers in the rails code
[22:15:31] rhizome: *others* may change them, Miesco wouldn't be
[22:16:01] rhizome: how do i know? because the question is being asked ;)
[22:16:28] bonhoeffer: has joined #RubyOnRails
[22:16:45] rhizome: this isn't negative or personal. i rarely poke around.
[22:16:56] rhizome: i've never had to pristine
[22:17:03] bricker: Miesco: being able to modify or place debuggers into libaries is a very useful debugging tool
[22:17:12] bricker: I've never used pristine either
[22:17:29] bricker: I just manually revert my changes
[22:17:33] rhizome: because you submit PRs and only ever have to gem update that gem
[22:17:41] JakFrist: has joined #RubyOnRails
[22:17:45] rhizome: "I AM THE CHANGE"
[22:18:06] rhizome: anyhoo. i'm drinking coffee this afternoon.
[22:18:31] bricker: it's tea time for ol' bryan
[22:18:54] rhizome: pg tips is my usual, but i ran out.
[22:19:27] bricker: what's pg tips
[22:19:38] j_mcnally: has joined #RubyOnRails
[22:19:44] rhizome: i'm a builder's tea kind of person
[22:20:11] bricker: I'm just drinking whatever Tazo chai they had in the drawer
[22:20:19] SteenJobs: has joined #RubyOnRails
[22:20:22] bricker: smells better than it tastes
[22:20:58] bricker: it tastes like hot plant water
[22:21:04] bricker: but so does most tea
[22:21:13] rhizome: chai should be brewed in milk!
[22:21:21] rhizome: what is this world coming to guys
[22:21:32] rhizome: well, not tazo chai, of course
[22:21:38] bricker: Unfortuantely we don't have a hot milk dispenser at the office
[22:21:51] bricker: outrageous right?
[22:22:12] jmimi: has joined #RubyOnRails
[22:22:16] rhizome: no indian/pakistani restaurants either?
[22:22:32] LJT: has joined #RubyOnRails
[22:22:48] mase-chatter: Hello all, i'm trying to build a web app with ruby on rails, when i go to create a new app with "rails new andthenamehere" I get the bundle complete! and try and move on to the next step in the tutorial, to start the rails server with WeBrick but to no avail
[22:23:07] rhizome: mase-chatter: cd andthenamehere
[22:23:10] centrx: "no avail", is that some kind of error message?
[22:23:36] SteenJobs: has joined #RubyOnRails
[22:23:53] mase-chatter: no, it creates the folders, with 54 gems installed
[22:24:03] bricker: rhizome: I live in Glendale, all we have is Armenian restaurants
[22:24:47] mase-chatter: centrx, rhizome, the error after i cd into the newly created folder is " 'method_missing': undefined method "active_record'
[22:26:01] bricker: mase-chatter: what command are you running to get that error?
[22:26:43] mase-chatter: (NoMethodError)
[22:26:43] bricker: mase-chatter: can you please gist the full terminal output
[22:26:45] rhizome: bricker: sounds delicious. research indicates it's a coffee culture there, tho
[22:27:02] bricker: rhizome: in Armenia or Glendale?
[22:27:16] bricker: Is it? I have never heard that
[22:27:27] rhizome: they have some special version of turkish coffee
[22:27:41] bricker: Armenian Coffee perhaps? :P
[22:29:27] dcunit3d: has joined #RubyOnRails
[22:29:55] SteenJobs: has joined #RubyOnRails
[22:30:05] vere: what is armenian food like?
[22:30:39] bricker: vere: it's middle-eastern
[22:30:42] x-light: has joined #RubyOnRails
[22:30:46] bricker: vere: greek food with less cheese basically
[22:31:22] bricker: mediterannean type food
[22:32:04] mase-chatter: bricker, http://pastebin.com/Gk0yVsVK
[22:32:19] roadpanda_: has joined #RubyOnRails
[22:32:32] bricker: huh... pastebin is blocked at my work
[22:32:40] bricker: I didn't know that until right now
[22:33:11] mase-chatter: http://pastie.org/10285497
[22:33:13] bulavard: has joined #RubyOnRails
[22:34:00] bulavard: has left #RubyOnRails: ()
[22:34:09] bricker: mase-chatter: it just looks like you don't have active record installed, I don't know why not, what tutorial are you following?
[22:34:13] brain_shim: has joined #RubyOnRails
[22:34:23] hyperbot: has joined #RubyOnRails
[22:34:26] bricker: Either that or your app isn't loading it for some reason
[22:34:37] Pupeno: has joined #RubyOnRails
[22:34:37] Pupeno: has joined #RubyOnRails
[22:34:45] mase-chatter: guides.rubyonrails.org/command_line.html#rails-generate
[22:35:05] mase-chatter: http://guides.rubyonrails.org/command_line.html#rails-generate
[22:35:20] bulavard: has joined #RubyOnRails
[22:35:43] rhizome: try a manual bundle install
[22:35:58] Scripore: has joined #RubyOnRails
[22:36:25] bricker: mase-chatter: or "bin/rails server" instead of just "rails server"
[22:36:48] HenriettaSalt: has joined #RubyOnRails
[22:37:03] mase-chatter: bricker, "bin/rails server" = same result
[22:37:20] mase-chatter: rhizome, "gem install bundler" ?
[22:37:49] rhizome: no, 'bundle install'
[22:38:26] mase-chatter: bundle install complete!
[22:38:36] mase-chatter: but server still same output
[22:38:59] Miesco: has left #RubyOnRails: ()
[22:39:13] rhizome: which rails
[22:40:03] mase-chatter: wow, um "No such file or directory - getcwd (Errno::ENOENT)
[22:40:12] Ergo: has joined #RubyOnRails
[22:40:24] mase-chatter: so rails isn't installed.....
[22:40:37] chipotle: has joined #RubyOnRails
[22:40:44] bricker: *frysquint*
[22:41:10] rhizome: echo $SHELL
[22:41:25] rhizome: oh wait, is that from rails -v?
[22:41:30] rhizome: try the which rails if so
[22:42:09] mase-chatter: which rails outputs "/home/mase/.gem/ruby/2.2.0/bin/rails"
[22:42:11] starfox_1f: has joined #RubyOnRails
[22:42:53] mase-chatter: does rails need to be installed within the specific directory where my app files are
[22:43:12] rhizome: no. now: /home/mase/.gem/ruby/2.2.0/bin/rails -v
[22:44:32] mase-chatter: No such file or directory
[22:45:41] bricker: it's calling getcwd for some reason?
[22:45:48] philcris_: has left #RubyOnRails: ()
[22:46:14] rhizome: $(which rails) -v
[22:46:26] philcrissman: has joined #RubyOnRails
[22:47:14] bricker: mase-chatter: how did you install rails?
[22:47:34] bonhoeffer: has joined #RubyOnRails
[22:48:18] mase-chatter: well i've had it successfully installed within another directory
[22:48:58] mase-chatter: i built a "One Month Ruby on Rails App" through there tutorial a while back and now I'm revisitng the process for a new web app
[22:49:06] mase-chatter: i'm still very new to this!
[22:49:24] mary5030: has joined #RubyOnRails
[22:50:06] OffTheRails: has joined #RubyOnRails
[22:50:25] wswheeler: has joined #RubyOnRails
[22:50:33] bricker: mase-chatter: maybe try reinstalling, something is messed up
[22:50:50] mase-chatter: but i fear it will break my active application
[22:51:13] yaymukun1: has joined #RubyOnRails
[22:51:20] mase-chatter: can two applications co-exist!? I would think so, my configuration is messed up
[22:52:26] viiralvx: has joined #RubyOnRails
[22:52:40] fgo: has joined #RubyOnRails
[22:52:47] mase-chatter: so I've just checked my other directory (the active web app) and its set up with Rails 4.2.1
[22:53:07] mase-chatter: which leads me to believe that I need to install rails into my new project directory.....
[22:53:23] SteenJobs: has joined #RubyOnRails
[22:53:33] hotpancakes: has joined #RubyOnRails
[22:53:44] p8m: has joined #RubyOnRails
[22:54:05] bricker: mase-chatter: you only install rails once on your computer
[22:54:05] rhizome: that's what bundle install does
[22:54:12] armyriad: has joined #RubyOnRails
[22:54:12] PlasmaStar: has joined #RubyOnRails
[22:54:27] bricker: (per version)
[22:54:34] rhizome: and gemset
[22:54:36] matthias_: has joined #RubyOnRails
[22:54:41] mikajo: has joined #RubyOnRails
[22:54:42] mase-chatter: ok, so why can't this new project see that
[22:54:43] FCser: has joined #RubyOnRails
[22:54:53] mase-chatter: i'm trying to start from scratch
[22:54:54] brandon: has joined #RubyOnRails
[22:54:55] itkin: has joined #RubyOnRails
[22:55:00] mase-chatter: and can't even get it setup proper.....
[22:55:00] lesnik_: has joined #RubyOnRails
[22:55:03] LiquidInsect: has joined #RubyOnRails
[22:55:12] EXCHGR: has joined #RubyOnRails
[22:55:20] rhizome: you say another app runs fine?
[22:55:33] codelahoma: has joined #RubyOnRails
[22:55:50] jenrzzz: has joined #RubyOnRails
[22:55:57] mase-chatter: I have it running locally trhough WEBrick 1.3.1 and pushed to Git and Heroku
[22:56:24] arBmind1: has joined #RubyOnRails
[22:56:35] mase-chatter: no problem, it sounds like it might be that I need to define an environment variable that points to my new project?
[22:57:08] widith_: has joined #RubyOnRails
[22:57:21] Trynemjoel: has joined #RubyOnRails
[22:57:21] chridal: has joined #RubyOnRails
[22:57:30] lele: has joined #RubyOnRails
[22:57:44] gremax: has joined #RubyOnRails
[22:57:47] siddart: has joined #RubyOnRails
[22:57:59] hfp_work: has joined #RubyOnRails
[22:58:41] rhizome: shouldn't require more than rails new foo; cd foo; ./bin/rails s
[23:00:16] mase-chatter: well then, idk
[23:00:20] marahin: has joined #RubyOnRails
[23:00:41] arooni-mobile: has joined #RubyOnRails
[23:01:02] marahin: Hey guys! While using Devise and Rails Admin how exactly can I make Rails Admin to only permit users with 'admin' attribute set to 'true' to log into the rails admin panel?
[23:01:09] arooni-mobile: has joined #RubyOnRails
[23:01:24] rhizome: mase-chatter: try again somewhere else with a new foo app
[23:02:10] mase-chatter: rhizome, can you recomend a tutorial?
[23:02:37] moeabdol: has joined #RubyOnRails
[23:02:43] tsvenson: has joined #RubyOnRails
[23:02:57] rhizome: just try to do it again
[23:05:42] [Keith]: has joined #RubyOnRails
[23:06:26] HenriettaSalt: has joined #RubyOnRails
[23:07:04] HenriettaSalt: has joined #RubyOnRails
[23:07:04] giowong: has joined #RubyOnRails
[23:08:22] robotbrain: has joined #RubyOnRails
[23:09:19] DEA7TH: has joined #RubyOnRails
[23:09:27] pharserror: has joined #RubyOnRails
[23:11:07] giowong: https://gist.github.com/gwong89/3f275d5235a8570d39e4
[23:11:16] giowong: anyway to omit the error on this ?
[23:11:29] giowong: the top_property is a api call to mixpanel
[23:12:05] mase-chatter: i've created a new directory and am going through this http://guides.rubyonrails.org/getting_started.html
[23:12:26] bungoman_: has joined #RubyOnRails
[23:12:46] bricker: giowong: where's the error originating from?
[23:12:57] giowong: when i run the script
[23:13:10] bricker: "from my computer"
[23:13:13] bricker: giowong: I mean where in the script
[23:13:24] giowong: the top_property line
[23:13:49] giowong: im basically accessing my theme model and putting the name into the where line
[23:13:54] giowong: #{theme.name}
[23:14:04] bricker: undefined local variable or method `top_property'
[23:14:06] giowong: the api cant give me a list of my themes on their end, hence this way
[23:14:11] mase-chatter: its hung up on "gem install rails" after the part where its installing ri documentation for rails-4.2.3
[23:14:16] bricker: that's not coming from anywhere in the code you pasted
[23:15:30] joelataylor: has joined #RubyOnRails
[23:15:37] bricker: giowong: you're setting the variable there
[23:15:39] giowong: oh sorry i see what you mean
[23:15:51] mase-chatter: ok, i'm taking a break, food must be made and I must be fed!
[23:16:00] bricker: and then at some other undisclosed location, presumably in a different scope, you're referencing that variable, which you can't do
[23:16:24] bricker: giowong: you need to initialize the variable outside of the loop, although it seems unlikely that's actually what you want to do
[23:17:12] giowong: unless i make it a instance???
[23:17:40] bricker: giowong: that would work too
[23:17:41] giowong: i see why its complaining
[23:17:51] giowong: its because im printing the value
[23:18:00] giowong: whats the best way
[23:18:11] bricker: giowong: local variable
[23:18:21] starfox_1f: has left #RubyOnRails: ()
[23:18:27] bricker: otherwise you're mucking with the main Object which is risky
[23:18:34] starfox_sf: does anybody have experience using Split for A/B testing? I am pondering weather or not I should use Split or build something from scratch. I am working on a large e-commerce rails app, with a lot of products, and I want to do A/B testing on a number of things for each product - title, suttitle, description, image etc
[23:18:57] fighella: has joined #RubyOnRails
[23:20:22] giowong: actually bricker
[23:20:36] giowong: how would i place each loop call into a array?
[23:20:40] Pupeno: has joined #RubyOnRails
[23:21:48] bricker: giowong: http://ruby-doc.org/core-2.2.0/Array.html#method-i-3C-3C
[23:21:52] Pupeno: has joined #RubyOnRails
[23:21:52] Pupeno: has joined #RubyOnRails
[23:24:15] allcentury: has joined #RubyOnRails
[23:25:20] yaymukund: has joined #RubyOnRails
[23:26:43] bonhoeffer: i???m confused, why does jquery always start with $ -> ??? that loads the dom right?
[23:26:55] bonhoeffer: why isn???t that default ??? do you ever not want to load the dom?
[23:28:27] bricker: bonhoeffer: that's coffeescript shorthand for jquery's shorthand for $(document).ready() which waits until the DOM is loaded to run the scripts
[23:28:29] spalenza: has joined #RubyOnRails
[23:28:44] bonhoeffer: yep ??? but why is that required? seems like it should be default
[23:29:21] bricker: bonhoeffer: it's not required, not all javascript is dom-related
[23:29:38] bricker: if you're manipulating the DOM immediately then you should add that
[23:29:44] bonhoeffer: agreed, but i???m trying to think of use cases where it is not
[23:29:53] bonhoeffer: so libraries and what not
[23:32:27] bricker: bonhoeffer: all of your initialization-style code can be done before the dom is ready
[23:32:40] Lightsword: has joined #RubyOnRails
[23:32:57] bricker: for example, jQuery doesn't wait until the DOM is ready to setup its functions and stuff
[23:33:38] bricker: you can even start building elements before the dom is ready, then when the DOM is ready move them into place
[23:33:44] [Keith]: has joined #RubyOnRails
[23:33:50] eminencehc_: has joined #RubyOnRails
[23:34:03] hotpancakes: has joined #RubyOnRails
[23:34:07] bricker: make XHR requests too
[23:34:37] bricker: setup binds and triggers too
[23:34:44] bonhoeffer: hmm .. .interesting
[23:35:03] bonhoeffer: so, i use $ -> multiple times, doesn???t seem very DRY
[23:35:10] kies^: has joined #RubyOnRails
[23:35:16] bonhoeffer: in different coffeescript files for different pages
[23:35:20] bricker: bonhoeffer: doesn't matter, if the DOM is ready then the function will run immediately
[23:36:03] rhizome: has joined #RubyOnRails
[23:36:08] codeshah: has joined #RubyOnRails
[23:37:14] bonhoeffer: cool ??? that helps
[23:37:33] JakFrist: has joined #RubyOnRails
[23:38:33] Pupeno: has joined #RubyOnRails
[23:38:45] LeoDee: has joined #RubyOnRails
[23:40:20] rhizome: has joined #RubyOnRails
[23:41:52] chipotle: has joined #RubyOnRails
[23:42:41] marahin: anyone been using rails admin here?
[23:43:26] microdex: has joined #RubyOnRails
[23:43:42] zorak8: has joined #RubyOnRails
[23:44:51] stantonnet: has joined #RubyOnRails
[23:44:53] rhizome: has joined #RubyOnRails
[23:44:58] simplyianm: has joined #RubyOnRails
[23:46:08] s2013: has joined #RubyOnRails
[23:47:07] Coldblackice: has joined #RubyOnRails
[23:47:48] x1337807x: has joined #RubyOnRails
[23:48:38] nicken: has joined #RubyOnRails
[23:48:45] nicken: has joined #RubyOnRails
[23:48:45] nicken: has joined #RubyOnRails
[23:52:00] moeabdol: has joined #RubyOnRails
[23:53:25] Rodya_: has joined #RubyOnRails
[23:53:43] bricker: elasticsearch has a very steep learning curve, I am currently finding out
[23:54:50] chipotle: has joined #RubyOnRails
[23:57:17] eggoez: has joined #RubyOnRails
[23:57:43] Limix: has joined #RubyOnRails
[23:57:52] melonstorm: has joined #RubyOnRails
[23:59:29] bricker: rhizome: I'm on my second cup of tazo chai tea brewed in water
[23:59:32] bricker: how do you like THAT