« Back to channel list

#RubyOnRails - 22 June 2015

« Back 1 day Forward 1 day »
[00:04:25] nopolitica: has joined #RubyOnRails
[00:04:55] sevenseacat: has joined #RubyOnRails
[00:07:22] h4sh3dN4m3: has joined #RubyOnRails
[00:07:39] volk_: has joined #RubyOnRails
[00:18:35] towski_: has joined #RubyOnRails
[00:20:08] tobobo: has joined #RubyOnRails
[00:21:18] totimkopf: has joined #RubyOnRails
[00:22:10] skj3gg: has joined #RubyOnRails
[00:25:00] loksatin: has joined #RubyOnRails
[00:26:14] User458764: has joined #RubyOnRails
[00:26:55] vieq: has joined #RubyOnRails
[00:27:29] vieq: guys, I am learning RoR and wanted to continue my bath with vim as IDE
[00:27:49] vieq: googled tell I am bored and could not find out exactly which suit me to startup.
[00:27:50] robustus: has joined #RubyOnRails
[00:28:32] vieq: guys, gals any tips is much apreciated
[00:29:26] vieq: I landed here a while ago, https://github.com/astrails/dotvim and followed the installation but running vim afterwards gives me some errors
[00:30:54] toretore: well, why don't you just start without adding a bunch of plugins and other crap and then add the ones you want as you go along?
[00:31:26] wmoxam: vieq: I would start here: https://github.com/tpope/vim-rails
[00:32:09] Ropeney: vieq: https://github.com/kien/ctrlp.vim is probably the single most important vim plugin
[00:32:20] vieq: toretore: you're correct I thought of that, but been a long time using vim as editor only and when I started learning ruby which was not long ago I picked up some happits that I wishd to have them on vim with no fuss
[00:32:31] vieq: like code compleleation and multi select :s
[00:32:40] vieq: never use a plugin with vim before
[00:33:17] vieq: wmoxam: checking on the link
[00:33:25] vieq: Ropeney: checking too
[00:34:03] fryguy: vieq: you will be much better off if you use vim plainly and add plugins slowly as necessary as opposed to starting with a fully baked setup
[00:34:47] vieq: fryguy: yes, true; ok how about this ... just code compelation for Ruby first
[00:34:53] vieq: and I will work it up from there :D
[00:35:52] fryguy: vieq: that should just work out of the box without having to do anything
[00:36:01] vieq: erm, I think I am gonna wipe my ~/.vim* and start all over
[00:36:25] Radar: vieq: Or you could just use Sublime Text so that you're not learning Vim AND Ruby AND Rails at the same time.
[00:36:35] Radar: And you can enable Vintage mode to enable some Vim shortcuts
[00:37:19] vieq: Radar: the reason I am starting with vim is that too much local friends told me that sublime is kinda outdated on development
[00:37:24] vieq: and some started using atom
[00:37:26] Radar: lol no it's not
[00:37:31] vieq: and some just went back to vim
[00:37:32] sevenseacat: outdated? lol
[00:37:34] Radar: I use it every day all day
[00:37:37] Radar: gm sevenseacat
[00:38:02] vieq: I am telling you what I heared, not the expert here :)
[00:38:05] fryguy: it's a text editor. don't worry about it lol
[00:38:14] vieq: I layed before me my total noobiness :)
[00:38:51] vieq: so my best course with vim is use the vanilla and add up as I go, or use sublime...
[00:39:02] wmoxam: vieq: or you could use Atom ;)
[00:39:04] darrencauthon: has joined #RubyOnRails
[00:39:12] vieq: mm, I found some nice links to setup sublime with rails now ..
[00:39:23] vieq: the seven hells of the ide :D
[00:39:25] wmoxam: vieq: vim is certainly worth learning as well
[00:39:32] wmoxam: also, none is an IDE
[00:39:50] wmoxam: all are text editors with a few integrated features
[00:39:56] vieq: wmoxam: yes, I am used to it as a text editor; just trying to make use of it
[00:41:19] dcunit3d: has joined #RubyOnRails
[00:41:35] fryguy: don't forget about emacs!
[00:41:46] robert45: has joined #RubyOnRails
[00:41:53] wmoxam: ^^^ actually forget about it
[00:41:58] dcunit3d: so i got Rails stuck serving SSL and now that I turned it off, all the HTTP requests coming in are malformed
[00:42:36] SteenJobs: has joined #RubyOnRails
[00:42:38] h4sh3dN4m3: has left #RubyOnRails: ()
[00:42:39] dcunit3d: apparently this is caused by something getting cached by the client
[00:42:39] wmoxam: Rails doesn't do ssl, though the webserver in front if it might
[00:42:43] fryguy: dcunit3d: sounds like you are making https requests to an http server, or vice versa
[00:42:54] vieq: thanks guys, gals
[00:42:55] CheckYourSix: Ok, to_i seems to give whole numbers only. What can I use instead that will support decimals?
[00:42:58] vieq: has left #RubyOnRails: ()
[00:43:05] wmoxam: CheckYourSix: to_f
[00:43:19] CheckYourSix: I'm guessing that stands for float?
[00:43:20] Ropeney: whats popular for generating pdfs?
[00:43:27] dcunit3d: fryguy: i think that's whats happening bc the client has cached that it should communicate to my server via SSL
[00:43:39] fryguy: dcunit3d: i doubt it
[00:43:42] Radar: Ropeney: Satanic rituals.
[00:43:58] Radar: Ropeney: Other than that, wkhtmltopdf or prawn
[00:44:02] dcunit3d: but my client is an iOS simulator, so i'm not sure how to clear that
[00:44:03] fryguy: dcunit3d: they would be getting connection refused if that were the case
[00:44:06] wmoxam: Ropeney: https://www.ruby-toolbox.com/search?utf8=%E2%9C%93&q=pdf
[00:44:08] dcunit3d: fryguy: https://stackoverflow.com/questions/13130045/error-bad-request-line-force-ssl-rails
[00:44:35] fryguy: dcunit3d: yes, I know what the error is
[00:45:15] dcunit3d: i'm making http requests to the server
[00:45:31] fryguy: and what is your server expecting
[00:45:37] Ropeney: wmoxam: Is ruby-toolbox even valid anymore? Says last announcement was 2 years ago
[00:46:06] dcunit3d: http. also, chrome can communicate with my server via HTTP. only having problems on the iOS simulator
[00:47:15] fryguy: dcunit3d: sounds like a problem with ios simulator then, or the code that you are running inside of the simulator. seems out of scope for this channel
[00:48:28] wmoxam: Ropeney: they seem to have stopped blogging, but AFAICT their recommendations are still valid (and user generated)
[00:48:58] Ropeney: wmoxam: cheers, i stopped looking there thinking it was dated
[00:49:50] dcunit3d: fryguy: yep, that's it. iOS keeps upping it to send HTTPS instead of HTTP
[00:49:57] ltd: has joined #RubyOnRails
[00:50:22] SteenJobs: happy weekend everyone! i added ajax to will_paginate and now all JS for anything within the divs that are being refreshed with ajax breaks. is this a bug or could i be doing something wrong?
[00:50:47] dcunit3d: i've been trying all !@#$'ing day to get this !@#$ to bypass App Transport Security, but only in development environment (i'm new to iOS)
[00:51:21] Ropeney: dcunit3d: You seem mad
[00:51:25] fryguy: dcunit3d: you'd probably be better off just putting a real web server in front of your ruby app that handles ssl termination for you, that way your dev environment is closer to production
[00:52:01] fryguy: SteenJobs: you are almost certainly doing something wrong
[00:52:07] SteenJobs: haha that little faith?
[00:52:21] fryguy: i have faith, in published gems that have been developed for years
[00:52:35] SteenJobs: fryguy: there???s very little code going into it - i???ll gist it, gimme a sec
[00:52:43] SteenJobs: but i am new to ajax at least so i???m sure i made a mistake
[00:52:50] dcunit3d: fryguy trust me, i've tried. but the Swift networking library i'm using doesn't allow you to accept invalid SSL certs....
[00:53:00] fryguy: so make a valid ssl cert
[00:53:23] dcunit3d: that's signed by a CA? doesn't that require money?
[00:55:06] volk_: has joined #RubyOnRails
[00:55:27] h4sh3dN4m3: has joined #RubyOnRails
[00:55:53] dcunit3d: fryguy thx for the hint. i would prefer to have it set up that way. reading the heroku article now
[00:56:19] Casty: has joined #RubyOnRails
[00:57:53] dcunit3d: ropeney: yes. i'm a bit mad. this is taking way too long. and i'm stuck in bumfuck virginia, so i don't have many ppl i can ask for help. i haven't talked to a programmer in like 3 months, besides IRC
[00:58:16] SteenJobs: fryguy: https://gist.github.com/SteenJobs/f640e3df01730983ed6e
[00:58:49] fryguy: SteenJobs: that's a ton of code
[00:58:51] fryguy: what specifically doesn't work
[00:59:00] CheckYourSix: dcunit3d: Where in VA?
[00:59:39] teufelChiCoder: has joined #RubyOnRails
[00:59:41] SteenJobs: fryguy: look at the bottom of the js file, where the ajax call is made - all of the js i have in that file to power the drag and drop functionality breaks when a new page is loaded - additionally, ajax only works for every other page
[00:59:43] dcunit3d: CheckYourSix: Roanoke, VA. I'm hoping to escape to NYC
[00:59:47] fryguy: SteenJobs: i'm going to guess that the answer to your problem is "ajax doesn't fire a document.ready event" but i'm purely guessing i'm way too lazy to read that much code
[00:59:51] SteenJobs: yeaaaa NYC ftw
[01:00:07] CheckYourSix: dcunit3d: Oh. You're still a couple hours from me then. And you couldn't pay me to go to NYC
[01:00:18] SteenJobs: fryguy: don???t read all the code - the JS was totally fine before i added the ajax call
[01:00:40] fryguy: SteenJobs: then my guess is probably right
[01:00:56] h4sh3dN4m3: has left #RubyOnRails: ()
[01:01:11] dcunit3d: CheckYourSix i like it in VA, but i miss living in a city with tons of meetups
[01:01:41] CheckYourSix: dcunit3d: I can't stand having so many people and so much traffic. And noise. And not being able to do whatever I want
[01:01:43] SteenJobs: fryguy: right i mean i presumed that was the problem, but what do i do about it?
[01:02:03] fryguy: SteenJobs: move your document.ready code to something that you can also call when your ajax call completes
[01:02:18] fryguy: or update the way you do it such that you do live binding to things
[01:02:30] fryguy: and weigh the performance differences of each
[01:03:07] Sylario: has joined #RubyOnRails
[01:03:50] bronson: has joined #RubyOnRails
[01:05:49] SteenJobs: fryguy: shouldn???t be the problem though, i have jquery-turbolinks installed
[01:06:07] fryguy: SteenJobs: are you using turbolinks to do your ajax request?
[01:06:23] SteenJobs: fryguy: not explicitly, but doesn???t it automatically kick in?
[01:06:27] fryguy: SteenJobs: no
[01:06:52] fryguy: you are mixing too many things together
[01:06:53] SteenJobs: fryguy: i mean i have turbolinks called in my application.html.erb file so i assume it???s active on all pages
[01:06:57] fryguy: SteenJobs: it is
[01:07:04] fryguy: turbolinks doesn't magically rewrite your javascript
[01:07:16] fryguy: it just rewrites click-handlers for links on the page
[01:07:39] fryguy: by doing manual ajax stuff, you are explicitly overriding turbolinks
[01:08:02] SteenJobs: ah so i need to write the ajax differently to play nice with turbolinks
[01:08:26] fryguy: you need to rewrite your document.ready code to play nicely with both your manual javascript and turbolinks
[01:08:39] fryguy: or better yet, just get rid of your manual javascript and just make it work nicely with turbolinks
[01:10:13] Scripore: has joined #RubyOnRails
[01:10:23] beneggett: has joined #RubyOnRails
[01:19:39] ProLoser: has joined #RubyOnRails
[01:23:00] jacor: has joined #RubyOnRails
[01:24:19] Rubie: has joined #RubyOnRails
[01:26:40] workmad3: has joined #RubyOnRails
[01:27:03] teufelChiCoder: has joined #RubyOnRails
[01:27:53] beauby: has joined #RubyOnRails
[01:30:25] Radar: how the hell does Carrierwave image caching work?
[01:30:30] Radar: WTB wizard
[01:31:18] Radar: I have a field called fn_large which is a Carrierwave::Uploader. In my non-Reform-form, the fn_large_cache field gets set. In the Reform-form it doesn't get set.
[01:31:21] Radar: I don't know how that's happening.
[01:33:01] Blizzy: can anyone help me figure out why Paperclip is uploading the photo to S3, but is returning the wrong URL? https://gist.github.com/NotBlizzard/11232671c8763360c595
[01:33:22] Radar: "wrong" is subjective
[01:33:51] Blizzy: it's returning as "missing.png"
[01:33:59] Radar: Then the image is missing
[01:33:59] Blizzy: instead of the url to the file on S#
[01:34:05] Jarboe: has joined #RubyOnRails
[01:34:07] Blizzy: the file still uploads however.
[01:35:17] Radar: Looks OK to me.
[01:35:31] Radar: Weird that you're defining path twice
[01:35:40] JoshL: has joined #RubyOnRails
[01:36:14] _blizzy_: I just fixed that.
[01:37:48] _blizzy_: there has to be something causing this.
[01:39:46] _blizzy_: oh god I might have to use StackOverflow for hte first time.
[01:39:47] darrencauthon: has joined #RubyOnRails
[01:40:06] mtchllbrrn: has joined #RubyOnRails
[01:40:56] _blizzy_: damn, I can't x-post to #ruby. c:
[01:42:36] ur5us: has joined #RubyOnRails
[01:43:53] greengriminal: has joined #RubyOnRails
[01:46:33] ts310: has joined #RubyOnRails
[01:48:11] darrencauthon: has joined #RubyOnRails
[01:49:03] fedexo: has joined #RubyOnRails
[01:50:48] Casty: has joined #RubyOnRails
[01:51:20] dmz: has joined #RubyOnRails
[01:52:08] asheinfeld: has joined #RubyOnRails
[01:52:11] nickenchuggets: has joined #RubyOnRails
[01:52:11] nickenchuggets: has joined #RubyOnRails
[01:56:21] stardiviner: has joined #RubyOnRails
[01:57:08] IFrank00: has joined #RubyOnRails
[01:58:17] beauby: has joined #RubyOnRails
[01:59:06] merryfett: has joined #RubyOnRails
[01:59:48] Spami: has joined #RubyOnRails
[02:03:08] greengriminal: has joined #RubyOnRails
[02:07:04] erich: has joined #RubyOnRails
[02:09:35] beauby: has joined #RubyOnRails
[02:16:04] growlove: has joined #RubyOnRails
[02:20:23] rickmasta: has joined #RubyOnRails
[02:22:29] one_zero: has joined #RubyOnRails
[02:29:02] beauby: has joined #RubyOnRails
[02:30:28] iooner: has joined #RubyOnRails
[02:31:26] Subself: has joined #RubyOnRails
[02:35:08] w09x: has joined #RubyOnRails
[02:37:47] Driverman: has joined #RubyOnRails
[02:38:40] krz: has joined #RubyOnRails
[02:45:04] IvanLing_: has joined #RubyOnRails
[02:46:07] Driverman: Hi guys, wanted to see if I understand how the whole basic set-up-a-project workflow works and try to explain it back to somebody
[02:46:36] Driverman: Basically, if I get this -- I install RVM, which I use to "use" a version of ruby (don't really get that part fully), which I then run the gem manager from, which I use to install Rails
[02:46:45] Driverman: which I then use to create an empty project
[02:46:48] Driverman: is that correct?
[02:48:15] sevenseacat: if you were to use RVM, it would be to install versions of ruby and switch between them, so you need it to actually install ruby
[02:48:16] Driverman: What parts could I have explained better? :)
[02:48:36] sevenseacat: once you've got a ruby installed and selected, then you dont need to 'run the gem manager'
[02:48:40] Driverman: Okay. Where is each version of Ruby installed to? the .rvm dir in my home folder, or the dir I "use" Ruby from?
[02:48:45] sevenseacat: then you can just install `gem install rails`
[02:48:52] sevenseacat: the rvm dir in your home folder
[02:49:10] Driverman: Got it. Isn't 'gem install rails' invoking the package manager (which is what I thought it was)?
[02:49:33] sevenseacat: its using rubygems yes, but your original phrasing was a bit odd
[02:49:42] Driverman: Yeah, I don't really know what I'm talking about :)
[02:49:44] xcesariox: has joined #RubyOnRails
[02:49:53] sevenseacat: gem is just a command you can run
[02:49:58] Driverman: I'm from Java and c++ and python land :)
[02:50:27] sevenseacat: you wouldnt talk about running the ls manager would you
[02:50:32] sevenseacat: ls is just a command
[02:51:00] Driverman: Well, the reason I called it the "gem manager" is: "RubyGems is a sophisticated package manager for Ruby."
[02:51:08] Driverman: I thought it managed gems
[02:51:16] Driverman: Which are self contained Ruby packages
[02:51:31] Driverman: But I'm totally open to being wrong haha :)
[02:51:36] Driverman: Idc. No I wouldn't call ls a manager
[02:51:43] Driverman: I wouldn't call awk or comm or grep or sed a manager either
[02:51:56] sevenseacat: then there you go
[02:52:03] Driverman: But I'd call aptitude a manager ;)
[02:52:12] Driverman: Okay, no calling "gem" a manager. Got it :)
[02:52:24] sevenseacat: thats kinda not what i was saying
[02:52:37] sevenseacat: you wouldnt say 'run the aptitude manager'
[02:52:44] sevenseacat: so why are you saying 'run the gem manager'
[02:52:47] Driverman: I might say the ".deb manager" though
[02:52:57] Driverman: "the .deb manager, aptitude"
[02:53:05] Driverman: "the gem manager, gem" lol
[02:53:07] Driverman: sounds funny
[02:53:10] Driverman: idc, no worries
[02:53:19] Driverman: I am not trying to be argumentative I promise. Anyway
[02:53:21] Driverman: Aside from that
[02:53:24] Driverman: Is my explanation correct?
[02:53:36] sevenseacat: like i said, sort of.
[02:54:03] darrencauthon: has joined #RubyOnRails
[02:54:07] Driverman: What else is wrong/weird?
[02:54:19] sevenseacat: would your 'set up a java instructions' start with 'install java'?
[02:54:24] sevenseacat: *set up a java project'
[02:54:30] Driverman: No, that's why this is weird to me
[02:54:37] Driverman: because I ran a rails command and it DID set up a project
[02:54:40] sevenseacat: its weird to me also.
[02:54:44] pipework: sevenseacat: I would explain you need java installed and where to get directions.
[02:54:51] Driverman: in Java, I can just javac a .java file and run the resulting .class file
[02:55:02] sevenseacat: Driverman: yes, if you already have java installed
[02:55:10] Driverman: But with rails, I *did* run a command and it *did* create a project
[02:55:22] sevenseacat: then you already had rails installed
[02:55:27] Driverman: right, via gem
[02:55:28] darrencauthon: has joined #RubyOnRails
[02:55:48] baweaver: Which happen to be surfaced when a gem has a /bin folder to it.
[02:55:52] Driverman: But that's what's weird to me. So I install RVM, which lets me install a version of ruby. That's the part where the analogy to Java, as far as I understand it, ends
[02:56:16] sevenseacat: surely java has an equivalent to gems
[02:56:19] Driverman: because at that point I can invoke Ruby directly as I would Java, no? Only difference being I'd need to compile my Java first
[02:56:22] baweaver: Fair warning, treat Ruby like Java at your own peril
[02:56:26] pipework: java has jars.
[02:56:31] baweaver: Maven and friends
[02:56:34] Driverman: I'm not treating it like Java. Others brought up Java, *not me*
[02:56:48] sevenseacat: [10:49:58] Driverman: I'm from Java and c++ and python land :)
[02:56:51] pipework: Driverman: There are things written for java devs transitioning to ruby.
[02:56:54] baweaver: Just mentioning it, I've seen it happen often enough
[02:56:56] Driverman: Yes, I fucking hate Maven ftr but that's besides the point. So Maven could be compared to gem?
[02:57:08] baweaver: gemfile perhaps
[02:57:15] Driverman: So me mentioning my background becomes me comparing the languages? fuck that lol
[02:57:15] pipework: Driverman: rubygems is what you're talking about.
[02:57:16] baweaver: A Gemfile lists gems to get and versions
[02:57:21] Driverman: rubygems, not gem
[02:57:23] sevenseacat: sorry for trying to make comparison with things you already know, given that my approach of explaining the way ruby works wasnt working
[02:57:32] Driverman: it's been working fine
[02:57:38] Driverman: you sure draw a lot of conclusions ;)
[02:57:51] Driverman: Install a version of Ruby via RVM
[02:57:57] Driverman: then invoke rubygems to install Rails
[02:57:59] pipework: I also draw penises on things.
[02:58:06] Driverman: use Rails to create empty project
[02:58:18] sevenseacat: sorry for also taking time out of my workday to try and assist you and then get accused of jumping to conclusions
[02:58:27] pontiki: has joined #RubyOnRails
[02:58:28] sevenseacat: it won't happen again.
[02:58:31] Driverman: well dont jump to conclusions and I won't have to accuse you ;)
[02:58:35] baweaver: sevenseacat: You work Sundays?
[02:58:49] pipework: sevenseacat: Are you some olympic world medalist with all that jumping to conclusions?
[02:59:02] sevenseacat: Driverman: I think it's been established I'm not in a great mood now, so watch your mouth.
[02:59:15] Driverman: I am very sorry
[02:59:24] baweaver: !ban Driverman
[02:59:29] ChanServ: +o sevenseacat
[02:59:35] sevenseacat: +b *!~mike@cpe-68-174-52-225.hvc.res.rr.com
[02:59:36] sevenseacat: sevenseacat kicked Driverman: behavior is not conducive to the desired environment.
[02:59:38] baweaver: no? hm, need to figure that one out then
[02:59:47] sevenseacat: we don't have ruboto here.
[02:59:58] helpa: Why don't you try it and find out for yourself?
[03:00:04] baweaver: ACTION shrugs
[03:00:24] ChanServ: -o sevenseacat
[03:00:27] pontiki: oh. bad time?
[03:00:40] baweaver: sevenseacat: Not a great way to start a Monday, hope the rest of the day goes better
[03:00:50] sevenseacat: nah, just run of the mill idiots. try and help, they get grumpy, you ask them not to, they get abusive, you ban them.
[03:01:07] pontiki: ACTION nods sadly
[03:01:15] iamjarvo: has joined #RubyOnRails
[03:01:18] baweaver: You'd think people could be a bit more civil, but unfortunately you're right on that.
[03:01:56] baweaver: Also, if anyone's interested in Spark I pushed a few tutorials out.
[03:02:04] pontiki: ACTION offers to share a chicken quesadilla
[03:02:21] JoshL: has joined #RubyOnRails
[03:02:29] sevenseacat: granted, he put me in a pissy mood, but thats no excuse for that kind of language.
[03:02:58] baweaver: Well if the !ban is any signal I agree
[03:03:13] baweaver: helpa doesn't let me swing that one though, ah well.
[03:03:17] shyshy: has joined #RubyOnRails
[03:03:44] teufelCh_: has joined #RubyOnRails
[03:04:27] beauby: has joined #RubyOnRails
[03:04:33] sevenseacat: ACTION goes back to figuring out how to filter records in AR via four levels of associations
[03:07:27] krz: has joined #RubyOnRails
[03:08:45] erich: has joined #RubyOnRails
[03:08:54] dcunit3d: has joined #RubyOnRails
[03:09:35] sevenseacat: I don't even know how to unban them. oh well.
[03:09:46] ChanServ: +o sevenseacat
[03:09:59] sevenseacat: -b *!~mike@cpe-68-174-52-225.hvc.res.rr.com
[03:10:16] iamse7en: has joined #RubyOnRails
[03:10:22] sevenseacat: oh there we go.
[03:10:26] ChanServ: -o sevenseacat
[03:10:33] braincrash: has joined #RubyOnRails
[03:12:39] baweaver: Need to figure out some more subject matter to cover for Rails tutorials. ActiveJob writeup is already high on my list.
[03:13:26] baweaver: pontiki: Anything on your wishlist you'd like to see more coverage on?
[03:13:49] pontiki: baweaver: i'm still trying to get my folks to give some sense of direction on what they want to learn...
[03:14:13] baweaver: Yeah, it's a bit of fun to swing that one.
[03:14:18] pontiki: many of them need some really basic things about model and association construction
[03:14:36] baweaver: The newer they tend to be the less they know what they want to know
[03:14:47] pontiki: and many of them need some even more basic stuff like : how do you write software?
[03:15:09] baweaver: Still figuring that one out myself.
[03:15:28] workmad3: has joined #RubyOnRails
[03:16:24] pontiki: thing is, 2 hours a month just isn't going to cut it
[03:16:40] pontiki: i don't know if i'm filling a need or creating one
[03:16:44] baweaver: So you're just teaching through meetups right now?
[03:17:11] baweaver: Honestly until they start learning to be self sufficient, anything you teach creates a greater need
[03:17:21] pontiki: i think you're right
[03:17:26] baweaver: Problem is that that point is notoriously volatile
[03:17:29] pontiki: people keep showing up
[03:17:44] pontiki: and people keep presenting interest in learning rails
[03:17:50] baweaver: best way to counter? Get them to teach eachother something.
[03:18:04] pontiki: oh, yeah, i already have coopted them
[03:18:09] baweaver: Even if it's just pairing
[03:18:17] pontiki: see one, do one, teach one
[03:18:35] baweaver: With any luck you get a few standouts you can try and coax into giving lectures themselves.
[03:18:49] pontiki: i ask them to do a lightning talk at the start
[03:19:23] baweaver: Depending on how new they are, it'll probably take longer than you'd like to think to hit that point.
[03:19:40] baweaver: Kinda the same reason why more senior folks have a problem interviewing interns
[03:19:47] Plimsol: has joined #RubyOnRails
[03:20:02] baweaver: we had a senior director here scare the piss out of some poor intern with a string explosion / pathfinding algorithm
[03:20:23] baweaver: granted, he's a lot better for it and knows what to learn now
[03:20:31] baweaver: still overkill
[03:20:35] pontiki: the director or the intern? :)
[03:20:50] baweaver: Director I still have hope for ;)
[03:20:58] baweaver: We poke fun at him for that on occasion.
[03:20:58] pontiki: you're such a romantic
[03:21:32] sevenseacat: note to self: lit candles are hot. metal things you put in the candle flame also get hot.
[03:21:34] baweaver: Most of what I'm writing now is on Spark as that's the huge push over here.
[03:21:48] pontiki: i keep hoping i'll find another padawan
[03:21:51] baweaver: sevenseacat: you're just having a bad Monday aren't you?
[03:22:13] sevenseacat: that one was my own stupidity
[03:22:18] sevenseacat: ACTION has a burnt thumb
[03:23:07] baweaver: I'm at a really odd level of experience, just over 4 years
[03:23:29] baweaver: Actually, no, under.
[03:23:32] baweaver: Got that backwards.
[03:23:34] pontiki: ACTION nods
[03:23:36] pontiki: you're 25?
[03:23:56] pontiki: or shouldn't i ask ...
[03:23:56] baweaver: Tomorrow I am
[03:24:03] baweaver: ACTION shrugs
[03:24:06] SteenJobs: has joined #RubyOnRails
[03:24:07] sevenseacat: :o are we having a party?
[03:24:09] pontiki: oh, happy birthday, and many happy returns of the day :)
[03:24:23] pontiki: i know many folks get sensitive about age
[03:24:25] sevenseacat: may your monday be full of awesomeness
[03:24:32] baweaver: sevenseacat: We'll see how it goes
[03:24:47] baweaver: pontiki: I just don't mention it unless it gets brought up
[03:24:58] baweaver: People think I'm a lot more senior than I am until they hear it/
[03:25:11] baweaver: So I don't feel the need to correct them ;)
[03:25:27] pontiki: sure, i wouldn't necessarily expect you to, either
[03:25:35] sevenseacat: i have the opposite problem. wanna swap?
[03:26:16] baweaver: Still working on getting an official Senior title, got one promotion down and that's the next one up.
[03:26:28] sevenseacat: this is my tenth year in the industry
[03:26:49] Etriaph: I try not to think about age, myself or otherwise, unless someone is obviously about to create a fire-hazard.
[03:26:55] sevenseacat: and a lot of folks still consider me a junior dev.
[03:27:03] sevenseacat: ACTION thumbsup
[03:27:34] pontiki: Etriaph: age might not be a determining factor there, either; i have to worry about that with my dada
[03:27:50] Etriaph: I turned 38 last weekend.
[03:27:57] baweaver: Problem is getting someone to define Senior Engineer in non-hr terms that are quantifiably reachable.
[03:27:59] pontiki: my dad's 86
[03:28:13] pontiki: don't hold out hope for that, baweaver
[03:28:26] baweaver: Oh I've learned better of that
[03:28:31] pontiki: i had the convo last week with someone who was trying to figure it out for herself
[03:28:40] baweaver: So what I do instead is put myself in positions to look Senior
[03:28:55] Etriaph: baweaver: Titles are the most eroneous things that people fight to achieve nowadays.
[03:28:58] baweaver: such as being the only one who knows Scala in depth enough to teach it to a bunch of Java engineers wanting to use Spark.
[03:29:19] baweaver: Etriaph: Granted, and perhaps I just haven't learned better of that yet.
[03:29:21] pontiki: that's sort of what i told her, too
[03:29:28] baweaver: Actually that's probably the entire thing
[03:29:44] pontiki: but she wanted to know how to do that, then proceeded to do it with another person who was asking questions
[03:30:11] pontiki: and i just smiled at her and said "see? you're already there :)"
[03:30:12] baweaver: I'm more interested in just getting good information out than anything
[03:31:09] pontiki: and here we have the teacher's dilemna
[03:31:14] strcmp1: has joined #RubyOnRails
[03:32:48] Etriaph: My advice to any pedagogue: If someone asks you how to make toast, don't explain what a toaster is.
[03:33:32] strcmp1: what is a 'pedagogue' ?
[03:33:55] Etriaph: strcmp1: A teacher
[03:34:00] baweaver: pedagogue (noun) - a teacher, esp. a strict or pedantic one.
[03:34:08] pontiki: Etriaph: don't explain with a dictionary is
[03:34:15] Etriaph: pontiki: LOL
[03:34:24] pontiki: bad joke ruined
[03:34:28] baweaver: #shotsfired
[03:34:30] strcmp1: ok thanks ;)
[03:34:58] bruno-: has joined #RubyOnRails
[03:35:32] bungoman: has joined #RubyOnRails
[03:36:30] JoshGlzBrk: has joined #RubyOnRails
[03:36:45] earthquake: has joined #RubyOnRails
[03:37:49] JoshGlzBrk: has joined #RubyOnRails
[03:42:00] cjlarose: has joined #RubyOnRails
[03:42:30] maxbots|mtw: has joined #RubyOnRails
[03:46:11] baweaver: http://i.imgur.com/6u3dd.png - old but good, how windows / unix kill processes
[03:46:26] baweaver: sevenseacat: Might give you a laugh to cheer up a bit :D
[03:47:27] strcmp1: does windows have nothing like kill -9?
[03:47:41] sevenseacat: you know what cheers me up? the greatest video I've ever seen, that I got linked to this morning
[03:47:54] sevenseacat: https://fbcdn-video-l-a.akamaihd.net/hvideo-ak-xfp1/v/t42.1790-2/11158532_857120874380582_799981250_n.mp4?oh=b0fb58bf0fa19540947fdd84239a39ef&oe=55876D3F&__gda__=1434942783_5369acf7dc5517c6c88fa0eb9134b56d
[03:48:03] sevenseacat: ACTION watches again
[03:48:08] ts310: has joined #RubyOnRails
[03:48:17] baweaver: error page :(
[03:48:58] sevenseacat: https://www.youtube.com/watch?v=8F9jXYOH2c0
[03:51:53] pontiki: "moustached lion dragging off a gazelle"
[03:52:51] thatkid: has joined #RubyOnRails
[03:52:57] Radar: GOOD AFTERNOON
[03:53:03] bronson: has joined #RubyOnRails
[03:53:31] Sigma00: DUDE IT'S 10PM
[03:53:37] gambl0re: has joined #RubyOnRails
[03:53:39] Sigma00: THIS IS WHAT HAPPENS WHEN YOU DO BLOW
[03:53:41] baweaver: G'day maate
[03:53:49] pontiki: Off the bar and INTO HIS FACE
[03:55:54] michael_mbp: has joined #RubyOnRails
[03:58:48] thatkid: Hello, Is there any guide/tutorial on theming spreecommerce?
[03:59:18] pontiki: lol at the vid
[03:59:42] Radar: thatkid: Not that I am aware of. You could try asking #spree.
[03:59:46] darrencauthon: has joined #RubyOnRails
[04:01:44] mois3x: has joined #RubyOnRails
[04:02:53] graft_: has joined #RubyOnRails
[04:05:14] merryfett: has joined #RubyOnRails
[04:05:30] Sigma00: spree got its name because it makes you wanna go on a killing spree
[04:05:46] Sigma00: (or so people would say if it was bad)
[04:05:58] sevenseacat: or a shopping spree, more likely
[04:06:10] givanse_: has joined #RubyOnRails
[04:06:14] Sigma00: yes, I'm just making up shit out of boredom
[04:06:26] Sigma00: it's very good
[04:06:32] Radar: why thank you
[04:06:47] Sigma00: dammit Radar stop writing all the shit I use
[04:07:03] Sigma00: ACTION loses his job
[04:07:14] Sigma00: this is your fault, Radar!
[04:09:02] thatkid: Radar: #spree doesn't have much activity, that's why asked here :)
[04:09:20] Radar: thatkid: It did when I was Community Manager ;)
[04:09:22] Radar: #justsayin
[04:09:57] pipework: thatkid: He smugly sends people there because there's no Radar there to help them anymore.
[04:10:03] pipework: I think it's hilarious.
[04:10:25] Radar: damn it pipework is on to me AGAIN
[04:11:38] Radar: \o/ the thing I've been working on all day has finally agreed to work
[04:11:44] Radar: and it only took a glass of Shiraz over lunch
[04:11:59] Radar: Alcohol: the cause of and solution to all of life's problems
[04:12:22] pipework: Radar: Fairly cheap if you ask me.
[04:12:30] pipework: You should drink some more for good measure. Cider?
[04:12:39] pontiki: balmer peak
[04:13:50] Radar: pipework: na I think I'm peaking right now
[04:14:07] pipework: Radar: Oh right, lightweight lucky bastard.
[04:14:34] Sigma00: careful, the balmer peak sometimes hides behind a half-finished bottle
[04:15:12] maxbots|mtw: Hi folks, I'm working on a Hobo application, and trying to install it's datatables puugin, but when I do it gives me an error "Couldn't find either concerns.js or concerns.js.coffee files!"
[04:15:30] maxbots|mtw: Anybody know what I need to install to get it working?
[04:15:41] Radar: That's very concerning.
[04:15:52] sevenseacat: i think i understood some of the words in that request
[04:16:02] pipework: ACTION is somewhat concerned
[04:16:14] sevenseacat: ACTION is not concerned
[04:16:14] Sigma00: Hobo refuses to be housed once again
[04:16:16] krz: has joined #RubyOnRails
[04:16:18] pipework: sevenseacat: Do you understand, "Hello, how are you?"
[04:16:26] sevenseacat: pipework: depends. is it monday?
[04:16:48] pipework: sevenseacat: It depends on if we're talking dog-lightyears or not.
[04:17:13] sevenseacat: i think the sky is blue, so probably.
[04:17:44] pipework: sevenseacat: Have you ever heard about things that have more cones in theirs eyes than we do?
[04:17:56] sevenseacat: pipework: icecream cones??
[04:18:11] pipework: sevenseacat: No, light cone things.
[04:18:12] sevenseacat: dont they know that icecream cones go in your mouth, not your eye
[04:18:18] sevenseacat: pipework: i figured :P
[04:19:10] Radar: maxbots|mtw: Is Hobo even a Rails app? I've not heard of it before.
[04:19:27] maxbots|mtw: Yes, it is a rails app generator basically
[04:19:34] sevenseacat: its one of those configuration generator things
[04:19:37] maxbots|mtw: http://www.hobocentral.net/
[04:19:52] maxbots|mtw: very powerful if you don't mind a little magic in your app
[04:20:27] pipework: surely, you've seen it.
[04:20:28] Radar: maxbots|mtw: Is there any more to the error than just that one message? No stacktrace?
[04:20:55] maxbots|mtw: It is giving that error when I run the generator
[04:21:13] Radar: maxbots|mtw: just that message and nothing more?
[04:21:24] Sigma00: man that Hobo website is pissing me the fuck off
[04:21:33] pipework: Sigma00: calm the shit down, partner.
[04:21:40] theery: has joined #RubyOnRails
[04:21:40] Sigma00: their info is all over the place
[04:21:48] pipework: Don't caremad.
[04:21:51] Sigma00: there's nothing explaining what the shit's even supposed to do
[04:22:07] maxbots|mtw: https://www.irccloud.com/pastebin/mkTRA8BZ/
[04:22:31] maxbots|mtw: Basically, that is the whole error, everything else was successful
[04:22:49] maxbots|mtw: Sigma00: Watch the screencast
[04:23:25] Sigma00: all their info is in a video and they couldn't take the time to write it down?
[04:23:30] Sigma00: that sucks
[04:23:56] Radar: and we all know that videos are way easier to update than text
[04:24:01] maxbots|mtw: Heh, you could read one of their tutorials or the "Hobo in two minutes" doc
[04:24:15] Radar: yeah I have no idea what's happening there
[04:24:16] Sigma00: it's literally "install hobo and start a rails app"
[04:24:57] Sigma00: maxbots|mtw: did you install jquery-datatables-rails ?
[04:25:08] Sigma00: this says it's a prereq https://github.com/Hobo/hobo_data_tables
[04:25:20] maxbots|mtw: Sigma00: Basically, with hobo, you define your data structure inside of rails rather than through separate migrations. It automatically generates all your forms, though it is tivial to modify them if you don't like them
[04:25:23] fortunate: has joined #RubyOnRails
[04:25:39] maxbots|mtw: Sigma00: Yep, did that
[04:28:36] beneggett: has joined #RubyOnRails
[04:30:25] maxbots|mtw: If you want to modify your database, rename a table or a field, etc., with hobo, all you have to do is edit your model file accordingly, then run "hobo generate migration", it automatically updates your database and your views in one step
[04:30:58] maxbots|mtw: It is not quite a scaffold, though at it's most basic it is, but it is much more powerful
[04:32:24] Radar: seems bad
[04:32:35] Radar: I've never seen that work well.
[04:32:39] maxbots|mtw: Eh, depends on what you are doing
[04:32:57] maxbots|mtw: I would not use it for a major site, but for the small iunternal stuff I need it is ideal
[04:33:32] maxbots|mtw: Actully, the database stuff I think is far better than the Rails way, lets you define your database in your rails app
[04:33:51] maxbots|mtw: You can completely ignore the scaffolding stuff if you don't want to use it
[04:34:30] maxbots|mtw: https://www.irccloud.com/pastebin/KpZJfoGd/
[04:34:39] yfeldblum: has joined #RubyOnRails
[04:35:13] maxbots|mtw: That is one of my models, if I wanted to add a fields, I would do it right there
[04:36:20] xcesariox: has joined #RubyOnRails
[04:36:24] ra4king1: has joined #RubyOnRails
[04:37:43] towski_: has joined #RubyOnRails
[04:39:20] djbkd: has joined #RubyOnRails
[04:42:11] lala: has joined #RubyOnRails
[04:42:36] Etriaph: From hobocentral.net: The goal: write less code.
[04:42:58] Etriaph: On an average day, that's not my issue at all :D
[04:43:11] iamjarvo: has joined #RubyOnRails
[04:43:44] arooni-mobile: has joined #RubyOnRails
[04:46:07] sinkensabe: has joined #RubyOnRails
[04:48:03] maxbots|mtw: Sorry, wasn't trying to sell anyone on it as a tool, just rying to solve a problem :-)
[04:48:12] jesterfraud: has joined #RubyOnRails
[04:49:09] pontiki: i can understand the appeal of such a thing. it would be nice if the table structure could be more easily reflected in a persisted model.
[04:51:48] skj3gg: has joined #RubyOnRails
[04:54:36] nickenchuggets: has joined #RubyOnRails
[04:55:46] Etriaph: I think it's more overhead for a small times savings.
[04:55:58] Etriaph: The current generator can produce scaffolding with your fields.
[05:01:29] charliesome: has joined #RubyOnRails
[05:02:05] maxbots|mtw: ok, sounds like you shouldn't use it then :-)
[05:02:25] maxbots|mtw: I was just looking for help with a problem, not really wanting to debate the tool choice
[05:02:52] Radar: What if I told you the help was "don't use that tool, we have had bad experiences with it in the past that have lead to only pain and torment"?
[05:03:06] Radar: See also: activeadmin + rails_admin
[05:03:17] maxbots|mtw: If you had experience with teh tool that would be useful advice
[05:03:29] Radar: I think so. A very long time ago.
[05:03:32] Radar: The structure looks familar.
[05:03:34] maxbots|mtw: but since none of you do, uneducated opinions are not really useful
[05:04:13] workmad3: has joined #RubyOnRails
[05:05:16] sevenseacat: i actually hear mixed things about rails_admin. negative about activeadmin.
[05:05:43] maxbots|mtw: not meaning to be rude, I guess I appreciate the intent, just right now I am working on a simpple internal site, overhead is irrelevant
[05:06:03] maxbots|mtw: for my needs the tool is perfect, not suggesting it is right for anyone else
[05:07:34] Radar: "Personal experience with similar tools is not worth my time, mortal" <- literally what I'm hearing now
[05:07:59] maxbots|mtw: has left #RubyOnRails: ()
[05:08:17] baweaver: Honestly most of those tools work fine as long as you play by their rules. Problem is there are those few edge cases in larger apps which become gaping caverns that devour your heart and soul along with all of your free time.
[05:08:34] baweaver: ACTION has used both
[05:08:39] sevenseacat: and your soul.
[05:08:39] baweaver: ACTION concurs with above
[05:08:44] sevenseacat: oh you said soul. carry on.
[05:09:03] baweaver: I'm half ginger, need an extra supply, so feel free to use said tools.
[05:09:25] Etriaph: I tend to like something that "helps" me, not something that tries to take over. Data integrity in a data-driven application is best controlled by myself and not something that'll make life easier on me.
[05:09:34] sevenseacat: damn, you gingers are taking over the world. j/k
[05:10:28] Etriaph: sevenseacat: You might appreciate this right at the moment https://www.youtube.com/results?search_query=prejudice+tim+minchin
[05:10:43] baweaver: Well that's why we invented Java. There exists no other tool as capable of reaving souls and destroying all hope as Java.
[05:10:50] sevenseacat: tim minchin is the shit.
[05:11:12] wmoxam: baweaver: those tools are fine as long as you don't fall prey to the sunk cost fallacy
[05:11:30] baweaver: pretty much
[05:11:44] towski_: has joined #RubyOnRails
[05:11:48] darrencauthon: has joined #RubyOnRails
[05:11:53] baweaver: Devise gets a lot of hate for that very reason.
[05:11:53] GnuYawk: has joined #RubyOnRails
[05:11:53] GnuYawk: has joined #RubyOnRails
[05:12:01] wmoxam: ie: when your requirements don't make their use case, it's just best to throw them away
[05:13:52] GnuYawk: has joined #RubyOnRails
[05:13:54] Etriaph: I like Devise, so far.
[05:13:55] ndrei: has joined #RubyOnRails
[05:14:00] sevenseacat: Etriaph: haha I've seen this before
[05:14:07] Etriaph: sevenseacat: :D
[05:14:46] sevenseacat: ACTION is not a ginger
[05:14:50] baweaver: Lord help the poor soul that tries to make it play nice with LDAP though
[05:15:11] Etriaph: baweaver: I concede, I have not tried to do that.. yet.
[05:15:20] stardiviner: has joined #RubyOnRails
[05:15:24] baweaver: I have, and never again
[05:15:38] Etriaph: baweaver: Microsoft DC by any chance?
[05:15:42] baweaver: though mainly that's Net::LDAP and friends being pains about documenting things
[05:15:56] baweaver: Etriaph: as in work? No.
[05:16:25] Etriaph: I was wondering if the LDAP server in question was on a domain controller.
[05:16:46] Etriaph: I've had to make that work with PHP before.
[05:16:55] baweaver: Honestly not sure, I just hotwired a lot of it from older code.
[05:17:17] baweaver: which was then pentested to hell and back.
[05:18:09] wmoxam: baweaver: help the poor soul tasked with an LDAP integration :p
[05:18:28] baweaver: pretty much anyone who has to touch that thing
[05:18:48] baweaver: I don't want to see DAP if LDAP is Lightweight Directory Access Protocol.
[05:20:48] chintanparikh: has joined #RubyOnRails
[05:21:03] iamjarvo: has joined #RubyOnRails
[05:21:20] baweaver: chintanparikh: question or just random keypress?
[05:21:28] chintanparikh: Random keypress, sorry!
[05:21:37] baweaver: Just checking, not a problem
[05:21:48] baweaver: didn't want to prattle on if someone had a question.
[05:22:46] pontiki: carry on with the prattle
[05:22:48] roolo: has joined #RubyOnRails
[05:22:56] pontiki: "prattle on, Garth"
[05:23:17] aganov: has joined #RubyOnRails
[05:23:52] lxsameer: has joined #RubyOnRails
[05:35:32] lxsameer: has joined #RubyOnRails
[05:35:49] cornerma1: has joined #RubyOnRails
[05:38:20] Lightsword: has joined #RubyOnRails
[05:40:39] raunicolae: has joined #RubyOnRails
[05:41:36] iamse7en: has joined #RubyOnRails
[05:42:10] raunico3: has joined #RubyOnRails
[05:42:18] raunico3: has left #RubyOnRails: ()
[05:42:34] Tempesta: has joined #RubyOnRails
[05:42:59] sinkensabe: has joined #RubyOnRails
[05:43:15] x-light: has joined #RubyOnRails
[05:44:34] tagrudev: has joined #RubyOnRails
[05:46:10] charliesome: has joined #RubyOnRails
[05:51:41] CalvinnHobbes: has joined #RubyOnRails
[05:52:20] dopie: has joined #RubyOnRails
[05:53:44] dhjondoh: has joined #RubyOnRails
[05:54:38] TvL2386: has joined #RubyOnRails
[05:55:46] missingno_: has joined #RubyOnRails
[05:55:59] sevenseacat: dear polymorphic associations. bite me.
[05:57:43] GnuYawk: has joined #RubyOnRails
[05:59:39] sevenseacat: https://gist.github.com/sevenseacat/cd6e82a271833d359ca8 :(
[05:59:55] GnuYawk: has joined #RubyOnRails
[05:59:55] GnuYawk: has joined #RubyOnRails
[06:00:04] krokuz: has joined #RubyOnRails
[06:07:11] GnuYawk: has joined #RubyOnRails
[06:07:50] techsethi: has joined #RubyOnRails
[06:08:23] Ratler: has joined #RubyOnRails
[06:09:46] gniquil: has joined #RubyOnRails
[06:09:53] dhjondoh: has joined #RubyOnRails
[06:09:53] sandstrom: has joined #RubyOnRails
[06:11:58] netzfisch: has joined #RubyOnRails
[06:14:41] GnuYawk: has joined #RubyOnRails
[06:17:54] lapide_viridi: has joined #RubyOnRails
[06:22:12] Etriaph: sevenseacat: What are you expecting vs. actual?
[06:23:26] sevenseacat: well at the moment I just have a list of program events, i'm trying to work out how to apply the filtering
[06:23:55] sevenseacat: to only show those with the correct parent_id
[06:24:18] dionysus69: has joined #RubyOnRails
[06:24:38] sevenseacat: stuff it, drinks break
[06:25:04] artto_: has joined #RubyOnRails
[06:26:34] Etriaph: So programs of those that report to A, B.nominations?
[06:26:37] ndrei: has joined #RubyOnRails
[06:27:02] Etriaph: Have you tried with a scope?
[06:29:52] sevenseacat: a scope on what?
[06:31:04] User458764: has joined #RubyOnRails
[06:31:14] sevenseacat: no, given I'm starting with and filtering a list of events
[06:31:42] Etriaph: By the manager of the user that created the event?
[06:32:02] _blizzy_: has joined #RubyOnRails
[06:33:55] squiercaster: has joined #RubyOnRails
[06:34:36] ts310: has joined #RubyOnRails
[06:36:12] Etriaph: Shoot me if this would be insane (please don't, though); ProgramEvent has_one :managing_stakeholder through User?
[06:38:44] sevenseacat: but they dont have one. they can have multiple.
[06:38:51] ndrei: has joined #RubyOnRails
[06:39:08] sevenseacat: and this is the first of a bunch of filters I'm going to be putting on events, all relating to users
[06:40:17] comrad: has joined #RubyOnRails
[06:42:37] kwd: has joined #RubyOnRails
[06:46:22] Etriaph: This seemed interesting while I was looking around on this, don't know if it'll give you any epiphanies though: http://stackoverflow.com/questions/24371011/retrieve-a-list-of-polymorphic-relations-in-rails-4
[06:50:04] raunicolae: has joined #RubyOnRails
[06:50:11] raunicolae: has left #RubyOnRails: ()
[06:50:44] comrad: has joined #RubyOnRails
[06:51:09] annlewis_: has joined #RubyOnRails
[06:52:57] workmad3: has joined #RubyOnRails
[06:54:26] manuscle: has joined #RubyOnRails
[06:54:40] xcesariox: sevenseacat: hey soul sister!
[06:54:53] sevenseacat: xcesariox: good afternoon
[06:55:43] xcesariox: sevenseacat: any good tutorial or book or page website that speaks about angular with rails integration to recommend me?
[06:55:57] sevenseacat: no idea, sorry, I don't know anything about angular.
[06:56:19] xcesariox: sevenseacat: you don't do frontend?
[06:56:30] sevenseacat: I do frontend.
[06:56:40] xcesariox: sevenseacat: what do you use for frontend?
[06:56:59] sevenseacat: html, css, and javascript with jquery :)
[06:57:00] krz: has joined #RubyOnRails
[06:57:16] maz-dev: has joined #RubyOnRails
[06:58:14] maz-dev: has joined #RubyOnRails
[06:58:16] bronson: has joined #RubyOnRails
[06:59:33] User458764: has joined #RubyOnRails
[07:00:01] universa1: xcesariox: i found the egghead.io vidoes to be good while i dabbled with angular. i have some angular book, but that was already out of date ;)
[07:00:17] sevenseacat: i have a couple as well, but I havent read through them
[07:00:20] xcesariox: sevenseacat: noted (:
[07:00:22] xcesariox: sevenseacat lol
[07:00:23] Palsson: has joined #RubyOnRails
[07:00:38] xcesariox: universa1: okay, will check it out (:
[07:00:51] universa1: xcesariox: and for the integration i didn't use any angular-rails gem, but the rails-assets.org stuff :-)
[07:02:26] peterhil`: has joined #RubyOnRails
[07:03:18] fedexo: has joined #RubyOnRails
[07:04:37] workmad3: has joined #RubyOnRails
[07:05:58] klacointe_: has left #RubyOnRails: ()
[07:07:47] rvanlieshout: has joined #RubyOnRails
[07:12:00] Lightsword: has joined #RubyOnRails
[07:12:28] bruno-: has joined #RubyOnRails
[07:13:10] xcesariox: universa1: is there any reason why you don't use angular-rails gem?
[07:13:26] solars: has joined #RubyOnRails
[07:15:54] edwinvdgraaf: has joined #RubyOnRails
[07:16:22] peterhil`: has joined #RubyOnRails
[07:19:03] universa1: xcesariox: hmm not really, it's been a while. i just found those gems to be slow to be updated sometimes, so i went with the more vanilla approach
[07:19:19] xcesariox: universa1: oh okay.
[07:19:34] universa1: xcesariox: and rails-assets is quite simple to work with if the target package has a sane bower file ;)
[07:20:46] xcesariox: universa1: do you yourself subscribe to egghead or do you torrent them off?
[07:21:04] universa1: xcesariox: at the time i had a subscription
[07:21:17] universa1: pirating is not tolerated in here.
[07:21:19] shyshy: has joined #RubyOnRails
[07:21:22] xcesariox: universa1: ah okay.
[07:22:22] xcesariox: universa1: thats good to hear.
[07:23:23] xcesariox: universa1: i can feel the pain of people torrenting my content.
[07:23:45] djbkd: has joined #RubyOnRails
[07:24:30] Rubie: has joined #RubyOnRails
[07:25:13] sevenseacat: +1 to no piracy.
[07:25:24] User458764: has joined #RubyOnRails
[07:25:48] sevenseacat: content creators work freaking hard.
[07:25:54] cac: has joined #RubyOnRails
[07:26:02] strcmp1: pirate all the thingz!$!
[07:26:24] strcmp1: aye my matey
[07:27:33] vasilakisfil__: has joined #RubyOnRails
[07:27:33] jesterfraud: speaking of frontend, what do people think of the whole SPA frontend thing? Talking about where you completely decouple front and backend
[07:28:13] strcmp1: i like it, but rails isn't super well suited to that style
[07:28:13] sevenseacat: I've never worked on an app that did it
[07:28:14] _djbkd: has joined #RubyOnRails
[07:28:38] jesterfraud: strcmp1, it's better than others I've seen :/
[07:28:55] strcmp1: what have you seen/tried?
[07:28:59] jesterfraud: though, that being said, I'd probably want to use gems like ROAR next time
[07:29:03] sevenseacat: and the more I see stuff moved to js (eg. current app I'm working on with backbone and underscore) the more confused I get about what goes where and why
[07:29:37] jesterfraud: strcmp1, meteor, the volt framework, all sorts of modern ones that want to make the two really tightly intertwined
[07:30:06] strcmp1: yeah i tried volt a little too, meh is my opinion ;)
[07:30:13] jesterfraud: sevenseacat, probably less confusing if you have a really strong decoupling strategy, like basically backend/frontend as two separate apps, almost
[07:30:48] sevenseacat: possibly so. I haven't seen that done in any apps I've worked on
[07:31:10] strcmp1: i guess actually if you consider public/ for everything "frontend" and app/ for everything backend (with no views, unless describing JSON or something) then rails is fine but it'll still include a lot of stuff you wont have a need for, like ActionView.
[07:31:42] jesterfraud: well, you still kinda need it (unless you're using ROAR or something entirely separate) because jbuilder relies on it, no?
[07:31:50] jesterfraud: and when we're generating emails/pdfs, we also need it
[07:32:00] jesterfraud: http://opalrb.org/ - is this actually something feasible?
[07:32:33] strcmp1: i havent tried it, also i use rabl to describe JSON its not perfect but pretty ok and yeah youre right i think it requires actionview as well or assumes its there
[07:33:51] Lightsword: has joined #RubyOnRails
[07:33:52] jesterfraud: yeah, we have to spit out a lot of data that doesn't match models exactly
[07:34:08] jesterfraud: so at the moment, largely reliant on just being able to put anything in the jbuilder
[07:34:13] jesterfraud: I don't like it, but I don't like the project either.
[07:34:21] sandstrom: has joined #RubyOnRails
[07:34:37] strcmp1: rabl is cool for describing a random-ish schema that doesn't 1:1 map with a model, but it has annoying quirks
[07:37:30] b0nn1e: has joined #RubyOnRails
[07:38:20] manuscle: has joined #RubyOnRails
[07:39:59] verticon_: has joined #RubyOnRails
[07:40:41] alex88: has joined #RubyOnRails
[07:41:18] fidalgo: has joined #RubyOnRails
[07:42:13] jesterfraud: so where would it be beneficial _not_ to separate those two things out?
[07:42:58] universa1: any app that is not doing js just because js is the in-thing currently?
[07:43:28] strcmp1: jesterfraud, basically if you don't believe that is the way to develop apps.
[07:44:48] livathinos: has joined #RubyOnRails
[07:45:15] User458764: has joined #RubyOnRails
[07:47:59] Juanchito: has joined #RubyOnRails
[07:48:40] jesterfraud: universa1, I definitely don't agree that doing a JS SPA frontend is entirely for the novelty factor.
[07:48:58] jesterfraud: strcmp1, was wondering more from a technical perspective, like if there were caching advantages or something.
[07:50:14] universa1: jesterfraud: that wasn't my point. there are apps where it makes sense, and then there are apps where it is simpler to just have the classic html views generated on the server.
[07:50:20] jacor: has joined #RubyOnRails
[07:50:20] strcmp1: don't think so, i mean you still cache the response.
[07:50:40] GnuYawk: has joined #RubyOnRails
[07:50:45] strcmp1: render of HTML should be extremely fast since there is nothing dynamic going on.
[07:54:54] lucha: has joined #RubyOnRails
[07:56:43] one_zero: has joined #RubyOnRails
[07:57:36] darutoko: has joined #RubyOnRails
[07:57:53] workmad3: has joined #RubyOnRails
[07:59:24] subtwo: has joined #RubyOnRails
[08:00:36] mikecmpbll: has joined #RubyOnRails
[08:03:38] aufi: has joined #RubyOnRails
[08:05:24] jsrn: has joined #RubyOnRails
[08:06:33] ndrei: has joined #RubyOnRails
[08:08:37] dede: has joined #RubyOnRails
[08:10:35] sinkensabe: has joined #RubyOnRails
[08:10:52] sinkensabe: has joined #RubyOnRails
[08:12:20] fkoessler: has joined #RubyOnRails
[08:12:49] adre: has joined #RubyOnRails
[08:13:16] bruno-: has joined #RubyOnRails
[08:14:05] dseitz: has joined #RubyOnRails
[08:14:09] codelahoma_: has joined #RubyOnRails
[08:14:45] eyck: has joined #RubyOnRails
[08:14:51] kanzure: has joined #RubyOnRails
[08:15:01] lesnik_: has joined #RubyOnRails
[08:15:07] funnel: has joined #RubyOnRails
[08:15:13] sophiedeziel: has joined #RubyOnRails
[08:15:41] robbyoconnor: has joined #RubyOnRails
[08:16:58] krz: has joined #RubyOnRails
[08:17:24] Tempesta: has joined #RubyOnRails
[08:17:36] Macaveli: has joined #RubyOnRails
[08:18:08] aganov: has joined #RubyOnRails
[08:18:47] Ergo: has joined #RubyOnRails
[08:19:30] mikecmpbll: has joined #RubyOnRails
[08:25:58] tvw: has joined #RubyOnRails
[08:27:01] jesterfraud: universa1, right, thanks for the clarification.
[08:27:22] jesterfraud: strcmp1, fair enough
[08:28:17] workmad3: has joined #RubyOnRails
[08:28:31] n008f4g_: has joined #RubyOnRails
[08:29:15] konsolebox: has joined #RubyOnRails
[08:31:04] Grundell: has joined #RubyOnRails
[08:31:38] lucha: has joined #RubyOnRails
[08:32:41] bin_005: has joined #RubyOnRails
[08:36:15] Isthar: has joined #RubyOnRails
[08:39:42] Tempesta: has joined #RubyOnRails
[08:43:30] artto: has joined #RubyOnRails
[08:44:36] Rubie: has joined #RubyOnRails
[08:50:14] trollga: has joined #RubyOnRails
[08:54:26] jarray52: has left #RubyOnRails: ()
[08:55:04] ndrei: has joined #RubyOnRails
[08:57:09] trollga: has joined #RubyOnRails
[08:58:09] GoGoGarrett: has joined #RubyOnRails
[08:58:40] workmad3: has joined #RubyOnRails
[09:00:03] teufelChiCoder: has joined #RubyOnRails
[09:00:49] srinidhi: has joined #RubyOnRails
[09:00:54] dhjondoh: has joined #RubyOnRails
[09:02:32] yoongkang: has joined #RubyOnRails
[09:05:19] x-light: has joined #RubyOnRails
[09:05:34] DaniG2k: has joined #RubyOnRails
[09:08:26] quazimodo: has joined #RubyOnRails
[09:10:40] konsolebox: has joined #RubyOnRails
[09:13:11] arup_r: has joined #RubyOnRails
[09:13:59] bruno-: has joined #RubyOnRails
[09:14:58] arup_r: I am trying to add an scope with my has_many association method.. But it seems not working.. What wrong I did ? https://gist.github.com/aruprakshit/06a51d4e8d0628156567
[09:17:33] mikecmpbll: arup_r: you should use the table name `accounts` as the key in the where.not() argument
[09:17:41] mikecmpbll: joins(:account).where.not(accounts: { deleted_at: nil })
[09:17:48] kp666: has joined #RubyOnRails
[09:18:21] kp666: has joined #RubyOnRails
[09:18:29] arup_r: Ok.. With `Hash` condition I though it will work with associatio name.. Ok. Let me try the one you suggested
[09:18:50] mikecmpbll: unfortunately not. i've always thought the hash key should just defer to model.table_name but meh
[09:18:58] kp666: has joined #RubyOnRails
[09:19:06] okdas_: has left #RubyOnRails: ()
[09:19:18] okdas: has joined #RubyOnRails
[09:19:34] kp666: has joined #RubyOnRails
[09:20:11] kp666: has joined #RubyOnRails
[09:20:24] arup_r: mikecmpbll: thanks .. worked..
[09:21:34] codelahoma: has joined #RubyOnRails
[09:22:50] mikecmpbll: np ;) well asked question btw
[09:25:16] weckl: has joined #RubyOnRails
[09:25:27] dionysus69: has joined #RubyOnRails
[09:25:35] graft_: has joined #RubyOnRails
[09:25:35] graft_: has joined #RubyOnRails
[09:28:32] dhjondoh: has joined #RubyOnRails
[09:28:58] workmad3: has joined #RubyOnRails
[09:29:24] konsolebox: has joined #RubyOnRails
[09:33:37] aaronr: has joined #RubyOnRails
[09:35:13] workmad3: has joined #RubyOnRails
[09:39:16] wethu: has joined #RubyOnRails
[09:41:08] ndrei: has joined #RubyOnRails
[09:45:32] yoongkang: has joined #RubyOnRails
[09:45:52] defswork: has joined #RubyOnRails
[09:47:45] exadeci: has joined #RubyOnRails
[09:50:23] THpubs: has joined #RubyOnRails
[09:52:27] cswelin: has joined #RubyOnRails
[09:53:55] THpubs: has joined #RubyOnRails
[09:55:08] yardenbar: has joined #RubyOnRails
[09:55:20] THpubs: has joined #RubyOnRails
[09:56:09] yardenbar: Hi all, Is there any kill signal to send to my rails app to reopen log files? (like nginx -USR1 signal)
[09:56:15] startupality: has joined #RubyOnRails
[09:56:42] THpubs: Hi everyone... Im getting the error 'instance variable @cached_changed_attributes not defined' when trying to add an edit link for a record... any idea why?
[09:56:55] ndrei: has joined #RubyOnRails
[09:58:06] konsolebox: has joined #RubyOnRails
[09:58:38] hamster88: has joined #RubyOnRails
[09:58:45] hamster88: hello everyone :)
[09:58:52] sevenseacat: THpubs: code?
[09:59:13] hamster88: Afternoon sevenseacat
[09:59:21] sevenseacat: hamster88: good evening
[09:59:24] mikecmpbll: yardenbar: fraid not
[09:59:38] THpubs_: has joined #RubyOnRails
[10:00:02] helpa: http://www.total-knowledge.com/~ilya/mips/ugt.html
[10:01:04] teufelChiCoder: has joined #RubyOnRails
[10:01:19] hamster88: a question, I am trying to link username under author in my post to the user profile. I can't figure out how to do that.
[10:01:36] sevenseacat: hamster88: do you know the route for your user profile?
[10:01:37] THpubs: has joined #RubyOnRails
[10:02:22] hamster88: sevenseacat, in rake routes for user show it says > user GET /users/:id(.:format) users#show
[10:02:30] sevenseacat: ok, so it's user_path
[10:02:40] sevenseacat: and it takes one parameter - the ID of the user to show
[10:02:53] THpubs: Hi everyone Im getting the error 'instance variable @cached_changed_attributes not defined' when trying to add an edit link for a record
[10:02:59] sevenseacat: THpubs: still no code.
[10:03:35] mikecmpbll: and importantly, trace!
[10:03:43] sevenseacat: hamster88: do you know the syntax for making a link?
[10:03:53] hamster88: but that's the problem on my post show page its like this > <p>Author: <%= @post.user.name%></p> what do i need to do exactly
[10:04:04] hamster88: syntax for that is link_to
[10:04:10] THpubs__: has joined #RubyOnRails
[10:04:13] mikecmpbll: have a wild stab
[10:04:16] sevenseacat: yes, link_to is the method to create a link
[10:04:19] sevenseacat: what options does it take?
[10:04:30] yardenbar: mikecmpbll, do rails applications open log files automatically if these log file are *deleted* outside the process?
[10:04:50] hamster88: thats the complete syntax > <%= link_to '', path %>
[10:05:04] mikecmpbll: yardenbar: i don't know what would happen in that instance but i guess it will just recreate it
[10:05:09] sevenseacat: ok, so what do you need in place of the "" and in place of the path ?
[10:05:10] mikecmpbll: that's if you can even delete it
[10:05:16] THpubs_: has joined #RubyOnRails
[10:05:40] hamster88: in place of path should be user_path , but i can't figure out the " " section as what should be there
[10:05:50] sevenseacat: that argument is the text of the link
[10:05:55] sevenseacat: what do you want the link to say?
[10:07:11] hamster88: I want the username to be hyperlinked
[10:07:19] sevenseacat: ok, so replace the "" with the user's name
[10:07:29] sevenseacat: you've got the code for that above
[10:07:32] hamster88: so if visitor clicks on post username he will be redirected to the user_path
[10:07:41] bruno-: has joined #RubyOnRails
[10:08:57] hamster88: ok that works but on question here , it is going to id 17 where as my user id =1 how can i fix that?
[10:09:26] hamster88: for example when i click the user name on post it goes to http://localhost:3000/users/17 instead of http://localhost:3000/users/1
[10:09:39] sevenseacat: what did you specify the path to be?
[10:09:42] hamster88: please note 17 is actually the post id not user one
[10:09:43] elaptics: hamster88: what are you specifying for the path?
[10:09:44] mikecmpbll: @user.id - 16
[10:10:02] hamster88: i have specified the path to be user_path
[10:10:03] sevenseacat: remember that user_path requires the ID of the user to show
[10:10:09] sevenseacat: as was listed in rake routes
[10:10:10] hamster88: shall i add user_path/1 ?
[10:10:27] hamster88: because routes says user_path/:id
[10:10:30] sevenseacat: hamster88: how did you create a link to the post?
[10:10:34] elaptics: hamster88: what do you have in your routes.rb file? Do you have a line like resources :users ?
[10:10:52] hamster88: elaptics, yes i have resources :users
[10:11:03] sevenseacat: http://guides.rubyonrails.org/routing.html#path-and-url-helpers
[10:11:25] elaptics: http://guides.rubyonrails.org/routing.html#resource-routing-the-rails-default
[10:11:32] elaptics: doh sevenseacat you beat me to it
[10:11:50] sevenseacat: ACTION has the guides on speed dial
[10:12:10] elaptics: hamster88: basically read the routing guide we've linked to above, it explains how routing and the helpers work to make it easy to specify paths to things
[10:12:16] thebatu1: has joined #RubyOnRails
[10:12:32] ndrei: has joined #RubyOnRails
[10:13:28] yoongkang: has joined #RubyOnRails
[10:13:33] Hates_: has joined #RubyOnRails
[10:14:48] Dzejmskrokan: has joined #RubyOnRails
[10:15:05] hamster88: i read it but still can't get to figure out the id thing :/
[10:15:11] antgel: has joined #RubyOnRails
[10:15:26] yardenbar: mikecmpbll, you're correct, I deleted the logfile and rails application doesn't create a new one
[10:15:37] hamster88: using id with context to path so that i redirects to that same user id instead of taking post id as user id
[10:15:38] konsolebox: has joined #RubyOnRails
[10:15:41] sevenseacat: "(for instance, photo_path(10) returns /photos/10)"
[10:15:42] mikecmpbll: yardenbar: ah. what happened does the app error?
[10:15:52] elaptics: hamster88: so do you have the user in question stored in a variable available in your view?
[10:15:53] sevenseacat: you have a user_path that wants a user ID as an argument
[10:16:04] thsig: has joined #RubyOnRails
[10:16:28] elaptics: hamster88: or maybe this user is associated with the post that I'm guessing you're displaying...
[10:16:40] hamster88: elaptics, you get it right
[10:17:03] sevenseacat: !gettingstarted
[10:17:03] helpa: http://guides.rubyonrails.org/getting_started.html - Getting started with Ruby on Rails guide written by Mike Gunderloy and Ryan Bigg
[10:17:20] hamster88: the user is actually associated with the post and to view the profile of this user is localhost:3000/users/1
[10:17:29] yardenbar: I don't see erros in the app, but lsof still shows a fd points to the deleted file
[10:17:42] elaptics: hamster88: !gist your current view and controller code
[10:17:42] helpa: hamster88: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[10:17:45] ndrei: has joined #RubyOnRails
[10:18:38] mikecmpbll: yardenbar: yeah there's no way to get rails to release that without restarting it afaik
[10:19:17] stardiviner: has joined #RubyOnRails
[10:20:01] hamster88: https://gist.github.com/thedesignable/60511e94aca4e45ca0dd
[10:20:03] THpubs: has joined #RubyOnRails
[10:20:24] rickmasta: has joined #RubyOnRails
[10:20:49] THpubs: @sevenseacat sorry I didn't got the previous msg...
[10:21:29] THpubs: Hi everyone... sorry I lost my connection. Here's my question again.. Im getting the error 'instance variable @cached_changed_attributes not defined' when trying to add an edit link for a record
[10:21:40] sevenseacat: THpubs: for the third time, where is your code?
[10:21:50] mikecmpbll: hamster88: pretty sure you were told about 6 times that you need to pass an argument to user_path with the ID of the user, heh
[10:22:50] THpubs_: has joined #RubyOnRails
[10:22:57] hamster88: mikecmpbll, and pretty sure i am trying to figure out how to pass that argument in that way hehe
[10:23:12] ndrei: has joined #RubyOnRails
[10:23:24] mikecmpbll: hamster88: do you understand how to pass arguments to methods?
[10:23:39] mikecmpbll: hamster88: sometimes known as parameters.
[10:24:28] THpubs_: has joined #RubyOnRails
[10:24:37] Detch: has joined #RubyOnRails
[10:24:40] hamster88: mikecmpbll, i used params before but passing out id all i can remember is like this user_path([:id])
[10:24:59] THpubs2: has joined #RubyOnRails
[10:25:00] mikecmpbll: ah, i shouldn't have mentioned parameters, it's not to do with the params hash
[10:25:16] sevenseacat: hamster88: how did you link to the page to show the post details?
[10:25:22] mikecmpbll: you've got the first bit right, you pass arguments in parentheses `method(arg)`
[10:25:46] elaptics: hamster88: what is the user association on posts?
[10:25:51] hamster88: sevenseacat, i linked it this way : <p><%=link_to post.title, post%></p>
[10:26:08] sevenseacat: hamster88: did you try doing the same thing but with users?
[10:26:09] hamster88: elaptics, belongs_to :user
[10:26:25] elaptics: hamster88: do you understand that line that you just pasted to sevenseacat - i.e. do you really understand what it's doing?
[10:26:34] sevenseacat: methinks not, sadly.
[10:26:41] mikecmpbll: good ol' url_for
[10:26:44] sevenseacat: hamster88: !gettingstarted
[10:26:44] helpa: hamster88: http://guides.rubyonrails.org/getting_started.html - Getting started with Ruby on Rails guide written by Mike Gunderloy and Ryan Bigg
[10:27:25] arBmind: has joined #RubyOnRails
[10:28:50] hamster88: elaptics, yes it's linking post.title by post id
[10:29:04] THpubs: has joined #RubyOnRails
[10:29:14] hamster88: so when i will click on that link it will redirect me to the associated post
[10:29:23] eoy_: has joined #RubyOnRails
[10:29:29] mikecmpbll: hamster88: and you want to link user.name by user id -- it's no great stretch to change it for what you need is it?
[10:30:06] THpubs: Sorry my code is : <td class='textcenter'><%= link_to 'Edit', edit_dash_product_path(product), class: 'label label-warning' %></td>
[10:30:16] mikecmpbll: THpubs: !trace
[10:30:16] helpa: THpubs: Please provide us with a full trace on https://gist.github.com/ or an Etch-A-Sketchâ„¢.
[10:30:17] hamster88: mikecmpbll, yes, it should link those post to the user by user id
[10:30:30] mikecmpbll: hamster88: what?
[10:30:32] hamster88: i mean username*
[10:30:42] mikecmpbll: hamster88: so where are you struggling? you need to change two words
[10:31:59] hamster88: mikecmpbll, i tried doing this way <p>Author: <%= link_to user.name, user%></p> and it throws me this error >> undefined local variable or method `user' for #<#<Class:0x007fed91262858>:0x007fed90f10448>
[10:32:15] mikecmpbll: ah okay, that's progress
[10:32:25] mikecmpbll: so how do you access the user for that post?
[10:32:46] hamster88: user for that post goes like > http://localhost:3000/users/1/
[10:32:53] mikecmpbll: i mean how do you access the object
[10:33:03] THpubs: Here's the full trace https://gist.github.com/THPubs/7aae392ea3a2464c8638
[10:33:03] mikecmpbll: probabaly by post.user, so replace user with post.user in that previous code.
[10:33:15] hamster88: post.user.name
[10:33:40] ur5us: has joined #RubyOnRails
[10:34:02] konsolebox: has joined #RubyOnRails
[10:34:15] hamster88: you mean like this > link_to post.user.name, user
[10:34:22] sandstrom: has joined #RubyOnRails
[10:34:35] mikecmpbll: no, you still have user at the end
[10:34:51] leex: Hi, what is the right way to synchronize database access with active records? With ruby and threads I would use semaphore.syncronize, what's the rails way to do that?
[10:35:22] mikecmpbll: hamster88: we worked out just a second ago that `user` is not defined and we need to use `post.user` to access the user object, so why are you still trying to use `user`? :)
[10:35:33] mikecmpbll: think about it a little
[10:35:41] sevenseacat: we're so close
[10:35:48] mikecmpbll: use those little grey cells, as poirot would say
[10:35:59] mikecmpbll: ACTION holds sevenseacat's hand
[10:36:32] bar0n: has joined #RubyOnRails
[10:37:30] hamster88: okay this is like what it was before i came up with the problem, the link_to is not redirect to my user profile page at http://localhost:3000/users/1/
[10:37:42] hamster88: what it says is http://localhost:3000/posts/17
[10:38:07] maz-dev: has joined #RubyOnRails
[10:39:39] elaptics: hamster88: to recap, if you read the routing guides you understand that the resources :users line gives you helper methods which make it easy to get the path, e.g. user_path, you just need to pass a suitable id so it knows which user. You have got a user you want to link to to available as an association off the post you already have which is held in @post
[10:40:02] THpubs: Just pasted the full trace
[10:40:06] elaptics: ACTION now waits with bated breath and has fingers crossed
[10:41:08] sevenseacat: THpubs: for the fourth time, where is your code?
[10:41:34] sevenseacat: sorry, i missed that you posted it here instead of in the gist
[10:42:01] THpubs: Yep :-) sorry i have connection issues. Is that line enough?
[10:42:21] sevenseacat: so whats on app/views/dash/products/index.html.erb:82 ?
[10:42:41] sevenseacat: sorry, whats on app/views/dash/products/_product.html.erb:26 ?
[10:43:20] drewdavis: has joined #RubyOnRails
[10:43:20] arielserafini_: has joined #RubyOnRails
[10:43:23] LateralOctober: has joined #RubyOnRails
[10:43:25] quazimodo: has joined #RubyOnRails
[10:43:27] Isthar: has joined #RubyOnRails
[10:43:28] FooBarWidget: has joined #RubyOnRails
[10:43:29] sfr^: has joined #RubyOnRails
[10:43:30] v4s: has joined #RubyOnRails
[10:43:31] workmad3: THpubs: any chance you could add that partial & the index view to the gist?
[10:43:33] Seich: has joined #RubyOnRails
[10:43:35] jesterfraud: has joined #RubyOnRails
[10:43:36] DarkBushido: has joined #RubyOnRails
[10:43:37] PlasmaStar: has joined #RubyOnRails
[10:43:37] jamon_: has joined #RubyOnRails
[10:43:38] nertzy: has joined #RubyOnRails
[10:43:40] Shidash: has joined #RubyOnRails
[10:43:42] matt_d: has joined #RubyOnRails
[10:43:43] mikecmpbll: hamster88: what code do you have now?
[10:43:45] epochwolf: has joined #RubyOnRails
[10:43:46] prasselpikachu: has joined #RubyOnRails
[10:43:49] LBRapid: has joined #RubyOnRails
[10:43:49] manuscle: has joined #RubyOnRails
[10:43:53] george2: has joined #RubyOnRails
[10:43:53] jalcine: has joined #RubyOnRails
[10:43:56] axil42: has joined #RubyOnRails
[10:43:58] THpubs: In line 82 i have this : <%= render @products, list: 'approved' %>
[10:44:00] yocapybara: has joined #RubyOnRails
[10:44:03] elaptics: leex: what do you mean by sync access?
[10:44:24] elaptics: leex: are you talking about database transactions?
[10:44:33] THpubs: Sure wait
[10:44:34] leex: elaptics: yes, db transactions
[10:44:46] mcr-credil: has joined #RubyOnRails
[10:44:58] elaptics: leex: there's transaction methods you can use to wrap around the code you need
[10:45:26] elaptics: leex: http://api.rubyonrails.org/classes/ActiveRecord/Transactions/ClassMethods.html
[10:45:35] Dwarf: has joined #RubyOnRails
[10:45:48] melter: has joined #RubyOnRails
[10:45:55] fluxsource: has joined #RubyOnRails
[10:46:02] leex: ok, does it basically work like a semaphore.synchronize? so that if two record.list << new_items are executed they will get synchronized correctly?
[10:46:13] erich: has joined #RubyOnRails
[10:46:13] workmad3: leex: there's two things you can do with database access... you could use transactions to isolate changes (and if two transactions tried to alter the same record, the second would be stale and the commit would fail), or you could use locking to prevent a second transaction from being able to start until the first one was done
[10:46:18] Pupeno: has joined #RubyOnRails
[10:46:48] leex: and will the other instance of record.list also get updated? or do I have to do a reload?
[10:47:29] THpubs: The index.html.erb : https://gist.github.com/THPubs/44773412250ad23137ec
[10:47:39] workmad3: THpubs: add to the *same* gist please :P
[10:47:47] workmad3: THpubs: you can edit and add extra files
[10:47:52] lupine: has joined #RubyOnRails
[10:47:55] THpubs: Ah ok wait
[10:48:50] MiracleBlue: has joined #RubyOnRails
[10:49:01] workmad3: leex: 'synchronized' also isn't the term you're looking for when dealing with database transactions btw... the way that term is used is fairly specific to threads and critical code blocks, and is wrapping around various implementation details
[10:49:30] Oxynum: has joined #RubyOnRails
[10:49:41] THpubs: Just updated the gist with all the 3 files :-)
[10:49:53] spectra: has joined #RubyOnRails
[10:49:54] workmad3: leex: if you want to ensure that your transactions execute sequentially, you're most likely looking for database locks btw, but be careful as they are very bad for performance (how bad depends on database)
[10:50:19] leex: workmad3: ok, cool, thank you
[10:50:37] Oxynum: Hi, I'm trying to use strong parameters to require a field to be an array but cannot find out how to do it.
[10:50:58] blackmesa: has joined #RubyOnRails
[10:50:59] mikecmpbll: Oxynum: foo: []
[10:51:02] leex: workmad3 elaptics thank you, will read the link and might come back with a question afterwards :)
[10:52:30] hamster88: fixed it :D
[10:52:55] Oxynum: mikecmpbll: it seems to work with the permit method, but not the require one.
[10:53:22] mikecmpbll: ACTION applauds hamster88 
[10:53:40] tlarevo: has joined #RubyOnRails
[10:53:45] Pazician: has joined #RubyOnRails
[10:53:45] hamster88: what i did is , in post controller i directly passed on the user id 1 like this > @user = User.find(1) and in view i used > user_path(@user.id)
[10:53:48] hamster88: that worked
[10:53:54] mikecmpbll: ACTION facepalms
[10:54:25] elaptics: hamster88: great, but there is a better way
[10:54:30] mikecmpbll: that won't even work
[10:54:38] workmad3: mikecmpbll: depends on your standard of 'works'
[10:54:42] hamster88: that worked mikecmpbll :D
[10:54:43] workmad3: mikecmpbll: it'll stop errors :P
[10:54:47] mikecmpbll: hamster88: only for posts by user id 1
[10:54:52] mikecmpbll: try viewing a post by someone else
[10:54:54] elaptics: it'll work until you get more than 1 user :)
[10:55:01] elaptics: ACTION kills mikecmpbll 
[10:55:08] mikecmpbll: we were literally 4 characters away from success
[10:55:13] workmad3: mikecmpbll: 5
[10:55:17] mikecmpbll: oh ya the dot
[10:55:23] mostlybadfly: has joined #RubyOnRails
[10:55:45] hamster88: elaptics, what is the better way
[10:55:56] srinidhi: has joined #RubyOnRails
[10:56:02] mikecmpbll: the way everyone told you 20 times, the way you did it for posts
[10:56:05] hamster88: and i have only one user who will be doing the post
[10:56:15] elaptics: hamster88: you already have the user associated with the post you already have
[10:56:25] elaptics: use this association
[10:56:38] mikecmpbll: Oxynum: ah ok, hmm. i've never done that
[10:56:55] ndrei: has joined #RubyOnRails
[10:57:09] hamster88: alright i will read more about it and do it that way
[10:57:21] hamster88: thanks for the help everyone :)
[10:57:26] elaptics: hamster88: something that is less obvious is that the routing helper methods understand active record objects so you don't need to explicitly specify the id, just the object itself will work
[10:57:58] hamster88: elaptics, I tried doing it that way too but i am pretty sure i have missed a lot of things while doing that
[10:58:14] THpubs: Just updated the gist :-)
[10:58:34] elaptics: Oxynum: the require is kinda like a slice of the params, i.e. it returns just the inner params of the item specified
[10:58:48] ChadyG: has joined #RubyOnRails
[10:59:27] elaptics: hamster88: do let us know what you come up with when you've thought about it some more
[10:59:36] elaptics: or if get stuck
[11:00:21] hamster88: i tried to find something more specific to posts, user and profile but can't really find any good examples so that i could understand the implementation
[11:00:51] mikecmpbll: apart from the example you already had in your code for posts
[11:01:49] maz-dev: has joined #RubyOnRails
[11:01:56] rodfersou: has joined #RubyOnRails
[11:01:59] yardenbar: 10x mikecmpbll
[11:04:07] creature: has joined #RubyOnRails
[11:05:10] guillaume-rb: has joined #RubyOnRails
[11:06:52] THpubs: Just included the model code also in the gist
[11:07:47] ndrei_: has joined #RubyOnRails
[11:08:01] Chewie_: has joined #RubyOnRails
[11:08:41] Pupeno: has joined #RubyOnRails
[11:09:14] intinig: has joined #RubyOnRails
[11:09:21] tvw: has joined #RubyOnRails
[11:11:48] THpubs: : I got it fixed! Just changed edit_dash_product_path(product) to edit_dash_product_path(product.id) :-)
[11:12:21] Chewie_: Could anyone help me please? I'm trying to use a scaffold generator to generate a model that extends an existing model.
[11:12:48] workmad3: THpubs: that would indicate there's something messed up with FriendlyID in your project
[11:13:08] Chewie_: I mean generate a scaffold for a Manager, where manager extends Person
[11:13:19] BaconOverflow: has joined #RubyOnRails
[11:13:23] workmad3: Chewie_: scaffolds don't do that
[11:13:31] THpubs: workmad3: yep... any idea what might be the problem?
[11:13:42] Chewie_: no? Oh, ok thanks anyway.
[11:13:53] mikecmpbll: THpubs: what version of rails & friendly_id ?
[11:14:11] Chewie_: Couldn't I scaffold manager and then patch in the 'Person' fields?
[11:14:13] workmad3: Chewie_: scaffolds are limited, and intentionally so, as they're not meant to allow you to generate every possible bit of code (otherwise they'd be called a text editor :P )
[11:14:40] workmad3: Chewie_: or you could just write the class directly, it would probably take you the same amount of time
[11:14:54] THpubs: mikecmpbll: its 5.1.0.. everything worked fine with this earlier
[11:15:00] Chewie_: It's not the class I'm worries about
[11:15:04] mikecmpbll: THpubs: and rails?
[11:15:19] THpubs: But i did update the other gems... rails 4.2.2
[11:15:45] mcr-credil: has joined #RubyOnRails
[11:15:45] workmad3: Chewie_: you're probably going to need to rewrite 90% of the scaffolded controller, views and model in order to do this anyway
[11:15:58] THpubs: :-) any idea how to pinpoint the eaxt issue?
[11:16:31] mikecmpbll: THpubs: look through the trace
[11:16:41] mikecmpbll: find out why that instance var isn't defined, or whatever the error said
[11:16:58] rodferso1: has joined #RubyOnRails
[11:17:18] THpubs: mikecmpbll: ok i will thanks :-)
[11:17:26] stamina: has joined #RubyOnRails
[11:17:48] sandstrom: has joined #RubyOnRails
[11:17:52] workmad3: THpubs: it kinda looks like friendly id is doing its normal tricks of relying heavily on internal implementation details of ActiveRecord and you're using a version that then broke
[11:18:20] workmad3: THpubs: can't see anywhere else in that code where you'd actually hit the problem btw, because you're not using route helpers in other places (which is bad :P )
[11:18:35] diegoviola: has joined #RubyOnRails
[11:19:09] THpubs: workmad3: sorry im a bit new. What did you mean by route helpers? :-)
[11:20:08] yardenbar: mikecmpbll, forgot to mention that I'm using unicorn, which takes -USR1 kill signal to reopen logfils
[11:20:15] livcd: has joined #RubyOnRails
[11:20:23] workmad3: THpubs: edit_dash_product_path <-- that's a route helper
[11:20:25] gerardc: has joined #RubyOnRails
[11:20:44] workmad3: THpubs: link_to product.name, "/dash/products/#{product.id}" <-- that's not a route helper
[11:20:56] mikecmpbll: yardenbar: does that work for rails logs though?
[11:21:46] dcunit3d: has joined #RubyOnRails
[11:21:53] Pazician_: has joined #RubyOnRails
[11:22:26] THpubs: workmad3: yikes! Sorry... i just messed up with my routes and in the process of cleaning it up and fixing the links. I will fix it :-) thanks for pointing it out
[11:23:07] hamster88: i fixed the whole code i used this for show page for posts > <p>Author: <%= link_to @post.user.name, user_path(@post.user.id)%></p>
[11:23:13] Pazician_: has joined #RubyOnRails
[11:23:25] cac: has joined #RubyOnRails
[11:23:34] workmad3: THpubs: also '<%= content_tag :th, some_code %>' is not preferable to '<th><%= some_code %></th>' like you have in your index view ;)
[11:24:04] Pazician_: has joined #RubyOnRails
[11:24:48] workmad3: THpubs: btw, it's looking like you're not wanting to use friendly-id... if so, it may make sense to aim towards removing it
[11:25:55] THpubs: workmad3: ah for th tag i use content_tag but not for the partial's <td> better replace it with content tag right?
[11:26:00] maz-dev: has joined #RubyOnRails
[11:26:13] hamster88: I am wondering if the code i used is correct ?
[11:26:20] workmad3: THpubs: no, replace the content_tag with <th><%...%></th>
[11:26:30] workmad3: THpubs: using content_tag like that in a view is horrendously ugly
[11:26:31] THpubs: workmad3: actually i use friendly id to view the products... not under dash but for the public
[11:26:47] User458764: has joined #RubyOnRails
[11:27:07] THpubs: workmad3: ah can you please tell me the why content_tag is bad?
[11:27:23] workmad3: THpubs: because it's ugly and makes it harder to read your view
[11:27:28] User458764: has joined #RubyOnRails
[11:27:51] THpubs: workmad3: great! Point taken! Thanks :-)
[11:28:14] workmad3: THpubs: content_tag is useful if you need to generate a tag inside a helper, and it's not worth creating a partial to do it
[11:28:20] workmad3: THpubs: it's not there to generate tags in views ;)
[11:28:46] THpubs: workmad3: ahaaa! :-)
[11:28:52] thsig: has joined #RubyOnRails
[11:31:57] Pazician_: has joined #RubyOnRails
[11:33:10] _blizzy_: has joined #RubyOnRails
[11:33:17] _blizzy_: ok, let's try this again.
[11:34:05] Rubie: has joined #RubyOnRails
[11:34:16] _blizzy_: anyone familiar with paperclip? I'm currently using it with rails(obv). PC uploads the file to S3, however, the url is returning as 'missing.png', even though the file is uploaded to S3. IDK where the problem is. https://gist.github.com/NotBlizzard/11232671c8763360c595
[11:35:41] sevenseacat: where is the url returned as 'missing.png'?
[11:36:03] sevenseacat: theres no code there that outputs a URL
[11:36:33] _blizzy_: @Photo.photo.url
[11:36:39] _blizzy_: should of said that. :x
[11:36:54] sevenseacat: theres also no @Photo in that code
[11:37:09] _blizzy_: well let me update my gist.
[11:37:29] rodfersou: has joined #RubyOnRails
[11:38:18] _blizzy_: ok. https://gist.github.com/NotBlizzard/11232671c8763360c595 :)
[11:38:24] _blizzy_: please excuse the messy erb file.
[11:38:54] _blizzy_: @photo.photo.url (line 7 of erb file) is returning as "missing.png"
[11:39:03] Pupeno: has joined #RubyOnRails
[11:39:03] _blizzy_: even though the file uploads correctly to s3.
[11:39:37] THpubs: has joined #RubyOnRails
[11:39:46] ldnunes: has joined #RubyOnRails
[11:39:47] universa1: without having read anything about your problem: your paperclip.rb looks broken: https://gist.github.com/NotBlizzard/11232671c8763360c595#file-paperclip-rb-L2-L3
[11:39:56] universa1: and you don't need to manually require securerandom.
[11:40:36] _blizzy_: let me try without the comma, and ok, universa1
[11:40:36] toretore: has joined #RubyOnRails
[11:41:27] universa1: _blizzy_: you're opening with a single quote, this makes the double quote and comma part of the string, and your string ends on the next line with the closing single quote...
[11:41:37] xrlabs: has joined #RubyOnRails
[11:41:39] sevenseacat: i think its overwritten in the model anyway
[11:41:39] phat4life: has joined #RubyOnRails
[11:42:03] sevenseacat: have you tried specifying either the medium or thumb style in your view?
[11:42:12] _blizzy_: let me try the medium
[11:42:13] sevenseacat: also, what is saved in the db?
[11:42:33] _blizzy_: let's open up console and find out then.
[11:42:43] sevenseacat: debugging 101 :)
[11:42:46] THpubs: has joined #RubyOnRails
[11:43:11] universa1: https://gist.github.com/NotBlizzard/11232671c8763360c595#file-photo-rb-L21-L23 -- if you only got one set of credentials i wouldn't put it into a proc but set that hash directly as the option value in has_attached_file .
[11:43:43] universa1: and with that i've made enough unrelated comments ;) back to works
[11:43:49] _blizzy_: universa1, ok, thanks. :)
[11:44:14] mcr-credil: has joined #RubyOnRails
[11:44:32] _blizzy_: the url still returns as missing, even with the medium one. c:
[11:44:43] _blizzy_: *medium thumbnail.
[11:47:41] hamster88: how can i fetch the data submitted to devise "user registration" in a show view?
[11:48:00] hamster88: i want the data that is updated by the user to be displayed in show view
[11:48:56] cac: has joined #RubyOnRails
[11:49:09] blackmesa: has joined #RubyOnRails
[11:51:29] AugustoCesar: has joined #RubyOnRails
[11:55:34] maz-dev: has joined #RubyOnRails
[11:55:51] hamster88: I used paperclip a lot with my recent project, what is the problem you are facing _blizzy_
[11:56:20] _blizzy_: hamster88, https://gist.github.com/NotBlizzard/11232671c8763360c595 my file is uploading to S3, however, my url is returning as 'missing.png'
[11:56:35] sevenseacat: _blizzy_: so about that console you were opening
[11:56:39] hamster88: sevenseacat, what was that for :D
[11:56:40] _blizzy_: I opened it.
[11:56:54] sevenseacat: and the answer to the question i asked...?
[11:57:11] _blizzy_: yes, I've tried specifying a medium style
[11:57:22] _blizzy_: it still returned as 'missing.png'
[11:57:33] sevenseacat: hamster88: i'm a little skeptical you can help with paperclip issues when you dont know how to call a route.
[11:57:49] sevenseacat: [19:42:13] sevenseacat: also, what is saved in the db?
[11:57:50] sevenseacat: [19:42:34] _blizzy_: let's open up console and find out then.
[11:58:15] _blizzy_: actually, let me try something real quick.
[11:58:34] jacor: has joined #RubyOnRails
[11:58:37] _blizzy_: I think I know the fix
[11:59:00] darrencauthon: has joined #RubyOnRails
[12:01:40] djbkd: has joined #RubyOnRails
[12:02:24] tvw: has joined #RubyOnRails
[12:04:12] _blizzy_: ok, I checked the db. it's saving it as a missing.png file.
[12:04:24] _blizzy_: I'm allowing the image through the params with photo_params
[12:04:50] dont: has joined #RubyOnRails
[12:05:46] toomus: has joined #RubyOnRails
[12:05:50] GoGoGarrett: has joined #RubyOnRails
[12:06:58] toomus: Why when I load form with AJAX, I can't submit it and get error ActionController::InvalidAuthenticityToken?
[12:07:12] elaptics: toomus: !code
[12:07:12] helpa: toomus: 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.
[12:08:15] _blizzy_: well this is getting annoying. this is like the 3rd day I've been working on this.
[12:08:17] allenn: has joined #RubyOnRails
[12:08:27] _blizzy_: I want to move on to new projects. :I
[12:09:03] sevenseacat: so what exactly is saving in the db?
[12:09:18] jsrn_: has joined #RubyOnRails
[12:09:25] _blizzy_: the missing.png
[12:09:36] _blizzy_: when it should be saving the file uploaded to s3
[12:09:42] sevenseacat: just a string "missing.png" ?
[12:10:02] toomus: elaptics: This is the form http://pastie.org/10252910
[12:10:21] sevenseacat: _blizzy_: what do the logs look like when you create a new photo?
[12:12:12] tlarevo_: has joined #RubyOnRails
[12:12:21] _blizzy_: here is the log. IDK why I'm getting unpermitted param title
[12:12:22] _blizzy_: http://pastie.org/10252914
[12:12:29] _blizzy_: when it's permitted in the photo_params method
[12:13:51] sevenseacat: _blizzy_: look at the params being submitted - there is no file there
[12:13:51] elaptics: toomus: do you have the authenticity token on the page in the meta tags?
[12:14:15] _blizzy_: sevenseacat, how is the file being uploaded to S3 then if there is no file?
[12:14:18] sevenseacat: you're not creating a new photo there - please gist the logs from when you create a new photo
[12:14:27] toomus: elaptics: Yes, I have csrf_meta_tags included
[12:14:29] sevenseacat: it isnt in that example
[12:14:45] jokke: has joined #RubyOnRails
[12:15:18] ekain: has joined #RubyOnRails
[12:15:24] _blizzy_: sevenseacat, that is the gist.
[12:15:32] _blizzy_: it shows that I make a post request to upload
[12:15:35] sevenseacat: _blizzy_: that gist does not show a photo being created.
[12:15:44] adamski00: has joined #RubyOnRails
[12:15:44] guillaume-rb: has joined #RubyOnRails
[12:15:56] Noskolec: has joined #RubyOnRails
[12:16:09] elaptics: toomus: can you gist your logs where the error is occurring along with the backtrace. Include any other files the backtrace references that are part of your app
[12:16:30] ndrei: has joined #RubyOnRails
[12:17:00] scottmatheina: has joined #RubyOnRails
[12:17:38] zorak8: has joined #RubyOnRails
[12:17:51] rustymyers: has joined #RubyOnRails
[12:18:06] _blizzy_: pastie is acting up, so here's a gist of the log. https://gist.githubusercontent.com/NotBlizzard/71a579c980cc810c5d9c/raw/3e2941d931ad3ab287a9900a07553be80febdd89/gistfile1.txt
[12:18:16] wethu: has joined #RubyOnRails
[12:18:55] sandstrom: has joined #RubyOnRails
[12:18:59] sevenseacat: "Unpermitted parameters: title, photo"
[12:19:13] sevenseacat: thats why your photo isnt saving
[12:19:25] _blizzy_: but it's permitted in my photos_param method.
[12:19:43] sevenseacat: we've been through this exact problem before
[12:19:48] sinkensabe: has joined #RubyOnRails
[12:19:49] sevenseacat: remove your tags method
[12:19:55] sevenseacat: because thats truncating the params
[12:20:03] sinkensabe: has joined #RubyOnRails
[12:20:06] rodfersou: has joined #RubyOnRails
[12:20:09] toomus: elaptics: Full error: http://pastie.org/private/wr7socloohw9gol6xvimyw
[12:20:53] edwinvdg_: has joined #RubyOnRails
[12:21:59] sevenseacat: http://logs.ryanbigg.com/RubyOnRails?date=2015-05-28#3239062 we did have this exact same problem vefore!
[12:22:12] elaptics: toomus: and where's this occurring? from what request? Can you add the whole log of the request?
[12:22:37] sevenseacat: http://logs.ryanbigg.com/RubyOnRails?date=2015-05-28#3239328
[12:23:06] edwinvdg_: has joined #RubyOnRails
[12:25:03] bronson: has joined #RubyOnRails
[12:28:07] Palsson: has joined #RubyOnRails
[12:29:53] jamiely: has joined #RubyOnRails
[12:30:13] melter: has joined #RubyOnRails
[12:30:23] _blizzy_: let me update my logs.
[12:31:14] arup_r: has joined #RubyOnRails
[12:31:19] _blizzy_: ok this is what I'm getting now. https://gist.githubusercontent.com/NotBlizzard/9f41cbf80ea8b6760061/raw/cedea84172a605d6eabe48d294dd49afdef8ca52/gistfile1.txt
[12:33:00] sevenseacat: _blizzy_: with what code?
[12:33:41] afrianska: has joined #RubyOnRails
[12:34:04] _blizzy_: here's the updated gist. https://gist.github.com/NotBlizzard/11232671c8763360c595 I removed the tags method.
[12:34:17] bbrowning: has joined #RubyOnRails
[12:35:03] Pazician: has joined #RubyOnRails
[12:37:05] sevenseacat: lets see how you fixed this last time
[12:37:23] _blizzy_: yeah, it worked. IDK what I did to it.
[12:37:30] _blizzy_: *it worked at one point.
[12:38:07] sevenseacat: well the easiest way to see would be to diff your code with what you had a month ago
[12:38:15] sevenseacat: save retracing all our steps
[12:38:28] _blizzy_: let me go back to my gists.
[12:40:12] sevenseacat: _blizzy_: https://gist.github.com/NotBlizzard/11232671c8763360c595#file-photo-rb-L3
[12:40:19] sevenseacat: you're overwriting the accessor. delete that line.
[12:40:41] emmmo: has joined #RubyOnRails
[12:40:48] sevenseacat: _blizzy_: and if you come back with this same problem in a months time again, im going to get a little grumpy.
[12:40:49] Crashtown: has joined #RubyOnRails
[12:41:05] _blizzy_: sevenseacat, ok, sorry. c: thxs also.
[12:41:14] _blizzy_: I made a comment near the line to not uncomment it.
[12:41:22] sevenseacat: _blizzy_: *delete* it.
[12:41:41] strixd: has joined #RubyOnRails
[12:41:59] sevenseacat: do not re-add it.
[12:42:35] strixd: has joined #RubyOnRails
[12:43:30] strixd: has joined #RubyOnRails
[12:44:23] strixd: has joined #RubyOnRails
[12:45:14] _blizzy_: thank god. I can finally work on something else.
[12:45:51] elaptics: delete it and put the note in your version control so it stays with that line - no comments needed in the code
[12:46:11] chouhoulis: has joined #RubyOnRails
[12:46:15] _blizzy_: I'm going to do exactly that.
[12:51:29] Pazician: has joined #RubyOnRails
[12:52:28] Papierkorb: has joined #RubyOnRails
[12:53:16] bbrowning: has joined #RubyOnRails
[12:53:51] thsig: has joined #RubyOnRails
[12:56:48] stardiviner: has joined #RubyOnRails
[13:00:13] gerep: has joined #RubyOnRails
[13:01:18] dideler: has joined #RubyOnRails
[13:01:33] intinig: has joined #RubyOnRails
[13:02:26] manuscle: has joined #RubyOnRails
[13:02:37] tommyjam: has joined #RubyOnRails
[13:03:53] umgrosscol: has joined #RubyOnRails
[13:04:11] givanse: has joined #RubyOnRails
[13:05:04] thelastinuit: has joined #RubyOnRails
[13:07:06] Papierkorb_: has joined #RubyOnRails
[13:07:13] garrypolley: has joined #RubyOnRails
[13:07:22] IFrank00: has joined #RubyOnRails
[13:09:05] afrianska: has joined #RubyOnRails
[13:11:26] dANO-: has joined #RubyOnRails
[13:11:32] Valien: has joined #RubyOnRails
[13:11:40] thsig: has joined #RubyOnRails
[13:11:47] IRCFreenode: has joined #RubyOnRails
[13:12:08] vasilakisFiL: has joined #RubyOnRails
[13:14:18] griffindy: has joined #RubyOnRails
[13:14:52] maz-dev: has joined #RubyOnRails
[13:18:15] ramortegui: has joined #RubyOnRails
[13:19:38] Scripore: has joined #RubyOnRails
[13:22:33] dcunit3d: has joined #RubyOnRails
[13:23:32] k4nd4lf: has joined #RubyOnRails
[13:24:29] qejk: has joined #RubyOnRails
[13:25:27] DylanJ: if you dont comment your code and rely on source control. plz dont reformat unrelated code. it breaks my heart.
[13:25:45] seansith: has joined #RubyOnRails
[13:27:07] _blizzy_: thanks for the help sevenseacat and elaptics.
[13:27:13] _blizzy_: now I can work on my ruby bot.
[13:27:15] kenpoint: has joined #RubyOnRails
[13:28:32] Lightsword: has joined #RubyOnRails
[13:28:38] afrianska: has joined #RubyOnRails
[13:29:01] devdazed: has joined #RubyOnRails
[13:31:19] dhjondoh: has joined #RubyOnRails
[13:31:34] dANO-: hi, Anyone know how I can not update the css / html / js when I merge two branch together? My setup is that I have two applications that have the same function but a html / css different and I do not want to update them. It's possible ?
[13:31:51] codeurge: has joined #RubyOnRails
[13:35:06] narcan: has joined #RubyOnRails
[13:35:14] Rubie: has joined #RubyOnRails
[13:35:25] l0oky: has joined #RubyOnRails
[13:36:58] imanzarrabian: has joined #RubyOnRails
[13:37:28] tedstriker: has joined #RubyOnRails
[13:37:37] dANO-: I created an rails app, but I have two design for the same app / So I created two branch, 1 : project_one , 2 : project_two and my master. And I would like when I merge my master branch with the branch project_two, my html/css/js was not merged. I dont know if it's well explained.
[13:37:51] arup_r: has joined #RubyOnRails
[13:37:52] tweeeaks: has joined #RubyOnRails
[13:38:11] zorak8: has joined #RubyOnRails
[13:38:14] tedstriker: has joined #RubyOnRails
[13:38:40] l0oky: dANO_: Are you sure you merged these branches?
[13:39:15] diegoviola: so I have a simple view in resources/views/create.php, do I need to make something special for laravel to interpret my {{ Form::open() }} and such?
[13:39:28] devdazed: has joined #RubyOnRails
[13:39:32] l0oky: PHP? shoo
[13:39:52] diegoviola: l0oky: blame my boss
[13:40:13] l0oky: sevenseacat: Hey whatsup?
[13:40:23] dANO-: l0oky: I dont start this project actually, but I would like for example I have logo 1 on my master branch but on my branch project_two : I have logo 2 , and when I merged my branch master with the branch project_two ( for update my features for example ). I dont want to replace the logo 2 by the logo 1
[13:40:25] diegoviola: Laravel is not too bad though, it's basically rails in php
[13:41:30] arup_r: has joined #RubyOnRails
[13:41:59] l0oky: dANO_: If you want to merge everything into branch master I would first merge project_1 with project_2 or vice versa ( depending on what you want to replace ) and then this merged branch with master
[13:42:31] l0oky: diegoviola: I've tried it.. I guess I am not PHP guy
[13:42:44] diegoviola: l0oky: I am not a php guy either
[13:42:56] intinig: has joined #RubyOnRails
[13:43:43] l0oky: Every programmer is blaming on the boss.. hmm What if I was one? :D
[13:44:02] djellemah: has joined #RubyOnRails
[13:44:02] l0oky: Then I have to blame on my assistant?
[13:45:00] blackmesa: has joined #RubyOnRails
[13:45:03] acti0nman: has joined #RubyOnRails
[13:46:01] maz-dev: has joined #RubyOnRails
[13:46:03] l0oky: dANO_: If you want specific stuff to merge from one branch to another you could use checkout feature
[13:47:35] afrianska: has joined #RubyOnRails
[13:49:55] coderhs: has joined #RubyOnRails
[13:51:07] skj3gg: has joined #RubyOnRails
[13:51:42] dANO-: I explained very badly that I want to do I'm sorry, I'll rephrase.
[13:51:43] mkc_: has joined #RubyOnRails
[13:52:40] dANO-: I created an application with the logo of a company and therefore specific colors, and I have to duplicate the same application to another company that has a different logo and colors. I like to know if there was a simple way to implement that I apply changes to the two branches (adding features / modification of the database) without the html and css is updated. For each company keeps its own graphics.I hope
[13:52:40] dANO-: I was clear.
[13:52:51] xrlabs: has joined #RubyOnRails
[13:54:55] cpruitt: has joined #RubyOnRails
[13:55:25] michael_mbp: has joined #RubyOnRails
[13:57:06] TinkerTyper: has joined #RubyOnRails
[13:57:21] darrencauthon: has joined #RubyOnRails
[13:58:18] commondream: has joined #RubyOnRails
[13:59:26] yoongkang: has joined #RubyOnRails
[14:01:21] l0oky: dANO_: Are you using github or any kind of repo host?
[14:01:47] dANO-: l0oky: Yes, I use Bitbucket
[14:02:47] l0oky: dANO_: Look at the pull requests https://www.atlassian.com/git/tutorials/making-a-pull-request/
[14:02:48] iamjarvo: has joined #RubyOnRails
[14:03:16] l0oky: It allows you to merge specific files to another branch
[14:03:49] iamjarvo: has joined #RubyOnRails
[14:06:12] afrianska: has joined #RubyOnRails
[14:06:40] imanzarrabian: has joined #RubyOnRails
[14:06:41] gerep: Using unit test where should I place CarrierWave tests? Unit? Functional?
[14:06:59] gerep: Integration?
[14:07:07] rvanlieshout: are you testing carrierwave itself?
[14:07:14] gerep: rvanlieshout, an uploader
[14:07:26] rvanlieshout: in uploaders? :)
[14:07:47] gerep: rvanlieshout, so I'll create an /uploaders inside my /tests?
[14:08:02] rvanlieshout: i beleive that's possible
[14:08:05] l0oky: dANO_: That basically allows you to merge files selectively.. If you don't like using pull requests you can always use git commands as well http://stackoverflow.com/a/7292109
[14:08:08] hutch78: has joined #RubyOnRails
[14:08:11] gerep: rvanlieshout, thanks ;)
[14:08:17] rvanlieshout: but not 100% sure
[14:08:47] hutch78: hello all, does anyone else find themselves constantly wanting to do controller things inside models, and vise versa ?
[14:08:55] asheinfeld: has joined #RubyOnRails
[14:09:02] podman: has joined #RubyOnRails
[14:09:29] thsig: has joined #RubyOnRails
[14:09:31] l0oky: hutch78: Umm like validations?
[14:09:42] hutch78: for instance, i am running a validation on my order model right before the checkout process is completed in an e-commerce app, and if the validation fails, i want to redirect rather than adding errors to the model
[14:09:56] sevenseacat: hutch78: you do both
[14:10:10] sevenseacat: you add errors from the model, and then the controller redirects based on the presence of those errors
[14:10:10] hutch78: so the controller redirects if it receive errors ?
[14:10:35] gerep: rvanlieshout, I'm confused now, my class should extend which class?! :D
[14:10:38] l0oky: That's an easy way to put it
[14:10:44] gerep: ActiveSupport::TestCase?
[14:10:59] dANO-: l0oky: If on my specific branch , I configure my gitignore to not check the .css files, It will be a solution ?
[14:11:53] LarryLv: has joined #RubyOnRails
[14:11:57] l0oky: dANO_: Have you tried this solution http://stackoverflow.com/a/7292109 ?
[14:12:30] dANO-: I start to read this thread
[14:12:33] l0oky: let file1 be your file with the logo
[14:12:45] k4nd4lf: has joined #RubyOnRails
[14:12:58] l0oky: where branchX is the branch you want to merge from into the current branch
[14:13:21] LarryLv: has joined #RubyOnRails
[14:15:30] bratsche: has joined #RubyOnRails
[14:15:40] sonofdirt: has joined #RubyOnRails
[14:15:47] dopie: has joined #RubyOnRails
[14:16:12] ValicekB: has joined #RubyOnRails
[14:16:23] l0oky: dANO_: That or you can use pull requests and pull commits form one branch to another
[14:16:32] JakFrist: has joined #RubyOnRails
[14:18:50] bratsche_: has joined #RubyOnRails
[14:19:24] l0oky: How can I include stylesheets from my vendor/assets/ folder to application.css?
[14:20:09] l0oky: or *= require rather
[14:20:42] thsig: has joined #RubyOnRails
[14:23:40] axl__: has joined #RubyOnRails
[14:23:42] bhorn1: has joined #RubyOnRails
[14:24:32] DoubleMalt: has joined #RubyOnRails
[14:26:04] mikecmpbll: l0oky: with *= require, like you said :)
[14:26:07] chintanparikh: has joined #RubyOnRails
[14:28:30] ts310: has joined #RubyOnRails
[14:28:42] vasilakisFiL: has joined #RubyOnRails
[14:31:31] l0oky: mikecmpbll: *= require_tree ../../../vendor/assets/stylesheets/. worked :)
[14:31:54] mikecmpbll: l0oky: vendor/assets/stylesheets should be in your asset paths
[14:31:57] mary5030: has joined #RubyOnRails
[14:31:59] l0oky: a bit long and uncomfy but works
[14:32:21] mikecmpbll: sec let me just check i've got this right
[14:32:56] balr0g: has joined #RubyOnRails
[14:33:00] Pazician: has joined #RubyOnRails
[14:33:26] ruv: hey, is there away to specify which initializers get loaded with each env?
[14:33:45] Pazician: has joined #RubyOnRails
[14:34:20] mikecmpbll: l0oky: http://guides.rubyonrails.org/asset_pipeline.html#asset-organization
[14:35:10] JoshL: has joined #RubyOnRails
[14:35:12] l0oky: so i do just *= require file name
[14:35:26] l0oky: I like the require_tree more
[14:35:28] l0oky: less to write
[14:36:00] Synthead: has joined #RubyOnRails
[14:36:07] l0oky: does require_tree require from vendor
[14:36:18] l0oky: require_tree .
[14:36:30] Rubie: has joined #RubyOnRails
[14:36:50] mikecmpbll: nah, require_tree paths must be relative to the manifest
[14:37:17] mikecmpbll: so yours was correct, but not such a common way to do thigns.
[14:37:37] l0oky: yeah well newbies never do common things
[14:38:23] mikecmpbll: it's also a bit more confusing for a dev as they can't see so easily what vendor assets you're using.
[14:38:26] mikecmpbll: but meh, it's okay
[14:39:37] CheckYourSix: has joined #RubyOnRails
[14:40:16] Pupeno: has joined #RubyOnRails
[14:40:19] kahuna_: has joined #RubyOnRails
[14:40:37] mikecmpb_: has joined #RubyOnRails
[14:43:06] mary5030: has joined #RubyOnRails
[14:43:21] Scripore: has joined #RubyOnRails
[14:43:27] pacman: has joined #RubyOnRails
[14:45:30] ndrei: has joined #RubyOnRails
[14:46:09] IrishGringo: has joined #RubyOnRails
[14:47:16] cjlarose: has joined #RubyOnRails
[14:47:18] chelbs: has joined #RubyOnRails
[14:47:50] jenrzzz: has joined #RubyOnRails
[14:48:21] Scripore: has joined #RubyOnRails
[14:49:02] teufelChiCoder: has joined #RubyOnRails
[14:49:48] sandstrom: has joined #RubyOnRails
[14:49:59] skj3gg: has joined #RubyOnRails
[14:50:35] l0oky: How can I write this as erb? <a class="cancela" href="#logout">Logout <i class="fa fa-sign-out"></i></a>
[14:50:52] tubbo: has joined #RubyOnRails
[14:51:27] strcmp1: just like that.
[14:52:21] subtwo: has joined #RubyOnRails
[14:52:36] l0oky: link_to "Logout <i class="fa fa-sign-out"></i>" class:cancela href:"#logout" ???
[14:52:55] rickmasta: has joined #RubyOnRails
[14:53:23] Guest86666: l0oky: you never said you wanted it to be a link tag! :)
[14:53:24] strcmp1: you could use <%= link_to "Logout", "#logout" do; %> <i class="fa fa-sign-out"></i> <% end %> but why bother?
[14:53:35] l0oky: hafjadhs :D
[14:53:56] strcmp1: forget ';' beside do
[14:54:03] l0oky: strcmp1: Right! I don't want to bother
[14:54:05] tubbo: strcmp1: fyi you can't give a text argument and a block argument to a link_to pretty sure
[14:54:05] strcmp1: honestly i prefer the non link_to version
[14:54:31] l0oky: so I just replace href value with logout_path >:)
[14:54:50] rustymyers: has joined #RubyOnRails
[14:55:09] strcmp1: tubbo, yeah, you're right as far as i can tell.
[14:55:14] tubbo: like if you give the block the text won't render
[14:55:15] tubbo: so just <%= link_to '#logout' do %><i>whatever</i><% end %>
[14:55:50] l0oky: I like the html version more thank you
[14:56:20] marr: has joined #RubyOnRails
[14:56:21] strcmp1: ditto, it is probably faster too :p
[14:56:45] l0oky: As I design the site in html.. If I want to change something erb is not the right tool for the job
[14:57:45] tubbo: it's a bad idea to use regular <a> tags if you're going to be interpolating route pahts
[14:57:45] tubbo: like <a href="<%= whatever_path %>"></a> is not a good idea imho
[14:58:11] tubbo: l0oky: i don't understand your problem here
[14:58:31] l0oky: I just want to convert my designs into erb fast
[14:58:35] blackmes1: has joined #RubyOnRails
[14:59:01] l0oky: And If I need to change something in erb I want to do it fast
[14:59:58] Rubie: has joined #RubyOnRails
[15:03:25] afrianska: has joined #RubyOnRails
[15:03:51] disgrntld: has joined #RubyOnRails
[15:04:43] garrypolley: has joined #RubyOnRails
[15:06:15] sonofdirt: has joined #RubyOnRails
[15:07:05] bluish: has joined #RubyOnRails
[15:09:28] phat4life: has joined #RubyOnRails
[15:09:47] AzaToth: has joined #RubyOnRails
[15:10:10] jenrzzz: has joined #RubyOnRails
[15:10:30] amortimer: has joined #RubyOnRails
[15:10:37] gambl0re: has joined #RubyOnRails
[15:11:41] rubyonrails415: has joined #RubyOnRails
[15:11:56] baweaver: has joined #RubyOnRails
[15:12:13] Axilla: has joined #RubyOnRails
[15:14:30] tvw: has joined #RubyOnRails
[15:14:49] imanzarrabian: has joined #RubyOnRails
[15:15:33] tjbiddle: has joined #RubyOnRails
[15:18:00] garrypolley: has joined #RubyOnRails
[15:20:40] hectortrope: has joined #RubyOnRails
[15:20:59] afrianska: has joined #RubyOnRails
[15:21:18] andrew-l`: has left #RubyOnRails: ()
[15:21:39] timonv_: has joined #RubyOnRails
[15:22:48] ahmadsoe: has joined #RubyOnRails
[15:23:24] dcunit3d: has joined #RubyOnRails
[15:23:34] n008f4g_: has joined #RubyOnRails
[15:23:39] amortimer: has joined #RubyOnRails
[15:24:04] devdazed_: has joined #RubyOnRails
[15:24:15] imanzarrabian: has joined #RubyOnRails
[15:28:15] chridal_: has left #RubyOnRails: ()
[15:28:44] chridal: has joined #RubyOnRails
[15:28:56] GnuYawk: has joined #RubyOnRails
[15:29:08] chridal: Anyone have any experience with the gem Ransack? Any alternatives?
[15:29:20] chridal: I just need a simple search for searching for users, hashtags and some titles
[15:30:29] DylanJ: chridal: never used ransack. usually roll my own simple search.
[15:31:12] kaa: has joined #RubyOnRails
[15:31:47] smathy: has joined #RubyOnRails
[15:31:54] Scripore: has joined #RubyOnRails
[15:31:55] chridal: DylanJ: Just using `LIKE` then?
[15:32:11] DylanJ: which usually ends up being Model.where(something like ?). then when thats slow move to solr or elasticsearch
[15:32:15] DylanJ: chridal: yeah
[15:32:34] DylanJ: Ransack looks interesting though.
[15:32:44] jcromartie: has joined #RubyOnRails
[15:33:48] chridal: Yea, I'll most likely do that or vanilla search as you proposed
[15:34:11] smathy: chridal, also postgres and mysql both have full text indexing features.
[15:34:29] Papierkorb_: has left #RubyOnRails: ()
[15:34:30] Pazician: has joined #RubyOnRails
[15:34:34] treehug88: has joined #RubyOnRails
[15:34:42] Papierkorb: has joined #RubyOnRails
[15:34:46] chridal: I didn't know that. Actually don't know too much about Postgres, which we are running on
[15:34:56] Pazician: has joined #RubyOnRails
[15:35:08] chridal: To which degree is the performance and use of that search satisfactory (impossible-to-answer-much?)?
[15:35:21] djbkd: has joined #RubyOnRails
[15:36:04] jamiely_: has joined #RubyOnRails
[15:36:24] djbkd: has joined #RubyOnRails
[15:36:47] garrypolley: has joined #RubyOnRails
[15:39:20] thsig: has joined #RubyOnRails
[15:40:40] diegoviola: has joined #RubyOnRails
[15:40:44] diegoviola: has joined #RubyOnRails
[15:40:58] yoongkang: has joined #RubyOnRails
[15:42:11] Sigma00: smathy: mysql has full-text too?
[15:42:15] Sigma00: news to me
[15:42:18] Sigma00: ACTION goes google furiously
[15:42:38] Sigma00: holy shit it's right there
[15:42:49] Sigma00: ACTION still sticks with postgres
[15:44:24] philcrissman: has joined #RubyOnRails
[15:45:15] smathy: chridal, it's very performant actually, main reason to go for something external is DB agnosticism (and maybe better search syntaxes) not performance.
[15:46:14] smathy: ...or if you want very complex things that the DB indexes don't do like "near" (although I'm not sure that they don't do that)
[15:46:52] timonv_: has joined #RubyOnRails
[15:47:55] slash_nick: has joined #RubyOnRails
[15:48:51] afrianska: has joined #RubyOnRails
[15:49:25] michael_mbp: has joined #RubyOnRails
[15:49:47] sinkensabe: has joined #RubyOnRails
[15:49:53] kaas_a: has joined #RubyOnRails
[15:50:06] baweaver: has joined #RubyOnRails
[15:50:16] skj3gg: has joined #RubyOnRails
[15:50:20] symbol: has joined #RubyOnRails
[15:52:27] [H]unt3r: has joined #RubyOnRails
[15:53:13] lurk620: has joined #RubyOnRails
[15:54:31] ndrei: has joined #RubyOnRails
[15:56:26] lurk620: has left #RubyOnRails: ()
[15:56:28] chridal: smathy: One thing I need though is geospatial support, which I didn't mention
[15:56:47] chridal: I was going to put that off until later, but it seems that I might as well get started on it now that I am doing search
[15:56:47] Sigma00: postgres has postfis
[15:56:49] Sigma00: er, postgis
[15:56:55] lurkmaster: has joined #RubyOnRails
[15:57:22] kaas_a: What is your thoughts on the prefered database type for Ror?
[15:57:23] chridal: How easy is it doing all of this with Postgres vs. using Solr / Elasticsearch?
[15:57:36] chridal: kaas_a: Depends on if you are deploying on Heroku or not ;-)
[15:57:54] lurkmaster: noob question guys: what's the difference between text_field and text_area
[15:57:56] kaas_a: Using my own server :)
[15:58:17] chridal: lurkmaster: a text field is one of those narrow input boxes, where as text areas are the big ones that you can resize.
[15:58:28] chridal: Multi line / single line basically
[15:58:47] lurkmaster: chridal: got it thanks :)
[15:59:04] chridal: kaas_a: MySQL/PgSQL is always a safe choice.
[15:59:15] chridal: Depends on what you are storing ofc.
[15:59:36] chridal: But I reckon since you are asking a question that generic that you might not care for much more than My/PgSQL can offer.
[16:00:06] chridal: Sigma00: Got experience with PostGIS?
[16:00:16] Sigma00: all I know is it works well
[16:00:29] larrylv_: has joined #RubyOnRails
[16:00:34] chridal: I wonder if it's easier to move search out of the monolith, though
[16:00:48] kaas_a: Basicly users with some data for each customer in my application
[16:01:22] chridal: kaas_a: Just roll MySQL. It's easy to set up and get started with. Docs are good, and I am sure it's got what you need.
[16:02:02] chridal: Just have in mind that if you are going to want to deploy to Heroku some time soon you're better off rolling PgSQL as that is what Heroku is running natively.
[16:02:03] kaas_a: Yeah, i think so :)
[16:02:30] devdazed: has joined #RubyOnRails
[16:02:52] eggoez: has joined #RubyOnRails
[16:03:11] kaas_a: Im thinking about Heroku for the live version. Where are their servers located?
[16:03:53] garrypolley: has joined #RubyOnRails
[16:04:32] chridal: kaas_a: Wherever AWS is located. So everywhere that matters.
[16:04:45] chridal: I don't know about how good their Asia coverage is though.
[16:04:49] kaas_a: Ah, they are using AWS. :)
[16:05:10] kaas_a: Im thining about Scandinavia
[16:05:16] kaas_a: thinking*
[16:05:22] chridal: Eu-West 1 is the closest one which is in Ireland
[16:05:40] kaas_a: Would prbobly work, thanks!
[16:06:59] baron: has joined #RubyOnRails
[16:07:41] thsig: has joined #RubyOnRails
[16:09:29] ivanskie: has joined #RubyOnRails
[16:09:57] beneggett: has joined #RubyOnRails
[16:11:15] bronson: has joined #RubyOnRails
[16:13:24] slash_nick: Hey guys... I'm looking at a Rails engine (https://github.com/mbulat/plutus) with an open PR for adding "mongoid support"... Wondering: Do any of you know of an engine that's implemented support for various persistence engines (AR, mongoid, datamapper, etc, etc)? Looking for some inspiration... or maybe one of you'd want to take a stab at it yourselves
[16:13:57] bartdorsey: has joined #RubyOnRails
[16:14:21] bartdorsey: has joined #RubyOnRails
[16:14:29] husanu1: has joined #RubyOnRails
[16:14:49] catcher: has joined #RubyOnRails
[16:15:16] sandstrom: has joined #RubyOnRails
[16:16:10] Senjai: has joined #RubyOnRails
[16:16:11] Senjai: Has anyone encountered a scenario where you get a "Completed" in your rails server, but the page never loads. Like rails has done its' work but the browser doesnt seem to want to render the page?
[16:16:32] IRCFreenode: has joined #RubyOnRails
[16:16:48] husanu: has joined #RubyOnRails
[16:17:22] ur5us: has joined #RubyOnRails
[16:18:19] lurkmaster: any recommendations for good rails books? i find the official documentation to be pretty dry
[16:18:51] cnk: has joined #RubyOnRails
[16:18:55] lurkmaster: although most librarys/languages tend to be that way
[16:19:21] Senjai: On a staging environment, it works fine.. hmm
[16:19:25] Senjai: even locally on a staging environment
[16:19:54] wmoxam: lurkmaster: I recommend 'Roar of the Rails'
[16:20:00] wmoxam: I've heard it's 'thrilling'
[16:20:03] wmoxam: http://www.tvacres.com/images/roar_rail1.jpg
[16:20:35] shinnya: has joined #RubyOnRails
[16:20:39] lurkmaster: wmoxam: </sarcasm>
[16:21:21] smathy: chridal, postgis is simple, I'd go with staying in the monolith.
[16:21:36] ChadyG_: has joined #RubyOnRails
[16:21:45] wmoxam: <-- totally serious ????
[16:22:00] chridal: smathy: Is it simpler than outsourcing it all to Elasticsearch via Elastic SaaS?
[16:22:11] smathy: lurkmaster, Agile Web Development with Rails is still my #1 recommendation for Rails.
[16:22:38] chelbs: has joined #RubyOnRails
[16:22:55] momomomomo: has joined #RubyOnRails
[16:23:36] smathy: chridal, honestly it'll be about the same from a dev perspective, a little more complex going for ES from an OPs perspective, but not inhibitive.
[16:23:57] lurkmaster: smathy: thanks :)
[16:24:04] chridal: smathy: Were doing NoOps atm..
[16:24:19] chridal: Maybe ES is out of the question then? Not really sure how the SaaS works in that regard?
[16:24:33] smathy: chridal, I've never done GIS in ES though.
[16:25:09] BBHoss: has joined #RubyOnRails
[16:25:13] smathy: chridal, I'd definitely want a good ops person for either option honestly.
[16:25:28] smathy: ...wouldn't have to be full time, but there'd have to be someone who handled it.
[16:25:29] chridal: I really want one, but we're struggling with hiring atm
[16:25:54] chridal: We'll probably wind up doing some remote consultant or something
[16:25:56] smathy: Setup and monitoring are important as soon as you move into these sorts of tools, if an index goes stale you need to know about it before your customers do :)
[16:26:01] muhammadn: has joined #RubyOnRails
[16:26:27] smathy: More so with ES than doing it in PG, but still, I'd recommend having someone who was handling that.
[16:26:30] muhammadn: Have anyone tried changing the column type from datetime to jsonb?
[16:27:16] chridal: smathy: Yes indeed. So your hunch is that we would need MoreOps (:-D) doing ES than PG?
[16:28:48] IrishGringo: has joined #RubyOnRails
[16:29:06] gerardc: has joined #RubyOnRails
[16:30:07] sonofdirt: has joined #RubyOnRails
[16:31:26] blackmes2: has joined #RubyOnRails
[16:31:51] pixelhandler: has joined #RubyOnRails
[16:31:53] troynt: has joined #RubyOnRails
[16:31:56] smathy: chridal, yeah, a very strong hunch.
[16:32:22] chridal: Thanks. Will mull it over for some time.
[16:32:42] towski_: has joined #RubyOnRails
[16:32:53] garrypolley: has joined #RubyOnRails
[16:33:01] smathy: With ES you're managing a new daemon, and all that JDK fun.
[16:33:12] chridal: smathy: Am I misunderstand ES/Solr, or do you actually have to duplicate your data in two stores the DB and the search index?
[16:33:27] chridal: smathy: I would just be running it on any SaaS really.
[16:33:37] chridal: which ever has a Heroku addon
[16:33:42] smathy: Right, so not sure what's available there. You'd have to look.
[16:33:56] chridal: Both ES and Solr all have multiple providers
[16:34:38] garrypolley_: has joined #RubyOnRails
[16:34:56] smathy: chridal, well the index has to be created/stored somewhere, whether that's in ES/Solr or in PG it's still a brand new data set that has to be created separate from your underlying data.
[16:35:08] SteenJobs: has joined #RubyOnRails
[16:36:26] husanu: has joined #RubyOnRails
[16:36:36] solars: hey, does anyone know if "property" is a reserved word in active record models, or can I use it as a field name - I'm getting NoMethodError: undefined method `[]' for nil:NilClass; activerecord-4.0.13/lib/active_record/attribute_methods/read.rb:84:in `read_attribute'
[16:36:44] solars: when accessing an attribute
[16:37:31] harisamin: has joined #RubyOnRails
[16:38:01] Senjai: solars: no, property is not a reserved word
[16:38:14] Senjai: solars: Open up pry, $ MyModel.first.property
[16:38:59] chridal: smathy: So that would mean having to hit 2 datastores every time we are storing info instead of the one we are already doing?
[16:39:20] chridal: smathy: Or is it more normal to 'replicate' every few hours?
[16:40:00] Synthead: I have a model class with methods like this in it: http://pastie.org/10253403 For some reason, line 12 hits the db a second time. why is this?
[16:40:27] SteenJobs: hey guys (smathy), i need help getting the JS for an area on my page to work after that area is reloaded using ajax - it???s obviously not working because it???s connected to $(document).ready, but i???m not sure how to go about fixing it.
[16:41:08] solars: Senjai, hm weird, I wonder how I can find out what causes this exception
[16:41:27] Senjai: solars: Step by step, read the backtrace
[16:44:56] smathy: chridal, yeah, the indexing can usually be configured to either be triggered by writes, or done periodically (time-based).
[16:45:00] smathy: ...or even triggered manually.
[16:45:06] rickmasta: has joined #RubyOnRails
[16:45:10] smathy: (ie. by code :)
[16:45:41] chridal: I guess I have lots of decision-making to be doing.
[16:45:52] chridal: Thank you for your help and insight.
[16:46:34] smathy: SteenJobs, are you using the jquery $ajax method?
[16:46:39] smathy: chridal, you're welcome.
[16:47:02] SteenJobs: smathy: nope. ill gist you my js file.
[16:47:03] sinkensabe: has joined #RubyOnRails
[16:47:09] smathy: chridal, thing is that it runs in the background, so it's not like your user is waiting for both writes to happen.
[16:47:18] smathy: SteenJobs, no, please don't.
[16:47:25] solars: Senjai, problem is there is no backtrace in pry somehow, only the two lines above
[16:47:27] smathy: SteenJobs, just use jquery ::)
[16:47:32] SteenJobs: never heard that here before haha
[16:47:38] SteenJobs: i???m using $.get
[16:48:08] Senjai: solars: wtf?!?!?!?!?!?!?!
[16:48:11] SteenJobs: smathy: i???m brand new to ajax. so not sure if that qualifies.
[16:48:15] Senjai: solars: Type that after the exception
[16:48:24] SteenJobs: smathy: you gonna be here in 15? gotta move my car before i get a ticket.
[16:48:55] momomomomo: has joined #RubyOnRails
[16:49:33] TheNet: has joined #RubyOnRails
[16:50:11] solars: Senjai, type what?
[16:50:29] sinkensabe: has joined #RubyOnRails
[16:50:31] rjno: has joined #RubyOnRails
[16:51:05] scottmatheina: has joined #RubyOnRails
[16:51:18] Senjai: solars: ....
[16:51:23] Senjai: solars: wtf?!?!?!?!
[16:51:30] Senjai: solars: I'm not joking, its a pry command
[16:51:44] solars: now thats funny
[16:52:14] solars: Senjai, thanks, that helps
[16:52:16] smathy: solars, yeah, and the more ????s you add, the more backtrace you get.
[16:53:11] Fire-Dragon-DoL: has joined #RubyOnRails
[16:55:03] quarters: has joined #RubyOnRails
[16:55:24] yoongkang: has joined #RubyOnRails
[16:56:11] quarters: hello. I was wondering if anyone knows of a ruby manager like rbenv for windows
[16:56:51] crevax_: has joined #RubyOnRails
[16:58:20] Excelsior2015: has joined #RubyOnRails
[17:00:24] troynt: has joined #RubyOnRails
[17:00:47] Hates_: has joined #RubyOnRails
[17:01:38] smathy: quarters, There were a couple, pik and uru - not sure if they're maintained anymore.
[17:01:52] jtdowney_: has joined #RubyOnRails
[17:02:21] smathy: quarters, I seriously recommend using vagrant/docker/something to just run a Linux VM for your rails environment though.
[17:04:21] arBmind: has joined #RubyOnRails
[17:04:46] troynt: How do I access serialized variables in active job in a around_perform filter? https://gist.github.com/troynt/308a32298fb121b1c6da ... I tried implementing deserialize, but I'm not sure where to put it.
[17:06:42] Lightsword: has joined #RubyOnRails
[17:11:15] beingjohnm: has left #RubyOnRails: ()
[17:11:53] arBmind: has joined #RubyOnRails
[17:12:05] subtwo: has joined #RubyOnRails
[17:13:07] chrisco: has joined #RubyOnRails
[17:13:44] baweaver: has joined #RubyOnRails
[17:15:03] s2013: has joined #RubyOnRails
[17:15:09] maz-dev: has joined #RubyOnRails
[17:16:42] gerardc: has joined #RubyOnRails
[17:17:08] tbuehlmann: troynt, isn't there a deserialize_argument method? https://github.com/rails/rails/blob/03476a6885f7f84d2cfe046c6ce441715b4c4db3/activejob/lib/active_job/arguments.rb#L73-L90
[17:19:12] tlarevo: has joined #RubyOnRails
[17:19:25] the_real_intinig: has joined #RubyOnRails
[17:20:38] charliesome: has joined #RubyOnRails
[17:20:56] IFrank00: has joined #RubyOnRails
[17:22:24] troynt: tbuehlmann, I tried deserialize method (which calls deserialize_argument), but I'm not sure where it should go. It didn't seem to be called.
[17:22:55] kallisti5: has joined #RubyOnRails
[17:23:14] kallisti5: question... I have helper code at lib/DataTools.rb that I use in my tasks
[17:23:15] netzfisch: has joined #RubyOnRails
[17:23:33] kallisti5: how could I call that helper code in lib/DataTools.rb from my controller?
[17:23:57] kallisti5: "include DataTools" in my controller doesn't seem to be enough
[17:24:11] smathy: kallisti5, you need to be sure the file is required.
[17:24:22] dcunit3d: has joined #RubyOnRails
[17:24:25] troynt: kallisti5, should probably call the file ... data_tools.rb ... If there is a class within that called DataTools ... you would access via DataTools.foo
[17:24:46] troynt: kallisti5, autoloader will pick it up automatically w/ the proper name
[17:25:26] kallisti5: well.. DataTools.rb contains a module named DataTools
[17:25:36] pipework: You should rename the file to data_tool.rb
[17:25:58] dnewkerk: has joined #RubyOnRails
[17:26:10] afrianska: has joined #RubyOnRails
[17:26:38] garrypolley: has joined #RubyOnRails
[17:26:39] troynt: kallisti5, I would create a file per class... within a folder called data_tools
[17:26:49] skj3gg: has joined #RubyOnRails
[17:26:50] kallisti5: troynt: will I still need require 'DataTools' at the top of my rakefile?
[17:27:01] kallisti5: or will autoloader now pick it up?
[17:27:04] smathy: kallisti5, or you need to add lib to your auto_load paths.
[17:27:06] smathy: kallisti5, http://guides.rubyonrails.org/autoloading_and_reloading_constants.html
[17:28:28] troynt: kallisti5, adding this to config/application.rb: config.autoload_paths += "#{Rails.root}/lib"
[17:28:35] troynt: will allow for reload
[17:28:40] troynt: autoloading*
[17:28:48] Excelsior2015_: has joined #RubyOnRails
[17:29:08] bronson: has joined #RubyOnRails
[17:29:39] SteenJobs: has joined #RubyOnRails
[17:29:49] SteenJobs: smathy: i???m back. and no ticket. i know you were worrying, so you can relax now.
[17:29:50] Papierkorb: Can anyone recommend JS libs to display graphs for statistics? I want it to display multiple graphs, markers would be great (=> a vertical line with a text on top of it - or something similar), should be responsive and thus support touch events
[17:30:05] smathy: SteenJobs, it was foremost in my mind.
[17:30:06] SteenJobs: Papierkorb: yes! lemme get the name, one sec
[17:30:10] skj3gg: has joined #RubyOnRails
[17:30:10] SteenJobs: smathy: so caring. i love it.
[17:30:16] Papierkorb: In practice I want to display impression stats with it
[17:30:33] smathy: The PR I'm reviewing, the PR I'm updating, and the phone conference I'm currently in were distant 2nd, 3rd and 4th ;)
[17:31:05] SteenJobs: Papierkorb: morrisjs-rails and ???flot-rails???
[17:31:15] Papierkorb: SteenJobs: thanks, I'll have a look!
[17:31:18] SteenJobs: well not sure about flot - but i meant raphael-rails
[17:34:06] baweaver: has joined #RubyOnRails
[17:34:30] Doddlin: has joined #RubyOnRails
[17:34:36] iamse7en: has joined #RubyOnRails
[17:35:05] SteenJobs: smathy: so if i use .ajax, even if it???s under $(document).ready, i should be fine?
[17:35:41] iamjarvo: has joined #RubyOnRails
[17:36:29] Doddlin: Hi all! I could use some guidance of what to google for when I want to do the following: I have a page with a form to create a city with a few fields, right next to it I have a list of all the cities. I want to create a button on each city in the list (the easy part) that should put the info of the city in the form so I can edit it and then re-save it. I???m guessing AJAX but what more?
[17:37:50] rhizome: Doddlin: jquery text()
[17:38:20] Doddlin: rhizome, and in the controller I need to learn respond_to?
[17:38:36] DLSteve: has joined #RubyOnRails
[17:39:00] rhizome: if so, then probably a rails tutorial as well
[17:39:42] Doddlin: rhizome, hehe probably, but that is what I need, right?
[17:40:10] Doddlin: respond_to will make it possible to get the server response into JS?
[17:40:16] rhizome: at a minimum
[17:41:04] ciree: you probably dont need js
[17:41:26] ciree: if you used scaffolding, this would have been created for you already, most of it
[17:41:32] rhizome: it can certainly be made degradable
[17:41:34] ciree: go read the rails tutorial
[17:42:00] nzst: has joined #RubyOnRails
[17:42:15] rhizome: but no, scaffolding does not create an autofill functionality on any page
[17:42:19] crdpink: has joined #RubyOnRails
[17:42:30] nzst: My rails app is validating email format before saving into the
[17:42:30] nzst: database, but I can't find what is handling the validation. Is there a
[17:42:30] nzst: way to inspect the object to find this out? The only current validation in the model file is present: true
[17:42:44] nzst: ^ sorry for the multiline
[17:43:12] s2013: has joined #RubyOnRails
[17:43:21] ciree: nzst: do you have input type="email" ?
[17:43:27] eonbluez: has joined #RubyOnRails
[17:43:29] diegoviola: has joined #RubyOnRails
[17:43:39] Doddlin: ciree, rhizome, thanks! :)
[17:43:48] nzst: ciree: No, rails isn't handling my forms
[17:44:09] nzst: ciree: Yes, I do, have that, but it's in an angular template
[17:44:32] eonbluez: has left #RubyOnRails: ()
[17:44:40] workmad3: nzst: a 'type="email"' in an <input> will trigger browser-based validation
[17:44:56] eonbluez: has joined #RubyOnRails
[17:45:00] eonbluez: howdy all. i'm running a rails app behind unicorn and nginx -- when the app creates a file the group ownership is set to 'root'. would this be coming from nginx or unicorn and is there some way to have an application write files as a certain user or will it always inherit it from the service?
[17:45:26] nzst: workmad3: This is database layer validation that I don't know where it's coming from. It won't allow a malformed email to be saved in the database, but I can't find what's setting the pattern for malformed
[17:45:54] workmad3: nzst: are you using 'devise' for your users table & authentication?
[17:46:08] nzst: workmad3: yes
[17:46:24] workmad3: nzst: that adds in email validation, the pattern is set in config/initializers/devise.rb
[17:46:25] kohgpat: has joined #RubyOnRails
[17:46:43] nzst: workmad3: Thank you :) I'll look into that
[17:48:12] lucianosousa: has joined #RubyOnRails
[17:48:27] workmad3: nzst: the default is pretty dirt-simple btw, it simply checks that the email is '<something>@<something>' with no @ in <something>
[17:49:50] meoblast001: has joined #RubyOnRails
[17:52:56] dcunit3d: has joined #RubyOnRails
[17:53:20] sdwrage: has joined #RubyOnRails
[17:54:05] nzst: workmad3: I see that, something else is adding validation against not having a top-level domain
[17:55:20] arup_r: has joined #RubyOnRails
[17:55:36] Scripore: has joined #RubyOnRails
[17:55:43] cnk: has joined #RubyOnRails
[17:56:12] SteenJobs: smathy: nevermind, i am using jquery ajax with $.get
[17:56:40] teufelChiCoder: has joined #RubyOnRails
[17:56:54] chouhoulis: has joined #RubyOnRails
[17:57:27] vickleton: has joined #RubyOnRails
[17:58:07] IRCFreenode: has joined #RubyOnRails
[17:58:55] michael_mbp: has joined #RubyOnRails
[17:59:19] diegoviola: has joined #RubyOnRails
[17:59:51] workmad3: nzst: hmm... or you're on an older devise that had a more 'involved' validation
[18:00:24] gniquil: has joined #RubyOnRails
[18:01:37] nzst: workmad3: My version of devise is current.
[18:02:04] JoshGlzBrk: has joined #RubyOnRails
[18:03:19] momomomomo: has joined #RubyOnRails
[18:04:08] hahuang65: has joined #RubyOnRails
[18:04:55] SteenJobs: workmad3: mah man. so glad you???re here, can???t figure out this ajax/jquery thing ha
[18:05:48] djbkd: has joined #RubyOnRails
[18:05:54] bluish: has joined #RubyOnRails
[18:06:52] philcris_: has joined #RubyOnRails
[18:07:09] rhizome: why would you $.get upon $(document).ready? popup email signup?
[18:07:54] nzst: workmad3: the problem is in the default regexp does more than just 'simply assert that one (and only one) @ exists https://github.com/plataformatec/devise/blob/e2041d02e881fec894c309637c57500bdb9520e5/lib/devise.rb#L109 . "asdf@gmail" isn't valid but "asdf@gmail.com" is
[18:08:35] chintanparikh: has joined #RubyOnRails
[18:09:05] SteenJobs: rhizome to the rescue!
[18:09:43] meoblast001: has joined #RubyOnRails
[18:10:02] jsrn_: has joined #RubyOnRails
[18:10:06] ts310: has joined #RubyOnRails
[18:10:21] SteenJobs: rhizome: honestly because i???m kind of new to jquery and very new to ajax, so assume that anything i???ve done is subject to change - the $.get is not within $(document).ready, but the pagination governs a set of images to drag and drop to a canvas on the page - the JS governing those images is within $(document).ready, so when a new page of images loads, the JS no longer works
[18:10:55] Regulati_: has joined #RubyOnRails
[18:11:12] baweaver: has joined #RubyOnRails
[18:11:24] kallisti5: so I'm using the nasty librrd gem
[18:11:32] rhizome: SteenJobs: use .on(), and #jquery
[18:11:35] kallisti5: trying to get stdout data from it
[18:11:39] the_real_intinig: has joined #RubyOnRails
[18:11:40] ak: has joined #RubyOnRails
[18:11:45] SteenJobs: rhizome: i do...
[18:11:51] kallisti5: i set the file to "-" and it gives stdout... to the rails server prompt
[18:12:13] kallisti5: the result in ruby is an array of [[],544,342] (the size of the image)
[18:12:14] SteenJobs: rhizome: https://gist.github.com/SteenJobs/9a91ec1d00f9514ad130#file-js-L7
[18:12:22] kallisti5: anyway to catch that stdout?
[18:12:44] kallisti5: I know it'll be a hack for a poorly written gem... but I need something working :-)
[18:13:53] momomomomo_: has joined #RubyOnRails
[18:14:06] kies: has joined #RubyOnRails
[18:14:28] chridal: I am using a custom call to ActiveModelSerializer by instantiating it because I have a custom way of doing json responses on this API.
[18:14:32] chridal: Have a look here: https://gist.github.com/christiandalsvaag/c6fc33727a2aa7883694
[18:15:22] chridal: The issue is that I am not able to access `scope` even though I set `serialization_scope :current_user` in the controller.
[18:15:32] cornerma1: has joined #RubyOnRails
[18:15:39] chridal: This however works just fine if I do `render tag, serializer: TagSerializer`
[18:16:03] chridal: Is there any way I can use this in a custom manner like I am now `data: TagSerializer.new(tag)` but still have access to `scope` within the serializer?
[18:18:24] ak: has left #RubyOnRails: ()
[18:18:33] RegulationD: has joined #RubyOnRails
[18:19:19] warmonk: has joined #RubyOnRails
[18:19:35] seuros: has joined #RubyOnRails
[18:19:51] warmonk: has left #RubyOnRails: ()
[18:24:17] IRCFreenode: has joined #RubyOnRails
[18:25:29] ak: has joined #RubyOnRails
[18:25:47] ak: has left #RubyOnRails: ()
[18:25:53] n008f4g_: has joined #RubyOnRails
[18:26:27] DEA7TH: has joined #RubyOnRails
[18:26:31] warmonk: has joined #RubyOnRails
[18:27:35] warmonk: has left #RubyOnRails: ()
[18:27:37] warmonk: has joined #RubyOnRails
[18:28:06] warmonk: has left #RubyOnRails: ()
[18:28:14] warmonk: has joined #RubyOnRails
[18:29:20] warmonk: has left #RubyOnRails: ()
[18:30:04] smathy: SteenJobs, if you need something to be re-run after the ajax returns, then you need to call that in your success callback.
[18:30:40] smathy: SteenJobs, there are also global ajax events you can tie into: https://api.jquery.com/Ajax_Events/
[18:31:07] warmonk: has joined #RubyOnRails
[18:31:20] vasilakisFiL: has joined #RubyOnRails
[18:31:22] Pazician: has joined #RubyOnRails
[18:31:27] warmonk: has left #RubyOnRails: ()
[18:32:34] ivanskie: has joined #RubyOnRails
[18:32:37] warmonk: has joined #RubyOnRails
[18:33:12] djbkd: has joined #RubyOnRails
[18:33:37] workmad3: has joined #RubyOnRails
[18:34:31] SteenJobs: smathy: got it to work - i took my entire js file that was inside $(document).ready and put it into a function at the beginning of the file - then i passed that function to both the ajax call and $(document).ready separately
[18:34:45] harisamin: has joined #RubyOnRails
[18:35:02] baweaver: has joined #RubyOnRails
[18:35:19] smathy: SteenJobs, yep, that's the way to do it.
[18:35:26] SteenJobs: smathy: sick :)
[18:35:55] SteenJobs: smathy: is it ok that i???m reloading some stuff with the ajax call that was still functional? just much cleaner to reload the whole js file on success rather than bits and pieces
[18:36:17] chridal: Figured it out, you just pass a hash to the constructor.
[18:36:31] warmonk: has left #RubyOnRails: ()
[18:37:38] SteenJobs: smathy: also have a weird jquery bug - everything works in my view, except if i drag a draggable over to the droppable (it???s a clone btw), and then don???t release but drag the clone back to the original location of the draggable, the origiinal image disappears.
[18:37:56] dstarh: has joined #RubyOnRails
[18:38:28] CheckYourSix: Just curious, has anyone ever worked with the Quickbooks online API?
[18:38:46] SteenJobs: and one last thing - is it normal for the url to not update the page number if i???m changing pages with ajax?
[18:39:14] scottmatheina: has joined #RubyOnRails
[18:40:23] warmonk: has joined #RubyOnRails
[18:40:36] smathy: SteenJobs, you probably need an "on drop" on the source element as well as the target. Probably the removal happens as soon as it's dragged out of the boundary.
[18:40:57] Rubie: has joined #RubyOnRails
[18:41:33] SteenJobs: smathy: bingo. not sure how you knew that. that???s creepy dude.
[18:41:50] RegulationD: has joined #RubyOnRails
[18:42:25] bin_005: has joined #RubyOnRails
[18:42:33] SteenJobs: smathy: what kind of on drop would i need for the source element?
[18:42:36] Scripore: has joined #RubyOnRails
[18:42:44] SteenJobs: and more importantly, why?
[18:43:54] yoongkang: has joined #RubyOnRails
[18:44:12] warmonk: has left #RubyOnRails: ()
[18:44:21] smathy: SteenJobs, same as the one you have for the target, to re-insert the element into the source list.
[18:44:45] solars: has joined #RubyOnRails
[18:45:09] momomomomo_: has joined #RubyOnRails
[18:45:23] SteenJobs: smathy: but the clone is created as soon as i drag, even befoe it???s dropped
[18:45:31] smathy: SteenJobs, reason you'd need it is if my guess is correct then the element is removed from the source as soon as it's dragged out of the boundary and so to get it back in you need one of two things, either (what you seem to be expecting) some code that says "it was dropped but not dropped into the target, therefore add it back into the source" or just some code on the source element that allows you to drop it back into it.
[18:45:45] Lightsword: has joined #RubyOnRails
[18:45:46] warmonk: has joined #RubyOnRails
[18:45:56] smathy: SteenJobs, "clone" means that it's a copy?
[18:45:59] vasilakisFiL: has joined #RubyOnRails
[18:46:06] SteenJobs: smathy: right but the original image remains as soon as i begin dragging, and it creates a copy to be dragged
[18:46:12] smathy: SteenJobs, so the dragged element isn't being removed from the source element - oh right.
[18:46:31] SteenJobs: smathy: but if i never drop that copy yet drag it over the droppable element, the original source element disappears
[18:46:38] smathy: SteenJobs, so dropping it in the target leaves it in the source, but dropping it in the source removes both?
[18:46:53] SteenJobs: correct - but only if i???ve passed over the droppable element
[18:47:08] SteenJobs: yea sounds shady
[18:47:16] vasilakisFiL: has joined #RubyOnRails
[18:47:17] smathy: SteenJobs, oh right, yeah - definitely a bug then. You'll have to debug.
[18:47:26] smathy: ...or find a different drag/drop.
[18:47:42] warmonk: has joined #RubyOnRails
[18:47:46] SteenJobs: no way. i pulled an all nighter to learn jquery and implement this beauty. ain???t no chance i???m giving it up.
[18:47:55] skj3gg: has joined #RubyOnRails
[18:48:29] warmonk: has left #RubyOnRails: ()
[18:49:08] vasilakisfil_: has joined #RubyOnRails
[18:49:20] nobitanobi: has joined #RubyOnRails
[18:49:29] Noizept: has joined #RubyOnRails
[18:49:42] warmonk: has joined #RubyOnRails
[18:50:42] vasilakisfil__: has joined #RubyOnRails
[18:50:46] warmonk: has left #RubyOnRails: ()
[18:52:35] philcrissman: has joined #RubyOnRails
[18:53:29] philcrissman: has joined #RubyOnRails
[18:54:09] meoblast001: has joined #RubyOnRails
[18:55:48] warmonk: has joined #RubyOnRails
[18:57:37] IFrank00: has joined #RubyOnRails
[18:57:46] commondream: has joined #RubyOnRails
[18:58:48] djbkd_: has joined #RubyOnRails
[18:59:40] warmonk: I am making a attendance web app. I want to insert student attendance of entire class into attendances table and unable to do it as the form just inserts only last entry of the form
[19:00:16] codeurge: has joined #RubyOnRails
[19:01:42] garrypolley: has joined #RubyOnRails
[19:03:23] asmodlol: has joined #RubyOnRails
[19:03:47] workmad3: has joined #RubyOnRails
[19:03:51] cnk: has joined #RubyOnRails
[19:04:26] rustymyers: has joined #RubyOnRails
[19:04:30] garrypolley: has joined #RubyOnRails
[19:04:43] sonofdirt: has joined #RubyOnRails
[19:04:57] framling: has joined #RubyOnRails
[19:07:17] dopie: Hey guys currently I have a file called flags.png which is used in a gem called intl-tel-input-rails I'm having problems in production the flags.png file in vendor/assets/images/ isn't being compiled... how would I compile it?
[19:08:37] dcunit3d: has joined #RubyOnRails
[19:08:53] fragamus: has joined #RubyOnRails
[19:09:35] IRCFreenode: has joined #RubyOnRails
[19:09:52] blackmes2: has joined #RubyOnRails
[19:09:53] slash_nick: dopie: shovel the path to the file into config.assets.precompile... http://guides.rubyonrails.org/configuring.html#configuring-assets
[19:10:43] annlewis: has joined #RubyOnRails
[19:10:51] codeurge: has joined #RubyOnRails
[19:12:20] dopie: config.assets.paths << Rails.root.join("vendor", "assets", "images")
[19:12:41] bdnelson: has joined #RubyOnRails
[19:13:34] asmodlol: has joined #RubyOnRails
[19:13:52] bronson: has joined #RubyOnRails
[19:14:48] jobewan: has joined #RubyOnRails
[19:15:04] SteenJobs: smathy: mystery of the disappearing image solved
[19:15:07] doodlehaus: has joined #RubyOnRails
[19:15:12] Rubie: has joined #RubyOnRails
[19:15:48] creakybones: has joined #RubyOnRails
[19:16:17] IRCFreenode: has joined #RubyOnRails
[19:16:18] slash_nick: dopie: something like that... you may actually need the path to the file, however... "vendor/assets/images/flags.png"
[19:18:16] smathy: SteenJobs, cool.
[19:18:29] SteenJobs: smathy: nothing like console.log to come to the rescue
[19:19:26] doodlehaus: has joined #RubyOnRails
[19:22:24] husanu: has joined #RubyOnRails
[19:22:55] sonofdirt: has joined #RubyOnRails
[19:22:58] cnk: Radar: does Rails 4 In Action cover engines? The rails 3 version had a chapter on engines but I don't see that in the TOC for the Rails 4 version.
[19:23:06] asmodlol: has joined #RubyOnRails
[19:23:48] choke: has joined #RubyOnRails
[19:24:32] mary5030: has joined #RubyOnRails
[19:24:56] sandstrom: has joined #RubyOnRails
[19:28:35] otherj: has joined #RubyOnRails
[19:29:07] otherj: can someone correct my syntax here? it validates (and therefore fails) even when the no_phone checkbox is checked: validates :phone, numericality: { only_integer: true }, length: { maximum: 10 }, presence: { if: -> { no_phone == 0 } }
[19:29:48] mary5030_: has joined #RubyOnRails
[19:30:53] masscrx: I'm deploying auth in RoR, and my question is, what is a proper way for deploying auth with default admin account ? By signup ?
[19:31:22] masscrx: or create user in db with encoded password
[19:31:47] tejasmanohar: has joined #RubyOnRails
[19:31:49] tejasmanohar: https://github.com/scrothers/respect-our-privacy/commit/328d026dff033edcdf20bb2388279c3916ffefb8
[19:31:54] tejasmanohar: err: https://gist.github.com/tejasmanohar/af23e1e73d2587566396
[19:32:20] doge__: masscrx, From what I have understood if you want default data use the seed file
[19:32:24] cnk: otherj: At a guess no_phone is not in your model so you may need to check params[:no_phone]
[19:32:26] tejasmanohar: can i not pass a param thru redirects like so? https://github.com/scrothers/respect-our-privacy/commit/328d026dff033edcdf20bb2388279c3916ffefb8#diff-44e75b557377714611a5b9a1c1645cacR59
[19:32:33] tejasmanohar: or check for <% if var %> in erb
[19:32:41] cnk: and I would check true or false, not == 0
[19:33:13] masscrx: doge__: I mean that when I have prepared User model, I need first account (admin( for managing others, so what is the proper way of creating that account ?
[19:33:38] tejasmanohar: redirect_to root_path, email: mailto, <% if email %>, ActionView::Template::Error (undefined local variable or method `email' for #<#<Class:0x007fb383efa248>:0x007fb383ef8fd8>)
[19:33:48] otherj: cnk, really? I mean, it's not a virtual field
[19:33:53] mikecmpbll: has joined #RubyOnRails
[19:34:09] netzfisch: has joined #RubyOnRails
[19:34:09] cnk: it isn't? OK my bad
[19:34:18] cnk: without enough context, we are all guessing
[19:34:28] doge__: masscrx, if it should be created automatically on deployment then seed otherwise I'd say doing sign up manually and toggling the admin bit in database
[19:34:33] masscrx: Signup action will be for normal users, but first account should be 'admin' and I'm not sure if should I create that account by signup or other way
[19:35:07] otherj: fair enough
[19:35:12] doge__: Problem with default users is that people are lazy to change passwords
[19:35:14] otherj: is that the right syntax for the conditional though?
[19:35:29] tejasmanohar: is this not the correct way?
[19:35:38] moloch: has left #RubyOnRails: ()
[19:35:48] workmad3: has joined #RubyOnRails
[19:35:49] masscrx: doge__: this first 'default' user account will be managed by me ;]
[19:36:09] zly: has joined #RubyOnRails
[19:36:18] doge__: rails console is a great way too
[19:36:36] tejasmanohar: maybe erb doesnt like <% is var %>
[19:37:17] smathy: tejasmanohar, it's all here: http://devdocs.io/rails/actioncontroller/redirecting#method-i-redirect_to
[19:37:37] lucianosousa: tejasmanohar: avoid check this in views. use before filter to do that
[19:38:22] intuxicated: has joined #RubyOnRails
[19:38:24] lucianosousa: http://apidock.com/rails/ActionController/Filters/ClassMethods/before_filter
[19:38:42] philcrissman: has joined #RubyOnRails
[19:38:47] smathy: lucianosousa, how would you use a before filter to conditionally output content in a view based on whether a var is defined or not?
[19:41:07] srinidhi: has joined #RubyOnRails
[19:42:11] baweaver: has joined #RubyOnRails
[19:42:39] intuxicated: has joined #RubyOnRails
[19:44:04] bronson: has joined #RubyOnRails
[19:44:21] SteenJobs: i???m using a gem called redactor as an editor on my user page - for some reason when i navigate to my user page from another page, the editor creates an additional toolbar and doesn???t destroy the previous one - however, when i reload the page it behaves normally. any thoughts as to why this would be?
[19:45:53] crdpink2: has joined #RubyOnRails
[19:47:26] philcrissman: has joined #RubyOnRails
[19:48:55] asmodlol: has joined #RubyOnRails
[19:49:40] doodlehaus: has joined #RubyOnRails
[19:53:09] sinkensabe: has joined #RubyOnRails
[19:54:48] srinidhi: has joined #RubyOnRails
[19:55:20] artto: has joined #RubyOnRails
[19:59:14] User458764: has joined #RubyOnRails
[20:00:04] ts310: has joined #RubyOnRails
[20:00:20] charliesome: has joined #RubyOnRails
[20:00:35] fwaokda: has joined #RubyOnRails
[20:00:54] smathy: SteenJobs, you're doing too much in your `page:load`
[20:01:02] smathy: (turbolinks)
[20:01:10] SteenJobs: when? where? how do you know?
[20:01:53] SteenJobs: this is my last bug - then i can finally move on to new features
[20:02:00] SteenJobs: (that i know of)
[20:02:57] fwaokda: I am trying to create a relationship where I have a Skill and a Grade. I want my form to be able to select a Grade for the Skill, but I currently have this set up through a Evaluation model. Now I know my associations are not close to being correct but could someone help me with how they should be set up? https://gist.github.com/anonymous/c94aaeb4c1e285b55fd3
[20:03:51] momomomomo: has joined #RubyOnRails
[20:03:51] garrypolley: has joined #RubyOnRails
[20:04:54] bluish: has left #RubyOnRails: ("Good Bye")
[20:08:08] smathy: fwaokda, !gist-usage
[20:08:08] helpa: fwaokda: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.markdown
[20:09:00] fwaokda: smathy, thanks
[20:10:54] __butch__: has joined #RubyOnRails
[20:12:08] alaing: has joined #RubyOnRails
[20:12:17] tvw: has joined #RubyOnRails
[20:12:37] solars: has joined #RubyOnRails
[20:13:01] fwaokda: smathy, my apologies : https://gist.github.com/daveomcd/97d2e2bc013f3175c564
[20:14:35] philcrissman: has joined #RubyOnRails
[20:15:30] jacor: has joined #RubyOnRails
[20:17:20] x-light: has joined #RubyOnRails
[20:17:22] maz-dev: has joined #RubyOnRails
[20:18:33] smathy: fwaokda, so an evaluation is the grade for a given skill, and a set of evaluations forms a report?
[20:22:29] tubbo: has joined #RubyOnRails
[20:22:56] fwaokda: smathy, yes
[20:23:01] Lightsword: has joined #RubyOnRails
[20:23:12] fwaokda: report has other fields but those are attributes of the report.
[20:24:14] djbkd: has joined #RubyOnRails
[20:24:27] smathy: fwaokda, something very obviously missing are any `accepts_nested_attributes_for` declarations in your models.
[20:25:02] fwaokda: ahh this is true x-/
[20:25:04] smathy: fwaokda, http://devdocs.io/rails/activerecord/nestedattributes/classmethods
[20:25:28] CheckYourSix: If I receive JSON back as an OBJECT, how do I deal with it? I want it to be a regular array where I can strip stuff out. All I've found is JSON.parse(data.to_s).
[20:26:07] Papierkorb: has joined #RubyOnRails
[20:26:39] cac: has joined #RubyOnRails
[20:27:42] scottmatheina: has joined #RubyOnRails
[20:28:02] beneggett: has joined #RubyOnRails
[20:28:05] iamse7en: has joined #RubyOnRails
[20:28:30] smathy: CheckYourSix, !code
[20:28:30] helpa: CheckYourSix: 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.
[20:28:32] chelbs: has joined #RubyOnRails
[20:29:00] tubbo: CheckYourSix: assuming when you say "array" you actually mean "hash", since arrays are keyed by number (position) and not by string, like they are in PHP.
[20:30:46] CheckYourSix: tubbo: I guess that's because I came from PHP
[20:31:21] tubbo: CheckYourSix: but yeah, can you gist a larger example of your code? we're not sure what problem you're trying to solve
[20:31:34] tubbo: and other data setup things...like how did you get json as an object, for example?
[20:31:35] CheckYourSix: It's all of 3 lines, but ok
[20:32:25] CheckYourSix: https://gist.github.com/CheckYourSix/7b7ed2c4dda49be84f32
[20:32:53] ruv: Hey, using nested attrs with rest-client and I am passing an array but it seems rest-client is unpacking it cause the post to fail.
[20:33:02] ruv: anyone see something like that before?
[20:33:20] tubbo: CheckYourSix: if you do to_s on that object, it just calls to_s on the object, which by default just shows you the object's unique ID in memory and the name of the class
[20:33:21] momomomomo: has joined #RubyOnRails
[20:33:28] CheckYourSix: In a nutshell, it will return the last 15 charges. Within there, it will also have failed ones. I want to remove the failed ones from the hash entirely.
[20:33:33] tubbo: CheckYourSix: what you need here is to first convert that object into an array, with to_a, and then convert it to json, with to_json
[20:33:43] tubbo: CheckYourSix: so you really want stripecharges.to_a.to_json, that will give you back a JSON string.
[20:33:58] tubbo: CheckYourSix: but your next line assumes you probably don't want to use JSON.parse here
[20:34:11] tubbo: because you use it as an array on that next line
[20:34:22] Lightsword: has joined #RubyOnRails
[20:34:48] annlewis_: has joined #RubyOnRails
[20:34:52] CheckYourSix: tubbo: I was just using Google and experimenting on how to manipulate the data. I guess I didn't do too well lol.
[20:35:14] [H]unt3r: has joined #RubyOnRails
[20:35:38] tubbo: the standard library is very big and very powerful...only natural for a newbie to get confused. i know i did.
[20:35:45] ur5us: has joined #RubyOnRails
[20:36:07] CheckYourSix: I'm used to how PHP works with arrays and all that. It's so simple. Rails is tough to learn
[20:36:16] Guest61: has joined #RubyOnRails
[20:36:23] baweaver: has joined #RubyOnRails
[20:36:53] tubbo: CheckYourSix: i'm not sure if Stripe::Charge lets you do this, but i'm not even sure you need the other two lines
[20:37:01] CheckYourSix: I updated the Gist. Is that what I need now?
[20:37:26] ekain: has joined #RubyOnRails
[20:38:02] tubbo: CheckYourSix: that seems a lot better...at least it will be functional now.
[20:38:14] tubbo: CheckYourSix: but i'm still unsure as to why you need the delete_if line. could this work? https://gist.github.com/tubbo/0bb1da6c7472a0f6c2a1
[20:38:53] workmad3: has joined #RubyOnRails
[20:39:05] CheckYourSix: tubbo: Lol. I have a long way to go.
[20:39:09] CheckYourSix: Hmm. I'll try it
[20:39:59] CheckYourSix: Undefined method where
[20:40:17] CheckYourSix: And I tried passing the status through the API in my code, but it's not allowed
[20:40:18] annlewis: has joined #RubyOnRails
[20:40:22] SteenJobs: has joined #RubyOnRails
[20:40:48] tubbo: CheckYourSix: ahh sorry, give it a shot with all() instead of where()
[20:41:44] CheckYourSix: Received unknown parameter status
[20:42:05] CheckYourSix: https://stripe.com/docs/api#list_charges - Unfortunately they don't let you pass that
[20:42:54] tejasmanohar: has joined #RubyOnRails
[20:43:09] skkeeper: has joined #RubyOnRails
[20:43:12] renegadeandy: has joined #RubyOnRails
[20:43:16] tejasmanohar: name: { first: String, last: String } vs firstName: String, lastName: String
[20:43:42] renegadeandy: hey folks. I am trying to call an active record object's update method but am getting an exception : https://gist.github.com/anonymous/630b562878c306bb3a19 can somebody take a look and help?
[20:44:52] tubbo: tejasmanohar: wat
[20:45:37] tejasmanohar: tubbo: is it better to model data as name: { first: "...", last: "..."} or firstName: "..." + lastName: "..." separately
[20:45:39] tejasmanohar: using mongodb
[20:45:44] tejasmanohar: in a rails app
[20:45:46] CheckYourSix: tubbo: Oh, I'm sorry. I have stripecharges.delete_if {|hash| hash['status'] == 'paid'}. The reason for that is because I have no failed transactions in the last 15, so I wanted to test it by removing all of the valid ones. I hope I didn't confuse you.
[20:45:49] tubbo: renegadeandy: 1.) what version of rails? 2.) good god that formatting is terrible.
[20:45:50] tejasmanohar: this is JSON in mongo
[20:46:08] papercod1: has left #RubyOnRails: ()
[20:46:41] tubbo: tejasmanohar: not sure if it matters...how would you access name.first and name.last in your model class though?
[20:46:58] CheckYourSix: tubbo: It all works the way it should now. Thanks for the help. Was there any particular reference that helped you go from PHP to rails?
[20:47:12] sinkensabe: has joined #RubyOnRails
[20:47:44] tejasmanohar: tubbo: just as a . property
[20:48:09] renegadeandy: tubbo: haha i know - sorry - rails 4.1.5
[20:48:24] renegadeandy: tubbo: sorry 4.1.10
[20:48:37] tubbo: tejasmanohar: still not sure i understand. let's say you're using Mongoid. you have a Mongoid::Document called Person. Person has those embedded name fields.
[20:48:59] tubbo: tejasmanohar: you are saying you can just do Person.new(name: { first: 'test', last: 'test' }) and you'll be able to do person.name.first == 'test'?
[20:50:04] tubbo: renegadeandy: strange. did you try using update_attributes?
[20:50:31] renegadeandy: let me try it
[20:51:05] Pupeno_: has joined #RubyOnRails
[20:51:41] tweeeaks: im trying to convert this line https://github.com/spree/spree/blob/2-4-stable/frontend/app/views/spree/checkout/_payment.html.erb#L52 into haml and getting this error: syntax error, unexpected modifier_if, expecting ')' --- this is my haml %li{:class => 'last' if method == @order.available_payment_methods.last, "data-hook" => "", :id => "payment_method_#{method.id}"}
[20:54:06] tubbo: you can't put an if statement in the middle of a haml tag like that
[20:54:14] tubbo: tweeeaks: you need to make that a helper method or something
[20:54:30] tubbo: so you can do %li{ class: tag_class_for(@order) ...
[20:55:16] tejasmanohar: tubbo: no im talking purely of the data modeling in mongo
[20:55:30] tejasmanohar: which would be the preferred way
[20:55:43] renegadeandy: update_attributes is an undefined method tubbo !
[20:55:51] joelbrewer: has joined #RubyOnRails
[20:56:01] tubbo: renegadeandy: lol that doesn't seem right :)
[20:56:23] asmodlol: has joined #RubyOnRails
[20:56:28] tubbo: renegadeandy: maybe...ticket isn't an active record object? but rather an AR::Relation
[20:56:34] User458764: has joined #RubyOnRails
[20:56:45] tubbo: renegadeandy: if you want a single object, you can't use where(), you need to use find_by()
[20:56:54] renegadeandy: tubbo: score!
[20:57:27] joelbrewer: hey folks, I'm working on a contract and added a clause that said I wouldn't be responsible for development costs associated with "dramatic scaling" of their application.. However, the client wants me to define "dramatic scaling"
[20:57:53] joelbrewer: Any suggestions on how I might quantify that?
[20:58:02] rhizome: why wouldn't you want to be responsible for that? charge double.
[20:58:25] tubbo: joelbrewer: why would you put something in the contract that you don't understand? did someone tell you to add that to the contract?
[20:58:41] rhizome: "i want you to pay me, but not too much, or for too long"
[20:59:35] joelbrewer: Well, it's a fixed-bid contract and I'm adding a maintenance clause, that says I'll keep their site running according to the project specifications for 6 months.
[21:00:03] joelbrewer: However, if their site blows up, and requires massive scaling, obviously I'll need additional compensation
[21:00:09] rhizome: so you should look at the project specifications then
[21:00:38] SteenJobs: has joined #RubyOnRails
[21:00:41] Papierkorb: I have a big JS library, which I only want to load on specific pages. What's the rail-iest way to do this?
[21:00:57] harisamin: has joined #RubyOnRails
[21:00:58] rhizome: Papierkorb: asset manifests
[21:01:07] joelbrewer: rhizome: yes. Well, I helped write the project specs. Their essentially a list of user stories.
[21:01:31] joelbrewer: god, can't believe I used the wrong form
[21:02:17] rhizome: eh, i would just say that the application will run according to the spec, but irrespective of "load"
[21:03:21] joelbrewer: rhizome: so just commit to maintaining it regardless of load?
[21:03:26] yfeldblum: has joined #RubyOnRails
[21:04:01] tubbo: Papierkorb: put it in the asset pipeline. it will be a part of application.js, but those files get cached (304 Not Modified) every subsequent request, so you don't have to worry about it.
[21:04:21] Papierkorb: rhizome: Would it be a good idea to create a dir like 'all_pages/' inside app/assets/javascripts, modify the manifest to recurse into that dir instead of ".", and then have a directory e.g. for each controller to have special assets in there?
[21:04:35] rhizome: i'm not sure what you mean by "regardless," but just that the app will have the features described and the code will work
[21:05:00] Papierkorb: tubbo: Not so great if the first visit of the user on a mobile phone is abysmal slow cause of a huge lib or three which isn't even used
[21:05:00] rhizome: scaling is a separate issue, frankly
[21:05:29] rhizome: Papierkorb: i gave you specific terms that you can google
[21:05:50] tubbo: Papierkorb: yeah, it really depends on how often the lib is used. if you have it on a single page, and it's never used anywhere else...might be better to add a separate manifest for the lib.
[21:05:50] rhizome: rather than guessing what i'm talking about
[21:06:36] Papierkorb: http://guides.rubyonrails.org/asset_pipeline.html#manifest-files-and-directives doesn't tell me something special for my case
[21:07:11] Hates_: Papierkorb: I just include the specific javascript I want on the page itself it it's only used in that instance
[21:07:22] rhizome: Papierkorb: how far did you read?
[21:07:29] joelbrewer: rhizome: hmm. alright. so if his app crashes in 3 months because he has tons of traffic it shouldn't fall under "maintenance"
[21:07:41] rhizome: what does "app crashes" mean?
[21:07:44] Papierkorb: till '3 in development'
[21:07:54] Hates_: Papierkorb: I always remove the require_tree
[21:08:08] joelbrewer: lets say he's getting timout errors, or something like that.
[21:08:13] Papierkorb: May have overlooked something, but I can't see what you're refering to exactly
[21:08:15] rhizome: Papierkorb: so, including the few paragraphs before 2.5?
[21:08:59] joelbrewer: rhizome: maybe I'm overthinking this
[21:09:18] SteenJobs: has joined #RubyOnRails
[21:09:33] joelbrewer: rhizome: chances of his MVP reaching a point where dramatic dev is needed to keep up with scaling is pretty low
[21:09:43] rhizome: guaranteeing uptime is a fool's game. why would there be timeout errors? decide if those reasons are relevant to the contract
[21:09:44] annlewis_: has joined #RubyOnRails
[21:09:57] tubbo: joelbrewer: i'm unsure as to why it matters...hours are hours. this is just an MVP? yeah you're putting your cart before the horse.
[21:10:11] tubbo: it's like thinking "how should i set up my AWS auto-scaling groups" before actually writing an app :P
[21:10:21] rhizome: joelbrewer> Well, it's a fixed-bid contract
[21:11:04] tubbo: maintenence should be a retainer fee. they pay you monthly, that gets converted into hours, they call on you to use those hours however they see fit
[21:11:24] tubbo: you bank on the retainer hour count being higher than the actual amount of work you do on the project.
[21:11:25] Papierkorb: rhizome: 2.1 talks about something similar, but I don't want to have one or the other, I want the current behaviour with some additional scripts 'on demand'
[21:11:37] joelbrewer: if it helps give you an idea of the scope of work, it's probably going to be in the neighborhood of 25-30k
[21:12:18] rhizome: 5K/mo is not enough to write an app and be responsible for scaling
[21:12:18] ts310: has joined #RubyOnRails
[21:12:22] SteenJobs: has joined #RubyOnRails
[21:12:36] fwaokda: How can I create an association in my new action if the `id` hasn't been created yet? https://gist.github.com/daveomcd/3b29c5a4de530e313ec8
[21:12:56] Hates_: Papierkorb: so just have two files and selective use them. tbh using require_tree just makes life difficult
[21:13:22] rhizome: Papierkorb: are you really not seeing the admin.js/css stuff?
[21:13:32] rhizome: that is actually specific to your situation
[21:13:34] Hates_: fwaokda: @report.evalulations.build(params)
[21:13:43] fwaokda: Hates_, thanks!
[21:13:52] Hates_: fwaokda: then save your @report after
[21:14:16] skyjumpe1: has left #RubyOnRails: ()
[21:14:35] Hates_: fwaokda: in your case you just need @report.evaluations.build(skill: skill)
[21:15:04] skyjumper: has joined #RubyOnRails
[21:15:21] chelbs: has joined #RubyOnRails
[21:15:27] skyjumper: hey all, trying to figure this out: https://gist.github.com/anonymous/092e4950d2ffc7d7f0b9
[21:15:43] skyjumper: capybara+selenium, somehow the element exists on the page, but can't be found
[21:15:54] fwaokda: Hates_, thanks I'll now try and simplify the code by getting rid of the loop :)
[21:16:39] skyjumper: shows up in the selenium browser, shows up in page.html... but can't page.find('selector') on it
[21:17:24] skj3gg: has joined #RubyOnRails
[21:18:57] annlewis: has joined #RubyOnRails
[21:19:02] renegadeandy: Hi folks. I am looking to add in OAuth authentication to my site - alongside what I have currently to handle that (devise). This article looks good - http://sourcey.com/rails-4-omniauth-using-devise-with-twitter-facebook-and-linkedin/ has anyone got any better guide?
[21:20:25] subtwo: has joined #RubyOnRails
[21:20:52] renegadeandy: Im thinking just doing it more simply with devise's guide might be better : https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview
[21:21:01] Lightsword: has joined #RubyOnRails
[21:25:00] seuros: has joined #RubyOnRails
[21:25:36] beneggett: has joined #RubyOnRails
[21:25:58] tubbo: renegadeandy: last time i did this i used devise's guide.
[21:26:26] crdpink: has joined #RubyOnRails
[21:27:30] renegadeandy: tubbo: cool - yeah it looks really good actualy
[21:30:20] philcrissman: renegadeandy: tubbo: having not looked at either: if you're using devise, and they have a guide, I'd def look at it first. :)
[21:30:30] renegadeandy: philcrissman: :)
[21:31:48] sinkensabe: has joined #RubyOnRails
[21:32:14] Hates_: has joined #RubyOnRails
[21:33:19] tfittsy: has joined #RubyOnRails
[21:35:28] JakFrist: has joined #RubyOnRails
[21:35:44] doublemalt_: has joined #RubyOnRails
[21:36:29] creature: has joined #RubyOnRails
[21:37:01] Surt_Q: has joined #RubyOnRails
[21:38:27] sinkensabe: has joined #RubyOnRails
[21:39:38] jenrzzz: has joined #RubyOnRails
[21:40:07] qsun_: has joined #RubyOnRails
[21:40:53] doodlehaus: has joined #RubyOnRails
[21:41:02] michael_mbp: has joined #RubyOnRails
[21:42:13] philcrissman: has joined #RubyOnRails
[21:42:38] Pupeno: has joined #RubyOnRails
[21:44:38] mikecmpbll: how do I debug ExecJS::ProgramError: Unexpected token: punc ({) (line: 1, col: 7, pos: 7) during precompilation?
[21:44:46] mikecmpbll: doesn't seem to tell me which file the syntax error is in
[21:45:00] User458764: has joined #RubyOnRails
[21:45:30] lucianosousa: mikecmpbll: most of the time, I check my git diff
[21:45:51] mikecmpbll: it's a pretty huge deploy, wasn't picked up in dev
[21:46:00] mikecmpbll: including rails upgrade
[21:46:03] lucianosousa: sometimes, ???trace give me a idea
[21:46:22] lucianosousa: did u try rake assets:precompile local?
[21:46:52] Radar: GOOD MORNING
[21:47:05] CheckYourSix: Morning Radar
[21:47:10] unreal: has joined #RubyOnRails
[21:48:40] mikecmpbll: any idea how to debug this precompile error? https://gist.github.com/mikecmpbll/3925eda165d9e3819890
[21:49:16] mikecmpbll: i don't know whether the "writing .." line means that the error is in that js or if that means that it was completed before the error
[21:49:59] Sigma00: morning, Radar
[21:50:39] mary5030: has joined #RubyOnRails
[21:51:24] dopie: has joined #RubyOnRails
[21:51:24] nickenchuggets: has joined #RubyOnRails
[21:51:24] nickenchuggets: has joined #RubyOnRails
[21:52:24] pixelhandler: has joined #RubyOnRails
[21:53:41] dented42: has joined #RubyOnRails
[21:53:56] thomasfedb: has joined #RubyOnRails
[21:54:00] x-light: has joined #RubyOnRails
[21:54:05] marcoceppi: has joined #RubyOnRails
[21:54:12] x-light: good morning radar
[21:54:21] momomomomo: has joined #RubyOnRails
[21:54:57] thomasfedb: has joined #RubyOnRails
[21:55:11] dnewkerk_: has joined #RubyOnRails
[21:55:11] penguinpowernz: has joined #RubyOnRails
[21:55:16] ryanf: has joined #RubyOnRails
[21:55:34] sypheren: has joined #RubyOnRails
[21:55:39] dseitz: has joined #RubyOnRails
[21:55:42] smathy: mikecmpbll, moment.js is a manifest file?
[21:56:15] mikecmpbll: no clue, it's something from the moment js library
[21:56:32] asmodlol: has joined #RubyOnRails
[21:56:49] toydestroyer: has joined #RubyOnRails
[21:56:54] mikecmpbll: in my project via the rails-assets-moment gem
[21:57:01] wethu: has joined #RubyOnRails
[21:57:35] zorak8: has joined #RubyOnRails
[21:57:41] skyjumper: anyone ever see capybara/selenium get out of sync with the browser?
[21:57:46] seank_: has joined #RubyOnRails
[21:57:51] skyjumper: as in, the DOM appears different in each
[21:58:23] cschneid: has joined #RubyOnRails
[21:59:00] tfittsy: anyone use the gmailgem or anything else with google and OAuth2? I'm trying to figure out how to get access to my own email account using oauth2 but haven't been able to figure it out yet.
[21:59:21] ciree: has joined #RubyOnRails
[22:00:24] centrx: has joined #RubyOnRails
[22:00:26] yfeldblum: has joined #RubyOnRails
[22:00:28] sparr: has joined #RubyOnRails
[22:00:49] djbkd: has joined #RubyOnRails
[22:02:23] djbkd: has joined #RubyOnRails
[22:03:25] dented42: has joined #RubyOnRails
[22:03:26] Radar: skyjumper: different in each what?
[22:03:36] smathy: mikecmpbll, only place that there's a moment/moment.js is in https://github.com/moment/moment/blob/master/src/lib/moment/moment.js which definitely has a punc ({) syntax error on line 1 col 7
[22:03:50] smathy: mikecmpbll, not sure rails-assets is doing the right thing with that repo.
[22:04:01] Cork: has joined #RubyOnRails
[22:04:07] eggoez: has joined #RubyOnRails
[22:04:22] mikecmpbll: smathy: oooh.
[22:04:26] tvw: has joined #RubyOnRails
[22:04:26] smathy: mikecmpbll, I'd recommend using the momentjs-rails gem instead.
[22:05:12] FernandoBasso: has joined #RubyOnRails
[22:05:31] mikecmpbll: smathy: ily. i'll try that <3
[22:05:47] smathy: mikecmpbll, np :)
[22:05:50] Noizept: has joined #RubyOnRails
[22:05:58] Coldblackice: has joined #RubyOnRails
[22:06:08] blackmes2: has joined #RubyOnRails
[22:06:15] iamjarvo: has joined #RubyOnRails
[22:06:43] djbkd: has joined #RubyOnRails
[22:06:53] duderonomy: has joined #RubyOnRails
[22:07:16] marienz: has joined #RubyOnRails
[22:07:22] existensil: has joined #RubyOnRails
[22:08:21] asmodlol: has joined #RubyOnRails
[22:09:59] Wolfram74: has joined #RubyOnRails
[22:10:18] twilling: has joined #RubyOnRails
[22:10:38] Wolfram74: what the donks, I'm starting out on this new code base, and the test suite, a chunk of tests generate active record logs for each test
[22:11:32] User458764: has joined #RubyOnRails
[22:12:15] momomomomo: has joined #RubyOnRails
[22:13:30] cnk: has joined #RubyOnRails
[22:14:34] masscrx: has joined #RubyOnRails
[22:15:05] rjno: has joined #RubyOnRails
[22:15:24] ciree: has joined #RubyOnRails
[22:15:52] Frem: has joined #RubyOnRails
[22:16:25] scottmatheina: has joined #RubyOnRails
[22:16:59] FernandoBasso: has joined #RubyOnRails
[22:17:16] Wolfram74: anybody know how to turn off active record logs in rspec?
[22:17:28] shinnya: has joined #RubyOnRails
[22:17:37] renegadeandy: Hello - can somebody explain what I am doing wrong here to throw this to_sym : https://gist.github.com/anonymous/5b67e5c20dc9a1d611a3
[22:18:46] tfittsy: renegadeandy: it's in your event model
[22:19:30] renegadeandy: tfittsy: im confused
[22:19:31] ryanf: has joined #RubyOnRails
[22:19:58] crdpink2: has joined #RubyOnRails
[22:20:52] renegadeandy: category.Events is the association name
[22:21:01] renegadeandy: im not sure what part of that line its complaining about
[22:21:02] tfittsy: the WelcomeController is calling something in event line 123, whatever is there is returning a nil that you're trying to call find_number_of_category_events on
[22:21:09] Palsson: has joined #RubyOnRails
[22:21:23] baron: has joined #RubyOnRails
[22:21:24] das3in: has joined #RubyOnRails
[22:22:03] Guest89293: has left #RubyOnRails: ()
[22:22:11] choke: has joined #RubyOnRails
[22:22:13] bar0n: has joined #RubyOnRails
[22:22:39] abolishme: has joined #RubyOnRails
[22:22:48] djbkd: has joined #RubyOnRails
[22:23:03] ts310: has joined #RubyOnRails
[22:23:54] das3in: Hi! Still learning Rails. I want to create a new instance of an object when a user is created, using some of those user params. I'm using devise. Normally new stuff is created in the controller, so does that mean I have to override the Devise registration controller?
[22:24:37] renegadeandy: tfittsy: are you saying : category.Events.all.each do |event| - Events is nil?
[22:25:16] asmodlol: has joined #RubyOnRails
[22:25:31] doodlehaus: has joined #RubyOnRails
[22:26:16] Sigma00: das3in: you can use an after_create callback http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html
[22:26:53] twilling: has joined #RubyOnRails
[22:27:13] codepete: has joined #RubyOnRails
[22:27:19] zendrix: has joined #RubyOnRails
[22:27:49] das3in: Sigma00: ah thanks! And just throw that in the User controller created by Devise?
[22:28:08] Sigma00: nope, you throw that into your User model :)
[22:28:09] jenrzzz: has joined #RubyOnRails
[22:28:49] Sigma00: das3in: better explained in this link http://guides.rubyonrails.org/active_record_callbacks.html
[22:29:26] das3in: Sigma00: I'd just found that and am looking through it. thanks again!
[22:30:11] renegadeandy: tfittsy: this is the subcategory model : https://gist.github.com/anonymous/e81c71c1165419b46ac1 - you can see i am trying to get the Events association defined... but its nil by the looks of things...not sure why
[22:31:09] bruno-: has joined #RubyOnRails
[22:32:01] vasilakisfil__: has joined #RubyOnRails
[22:33:35] renegadeandy: tfittsy: do i have to use event_categories instead of Events in this case?
[22:34:23] SteenJobs: hey guys, i???ve implemented functionality to drag and drop images onto a canvas-like area to create clothing outfits - how should i go about saving these outfits?
[22:34:44] das3in: Sigma00: This will work. Maybe it's just a misconception but I always thought "CRUD actions" should go in controllers? Is it bad practice to do it in a model?
[22:35:15] baweaver: has joined #RubyOnRails
[22:35:48] Sigma00: if a model depends on another, no
[22:35:59] Sigma00: this is just fine
[22:36:38] djbkd_: has joined #RubyOnRails
[22:37:16] tfittsy: renegadeandy: i can't tell without looking at your model but you're calling #to_sym on nil
[22:37:51] tfittsy: events should probably be lower case
[22:38:00] tfittsy: has_many :events
[22:38:51] ts310: has joined #RubyOnRails
[22:39:01] renegadeandy: tfittsy: ok, lemme try fix that
[22:39:25] husanu: has joined #RubyOnRails
[22:39:57] renegadeandy: tfittsy: thats fixed it - cheers man
[22:40:10] renegadeandy: tfittsy: noob errors ;)
[22:40:21] renegadeandy: still getting this whole convention over configuration thing
[22:40:25] SteenJobs: like would i have to save the coordinates of all the items in relation to their outermost container? i???m not sure how these things are usually done.
[22:40:40] towski_: anyone know why my factory girls factories get reloaded before every test
[22:40:51] Etriaph: has joined #RubyOnRails
[22:41:06] tfittsy: you're welcome
[22:41:11] jglover: has joined #RubyOnRails
[22:41:35] jglover: hey guys, Thin noob here. We're seeing that, after deploy, the reactor won't be running for 10 or 15 minutes, and then randomly switch on
[22:41:40] jglover: anybody else have issues with that
[22:41:41] das3in: Sigma00: hmm so I can see a problem already. Brief overview, I'm making a team-manager and want to decouple the "Player profile" from the Devise user. So I'd like to create an instance of "Player" when a "User" is registered. after_create probably won't work because the user_id (fk) is assigned only on :after_save. But that would be bad because everytime the user is updated I'd create a new intance of "Player"
[22:42:46] renegadeandy: when I have an association like event.tickets - and i make a new ticket using event.tickets.create - do I need to call event.save() afterwords....or even.tickets.save()?
[22:43:06] jglover: renegadeandy: create suffices. you don't need to call save again
[22:43:07] Etriaph: das3in: Have user accept nested attributes for profile.
[22:43:27] jglover: ticket = event.tickets.create
[22:43:29] Scripore: has joined #RubyOnRails
[22:43:37] jglover: ticket is a saved ticket record now
[22:43:54] jglover: renegadeandy: suffices = is enough
[22:44:02] towski_: it seems like factory_girl would only need to load the definitions once?
[22:44:07] renegadeandy: jglover: ok, but just "event.tickets.create" - is that enough
[22:44:11] tfittsy: .create also saves, .new gives you one without saving
[22:44:14] renegadeandy: or do you need the assignment
[22:44:28] renegadeandy: ah, ok, so i dont need a variable
[22:44:29] das3in: Etriaph: I was attempting to avoid overriding the devise UserRegistration controller. But seems like that's necessary to have the user accept profile attr?
[22:44:31] jglover: renegadeandy: that's enough, but the assignment will give you the new ticket
[22:44:32] towski_: seems like reloading all the factories every time would be slow af
[22:44:39] renegadeandy: awesome - thanks
[22:44:39] tfittsy: calling event.tickets automatically populates the ticket wit hteh event_id
[22:44:43] Etriaph: renegadeandy: If you want to use it afterwards, you can, but you don't need to assign it.
[22:44:52] renegadeandy: brilliant, thank you
[22:45:08] Etriaph: renegadeandy: But if you're doing validation, you might want to.
[22:45:13] towski_: it's in my f'ing code
[22:45:35] renegadeandy: and im guessing the same rules apply to update?
[22:45:45] nothingmuch: has joined #RubyOnRails
[22:48:34] baweaver: has joined #RubyOnRails
[22:48:48] Etriaph: renegadeandy: update returns false on failure.
[22:49:03] Etriaph: I'm assuming true otherwise.
[22:49:20] arBmind1: has joined #RubyOnRails
[22:49:48] seuros: has joined #RubyOnRails
[22:49:49] Casty: has joined #RubyOnRails
[22:49:59] Etriaph: But it does save it.
[22:51:48] GoGoGarrett: has joined #RubyOnRails
[22:55:39] ShadowKnows: has joined #RubyOnRails
[22:57:32] Rubie: has joined #RubyOnRails
[22:59:06] annlewis: has joined #RubyOnRails
[23:00:29] towski__: has joined #RubyOnRails
[23:01:29] towski___: has joined #RubyOnRails
[23:02:00] Rubie: has joined #RubyOnRails
[23:02:13] Rubie: has joined #RubyOnRails
[23:02:59] Rubie: has joined #RubyOnRails
[23:03:28] dstarh: has joined #RubyOnRails
[23:03:44] Rubie: has joined #RubyOnRails
[23:04:28] Rubie: has joined #RubyOnRails
[23:05:13] Rubie: has joined #RubyOnRails
[23:05:56] ts310: has joined #RubyOnRails
[23:05:58] Rubie: has joined #RubyOnRails
[23:06:03] mois3x: has joined #RubyOnRails
[23:06:13] morenoh149: has joined #RubyOnRails
[23:06:21] philcris_: has joined #RubyOnRails
[23:06:41] nettoweb: has joined #RubyOnRails
[23:06:43] SteenJobs: has joined #RubyOnRails
[23:06:43] Rubie: has joined #RubyOnRails
[23:06:47] morenoh149: how best to add vendor prefixing to a rails app?
[23:07:28] Rubie: has joined #RubyOnRails
[23:07:58] doodlehaus: has joined #RubyOnRails
[23:08:14] Rubie: has joined #RubyOnRails
[23:08:59] Rubie: has joined #RubyOnRails
[23:09:35] sonofdirt: has joined #RubyOnRails
[23:09:43] Rubie: has joined #RubyOnRails
[23:10:04] scottmatheina: has joined #RubyOnRails
[23:10:29] Rubie: has joined #RubyOnRails
[23:11:14] Rubie: has joined #RubyOnRails
[23:11:44] dcunit3d: has joined #RubyOnRails
[23:11:49] darrencauthon: has joined #RubyOnRails
[23:12:50] Rubie: has joined #RubyOnRails
[23:14:35] smathy: morenoh149, use compass or bourbon.
[23:16:50] workmad3: has joined #RubyOnRails
[23:16:58] chouhoulis: has joined #RubyOnRails
[23:22:57] ShadowKnows: Hi everyone. Mind if I ask a newbie question? I am sure that you get these all the time.
[23:23:39] Rubie: has joined #RubyOnRails
[23:24:07] SteenJobs: has joined #RubyOnRails
[23:24:24] Radar: ShadowKnows: This is what the channel is for :)
[23:24:35] ShadowKnows: Oh thank god! lol
[23:25:12] SteenJobs: hey guys, girls, and superhuman coders - i???ve implemented functionality to drag and drop images onto a canvas-like area to create clothing outfits - how should i go about saving these outfits? would i need to save the coordinates of the images with respect to their container somehow?
[23:25:14] kellytk: has joined #RubyOnRails
[23:25:20] ShadowKnows: It's a pretty big question though... Basically, I'm just starting off with Ruby and looking at online tutorials. I'm also just getting into object oriented programming, and web app development (a course that starts in September and is full-time for 8 months).
[23:25:55] annlewis: has joined #RubyOnRails
[23:25:56] workmad3: has joined #RubyOnRails
[23:25:57] kellytk: ShadowKnows: That's exciting
[23:26:03] Rubie: has joined #RubyOnRails
[23:26:05] ShadowKnows: If you were to to recommend some essentials to someone new to Ruby on Rails and web apps, would you have any specific advice?
[23:26:17] tfittsy: SteenJobs: probably so. you want to be able to pull them apart later?
[23:26:22] ShadowKnows: Yeah, it's super exciting!
[23:26:42] SteenJobs: tfittsy: well i want a user to be able to see the outfits they created AND be able to edit them if they want
[23:26:45] tfittsy: SteenJobs: or recreate them and be able to change them
[23:27:00] tfittsy: so that's what I'd do
[23:27:16] SteenJobs: tfittsy: although the former is much more important - being able to see them - but i guess that would just involve taking a snapshot as a png or something
[23:27:25] tfittsy: z-index too
[23:27:25] Wolfram74: ShadowKnows: if you're looking for some stuff to read, I might recommend Practical objected oriented design with ruby
[23:27:34] SteenJobs: tfittsy: can you help walk me through briefly how i???d go about doing that? this is new teritory for me.
[23:27:40] Radar: ShadowKnows: I wrote a blog post about this: http://ryanbigg.com/2015/04/getting-started-with-ruby-and-rails/
[23:27:43] Wolfram74: ShadowKnows: and javascript ninja, since you'll still need to be reasonably competent at it for the front bits
[23:28:01] Wolfram74: and testing
[23:28:07] Wolfram74: learn testing
[23:28:18] tfittsy: ShadowKnows: vagrant and pry
[23:28:23] Radar: Learn Ruby first :)
[23:28:34] SteenJobs: ShadowKnows: i???d also highly highly recommend codewars.com for practice and getting familiar with using ruby to solve problems and becoming more intimately aware of the syntax and functions available.
[23:28:53] SteenJobs: ShadowKnows: that???s what worked for me, it made the difference between being familiar with ruby vs actually being able to use it.
[23:29:09] tfittsy: SteenJobs: well you wrote the code to drag them to a canvas, do you not have their position within the canvas?
[23:29:34] Wolfram74: on the subject of testing, I'm having some trouble with this code base i've inherited, it's polluting the test results stream by filling it with active record log stuff
[23:29:56] Wolfram74: I can't figure out what's generating it, or failing that, telling it I don't want to be told about it rollbacks
[23:30:17] philcris_: has left #RubyOnRails: ()
[23:30:21] ShadowKnows: Wow. There's tons of advice here. Thank you everyone.
[23:30:29] ShadowKnows: Obviously, each of these will take some time to look into.
[23:30:29] philcrissman: has joined #RubyOnRails
[23:30:39] SteenJobs: tfittsy: i do not! i can use jquery to get their coordinates, and to get the image to drop where the cursor is i got the coordinates of the canvas and use the offset to position the image - but is it possible to get the coordinates of the image with respect to the canvas so when i redraw it within a new div it???ll know where to go with respect to the new div?
[23:30:46] ShadowKnows: Codewars sounds great. I need a bit of an outlet to apply my efforts towards.
[23:30:46] Wolfram74: that sort of happens when you start wading into a pre-existing body of work, ShadowKnows
[23:30:51] SteenJobs: tfittsy: also how do i then save that information?
[23:30:56] SteenJobs: ShadowKnows: yea huge game changer for me
[23:31:10] ShadowKnows: As for your blog Radar, I will definitely be taking a look at that.
[23:31:12] SteenJobs: ShadowKnows: although i do think they should rethink their name
[23:31:12] garrypolley: has joined #RubyOnRails
[23:31:43] coffeeju1: has joined #RubyOnRails
[23:32:23] SteenJobs: tfittsy: jquery has a .position() method. dope.
[23:32:26] tfittsy: SteenJobs: depends on how your models are setup. Do you have an Outfit model that has_many articles or something?
[23:33:13] quazimodo: has joined #RubyOnRails
[23:33:42] SteenJobs: i have a list of thousands of items, and users can create as many outfits as they want, comprised of those items
[23:33:53] SteenJobs: tfittsy: so i???m implementing a through table
[23:34:10] Rubie: has joined #RubyOnRails
[23:34:16] tfittsy: so you have like Outfit, Article, and OutfitArticle or something?
[23:34:28] nettoweb: has joined #RubyOnRails
[23:34:35] ShadowKnows: Yeah, SteenJobs, the name isn't the best when it comes to getting people inovlved, eh?
[23:34:45] SteenJobs: ShadowKnows: haha bingo
[23:34:50] ShadowKnows: But if it helps, that's great stuff.
[23:34:52] SteenJobs: tfittsy: correct
[23:35:04] SteenJobs: ShadowKnows: yea you???ll be really relieved, it???s perfect for learning
[23:35:20] jokke: has joined #RubyOnRails
[23:35:21] SteenJobs: ShadowKnows: and whenever you get stuck, you inevitably end up looking in the docs and learning something new
[23:35:56] tfittsy: SteenJobs: so OutfitArticle could have position_x, _y, and _z attributes
[23:36:28] tfittsy: where you keep their coordinates, so a belt shows up on top of the pants instead of behind them.
[23:36:35] chelbs: has joined #RubyOnRails
[23:36:41] tfittsy: the reason for the z coordinate
[23:37:02] SteenJobs: ok cool - but how do i get that info from my JS to my db?
[23:37:13] tfittsy: do you have the info in your JS?
[23:37:17] tfittsy: or you're still working out how to get that?
[23:37:20] SteenJobs: i will once i add it!
[23:37:28] SteenJobs: nah i looked into the docs. .position() should do the trick
[23:37:46] GoGoGarrett: has joined #RubyOnRails
[23:37:54] tfittsy: so you bind an even to when you either drop or move an article, or when they hit update that it sends that data as part of your model
[23:37:58] tfittsy: just with ajax
[23:38:27] bhorn1: has joined #RubyOnRails
[23:39:19] SteenJobs: ok, don???t need ajax cuz i want them to be directed to their profile page anyway upon saving an outfit
[23:39:20] tfittsy: maybe $.post for when they add it to an outfit and have it return the id and $.ajax(url,{data: params, method: put}) when they change it.
[23:39:27] kellytk: has left #RubyOnRails: ("WeeChat 1.0.1")
[23:39:42] chouhoulis: has joined #RubyOnRails
[23:39:59] michael_mbp: has joined #RubyOnRails
[23:40:27] tfittsy: I use https://github.com/nathanvda/cocoon to dynamically add associations. You could probably use it as well
[23:40:47] bronson: has joined #RubyOnRails
[23:41:08] annlewis: has joined #RubyOnRails
[23:41:08] tfittsy: would definitely be lighter on your server to only save it when they're done instead of each piece
[23:41:29] baweaver: has joined #RubyOnRails
[23:43:58] SteenJobs: tfittsy: what do you mean? can???t i just make the event connected to when they click save?
[23:45:47] tfittsy: SteenJobs: each article of clothing they add to the canvas is an association to the outfit, so you need to create those associations in the form you're submitting.
[23:46:29] crdpink2: has joined #RubyOnRails
[23:46:53] SteenJobs: tfittsy: right, so could i just create a loop that adds the outfit id to each item?
[23:47:34] SteenJobs: tfittsy: although yea now that i think of it, it???s not so easy
[23:47:36] SteenJobs: in this context
[23:48:37] SteenJobs: but i had this issue earlier and i just did this: https://gist.github.com/SteenJobs/65bb2275b6bceb284655
[23:48:50] SteenJobs: but yea, not the most simple solution haha
[23:52:56] yoongkang: has joined #RubyOnRails
[23:53:08] brownbathrobe: has joined #RubyOnRails
[23:53:13] SteenJobs: if i created a join table, do i need a model for that table?
[23:54:25] michael_mbp: has joined #RubyOnRails
[23:55:24] dcunit3d: so uhhhh i open sourced my brain lolz
[23:55:34] annlewis: has joined #RubyOnRails
[23:55:44] dcunit3d: https://github.com/dcunited001/mri-scans
[23:56:32] husanu: has joined #RubyOnRails
[23:56:41] RegulationD: has joined #RubyOnRails
[23:57:11] framling: has joined #RubyOnRails
[23:57:11] tfittsy: SteenJobs: so what I'm saying you could do is in your outfit model you have accepts_nested_attributes_for :outfit_articles, then you use cocoon (or a similar technique) to dynamically add the associations to the form you'll be submitting
[23:57:46] tfittsy: then you're controller creates the outfit with it's articles all at the same time and you don't have to hack your controller.
[23:58:12] cpruitt: has joined #RubyOnRails