« Back to channel list

#RubyOnRails - 30 November 2015

« Back 1 day Forward 1 day »
[00:00:26] n00bDev: right now it returns an array the same email has different events
[00:00:38] n00bDev: is it possible to combine that email into one??
[00:00:39] chancancode_: has joined #RubyOnRails
[00:01:09] DarkBushido: has joined #RubyOnRails
[00:02:03] soahccc: has joined #RubyOnRails
[00:03:41] ebryn: has joined #RubyOnRails
[00:05:06] shanemcd: has joined #RubyOnRails
[00:05:23] nya: has joined #RubyOnRails
[00:05:40] leslie1: has joined #RubyOnRails
[00:05:45] DanielN: has joined #RubyOnRails
[00:06:52] VeryBewitching: n00bdev: .group(:email)
[00:07:02] RubyNewbey_: has joined #RubyOnRails
[00:07:08] n00bDev: which part should i put that?
[00:07:21] n00bDev: i tried and it gave me some nasty pg sql error
[00:07:24] EXCHGR: has joined #RubyOnRails
[00:07:29] DanKnox[away]: has joined #RubyOnRails
[00:07:34] bronson: has joined #RubyOnRails
[00:08:00] VeryBewitching: Because you need to select email to group by it
[00:08:03] spastorino: has joined #RubyOnRails
[00:08:04] alxndr_: has joined #RubyOnRails
[00:08:46] zrl: has joined #RubyOnRails
[00:09:12] n00bDev: so a .select(:email)?
[00:09:21] n00bDev: with where and then group?
[00:10:19] kumavis: has joined #RubyOnRails
[00:10:25] dlitz: has joined #RubyOnRails
[00:11:03] helpa: Why don't you try it and find out for yourself?
[00:11:24] wilsonc91: has joined #RubyOnRails
[00:11:30] n00bDev: okay cool taht worked
[00:11:41] n00bDev: now how do i return the count for each email? lol
[00:11:54] maloik: has joined #RubyOnRails
[00:12:13] helpa: Do your research before hand. Your question may be answerable with a quick Google search or by simply experimenting. If you're using a method in Rails, look it up in the API Docs or in the Official Guides.
[00:12:14] wilsonc91: Am I doing something obviously wrong for looping? testscripts.each do |file_num, file|, testscripts is an ActionController::parameters
[00:13:35] epochwolf: has joined #RubyOnRails
[00:13:37] universa1: has joined #RubyOnRails
[00:14:13] VeryBewitching: wilsonc91: testscripts.each do |file_n,file| do some_method; end
[00:15:14] spastorino_: has joined #RubyOnRails
[00:15:50] wilsonc91: Test_scripts has items in int, but for some reason its skipping the do part when i run my debugger
[00:16:32] wilsonc91: http://pastie.org/10590676
[00:17:25] paradisaeidae: has joined #RubyOnRails
[00:17:41] DarkBushido: has joined #RubyOnRails
[00:19:57] Avon: has joined #RubyOnRails
[00:19:57] Avon: has joined #RubyOnRails
[00:20:08] hahuang61: has joined #RubyOnRails
[00:20:48] alxndr: has joined #RubyOnRails
[00:21:31] spastorino__: has joined #RubyOnRails
[00:21:38] koprom: has joined #RubyOnRails
[00:21:54] Radar: wilsonc91: put a binding.pry before testscripts and see if it it really does have a value?
[00:22:38] wilsonc91: I'm running it through a debugger. testscripts does indeed have a value
[00:22:55] uranther: has joined #RubyOnRails
[00:23:23] diego3: has joined #RubyOnRails
[00:23:27] wilsonc91: Testscripts: {0: {'seq_num" => 0 , ...
[00:24:41] dandaman: has joined #RubyOnRails
[00:26:11] lacrosse: has joined #RubyOnRails
[00:26:13] vayan: has joined #RubyOnRails
[00:26:21] spastorino___: has joined #RubyOnRails
[00:27:10] Radar: Steps to reproduce please kthx
[00:30:14] DarkBushido: has joined #RubyOnRails
[00:30:15] DarkBushido: has joined #RubyOnRails
[00:31:54] leeky: has joined #RubyOnRails
[00:32:05] universa1: has joined #RubyOnRails
[00:32:19] n00bDev: https://gist.github.com/gwong89/744e3555bd315cef5e02
[00:32:42] nertzy: has joined #RubyOnRails
[00:33:43] drPoggs: has joined #RubyOnRails
[00:34:14] dlitz: has joined #RubyOnRails
[00:37:47] nickenchuggets: has joined #RubyOnRails
[00:37:57] kumavis: has joined #RubyOnRails
[00:38:08] lele: has joined #RubyOnRails
[00:38:08] epochwolf: has joined #RubyOnRails
[00:39:23] sparr: has joined #RubyOnRails
[00:39:53] Radar: n00bdev: !g rails group_by count
[00:39:55] EXCHGR: has joined #RubyOnRails
[00:40:02] n00bDev: i did look at that
[00:40:15] n00bDev: unless im misunderstanding something at the stackoverflow post?
[00:40:32] rickmasta: has joined #RubyOnRails
[00:41:02] Radar: Nothing in your code shows me that you looked at that
[00:41:06] Radar: you're grouping, but not counting
[00:41:42] n00bDev: events.select(:email).where(event:"open").order(email: :desc).count(:email, :group => 'email')??
[00:41:57] many: has joined #RubyOnRails
[00:42:42] bergs: has joined #RubyOnRails
[00:42:50] mostlybadfly: has joined #RubyOnRails
[00:43:13] n00bDev: that number is fine its correct, but what if i wnat to break it donw into the rows, like 2 for the first array element with some email, and 1 for second array element with another emeial
[00:43:50] Radar: ACTION drowns the horse
[00:43:55] dlitz: has joined #RubyOnRails
[00:44:06] Radar: http://stackoverflow.com/questions/2022334/group-and-count-in-rails
[00:44:12] Radar: Shows @project.line_items.group(:device_id).count
[00:44:26] Sawbones: has joined #RubyOnRails
[00:44:34] dlitz: has joined #RubyOnRails
[00:44:46] kmckelvin: has joined #RubyOnRails
[00:44:47] shanemcd: has joined #RubyOnRails
[00:45:23] maloik: has joined #RubyOnRails
[00:45:25] Radar: so what on earth is making you try count(:email, :group => 'email' )?
[00:45:52] i: has joined #RubyOnRails
[00:46:27] n00bDev: http://stackoverflow.com/questions/1647910/how-to-count-group-by-rows-in-rails
[00:46:33] n00bDev: from this other one
[00:46:45] LBRapid: has joined #RubyOnRails
[00:46:48] Marquel: has joined #RubyOnRails
[00:46:52] dotty: has joined #RubyOnRails
[00:47:02] Radar: Use the other one. The one that's been updated more recently.
[00:47:36] herenow: has joined #RubyOnRails
[00:47:40] lorn: has joined #RubyOnRails
[00:47:57] shtirlic: has joined #RubyOnRails
[00:48:32] okdas: has joined #RubyOnRails
[00:48:43] webdestroya: has joined #RubyOnRails
[00:48:51] okdas: has joined #RubyOnRails
[00:49:36] levifig: has joined #RubyOnRails
[00:49:54] gnugmanov: has joined #RubyOnRails
[00:49:55] n00bDev: if i get a ambigous column reference where does the problem refer to which part of the query?
[00:49:58] drupald: has joined #RubyOnRails
[00:50:01] atrius: has joined #RubyOnRails
[00:50:06] Denarii: has joined #RubyOnRails
[00:50:54] Radar: it should say in the error
[00:51:17] kadoppe: has joined #RubyOnRails
[00:51:26] loglaunch: has joined #RubyOnRails
[00:51:29] bratsche: has joined #RubyOnRails
[00:52:21] bahar: has joined #RubyOnRails
[00:54:01] alexblom: has joined #RubyOnRails
[00:54:21] Scient: has joined #RubyOnRails
[00:54:26] Sawbones: has joined #RubyOnRails
[00:54:29] arthurnn: has joined #RubyOnRails
[00:56:18] K0nserv-: has joined #RubyOnRails
[00:56:59] kitallis: has joined #RubyOnRails
[00:57:00] clamstar: has joined #RubyOnRails
[00:58:53] dlitz: has joined #RubyOnRails
[01:00:14] uranther: has joined #RubyOnRails
[01:00:21] Guest4184__: has joined #RubyOnRails
[01:00:41] gr3yR0n1n: has joined #RubyOnRails
[01:01:56] ajb: has joined #RubyOnRails
[01:02:46] AntiSpamMeta: has joined #RubyOnRails
[01:03:24] nyandoge: has joined #RubyOnRails
[01:04:44] n00bDev: ok i figured it out, why for active query u need to place strings into the query parameter instead of calling the table.attribute directly?
[01:04:50] jlyndon: has joined #RubyOnRails
[01:04:58] n00bDev: "events.email" vs events.email
[01:07:23] akosednar: has joined #RubyOnRails
[01:08:01] mostlybadfly: has joined #RubyOnRails
[01:08:35] sevenseacat: has joined #RubyOnRails
[01:08:40] amitchellbullard: has joined #RubyOnRails
[01:09:33] bergs: I feel like I'm missing something trivial..
[01:09:46] marcoceppi_: has left #RubyOnRails: ()
[01:09:51] nya: has joined #RubyOnRails
[01:10:07] bergs: so if I add the react-rails gem to my Gemfile and bundle install, then do the rake react:install as it says in the install notes for that gem, shouldn't I see the lib included in my <head>?
[01:10:41] soahccc: has joined #RubyOnRails
[01:11:07] pfg_: has joined #RubyOnRails
[01:11:08] uranther: has joined #RubyOnRails
[01:11:21] bergs: all the guides/tutorials I'm finding on this just kind of gloss over actually getting the library included in the template
[01:11:31] medright: has joined #RubyOnRails
[01:11:50] DarkBushido: has joined #RubyOnRails
[01:11:51] DarkBushido: has joined #RubyOnRails
[01:12:00] diego3: has joined #RubyOnRails
[01:12:02] spastorino___: has joined #RubyOnRails
[01:12:04] slash_nick: bergs: well, they mention it in the installation section of their readme
[01:12:04] EXCHGR: has joined #RubyOnRails
[01:12:16] bauruine: has joined #RubyOnRails
[01:12:32] bergs: did I miss that?
[01:12:35] bergs: ACTION reads it again
[01:12:37] slash_nick: after "This will: "
[01:12:46] sevenseacat: couldnt connect to freenode because the server was apparently full. huh.
[01:13:43] bergs: yes the items listed in "This will: " have happened
[01:14:38] bergs: i.e. the application.js has been updated, etc.
[01:15:06] vayan: has joined #RubyOnRails
[01:15:12] Guest71523: has left #RubyOnRails: ()
[01:15:51] machty: has joined #RubyOnRails
[01:15:55] allcentury: has joined #RubyOnRails
[01:16:45] bergs: if I add a js lib to application.js, do I have to download the lib manually? or is there a better approach?
[01:18:44] VeryBewitching: bergs: That depends on whether or not the js library is provided by a gem that adds to the asset pipeline
[01:19:12] camilasan: has joined #RubyOnRails
[01:19:13] spastorino___: has joined #RubyOnRails
[01:19:28] dopie: has joined #RubyOnRails
[01:19:51] VeryBewitching: bergs: For instance, the bootstrap-sass gem provides JavaScript and Sass assets, you don't have to download the bootstrap assets yourself, they're provided by the gem.
[01:19:51] dopie: Hey all whats wrong with my migration I'm trying to do a HMT association and it isn't working
[01:19:52] dopie: https://gist.github.com/staycreativedesign/6737e419ea4fd7c4c5d5
[01:20:02] dopie: 2.2.1 :015 > vip.events
[01:20:03] dopie: NameError: uninitialized constant Vip::Events
[01:20:23] bergs: I'm using the react-rails gem. I see no js lib in my tree
[01:20:30] VeryBewitching: dopie: Read about the 'source' option
[01:20:35] bergs: with the bootstrap-sass gem, at which point are the assets downloaded?
[01:20:39] xMopxShell: has joined #RubyOnRails
[01:20:40] dopie: source option?
[01:21:04] VeryBewitching: dopie: has_many :foo, through: :table, source: 'NS::Table'
[01:21:28] slash_nick: bergs: it's probbly in the gem's source somewh[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[Dere
[01:21:30] VeryBewitching: bergs: react-rails provides the JS, so you don't have to download the assets
[01:21:37] bergs: think I found it...
[01:21:43] sevenseacat: dopie: https://gist.github.com/staycreativedesign/6737e419ea4fd7c4c5d5#file-vip_at_event-rb-L2-L3 singular
[01:21:47] bauruine: has joined #RubyOnRails
[01:21:49] mices: tubbo: will i be needing to create a jquery's controller and action, like 'new'
[01:22:00] bergs: "react-rails offers a few other options for versions & builds of React.js. See VERSIONS.md for more info about using the react-source gem or dropping in your own copies of React.js." < looks promising :)
[01:22:10] dopie: sevenseacat, ty
[01:22:33] slash_nick: bergs: that's if you're not stisfied with the version you have already
[01:22:43] bergs: I have no version :)
[01:22:48] bergs: I think the react-source gem is what I need
[01:23:00] dopie: sevenseacat, sweet
[01:23:00] VeryBewitching: bergs: Are you using RubyMine?
[01:23:01] spastorino: has joined #RubyOnRails
[01:23:23] sevenseacat: the react-rails gem contains react
[01:23:36] nya: has joined #RubyOnRails
[01:24:00] VeryBewitching: bergs: Switch your project to the 'Rails' view and then look through assets. Any gem that adds to the asset pipeline will be listed there. So Assets -> Stylesheets; if you have bootstrap-sass, you'll see it listed.
[01:24:05] slash_nick: ^ and when you installed and ran their generators, they appended the lines in your js manifest to ensure it gets included in your layout
[01:24:19] bergs: VeryBewitching: I am using rubymine
[01:24:38] bergs: okay let me check that out...
[01:25:04] mices: VeryBewitching: how do i call server side jquery action from my form before i submit it
[01:25:04] bergs: ooh Rails view is nice.
[01:25:09] VeryBewitching: bergs: Also, when looking at the project in 'Rails' view their will be a list of all of your gems in 'External Libraries'
[01:25:29] apeiros: has joined #RubyOnRails
[01:25:53] VeryBewitching: bergs: If you need to inspect why a method from a gem isn't doing what you wanted, you can hit F4 and look at the source.
[01:26:04] bergs: slash_nick: it would appear that I do.
[01:26:10] helpa: mices: If you don't provide any code, it becomes really difficult for us to help you. Providing code to reproduce the problem increases your chances of getting great, accurate help immensely.
[01:26:13] dlitz: has joined #RubyOnRails
[01:27:04] mices: VeryBewitching: it doesn't make sense, since no data has to come from the server it seems i should be doing everything on the client
[01:27:57] EXCHGR: has joined #RubyOnRails
[01:30:59] hellschreiber_: has joined #RubyOnRails
[01:31:06] cashnguns: has joined #RubyOnRails
[01:32:07] Radar: mices: you're doing a poor job of explaining what you're trying to do.
[01:32:15] Radar: Well, more of the "why" you're trying to do that
[01:32:39] mostlybadfly_: has joined #RubyOnRails
[01:32:41] amitchellbullard: has joined #RubyOnRails
[01:32:56] annlewis: has joined #RubyOnRails
[01:33:01] maloik: has joined #RubyOnRails
[01:34:53] ELCALOR: has joined #RubyOnRails
[01:35:02] bergs: oh you know what...
[01:35:15] bergs: it helped when I added javascript_include_tag to my template file.
[01:35:33] leeky: has joined #RubyOnRails
[01:36:00] sevenseacat: why was it removed in the first place? >_>
[01:36:37] bergs: it wasn't...
[01:37:29] bergs: I'm not sure if scaffolding would include it for me, but I didn't use that. I'm learning by creating from scratch
[01:37:33] VeryBewitching: The layout created with 'rails new <proj>' will have both stylesheet_include_tag and javascript_include_tag
[01:37:59] bergs: rubymine handled the "rails new" for me. I must've tripped some option to exclude it
[01:38:06] VeryBewitching: No, Rails handled it
[01:38:10] bergs: I think when I advised it not to include jquery
[01:38:26] VeryBewitching: RubyMine calls 'rails new <yourproj> <options>' for you is all.
[01:38:32] sevenseacat: you have to include jquery...
[01:38:35] bergs: that is what I meant.
[01:38:41] bergs: why do I have to include jquery?
[01:38:43] sevenseacat: a bunch of Rails stuff won't work otherwise
[01:38:48] sevenseacat: like all of its ujs
[01:39:02] sevenseacat: delete links, remote forms, etc.
[01:39:17] VeryBewitching: sevenseacat: RubyMine let's you choose the front-end framework when you create a project, React is one of the options
[01:39:30] VeryBewitching: Err.. library, not framework
[01:39:32] Aeyrix: You can pick 'none', fwiw.
[01:39:36] bergs: someone here said that react_ujs would replace jquery_ujs
[01:39:41] sevenseacat: there's a react_ujs now?
[01:39:46] Aeyrix: IIRC everything still works, it's just vanilla JS.
[01:39:48] bergs: the unobtrusive js concept is new to me so it's a black box at this point
[01:40:03] Aeyrix: Unobtrusive JS doesn't exist.
[01:40:03] Avon: has joined #RubyOnRails
[01:40:09] Aeyrix: JS is obtrusive as fuck.
[01:40:11] VeryBewitching: events.where(event:"open").order(email: :desc)
[01:40:21] VeryBewitching: https://github.com/reactjs/react-rails/blob/master/lib/assets/javascripts/react_ujs.js.erb
[01:40:21] sevenseacat: Aeyrix: it does, its just not really unobtrusive
[01:40:30] sevenseacat: compared to the shit that came before it, it is
[01:40:54] bergs: yes, I think I picked "none" :)
[01:41:13] bergs: I was thinking it would be easier to see Rails without all that obtrusiveunobtrusive JS in the way
[01:41:27] bergs: then I tried to make a delete link
[01:41:30] bergs: like 3 hours ago
[01:41:34] tejasmanohar: has joined #RubyOnRails
[01:41:43] sevenseacat: Aeyrix: eg onclick attributes
[01:42:35] VeryBewitching: bergs: I default to jQuery for each project; it's easy to eliminate after the fact and rarely do I not use at least some JavaScript that jQuery doesn't make easier.
[01:43:01] bergs: what do you mean by ;eliminate after the fact?'
[01:43:17] bergs: remove the lib if you're not using it?
[01:43:17] VeryBewitching: I remove two lines from application.js
[01:43:41] VeryBewitching: Yup, the gems too if you cared to.
[01:43:45] VeryBewitching: From your Gemfile
[01:43:51] Paradox: has joined #RubyOnRails
[01:43:52] Aeyrix: sevenseacat: element.addEventListener('click', function() { whatever; }, false);
[01:44:02] Aeyrix: Oh you're saying it's all done in jQ atm?
[01:44:24] sevenseacat: I mean the unobtrusive part
[01:44:33] Lloyd: has joined #RubyOnRails
[01:45:08] eggoez: has joined #RubyOnRails
[01:45:17] dotty: has joined #RubyOnRails
[01:45:58] shwoodard_: has joined #RubyOnRails
[01:46:06] dlitz: has joined #RubyOnRails
[01:46:24] bergs: ok time for a break. figuring out javascript_include_tag was a tremendous effort :) afk
[01:46:43] ^Denis: has joined #RubyOnRails
[01:46:58] hellschreiber_: has joined #RubyOnRails
[01:47:33] Aeyrix: Don't use abstraction tools, kids.
[01:48:23] amitchellbullard: has joined #RubyOnRails
[01:49:04] phrozen77: has joined #RubyOnRails
[01:49:15] many: has joined #RubyOnRails
[01:52:31] EXCHGR: has joined #RubyOnRails
[01:53:42] ewnd9: has joined #RubyOnRails
[01:53:51] bauruine: has joined #RubyOnRails
[01:55:29] K_r3aPeR: has joined #RubyOnRails
[01:57:15] universa1: has joined #RubyOnRails
[01:57:50] Guest4184__: has joined #RubyOnRails
[01:58:07] Radar: hm, weird that I ask mices to explain something and then I get radio silence.
[01:58:19] jlyndon: has joined #RubyOnRails
[01:58:21] Radar: "PLEASE HELP!11one" "Ok, please explain a bit better so I can understand" "<silence>"
[01:58:23] sevenseacat: totally weird!
[01:58:23] Aeyrix: Radar: your patience is something to write books about tbh
[01:58:49] VeryBewitching: Radar: The "doesn't make sense" statement is where I started paying attention to other things.
[01:58:53] VeryBewitching: brb, getting coffee.
[01:58:58] pontiki: has joined #RubyOnRails
[02:00:18] FailBit: ACTION passes out
[02:01:54] spastorino: has joined #RubyOnRails
[02:01:54] lacrosse: has joined #RubyOnRails
[02:01:54] dotty: has joined #RubyOnRails
[02:01:56] mostlybadfly: has joined #RubyOnRails
[02:02:11] Radar: Aeyrix: I am only patient here :_)
[02:02:36] contradictioned: has joined #RubyOnRails
[02:02:37] uranther: has joined #RubyOnRails
[02:02:40] kapowaz_: has joined #RubyOnRails
[02:02:41] amitchellbullard: has joined #RubyOnRails
[02:03:42] Radar: Extremely impatient everywhere else.
[02:05:25] Aeyrix: installing linux right now
[02:05:30] Aeyrix: managed to exhaust the memory by pressing volup
[02:05:49] shwoodard_: has joined #RubyOnRails
[02:06:37] bergs: Radar: I wasn't following, but perhaps while he was thinking about the explanation, he had an ah-ha moment.
[02:06:41] pfg_: has joined #RubyOnRails
[02:06:45] bergs: Sometimes explaining a problem to others is all you need
[02:06:47] Radar: bergs: no, this is just mices MO.
[02:06:49] FailBit: Aeyrix: needs more gentoo
[02:06:53] sevenseacat: unlikely, but good theory.
[02:06:55] bergs: oh, well then...
[02:06:58] Radar: Asks for help, then fucks off without warning for hours on end
[02:07:04] Radar: then asks "did anyone have an answer for me?"
[02:07:10] sevenseacat: we'll beat that hopeful out of you yet. >_>
[02:07:18] Aeyrix: mices is pretty much a known problem, bergs.
[02:07:40] bergs: gentoo is easy: http://bash.org/?464385
[02:08:43] Aeyrix: Fucking hell
[02:08:46] zrl: has joined #RubyOnRails
[02:08:47] Aeyrix: the touchpad doesn't work
[02:08:49] Aeyrix: but the touchscreen does
[02:09:20] bergs: Aeyrix: what's hogging your memory?
[02:09:28] Aeyrix: bergs: This is the INSTALLER
[02:09:32] Aeyrix: I haven't even got anything yet.
[02:09:35] bergs: which distro?
[02:09:37] Aeyrix: It's trying to start the partitioner apparently.
[02:09:48] Aeyrix: A Ubuntu derivative I think.
[02:09:52] Aeyrix: Unless they switched to Debian.
[02:09:59] bergs: ubuntu is based on debian
[02:10:09] Aeyrix: but being based on debian does not mean you're based on ubuntu
[02:10:20] Aeyrix: good lord this is one solid meme
[02:10:22] Aeyrix: it's been five minutes
[02:10:51] bergs: maybe check your drive?
[02:11:13] Aeyrix: I'm relatively sure this is an SSD.
[02:11:26] Aeyrix: I don't even know
[02:11:28] Aeyrix: actually no, it isn't
[02:11:32] Aeyrix: oh god it's a 7200RPM
[02:11:46] sevenseacat: could be worse.
[02:12:00] Aeyrix: Yeah I have one of those.
[02:12:12] bergs: my first computer had only 2 5.25" floppy bays :(
[02:12:20] bergs: actually no
[02:12:24] bergs: I had one with 8.5" bays
[02:12:25] leeky: has joined #RubyOnRails
[02:12:31] Aeyrix: the touchscreen still works
[02:12:37] Aeyrix: but it's still starting the partitioner
[02:12:40] Aeyrix: literally what the fuck
[02:12:42] bergs: and 768kb ram
[02:13:06] mices: i'm back from the docs with a new gist
[02:13:20] Sirecote: has joined #RubyOnRails
[02:13:22] bergs: can you run `hdparm -tT /dev/sdX` on it?
[02:13:24] Aeyrix: Radar: we need a ticketing system for this channel.
[02:13:34] Radar: Aeyrix: amen.
[02:13:36] Aeyrix: bergs: No, because I can't drop into a console at all. :|
[02:13:41] sikachu: has joined #RubyOnRails
[02:13:48] mices: Radar: https://gist.github.com/mices/bd9d6c5bd68f2a6fb479
[02:13:50] Radar: [12:32:07] <Radar> mices: you're doing a poor job of explaining what you're trying to do.
[02:13:50] Radar: [12:32:14] <Radar> Well, more of the "why" you're trying to do that
[02:13:58] Radar: Literally half an hour ago
[02:14:01] bergs: I'd reboot into a RAM system and check the volume's health if I were you
[02:14:01] Radar: Why do you disappear without warning?
[02:14:20] Aeyrix: bergs: This is a RAM system.
[02:14:27] Aeyrix: bergs: That's the worst part. This is a LiveUSB installer.
[02:14:31] Radar: Why in one instance are you using a jQuery's $ function, and then in another using document.getElementById?
[02:14:32] Aeyrix: I'm just trying to install this lmao
[02:14:33] mices: i was in the kitchen and then came back and reading the docs for jquery someone told me to read i think sevenseacat
[02:14:38] Aeyrix: Why can't it just be Arch.
[02:14:44] Radar: mices: And your IRC doesn't ding when you get highlighted?
[02:15:03] bronson: has joined #RubyOnRails
[02:15:03] mices: no, i never heard of highlighted
[02:15:09] Radar: greeeeaat
[02:15:27] Aeyrix: >can't run `/bin/sh`: Cannot allocate memory
[02:15:31] Radar: Maybe fix that first, THEN explain what you're trying to do and why you're trying to do it
[02:15:35] Aeyrix: seppuku imminent
[02:15:45] Radar: Aeyrix: That version of Linux musn't be compatible with the Commodore 64 you're running on it.
[02:15:46] bergs: Aeyrix if you wait long enough the kernel will probably recover some memory
[02:15:58] Aeyrix: Radar: lmao
[02:16:02] Aeyrix: Radar: it's an inspiron 11
[02:16:30] bergs: did you try.. I think Alt+Fn to switch vterms?
[02:16:35] mices: Radar: i see now that when the tray icon is flashing it means i have a highlighted message, i never knew that before thanks
[02:16:38] Aeyrix: bergs: Yeah.
[02:16:38] bergs: usually the GUI installers are running on F7
[02:16:42] Aeyrix: "can't fork"
[02:16:51] bergs: in soviet russia, road forks you!
[02:16:53] Aeyrix: Installer here is on F5.
[02:16:58] Radar: mices: yup, that's a real good indicator that you should stop what you're doing and go on IRC
[02:17:11] Radar: mices: Now that we've got that sorted, let's do the other thing.
[02:17:15] sevenseacat: Aeyrix: did you forkbomb your own system?
[02:17:20] Radar: "explain what you're trying to do and why you're trying to do it"
[02:17:26] Aeyrix: sevenseacat: Well I'm trying to install Ubuntu on it, so probably yes.
[02:17:48] mices: when someone selects fixed price listing i want the field for starting bid to go readonly dull
[02:18:15] bergs: Aeyrix you try magic sysrq?
[02:18:16] bergs: http://www.linuxhowtos.org/Tips%20and%20Tricks/sysrq.htm
[02:18:20] mickey_mouse: has joined #RubyOnRails
[02:18:41] mices: Radar: format is the name of the field
[02:18:44] bergs: hm my macbookpro doesn't have a sysrq key
[02:19:10] nya: has joined #RubyOnRails
[02:19:19] Radar: https://gist.github.com/mices/bd9d6c5bd68f2a6fb479#file-_form-html-erb-L2
[02:19:20] mices: Radar: i'm troubled about the firist use of format $("format")
[02:19:21] Aeyrix: holy shit that broke it even more
[02:19:29] Radar: mices: the function here gets an argument which is the change event
[02:19:40] Radar: You can reference the element with $(e.target)
[02:19:48] Radar: And probably even $(e.target).value
[02:20:38] one_zero: has joined #RubyOnRails
[02:21:24] mices: "the change event"
[02:21:36] mices: abstract almost
[02:22:55] mices: Radar: can i print it to <div> like this $( "div" ).text( str );
[02:23:09] Radar: https://api.jquery.com/change/#change-eventData-handler
[02:23:20] Radar: See the 2nd example there, how it has eventData?
[02:23:34] alindeman: has joined #RubyOnRails
[02:23:41] Radar: And then underneath that, it shows that the handler is a function which takes an Event object?
[02:25:48] dandaman: has joined #RubyOnRails
[02:26:39] Radar: mices: http://codepen.io/anon/pen/epqRgR
[02:27:09] bergs: I finally caved and added jquery to my app. works like a charm.
[02:27:36] sevenseacat: honestly, i try and remember writing JS before jquery, and I want to cry.
[02:27:44] constantinexvi: has joined #RubyOnRails
[02:28:00] bergs: remember using XmlHttpRequest directly?
[02:28:26] EXCHGR: has joined #RubyOnRails
[02:28:47] sevenseacat: readyState == 4
[02:28:56] bergs: and document.getElementById EVERYWHERE
[02:29:05] kumavis: has joined #RubyOnRails
[02:30:44] VeryBewitching: I remember not having XmlHttpRequest.
[02:31:13] sevenseacat: thats before my time of tinkering with js
[02:31:32] VeryBewitching: In Netscape Navigator 4.74 no less.
[02:32:17] bergs: real devs use lynx
[02:33:03] Aeyrix: THIS DISK IS SO SLOW
[02:33:08] VeryBewitching: ACTION pets capybara
[02:33:25] AlHafoudh: has joined #RubyOnRails
[02:34:33] bergs: Aeyrix: my money's still on drive failure
[02:34:38] mices: Radar: ty
[02:34:47] bergs: is it clicking yet?
[02:35:37] yfeldblum: has joined #RubyOnRails
[02:35:38] bergs: I had a drive clicking once and I stuck it in the freezer overnight and got it working long enough to do a backup. true story.
[02:36:29] Aeyrix: Lord Moore is testing me.
[02:37:26] bauruine: has joined #RubyOnRails
[02:37:57] vayan: has joined #RubyOnRails
[02:38:16] mickey_mouse: has joined #RubyOnRails
[02:38:34] lele: has joined #RubyOnRails
[02:39:21] bergs: is there a standard user auth gem for rails? I've heard good things about sorcery?
[02:40:19] sikachu_: has joined #RubyOnRails
[02:40:59] VeryBewitching: bergs: devise is probably the one I see referenced most
[02:41:10] uranther_: has joined #RubyOnRails
[02:41:36] FooBarWidget: has joined #RubyOnRails
[02:41:55] VeryBewitching: bergs: Sorcery and AuthLogic are two others that I can think of.
[02:41:56] leeky: has joined #RubyOnRails
[02:42:03] sevenseacat: devise is very very common.
[02:45:04] lacrosse: has joined #RubyOnRails
[02:45:04] Ratler: has joined #RubyOnRails
[02:45:50] sikachu: has joined #RubyOnRails
[02:46:05] spastorino: has joined #RubyOnRails
[02:46:21] cjk101010: has joined #RubyOnRails
[02:47:05] duncannz: has joined #RubyOnRails
[02:48:10] honestemu: has joined #RubyOnRails
[02:48:23] mheld: someone recommended a good book on ecommerce + saas subscriptions in rails using recurly
[02:48:27] mheld: anybody know the name of it?
[02:48:58] mheld: multitennancy w/ rails
[02:48:59] mheld: there we go
[02:49:06] mheld: https://leanpub.com/multi-tenancy-rails-2
[02:49:09] mheld: multi-tenancy*
[02:49:31] mheld: ah it was braintree
[02:50:04] bergs: I've had nightmares about braintree
[02:50:10] golgaroth: has joined #RubyOnRails
[02:50:13] bergs: good luck
[02:50:54] null__: has joined #RubyOnRails
[02:50:55] null__: has joined #RubyOnRails
[02:51:04] mheld: hah I'm not going to use braintree -- it doesn't support something I need it to
[02:51:12] Avon: has joined #RubyOnRails
[02:51:19] d0nn1e: has joined #RubyOnRails
[02:51:32] mheld: oh maybe it does
[02:51:37] mheld: whatever, I'm sold on recurly
[02:55:19] nickenchuggets: has joined #RubyOnRails
[02:55:35] epochwolf: has joined #RubyOnRails
[02:55:44] DanKnox[away]: has joined #RubyOnRails
[02:56:19] Lloyd: has joined #RubyOnRails
[02:56:56] mary5030: has joined #RubyOnRails
[02:57:39] honestemu: has left #RubyOnRails: ("PONG :verne.freenode.net")
[02:58:22] lessless: has joined #RubyOnRails
[02:58:30] Radar: mheld: Hi.
[02:58:32] Radar: Author of MTWR here.
[02:58:45] Radar: mheld: What does Recurly do that Braintree doesn't?
[02:58:53] mheld: I was wrong
[02:58:59] Radar: I am pleased :)
[02:59:02] honestemu: has joined #RubyOnRails
[02:59:18] honestemu: What does an undefined to_key method mean?https://gist.github.com/emilabraham/3d193537e00fd4d5872f
[02:59:43] Radar: honestemu: The thing you're calling to_key on doesn't respond to to_key.
[03:00:01] Radar: honestemu: simple_form_for only takes a single object to work on. It doesn't operate on multiple objects.
[03:00:07] EXCHGR: has joined #RubyOnRails
[03:00:08] Radar: mheld: But what was it, out of curiosity?
[03:00:22] mheld: for some reason I thought that I couldn't have a subscription with add-ons
[03:00:24] mheld: but you can
[03:00:44] mices: how do i create a variable inside a <script> that can include <% and f.whatever
[03:01:02] mices: because rails is interpolating all that
[03:01:29] Radar: !kick mices
[03:01:29] helpa: Radar: No.
[03:01:34] Radar: Hm, I should really fix that.
[03:01:35] Radar: Radar kicked mices: thanks
[03:01:40] Aeyrix: mices: you don't
[03:02:28] contradictioned: has joined #RubyOnRails
[03:02:30] Aeyrix: we broke radar
[03:02:47] sevenseacat: > I can't let you do that, Radar.
[03:02:55] FailBit: I'm crying
[03:02:58] FailBit: that's great
[03:03:05] PlasmaStar: I didn't get it. :(
[03:03:16] lacrosse: has joined #RubyOnRails
[03:03:17] sevenseacat: helpa is a bot.
[03:03:21] kapowaz_: has joined #RubyOnRails
[03:03:24] bergs: !unworthy
[03:03:32] sevenseacat: and Radar is its creator.
[03:03:36] bergs: that's the only bot command I was taught
[03:03:36] ebertx: has joined #RubyOnRails
[03:03:39] bergs: and it doesn't even work :(
[03:03:41] slash_nick: first in the robot uprising to shirk its master
[03:03:49] Aeyrix: What's better is
[03:03:49] Aeyrix: it's Radar's bot.
[03:03:50] jhass: bergs: !unworthy
[03:03:50] helpa: bergs: You are not worthy of this bot!
[03:03:56] jhass: seems to work well
[03:03:57] leeky: has joined #RubyOnRails
[03:03:58] helpa: Just the tips: http://logs.ryanbigg.com/tips
[03:04:09] Aeyrix: Just the tips
[03:04:25] StevePotayTeo: has joined #RubyOnRails
[03:05:00] slash_nick: still unworthy :P
[03:05:20] VeryBewitching: That would have been funny
[03:05:31] Aeyrix: !botsnack
[03:05:31] helpa: Nom nom. Thanks, Aeyrix!
[03:05:31] Aeyrix: okay bot is ded
[03:05:35] mices: has joined #RubyOnRails
[03:05:39] mices: https://gist.github.com/mices/bd9d6c5bd68f2a6fb479
[03:05:49] bergs: is mices a bot too?
[03:05:56] shanemcd: has joined #RubyOnRails
[03:05:56] Radar: bergs: No idea.
[03:06:11] Radar: Ok, I am not helping with that code.
[03:06:19] Radar: Someone else please do that. I don't get paid enough to do that.
[03:06:19] shwoodard_: has joined #RubyOnRails
[03:06:28] FailBit: ACTION gives radar hotpockets
[03:06:33] FailBit: you could do it for free
[03:06:34] Aeyrix: bergs: recurrent neural networks
[03:06:40] jhass: Radar: I think we all get paid the same for it...
[03:06:45] Radar: jhass: +1
[03:06:51] Radar: tl;dr: you can't interpolate Ruby into JS like that, mices.
[03:07:04] FailBit: RJS IS THE BEST AND THE REST IS ALL
[03:07:11] FailBit: ACTION falls over
[03:07:19] Radar: mices: Find the starting_bid field by its ID and then set the disabled attribute to ... whatever it is that makes it disabled.
[03:07:23] sevenseacat: why on earth is there ruby embedded in the JS
[03:07:24] jhass: well, you can. The result making any kind of sense is another question
[03:07:55] slash_nick: well, you can use erb to render a script to page... though maybe not like that
[03:08:36] VeryBewitching: Like I said to mices earlier http://logs.ryanbigg.com/RubyOnRails?date=2015-11-29#4662895
[03:08:39] sevenseacat: what is that code I don't even
[03:08:40] FailBit: use html attributes
[03:08:42] slash_nick: mices: might add to your gist what the output IS for that ^^^
[03:08:45] FailBit: like any sane person
[03:08:58] redondos: has joined #RubyOnRails
[03:09:23] melonstorm: has joined #RubyOnRails
[03:09:37] thejoecarroll: has joined #RubyOnRails
[03:09:47] mices: Radar: ty
[03:09:47] mheld: ugh. I have to roll my own shopping cart
[03:09:52] mices: FailBit: ty
[03:09:57] Radar: mheld: Such a burnde.
[03:10:13] slash_nick: self-rolling-shopping cart... new kickstarter
[03:10:14] FailBit: can I kick him this time
[03:10:30] Radar: FailBit: no reason to, yet.
[03:10:34] Trynemjoel: has joined #RubyOnRails
[03:10:37] mheld: sevenseacat: because all the other ecommerce frameworks + shopping cart gems don't really work for my use case
[03:10:46] FailBit: drunk on sunday night = best of nights
[03:10:53] mheld: sevenseacat: I'm doing an ecommerce subscription thing
[03:11:03] nickenchuggets: has joined #RubyOnRails
[03:11:06] sikachu_: has joined #RubyOnRails
[03:11:08] bergs: omg rails g scaffold
[03:11:09] Radar: very silly helpa
[03:11:12] Radar: I am disappointed
[03:11:13] bergs: why have I been doing this by hand?
[03:11:15] mheld: Radar: hah it's not -- I really don't want to at all
[03:11:15] Radar: rails g shopping_cart tbh
[03:11:23] Radar: bergs: Because it is the way that you'll learn
[03:11:31] bergs: oh, right.
[03:11:36] slash_nick: mices: if youd use spree Radar could help you more
[03:11:38] bergs: I knew there was a reason
[03:11:42] Radar: bergs: Scaffold comes with a bunch of shit that you don't need.
[03:11:49] Radar: HELPA HAS SPOKEN
[03:11:51] mheld: I really wanted to use shoppe or solidus
[03:11:54] mostlybadfly: has joined #RubyOnRails
[03:11:59] Radar: mheld: What do you want the cart to do?
[03:12:05] slash_nick: oh wrong person
[03:12:08] Radar: ACTION has opinions on this kind of thing.
[03:12:10] bergs: FailBit: are you ascending balmer's peak?
[03:12:15] sevenseacat: *coughsplutter*
[03:12:18] FailBit: waaay past it
[03:12:19] Brando753: has joined #RubyOnRails
[03:12:19] Radar: (Surprise)
[03:12:27] sevenseacat: Radar: nowai!
[03:12:37] FailBit: also I thought that was confirmed to be Bullshit??
[03:13:16] honestemu: How do I create a multi-select form? What I have currently results in dropdown. I tried experimenting with multiple => true as an html_option, but that didn't seem to work. https://gist.github.com/emilabraham/97f45065bc342eb9459d
[03:13:16] mheld: Radar: every customer has a monthly subscription for something that's shipped twice a month -- the goods a customer receives can change between shipments
[03:13:18] VeryBewitching: ACTION takes the UTF-8 char map away from FailBit
[03:13:44] jtdowney: has joined #RubyOnRails
[03:13:45] jtdowney: has joined #RubyOnRails
[03:13:45] FailBit: ACTION shoves a ?? in VeryBewitching's face
[03:13:45] mices: slash_nick: ty
[03:13:50] Radar: mheld: Right, so sounds like something very custom. I wish you luck :)
[03:13:58] null__: has joined #RubyOnRails
[03:13:58] null__: has joined #RubyOnRails
[03:14:02] FailBit: these keys are part of my keyboard, VeryBewitching
[03:14:30] FailBit: it's a phone keyboard
[03:14:37] Radar: mheld: What country is this for? US or somewhere else?
[03:14:40] FailBit: is called 'Touchpal'
[03:14:42] tubbo: irc from da phone
[03:14:44] tubbo: like a bawsssss
[03:14:45] cookiez: has joined #RubyOnRails
[03:14:51] Radar: mheld: Have you considered the US sales tax implications for this?
[03:14:51] FailBit: yes, weechat android is amazing
[03:14:55] mheld: Radar: US though maybe intl at some point
[03:14:58] VeryBewitching: FailBit: On, OS keyboard
[03:14:59] tubbo: there's a weechat for android?
[03:15:01] tubbo: that's sweet
[03:15:02] mheld: Radar: yeah!
[03:15:06] Radar: mheld: Ok, good :)
[03:15:07] mheld: Radar: it's intentional
[03:15:15] jiriki: has joined #RubyOnRails
[03:15:21] FailBit: why is there a ??
[03:15:29] FailBit: how do you pronounce that
[03:15:30] Radar: mheld: You'll need to handle refunds too at some point.
[03:15:34] aep: has joined #RubyOnRails
[03:15:39] mheld: don't remind me :-(
[03:15:57] FailBit: VeryBewitching: ?? is nya
[03:16:13] mheld: Radar: oh hey, you built that redis gem!
[03:16:30] Radar: mheld: maintained*
[03:16:35] mheld: hah that one
[03:16:39] sevenseacat: formerly maintained*
[03:16:42] Aeyrix: Is that a sarcasterix
[03:16:47] Radar: Aeyrix: hahaha
[03:16:53] VeryBewitching: FailBit: Look up the French phoenetic
[03:16:57] tubbo: ^ goteeeeem
[03:16:57] sevenseacat: halp how did I get here I am not good with computers
[03:17:11] sevenseacat: ACTION goes back to work
[03:17:18] Aeyrix: On the topic of computers, I'm trying to dd this ISO to a second USB for another try.
[03:17:32] Aeyrix: It's a brand new Inspiron so this should be working. >.<
[03:17:46] FailBit: dd_rescue is muh shit
[03:17:50] cjk101010: has joined #RubyOnRails
[03:17:57] Gm4n: has joined #RubyOnRails
[03:18:01] tubbo: gem install liam_neesons_though
[03:20:05] Aeyrix: The issue is partway through install, though.
[03:20:15] Aeyrix: Secure boot is off etc.
[03:20:55] VeryBewitching: Maybe a USB issue; dd is pretty reliable.
[03:21:05] nickenchuggets: has joined #RubyOnRails
[03:21:05] kapowaz_: has joined #RubyOnRails
[03:21:14] BLuEGoD: has joined #RubyOnRails
[03:21:38] bergs: is dd failing too?
[03:21:56] pfg_: has joined #RubyOnRails
[03:22:11] Aeyrix: just the install
[03:22:13] Aeyrix: on the other laptop
[03:22:19] Aeyrix: dd is taking a fucking long time because USB
[03:22:23] Aeyrix: through a hub
[03:22:48] nyandoge: has joined #RubyOnRails
[03:22:52] VeryBewitching: FailBit: https://en.wikibooks.org/wiki/Polish/Polish_pronunciation
[03:23:19] zly: has joined #RubyOnRails
[03:24:29] dotty: has joined #RubyOnRails
[03:25:38] bergs: "User was successfully created." woot!
[03:26:30] djbkd: has joined #RubyOnRails
[03:27:15] bergs: Aeyrix: do you have any tall structures you can climb to the top of? preferably over some hard ground?
[03:27:27] bergs: it might help to carry the computer up to there and drop it
[03:27:41] Aeyrix: bergs: can i drop myself off it
[03:27:42] execute: has joined #RubyOnRails
[03:27:53] bergs: well I guess either one would end your suffering
[03:28:05] bergs: you know the *nix motto: there's more than one way to do it!
[03:28:24] honestemu: Anyone have any idea on the multi-select question I asked earlier?:P
[03:28:28] Aeyrix: lmao bergs
[03:28:33] bergs: ooh oh I know this one
[03:28:40] bergs: stupid robot
[03:29:42] bergs: !botsnack
[03:29:47] nickenchuggets: has joined #RubyOnRails
[03:29:48] nickenchuggets: has joined #RubyOnRails
[03:29:54] FooBarWidget: has joined #RubyOnRails
[03:30:00] bergs: strange privileges radar.
[03:30:09] dlitz: has joined #RubyOnRails
[03:30:19] sevenseacat: most of the bot commands, you need to be authorized to use.
[03:30:26] bergs: yes but which ones?
[03:30:51] mheld: why would a shopping cart keep a total of its costs?
[03:31:04] mheld: wouldn't it make sense to only keep the product identifier in the cart?
[03:31:33] mices: Radar: reload or https://gist.github.com/mices/bd9d6c5bd68f2a6fb479
[03:31:36] bergs: mheld : what about taxes, coupons and other line item total modifiers?
[03:31:49] mheld: why would that be stored in a shopping cart?
[03:31:55] mheld: wouldn't that be calculated on check out?
[03:32:08] bergs: you're using Spree?
[03:32:59] bergs: in other ecommerce systems I've seen "shopping cart" is just an order in a particular state
[03:35:37] Seich: has joined #RubyOnRails
[03:36:09] nickenchuggets: has joined #RubyOnRails
[03:38:26] golgaroth: has joined #RubyOnRails
[03:39:15] tubbo: most ecommerce systems behave this way ^
[03:40:01] krz: has joined #RubyOnRails
[03:40:07] pfg_: has joined #RubyOnRails
[03:40:51] lacrosse: has joined #RubyOnRails
[03:41:10] LateralOctober: has joined #RubyOnRails
[03:43:09] amitchellbullard: has joined #RubyOnRails
[03:43:11] tekk: has joined #RubyOnRails
[03:44:20] yopp: has joined #RubyOnRails
[03:44:41] mices: Radar: https://gist.github.com/mices/bd9d6c5bd68f2a6fb479
[03:44:49] mices: either way has no effect on the field
[03:45:00] nfsnobody: has joined #RubyOnRails
[03:45:14] w0rd-driven: has joined #RubyOnRails
[03:47:11] Uptime-: has joined #RubyOnRails
[03:47:19] machty: has joined #RubyOnRails
[03:47:50] honestemu: How do I create a form with options from the database?
[03:48:08] honestemu: I think I have to pass the object into the controller, but then what?
[03:48:11] Sawbones: has joined #RubyOnRails
[03:48:15] bergs: oohh I has debugger now
[03:49:30] bergs: honestemu: http://guides.rubyonrails.org/form_helpers.html#select-boxes-for-dealing-with-models ?
[03:49:34] jtdowney: has joined #RubyOnRails
[03:49:34] jtdowney: has joined #RubyOnRails
[03:49:43] nickenchuggets: has joined #RubyOnRails
[03:51:25] lord4163: has joined #RubyOnRails
[03:51:36] LBRapid: has joined #RubyOnRails
[03:52:03] lacrosse: has joined #RubyOnRails
[03:53:39] nickenchuggets: has joined #RubyOnRails
[03:53:39] nickenchuggets: has joined #RubyOnRails
[03:53:46] waseem_: has joined #RubyOnRails
[03:54:01] _3by8: has joined #RubyOnRails
[03:54:01] paradisaeidae: has joined #RubyOnRails
[03:54:02] koprom: has joined #RubyOnRails
[03:54:15] kumavis: has joined #RubyOnRails
[03:54:25] lorn: has joined #RubyOnRails
[03:57:08] kadoppe: has joined #RubyOnRails
[03:57:17] _3by8: So I'm trying to delete an entry in a join table and I'm trying to find an easy way to get its 'id' so I can put ownership_path(id_to_ownership_here) in the view and be done with it. It's a join table consisting of users and printers and in my view, the users are listed and each of that users printers are listed. To list each of the user's printers, I'm using customer.printers.each do |printer| and I'm figuring there has to be a really eas
[03:57:21] svkurowski: has joined #RubyOnRails
[03:57:48] alexblom: has joined #RubyOnRails
[03:57:50] _3by8: Of the entry in the join table.
[03:58:20] sevenseacat: _3by8: !rule0
[03:58:20] helpa: _3by8: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[03:59:03] _3by8: index.html.erb: https://gist.github.com/threebyeight/b1fb12a9f223e56de5c8
[03:59:05] kapowaz_: has joined #RubyOnRails
[03:59:49] kitallis: has joined #RubyOnRails
[04:00:39] kriskhaira: has joined #RubyOnRails
[04:01:08] _3by8: ownerships_controller.rb: https://gist.github.com/threebyeight/1f6093e361cc682f3211
[04:01:25] sikachu: has joined #RubyOnRails
[04:01:29] sevenseacat: whats the association between a customer and printer?
[04:01:38] _3by8: 'ownership'
[04:01:48] sevenseacat: you'd likely want to loop through customer.ownerships, not customer.printers
[04:02:11] michael_mbp: has joined #RubyOnRails
[04:02:37] Scient: has joined #RubyOnRails
[04:02:58] _3by8: That way I can do something like ownership_path(ownership.id)?
[04:03:05] sevenseacat: i'd leave off the .id part, but yes
[04:03:14] _3by8: Cool, thanks. :)
[04:03:54] braincrash: has joined #RubyOnRails
[04:09:06] leeky: has joined #RubyOnRails
[04:09:40] nickenchuggets: has joined #RubyOnRails
[04:09:45] EXCHGR: has joined #RubyOnRails
[04:10:00] universa1: has joined #RubyOnRails
[04:10:50] tejasmanohar: has joined #RubyOnRails
[04:10:52] Avon: has joined #RubyOnRails
[04:11:14] shwoodard_: has joined #RubyOnRails
[04:11:31] Denarii: has joined #RubyOnRails
[04:12:02] epochwolf: has joined #RubyOnRails
[04:12:50] jtdowney: has joined #RubyOnRails
[04:12:51] jtdowney: has joined #RubyOnRails
[04:14:29] amitchellbullard: has joined #RubyOnRails
[04:14:31] baweaver: has joined #RubyOnRails
[04:15:16] juddey: oooh goody! I've always wanted to talk to helpa.
[04:15:41] borkdude: has joined #RubyOnRails
[04:16:04] bronson: has joined #RubyOnRails
[04:18:21] lacrosse: has joined #RubyOnRails
[04:20:44] nickenchuggets: has joined #RubyOnRails
[04:21:27] Avon: has joined #RubyOnRails
[04:22:45] akosednar: has joined #RubyOnRails
[04:24:13] edward_: has left #RubyOnRails: ()
[04:24:25] MEATCHICKEN: has joined #RubyOnRails
[04:24:33] MEATCHICKEN: what does & do in ruby?
[04:24:47] Radar: meatchicken: !rule0
[04:24:47] helpa: meatchicken: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[04:25:00] leeky: has joined #RubyOnRails
[04:25:01] Radar: different things depending on the context
[04:25:37] MEATCHICKEN: https://gist.githubusercontent.com/Edwardzyc/a80e0f8adc534def17ae/raw/6415e268e7acb2c6afdc781a01ab17b66397fdab/gistfile1.txt
[04:25:38] soahccc: has joined #RubyOnRails
[04:25:45] drupald: has joined #RubyOnRails
[04:25:48] MEATCHICKEN: Used between two..scopes
[04:25:59] gr3yR0n1n: has joined #RubyOnRails
[04:26:10] Radar: meatchicken: Put this in an irb session: [1,2] & [2,3]
[04:26:14] Radar: Then be enlightened.
[04:26:58] shwoodard_: has joined #RubyOnRails
[04:27:02] iamayam: has joined #RubyOnRails
[04:27:03] MEATCHICKEN: Radar, what both collections have?
[04:27:13] Radar: meatchicken: Enlightenment acheived.
[04:27:39] MEATCHICKEN: so the line will find all records that both scopes have
[04:28:40] MEATCHICKEN: Radar, I've hit nirvana. thanks
[04:29:20] nickenchuggets: has joined #RubyOnRails
[04:31:01] herenow: has joined #RubyOnRails
[04:31:42] kriskhaira: has joined #RubyOnRails
[04:33:48] paradisaeidae: has joined #RubyOnRails
[04:34:01] apeiros: has joined #RubyOnRails
[04:34:02] amitchellbullard: has joined #RubyOnRails
[04:34:05] ajb: has joined #RubyOnRails
[04:34:50] ^Denis: has joined #RubyOnRails
[04:35:39] shwoodard_: has joined #RubyOnRails
[04:35:50] clamstar: has joined #RubyOnRails
[04:36:38] epochwolf: has joined #RubyOnRails
[04:36:54] levifig: has joined #RubyOnRails
[04:37:47] bergs: [1,2].&([2,3])
[04:38:12] loglaunch: has joined #RubyOnRails
[04:38:39] Marquel: has joined #RubyOnRails
[04:39:37] uranther: has joined #RubyOnRails
[04:40:28] okdas: has joined #RubyOnRails
[04:40:29] okdas: has joined #RubyOnRails
[04:41:08] lele: has joined #RubyOnRails
[04:41:32] soahccc: has joined #RubyOnRails
[04:43:08] DarkBushido: has joined #RubyOnRails
[04:43:09] DarkBushido: has joined #RubyOnRails
[04:43:26] bergs: Array.[](1,2).&(Array.[](2,3)) DUH meatchicken. ruby is so clear.
[04:44:00] Paradox: has joined #RubyOnRails
[04:46:06] bergs: ooh there (used to be) a obfuscated ruby contest! is that still going on?
[04:46:11] bergs: google is showing me entries from 2005
[04:46:16] kriskhaira: has joined #RubyOnRails
[04:47:03] bergs: http://www.rubyinside.com/advent2006/4-ruby-obfuscation.html
[04:48:37] vayan: has joined #RubyOnRails
[04:48:56] bahar: has joined #RubyOnRails
[04:49:02] Voxxit: has joined #RubyOnRails
[04:49:08] nickenchuggets: has joined #RubyOnRails
[04:50:05] soahccc: has joined #RubyOnRails
[04:50:23] Papierkorb: has joined #RubyOnRails
[04:51:27] Avon: has joined #RubyOnRails
[04:52:46] shaman42: has joined #RubyOnRails
[04:53:48] kriskhaira: has joined #RubyOnRails
[04:55:45] Guest11: has joined #RubyOnRails
[04:56:08] EXCHGR: has joined #RubyOnRails
[04:56:12] many: has joined #RubyOnRails
[04:56:31] ewnd9: has joined #RubyOnRails
[05:00:37] llakey: has joined #RubyOnRails
[05:00:53] sikachu_: has joined #RubyOnRails
[05:00:54] nickenchuggets: has joined #RubyOnRails
[05:02:12] skarn: has joined #RubyOnRails
[05:02:28] kriskhaira: has joined #RubyOnRails
[05:07:26] machty: has joined #RubyOnRails
[05:07:39] webdestroya: has joined #RubyOnRails
[05:09:06] DarkBushido: has joined #RubyOnRails
[05:09:07] FooBarWidget: has joined #RubyOnRails
[05:09:18] maloik: has joined #RubyOnRails
[05:10:01] leeky: has joined #RubyOnRails
[05:15:39] epochwolf: has joined #RubyOnRails
[05:17:01] bronson: has joined #RubyOnRails
[05:20:21] null__: has joined #RubyOnRails
[05:20:22] null__: has joined #RubyOnRails
[05:20:55] shwoodard_: has joined #RubyOnRails
[05:22:32] mices: Radar: https://gist.github.com/mices/bd9d6c5bd68f2a6fb479
[05:22:44] Radar: That is not the same code as what I shwoed you.
[05:22:48] Radar: Please look at the code that i showed you.
[05:22:53] Radar: http://codepen.io/anon/pen/epqRgR
[05:23:12] Radar: And stop using getElementById. use Jquery's $('#id-goes-here')
[05:23:37] DarkBushido: has joined #RubyOnRails
[05:24:54] ace05: has joined #RubyOnRails
[05:25:38] vayan: has joined #RubyOnRails
[05:25:40] mices: Radar: that code doesn't do the same thing i'm trying to do though, it puts the value of the select into the text field
[05:25:42] amitchellbullard: has joined #RubyOnRails
[05:25:49] Radar: So adapt the bloody code.
[05:25:59] mices: that's what i'm doing
[05:26:19] Radar: if (e.target.value=('Fixed price')
[05:26:27] Radar: This should be if (e.target_value == 'Fixed Price'
[05:26:35] Radar: document.getElementById("starting_bid")
[05:26:43] Radar: This should be $("#starting_bid")
[05:27:28] zoidfarb: has joined #RubyOnRails
[05:28:23] zoidfarb: Hello, if I'm using simple_form with Rails4, is there anything special I need to do in the controller (or view?) to make form validation errors show up?
[05:29:58] jarray52: has joined #RubyOnRails
[05:30:37] soahccc: has joined #RubyOnRails
[05:30:40] cookiez: has joined #RubyOnRails
[05:33:41] ELCALOR: has joined #RubyOnRails
[05:33:42] krz: has joined #RubyOnRails
[05:33:50] Lloyd: has joined #RubyOnRails
[05:34:20] Radar: zoidfarb: !rule0
[05:34:20] helpa: zoidfarb: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[05:34:26] nyaa: has joined #RubyOnRails
[05:35:54] ace05: has joined #RubyOnRails
[05:36:49] sfr^: has joined #RubyOnRails
[05:37:02] leeky: has joined #RubyOnRails
[05:38:12] lacrosse: has joined #RubyOnRails
[05:38:24] zoidfarb: relevant bit of view: http://fpaste.org/295693/61798144/ controller method: http://fpaste.org/295694/14488618/
[05:39:15] helpa: Do not use any service that is not Pastie or Gist to post code. Pastebin, for example has a tiny font and it has ads on it which cause the page to load slowly. Other paste services generally look like crap.
[05:39:48] Radar: Are you sure that there are actual errors?
[05:39:55] Radar: Simple form should show them inline.
[05:40:01] atrius: has joined #RubyOnRails
[05:40:22] russt: has joined #RubyOnRails
[05:40:48] zoidfarb: Radar: Yeah, I was expecting to see them inline. Submitting a blank form drops the browser back on the same page, with no errors displayed
[05:41:06] amitchellbullard: has joined #RubyOnRails
[05:41:14] Radar: I don't know how that's happening, sorry.
[05:41:21] sevenseacat: controller code?
[05:41:32] sevenseacat: oh there it is
[05:41:34] zoidfarb: sevenseacat: Second link
[05:41:38] sevenseacat: yeah got it :)
[05:41:51] zoidfarb: sevenseacat: I can post more context if needed. Thanks for your help
[05:42:09] CheckYourSix: has joined #RubyOnRails
[05:43:01] Diabolik: has joined #RubyOnRails
[05:43:22] sevenseacat: so what view is the posted view? the index view?
[05:43:41] davout: does anyone know of a good content editing gem that also handles images attachments to the content ?
[05:44:28] davout: i have some model i'd like to be able to attach content to, user would be able to edit something that resembles a blog post associated to it, and attach pictures to the content
[05:44:33] zoidfarb: sevenseacat: Yes
[05:44:43] zoidfarb: sevenseacat: Ah-ha! Figured it out!
[05:44:51] sevenseacat: what was the problem?
[05:45:10] davout: i was thinking i should take a blogging engine gem and use some parts of it, someone here ever did something similar ?
[05:45:11] zoidfarb: sevenseacat: Blank form with an empty shopping cart is erroring because @current_sale.number_of_items > 0
[05:45:23] upgrayeddd: has joined #RubyOnRails
[05:45:27] zoidfarb: sevenseacat: So it's not actually failing the form-field validations
[05:45:42] zoidfarb: sevenseacat: I should probably add separate error handling for that as a different error case
[05:45:47] skarn: has joined #RubyOnRails
[05:47:46] vying: has joined #RubyOnRails
[05:47:55] ekem: hello, i have a question about engines: I am trying to mount an engine inside of another engine to be mounted in an application
[05:48:21] ekem: so engine A and B and app C
[05:49:16] ekem: so i can get engine B mounted in engine A just fine, i require the libs to engine B in lib/appname/engine.rb
[05:49:23] ekem: of engine A
[05:49:31] sevenseacat: ACTION waits patiently for a question
[05:49:33] ekem: but then when i mount engine A into app C
[05:49:37] ekem: yeah im sorry!
[05:49:46] bauruine: has joined #RubyOnRails
[05:49:47] sevenseacat: ACTION is just going to !rule0 anyway
[05:49:47] ekem: app C goes "nope cant find libs of engine B"
[05:49:50] helpa: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[05:49:58] ekem: there is not much code here
[05:50:12] machty: has joined #RubyOnRails
[05:50:14] ekem: basically a require 'engineName'
[05:50:26] ekem: im not sure how to make all those libs from engine B accessible to app C
[05:50:41] AlHafoudh: has joined #RubyOnRails
[05:50:58] spastorino: has joined #RubyOnRails
[05:51:19] Radar: !specific
[05:51:19] helpa: Questions concerning problems with code you've written must describe the specific problem and include valid code to reproduce it. See http://SSCCE.org for guidance.
[05:51:32] ekem: ok thanks, ill make a write up or something
[05:51:35] Radar: Thank you.
[05:51:56] sevenseacat: I like that one too.
[05:51:58] ekem: i started and it escalated
[05:53:33] Radar: I went looking for a tip that has "reproduce" in its text, and found that
[05:53:56] sevenseacat: sometimes past us can be kinda useful.
[05:55:15] nyanz: has joined #RubyOnRails
[05:55:45] Guest4184__: has joined #RubyOnRails
[05:55:49] hellschreiber_: has joined #RubyOnRails
[05:57:29] chancancode_: has joined #RubyOnRails
[05:57:33] gambl0re: i dont understand, what is the purpose of using such languages such as coffeescript, typescript, cappucinoscript etc...when you can just write normal javascript syntax?
[05:57:47] xybre: I think that's exactly the point.
[05:58:22] sevenseacat: people don't like normal JavaScript syntax.
[05:58:58] gambl0re: so why doesnt douglas crockford change it...
[05:59:09] gambl0re: or whoever the creators of js are...
[05:59:17] gambl0re: if its hated that much
[05:59:34] sevenseacat: because they like it
[05:59:45] gambl0re: who likes it
[05:59:51] sevenseacat: the people who wrote it
[05:59:55] sikachu_: has joined #RubyOnRails
[06:00:08] gambl0re: but a lot of people dont....
[06:00:28] sevenseacat: you can't please everyone
[06:00:33] gambl0re: so they should change it so the syntax appeals to the masses...
[06:00:46] sevenseacat: it does appeal to the masses.
[06:01:01] gambl0re: it makes harder for us to keep up with all these new syntax...
[06:01:03] sevenseacat: you also can't radically change anything thats built into every browser, with a lot of hassle.
[06:01:10] maloik: has joined #RubyOnRails
[06:01:11] sevenseacat: no-one's making you use coffeescript, typescript, etc.
[06:01:19] sevenseacat: if you don't want to use them, don't use them.
[06:01:31] ur5us: has joined #RubyOnRails
[06:01:52] gambl0re: when looking for jobs, i see some as part of the requirements and its bs..
[06:02:12] gambl0re: "must be coffeescript ninja"...
[06:02:45] gambl0re: by the way, hows perth?...
[06:02:48] shwoodard_: has joined #RubyOnRails
[06:02:55] EXCHGR: has joined #RubyOnRails
[06:03:51] gambl0re: if you shop at herdsman fresh, tell the workers i said hi
[06:04:55] sevenseacat: no idea where that is, so i probably won't :)
[06:05:36] ekem: ok, i gave it a shot
[06:05:36] ekem: https://gist.github.com/rogosher/6a7c07e2c01b491b87b4
[06:05:55] ekem: ill even take suggestions on how to better ask the question ^_^
[06:06:14] Radar: Where is this file? /vagrant/src/larinia/config/initializers/comfortable_mexican_sofa.rb
[06:06:29] Radar: Likely you're not requiring a file from the engine.
[06:06:33] Radar: Load paths should be setup fine.
[06:07:43] sikachu_: has joined #RubyOnRails
[06:08:01] DanKnox[away]: has joined #RubyOnRails
[06:08:06] ekem: that file is in engine A
[06:08:13] ekem: or the engine being mounted in the rails app
[06:08:16] Radar: Show us config/initializers/comfortable_mexican_sofa.rb
[06:08:34] ekem: thank you btw
[06:09:35] ekem: https://gist.github.com/rogosher/6a7c07e2c01b491b87b4
[06:09:38] ekem: ok, added to the gist
[06:09:45] ekem: i commented out line 88
[06:09:51] ekem: #config.variations = [:en, :fr, :es]
[06:10:02] ekem: that was also throwing errors, so i commented it out to see what happens
[06:10:09] Radar: https://gist.github.com/rogosher/6a7c07e2c01b491b87b4#file-comfortable_mexican_sofa-rb-L94
[06:10:12] Radar: This is the line that is causing your issue
[06:10:24] Radar: You might need to require 'comfortable_mexican_sofa/http_auth' before this line.
[06:10:24] ekem: yeah, i know that radar, for sure
[06:10:33] ekem: so do i need to include all the libs
[06:10:36] ekem: in my application.rb
[06:10:42] ekem: er, uh all of the libs used in CMS
[06:10:44] Radar: ... no, just the files that define constants.
[06:10:56] ekem: well see, it did that for variations
[06:10:56] Radar: So far, it's just one file.
[06:11:05] ekem: so my assumption is, it will be all dependencies for CMS missing
[06:11:24] ekem: so i would guess....
[06:11:24] ekem: https://github.com/comfy/comfortable-mexican-sofa/blob/master/lib/comfortable_mexican_sofa/engine.rb
[06:11:38] ekem: every one of those libs needs to be in my app? but i dont know enough about rails to know this
[06:11:56] Radar: ACTION hands answer on silver platter, watches in dismay as ekem goes off on a completely unrelated tangent.
[06:12:25] ekem: Radar, i agree with you putting in that lib will squelch that error
[06:12:32] ekem: but then it will look for the next lib and error out
[06:12:36] mary5030: has joined #RubyOnRails
[06:12:36] Radar: Great! Problem solved. Everyone: go home happy.
[06:12:40] Radar: Proof plz.
[06:12:53] ekem: above i gave the example
[06:13:02] ekem: #config.variations = [:en, :fr, :es]
[06:13:10] ekem: it errored out saying cant find variations
[06:13:12] ekem: so i commented
[06:13:20] ekem: goes two lines too httpauth and errors
[06:13:21] Radar: I missed the part where that error happened?
[06:13:37] ekem: i put it in irc, i can run the app again if you want to see that error
[06:13:41] Radar: There is only one mention of variations in https://gist.github.com/rogosher/6a7c07e2c01b491b87b4
[06:13:50] kriskhaira: has joined #RubyOnRails
[06:13:58] ekem: yeah, i had forgot i commented that out after posting the gist
[06:14:05] ekem: and vagrant with rsync is a pain to make quick edits
[06:14:13] ekem: it only watchs for file changes one way :(
[06:14:41] ekem: im wondering if there is a rails way to just plop all the libs from engine B into the app
[06:14:48] ekem: but i cant find any reference with googl fu
[06:15:09] Radar: !consultant
[06:15:09] helpa: Your question, problem, and/or attitude requires more than free internet advice from an irc channel. May I suggestion hiring a consultant or life coach?
[06:15:24] ekem: i was hoping someone had attempted this and would be like
[06:15:25] melonstorm: has joined #RubyOnRails
[06:15:29] ekem: "let me save you headache"
[06:16:05] pawnbox: has joined #RubyOnRails
[06:16:09] Sirecote: has joined #RubyOnRails
[06:16:54] ekem: hey Radar, thanks a ton
[06:17:07] execute: has joined #RubyOnRails
[06:20:30] ekem: i guess i could also phrase this question as `app->gem->`
[06:20:42] ekem: app->gem->gem
[06:21:58] Radar: Seeing this break in a real example that I could play around with would really help.
[06:22:00] roshanavand: has joined #RubyOnRails
[06:22:12] Ratler: has joined #RubyOnRails
[06:22:18] Radar: From what I've seen so far: you had an exception, I gave you the answer, and somehow stuff is still broken?
[06:22:33] gbailey: has joined #RubyOnRails
[06:22:54] ekem: Radar, yeah i could try resolving each depency one after the other until there is a solution
[06:23:03] ekem: then maybe build a nice method to auto include what im missing
[06:23:23] ekem: which is probably what i will do, but there is an intended way to do this i would guess
[06:23:45] ekem: so im searching in public channels for that before i monkey patch a cancerous solution
[06:23:45] Radar: typically you'd explicitly require things as you need them
[06:24:12] ekem: normal behavior for an engine is to auto include the libs, and i assume that happens in application.rb
[06:24:17] borkdude: has joined #RubyOnRails
[06:24:23] ekem: Bundler.require(*Rails.groups)
[06:24:45] ekem: so if i require the libs to engine A, i guess its not grabbing the libs for engine B
[06:25:06] Radar: [17:21:58] <Radar> Seeing this break in a real example that I could play around with would really help.
[06:25:13] Radar: Goodnight. Time for me to go do other things.
[06:25:20] ekem: is vagrant a good way to do that?
[06:25:36] ekem: cause i can share a vagrant through github 4 sure
[06:25:38] ekem: and night night
[06:26:21] arthurnn: has joined #RubyOnRails
[06:26:50] jtdowney: has joined #RubyOnRails
[06:26:50] jtdowney: has joined #RubyOnRails
[06:29:49] _3by8: has joined #RubyOnRails
[06:33:35] EXCHGR: has joined #RubyOnRails
[06:34:05] Avon: has joined #RubyOnRails
[06:34:13] soahccc: has joined #RubyOnRails
[06:35:29] ur5us: has joined #RubyOnRails
[06:37:07] kumavis: has joined #RubyOnRails
[06:39:33] leeky: has joined #RubyOnRails
[06:41:15] pfg_: has joined #RubyOnRails
[06:41:56] lxsameer: has joined #RubyOnRails
[06:42:43] golgaroth: has joined #RubyOnRails
[06:44:50] ibouvousaime: has joined #RubyOnRails
[06:52:33] rickmasta: has joined #RubyOnRails
[06:53:11] trautwein: has joined #RubyOnRails
[06:54:04] leeky: has joined #RubyOnRails
[06:58:11] lorn: has joined #RubyOnRails
[06:58:36] yardenbar: has joined #RubyOnRails
[06:59:26] dopie: Ugh can anyone help me here with implementing drop zone js?
[06:59:45] spastorino: has joined #RubyOnRails
[06:59:58] helpa: Nope. No one. Ever. In the history of the world.
[07:00:07] dopie: yeah i figured
[07:01:24] LBRapid: has joined #RubyOnRails
[07:04:01] ebertx: has joined #RubyOnRails
[07:04:22] uranther: has joined #RubyOnRails
[07:05:15] DoubleMalt: has joined #RubyOnRails
[07:06:07] naftilos76: has joined #RubyOnRails
[07:07:11] drPoggs: has joined #RubyOnRails
[07:08:01] kadoppe: has joined #RubyOnRails
[07:09:10] kitallis: has joined #RubyOnRails
[07:09:29] Gm4n: has joined #RubyOnRails
[07:10:35] shwoodard_: has joined #RubyOnRails
[07:10:38] lacrosse: has joined #RubyOnRails
[07:10:40] uranther: has joined #RubyOnRails
[07:10:50] Lloyd: has joined #RubyOnRails
[07:11:20] BLuEGoD: has joined #RubyOnRails
[07:11:55] Macaveli: has joined #RubyOnRails
[07:13:48] upgrayeddd: has joined #RubyOnRails
[07:14:04] kimegede: has joined #RubyOnRails
[07:15:22] epochwolf: has joined #RubyOnRails
[07:18:42] bronson: has joined #RubyOnRails
[07:19:37] yogeshrt: has joined #RubyOnRails
[07:19:54] akosednar: has joined #RubyOnRails
[07:23:07] jtdowney: has joined #RubyOnRails
[07:23:07] jtdowney: has joined #RubyOnRails
[07:23:56] pawnbox: has joined #RubyOnRails
[07:25:01] sfr^: has joined #RubyOnRails
[07:26:31] Diabolik: has joined #RubyOnRails
[07:27:32] Brando753: has joined #RubyOnRails
[07:28:02] Diabolik: has joined #RubyOnRails
[07:28:36] prasselpikachu: has joined #RubyOnRails
[07:29:55] ewnd9: has joined #RubyOnRails
[07:31:21] DarkBushido: has joined #RubyOnRails
[07:32:05] leeky: has joined #RubyOnRails
[07:32:55] Diabolik: has joined #RubyOnRails
[07:35:03] spastorino: has joined #RubyOnRails
[07:35:06] Diabolik: has joined #RubyOnRails
[07:35:45] FooBarWidget: has joined #RubyOnRails
[07:38:24] epochwolf: has joined #RubyOnRails
[07:40:27] bergs: has joined #RubyOnRails
[07:42:57] FooBarWidget: has joined #RubyOnRails
[07:44:00] Macaveli: has joined #RubyOnRails
[07:44:54] krz: has joined #RubyOnRails
[07:45:23] shwoodard__: has joined #RubyOnRails
[07:46:37] clamstar: has joined #RubyOnRails
[07:47:02] sikachu_: has joined #RubyOnRails
[07:48:49] exadeci: has joined #RubyOnRails
[07:50:01] waseem_: has joined #RubyOnRails
[07:50:50] contradictioned: has joined #RubyOnRails
[07:51:12] DanKnox[away]: has joined #RubyOnRails
[07:51:12] ponky: has joined #RubyOnRails
[07:53:15] jtdowney: has joined #RubyOnRails
[07:53:15] jtdowney: has joined #RubyOnRails
[07:53:26] epochwolf: has joined #RubyOnRails
[07:54:53] DarkBushido: has joined #RubyOnRails
[07:55:27] MaDErroR123: has joined #RubyOnRails
[07:55:28] KnownSyntax: has joined #RubyOnRails
[07:55:51] exadeci: has joined #RubyOnRails
[07:56:00] LBRapid: has joined #RubyOnRails
[07:58:40] Brando753: has joined #RubyOnRails
[08:00:20] noodle: has joined #RubyOnRails
[08:00:29] spastorino_: has joined #RubyOnRails
[08:00:41] adac: has joined #RubyOnRails
[08:01:00] aep: has joined #RubyOnRails
[08:01:10] dopie: Hellooooo Helloooo
[08:05:16] rvanlieshout: has joined #RubyOnRails
[08:05:23] kimegede: has joined #RubyOnRails
[08:05:55] Avon: has joined #RubyOnRails
[08:06:02] machty: has joined #RubyOnRails
[08:06:09] hellschreiber_: has joined #RubyOnRails
[08:07:38] tagrudev: has joined #RubyOnRails
[08:07:42] ELCALOR: has joined #RubyOnRails
[08:09:00] kitsuneyo: has joined #RubyOnRails
[08:09:30] FooBarWidget: has joined #RubyOnRails
[08:10:05] dotty: has joined #RubyOnRails
[08:10:18] squiercaster: has joined #RubyOnRails
[08:10:45] borkdude: has joined #RubyOnRails
[08:11:06] leeky: has joined #RubyOnRails
[08:11:10] solars: has joined #RubyOnRails
[08:11:35] MaDErroR123: has joined #RubyOnRails
[08:11:42] lacrosse_: has joined #RubyOnRails
[08:11:53] Lloyd__: has joined #RubyOnRails
[08:13:02] defsdoor: has joined #RubyOnRails
[08:14:34] DanielN: has joined #RubyOnRails
[08:15:05] okdas: has joined #RubyOnRails
[08:15:05] okdas: has joined #RubyOnRails
[08:15:09] yogeshrt: has joined #RubyOnRails
[08:15:16] gr3yR0n1n: has joined #RubyOnRails
[08:15:27] aganov: has joined #RubyOnRails
[08:15:49] pawnbox: has joined #RubyOnRails
[08:16:28] svkurowski: has joined #RubyOnRails
[08:16:53] sandstrom: has joined #RubyOnRails
[08:16:53] comrad: has joined #RubyOnRails
[08:17:07] many: has joined #RubyOnRails
[08:17:34] d0nn1e: has joined #RubyOnRails
[08:17:34] FCser: has joined #RubyOnRails
[08:17:41] nocontrol: has joined #RubyOnRails
[08:17:57] spastorino: has joined #RubyOnRails
[08:17:58] bahar: has joined #RubyOnRails
[08:18:04] maloik: has joined #RubyOnRails
[08:18:05] drupald: has joined #RubyOnRails
[08:18:24] russt: has joined #RubyOnRails
[08:18:40] darutoko: has joined #RubyOnRails
[08:18:53] Sawbones: has joined #RubyOnRails
[08:19:47] Pumukel: has joined #RubyOnRails
[08:19:54] bronson: has joined #RubyOnRails
[08:20:10] shtirlic: has joined #RubyOnRails
[08:21:08] gnugmanov: has joined #RubyOnRails
[08:21:15] jtdowney: has joined #RubyOnRails
[08:21:16] jtdowney: has joined #RubyOnRails
[08:21:18] StevePotayTeo: has joined #RubyOnRails
[08:21:41] braincrash: has joined #RubyOnRails
[08:21:48] User458764: has joined #RubyOnRails
[08:21:55] shinnya: has joined #RubyOnRails
[08:21:56] lord4163: has joined #RubyOnRails
[08:22:00] loglaunch: has joined #RubyOnRails
[08:22:01] machty_: has joined #RubyOnRails
[08:22:07] brunto: has joined #RubyOnRails
[08:22:19] BLuEGoD: has joined #RubyOnRails
[08:22:31] webdestroya: has joined #RubyOnRails
[08:23:56] srinidhi: has joined #RubyOnRails
[08:24:13] ajb: has joined #RubyOnRails
[08:24:35] workmaster2n: has joined #RubyOnRails
[08:26:05] Pumukel: has joined #RubyOnRails
[08:26:08] llakey: has joined #RubyOnRails
[08:26:11] ^Denis: has joined #RubyOnRails
[08:27:53] michael_mbp: has joined #RubyOnRails
[08:28:58] iateadonut: has joined #RubyOnRails
[08:29:05] sikachu_: has joined #RubyOnRails
[08:29:09] jas02: has joined #RubyOnRails
[08:29:35] CornishPasty: has joined #RubyOnRails
[08:29:37] krainboltgreene: has joined #RubyOnRails
[08:30:19] ebryn: has joined #RubyOnRails
[08:30:19] RubyNewbey_: has joined #RubyOnRails
[08:30:25] jlyndon: has joined #RubyOnRails
[08:30:28] nyandoge: has joined #RubyOnRails
[08:30:28] Sawbones: has joined #RubyOnRails
[08:30:32] tejasmanohar: has joined #RubyOnRails
[08:30:36] amitchellbullard: has joined #RubyOnRails
[08:30:37] Guest4184__: has joined #RubyOnRails
[08:30:37] chancancode_: has joined #RubyOnRails
[08:30:38] kriskhaira: has joined #RubyOnRails
[08:30:40] akshat: has joined #RubyOnRails
[08:30:40] golgaroth: has joined #RubyOnRails
[08:30:43] uranther: has joined #RubyOnRails
[08:30:47] shwoodard__: has joined #RubyOnRails
[08:30:48] exadeci: has joined #RubyOnRails
[08:30:52] hellschreiber_: has joined #RubyOnRails
[08:30:53] ELCALOR: has joined #RubyOnRails
[08:30:54] dotty: has joined #RubyOnRails
[08:30:55] lacrosse: has joined #RubyOnRails
[08:31:05] BLuEGoD: has joined #RubyOnRails
[08:31:05] machty: has joined #RubyOnRails
[08:31:19] hackeron: has joined #RubyOnRails
[08:31:56] sikachu_: has joined #RubyOnRails
[08:32:07] leeky: has joined #RubyOnRails
[08:32:13] tvw: has joined #RubyOnRails
[08:32:34] MissionCritical: has joined #RubyOnRails
[08:32:38] noodle: has joined #RubyOnRails
[08:32:59] soahccc: has joined #RubyOnRails
[08:33:16] DanKnox[away]: has joined #RubyOnRails
[08:33:16] Lloyd: has joined #RubyOnRails
[08:34:42] pfg_: has joined #RubyOnRails
[08:34:42] vayan: has joined #RubyOnRails
[08:34:47] jlyndon: has joined #RubyOnRails
[08:36:03] yogeshrt: has joined #RubyOnRails
[08:36:15] futilegames: has joined #RubyOnRails
[08:36:58] RubyNewbey_: has joined #RubyOnRails
[08:37:18] sandstrom: has joined #RubyOnRails
[08:37:44] jas02: has joined #RubyOnRails
[08:38:10] ebryn: has joined #RubyOnRails
[08:38:12] uranther: has joined #RubyOnRails
[08:38:42] nettoweb: has joined #RubyOnRails
[08:39:17] Avon: has joined #RubyOnRails
[08:40:35] amitchellbullard: has joined #RubyOnRails
[08:41:44] annlewis: has joined #RubyOnRails
[08:42:09] kriskhaira: has joined #RubyOnRails
[08:42:21] chancancode_: has joined #RubyOnRails
[08:43:44] shwoodard__: has joined #RubyOnRails
[08:43:58] nyandoge: has joined #RubyOnRails
[08:44:03] kimegede: has joined #RubyOnRails
[08:44:12] kmckelvin: has joined #RubyOnRails
[08:44:44] edwinvdgraaf: has joined #RubyOnRails
[08:46:18] sikachu_: has joined #RubyOnRails
[08:47:36] kumavis: has joined #RubyOnRails
[08:47:42] lacrosse: has joined #RubyOnRails
[08:47:44] vayan: has joined #RubyOnRails
[08:47:48] MaDErroR123: has joined #RubyOnRails
[08:47:49] ace05: has joined #RubyOnRails
[08:47:54] dotty: has joined #RubyOnRails
[08:48:06] tejasmanohar: has joined #RubyOnRails
[08:48:18] atrius: has joined #RubyOnRails
[08:48:46] null__: has joined #RubyOnRails
[08:48:47] null__: has joined #RubyOnRails
[08:48:54] blackmesa: has joined #RubyOnRails
[08:50:43] MaDErroR123: has joined #RubyOnRails
[08:51:04] bauruine: has joined #RubyOnRails
[08:51:38] amitchellbullard: has joined #RubyOnRails
[08:51:58] kitsuneyo: this channel working today?
[08:52:38] chancancode_: has joined #RubyOnRails
[08:52:44] kitsuneyo: hi sevenseacat
[08:52:46] nyandoge: has joined #RubyOnRails
[08:54:13] kitsuneyo: maybe you can help me figure this out: https://gist.github.com/kitsuneyo/34356ae83ec9003b0d73
[08:54:14] sikachu_: has joined #RubyOnRails
[08:54:39] yfeldblum: has joined #RubyOnRails
[08:54:57] sevenseacat: do we have to guess what the problem is?
[08:54:59] soahccc: has joined #RubyOnRails
[08:55:32] kitsuneyo: i have a person model where records belong_to a location. in my new person form i accept nested attributes for location, but the fields only show when i use fields for locations. they disappear when i use fields for location (singular)
[08:56:31] sevenseacat: kitsuneyo: the @person in your form doesnt have a location, therefore the location fields dont show.
[08:57:08] kitsuneyo: i guess that makes sense...
[08:58:01] shwoodard___: has joined #RubyOnRails
[08:58:10] arthurnn: has joined #RubyOnRails
[08:58:15] kitsuneyo: sevenseacat do i need to use @location = Location.new or something like that?
[08:58:23] lele: has joined #RubyOnRails
[08:58:25] blackmesa: has joined #RubyOnRails
[08:58:30] sevenseacat: that doesnt have anything to do with the @person in the form
[08:58:43] amitchellbullard: has joined #RubyOnRails
[08:58:44] kriskhaira: has joined #RubyOnRails
[08:58:47] golgaroth: has joined #RubyOnRails
[08:58:57] AlHafoudh: has joined #RubyOnRails
[08:59:18] artto: has joined #RubyOnRails
[08:59:36] kitsuneyo: i don't understand then, because i've used this method before. although the fields_for then were for a join table
[08:59:47] CornishPasty: Hello fellow humans, and helpa
[08:59:48] borkdude: has joined #RubyOnRails
[09:00:14] kitsuneyo: hi CornishPasty
[09:00:20] sevenseacat: kitsuneyo: what is 'this method'?
[09:00:38] kitsuneyo: fields_for and accepts_nested_attributes
[09:00:45] sevenseacat: and that will work here too
[09:01:19] sevenseacat: as soon as you get your data right
[09:01:38] ace05: has joined #RubyOnRails
[09:02:29] sevenseacat: if the @person doesnt have a location associated, what fields exactly are supposed to show?
[09:03:18] kitsuneyo: sevenseacat, the @person doesn't have a name either but that field shows
[09:03:28] sevenseacat: the name isnt an associated record
[09:03:35] sevenseacat: its part of the person record
[09:03:47] sevenseacat: it still has a name, its just nil
[09:03:47] jsrn_: has joined #RubyOnRails
[09:03:50] kitsuneyo: so should i set some dummy location id first?
[09:04:12] sevenseacat: you should build a new location object. you said you've done this before, what did you do thre?
[09:04:48] arBmind: has joined #RubyOnRails
[09:05:24] kitsuneyo: i did use the build method actually
[09:05:57] shwoodard___: has joined #RubyOnRails
[09:06:32] davidcelis: has joined #RubyOnRails
[09:06:32] davidcelis: has joined #RubyOnRails
[09:07:07] kitsuneyo: it was a little different, because the object belonged to current_user... so i had current_user.person.build(person_params)
[09:07:42] pfg_: has joined #RubyOnRails
[09:09:08] ebryn: has joined #RubyOnRails
[09:09:08] epochwolf: has joined #RubyOnRails
[09:09:50] many: has joined #RubyOnRails
[09:10:42] sevenseacat: I dont think you did that when you were rendering the form for a new person
[09:12:10] User458764: has joined #RubyOnRails
[09:13:04] kitsuneyo: sevenseacat, using f.fields_for @location and adding @location = Location.new to the index action, the fields show
[09:13:33] sevenseacat: thats all well and good but now you're working on an unassociated location and person record
[09:13:39] sevenseacat: when editing a person, that wont work
[09:13:49] RubyNewbey_: has joined #RubyOnRails
[09:13:50] sevenseacat: build a location belonging to the person
[09:13:59] sikachu_: has joined #RubyOnRails
[09:14:03] sevenseacat: just like you would have built a person belonging to the current_user
[09:14:37] EXCHGR: has joined #RubyOnRails
[09:14:57] contradictioned: has joined #RubyOnRails
[09:16:09] vayan: has joined #RubyOnRails
[09:18:37] RubyNewbey__: has joined #RubyOnRails
[09:18:41] ebryn: has joined #RubyOnRails
[09:18:46] chancancode_: has joined #RubyOnRails
[09:19:21] kitsuneyo: then where does find_or_create_by come in?
[09:19:51] sevenseacat: in this case, it doesnt, as far as i can see
[09:20:13] lacrosse: has joined #RubyOnRails
[09:20:47] sevenseacat: thats the whole point of using accepts_nested_attributes_for - you dont have to create a Location directly, you just give the Person all the attributes and it handles creating it
[09:21:20] kitsuneyo: but i only want to create a location if it doesn't exist already
[09:21:39] kitsuneyo: a location is created by using geocoder to look up a google place id
[09:22:03] kitsuneyo: i realise you didn't know that
[09:22:19] sevenseacat: so you dont actually want a fields_for at all?
[09:22:26] sevenseacat: you just want a location_id field ?
[09:22:51] sevenseacat: it appears I had no idea what you were actually trying to do.
[09:23:18] melonstorm: has joined #RubyOnRails
[09:23:30] DarkBushido: has joined #RubyOnRails
[09:23:32] kitsuneyo: i thought I could create the location if necessary, then save the location_id after
[09:23:40] matthewd: has joined #RubyOnRails
[09:23:47] kitsuneyo: i thought fields_for was a good way to do it
[09:23:47] borkdude: has joined #RubyOnRails
[09:24:50] sevenseacat: its... not how I would do it
[09:24:53] amitchellbullard: has joined #RubyOnRails
[09:25:13] sevenseacat: I think. I'm still not sure what you're actually doing.
[09:27:11] ur5us: has joined #RubyOnRails
[09:28:51] shwoodard___: has joined #RubyOnRails
[09:28:52] ebryn: has joined #RubyOnRails
[09:28:58] pulgalipe: has joined #RubyOnRails
[09:29:57] hellschreiber_: has joined #RubyOnRails
[09:30:30] kriskhaira: has joined #RubyOnRails
[09:32:13] LBRapid: has joined #RubyOnRails
[09:33:26] exadeci: has joined #RubyOnRails
[09:35:11] leeky: has joined #RubyOnRails
[09:35:12] RubyNewbey__: has joined #RubyOnRails
[09:35:24] sikachu_: has joined #RubyOnRails
[09:36:26] blackmesa: has joined #RubyOnRails
[09:36:26] uranther: has joined #RubyOnRails
[09:37:47] kitsuneyo: has joined #RubyOnRails
[09:38:15] yoongkang: has joined #RubyOnRails
[09:38:37] marr: has joined #RubyOnRails
[09:39:02] kitsuneyo: sevenseacat, lemme try to explain. i'm using a jquery plugin called placecomplete, which looks up google places by city. my form uses this to autocomplete location suggestions, and it passes the google_place_id to the controller. the locations_controller saves the city, state and country names. i want the person_controller to find_or_create a new location as needed, and just save the location_id.
[09:39:10] spastorino: has joined #RubyOnRails
[09:39:19] AzaToth: has joined #RubyOnRails
[09:39:25] kitsuneyo: does it make sense?
[09:41:11] alxndr: has joined #RubyOnRails
[09:42:26] annlewis: has joined #RubyOnRails
[09:42:28] triptec: has joined #RubyOnRails
[09:45:11] gaussblurinc1: has joined #RubyOnRails
[09:46:14] krz: has joined #RubyOnRails
[09:46:15] stannard: has joined #RubyOnRails
[09:47:48] lxsameer: has joined #RubyOnRails
[09:49:25] shwoodard___: has joined #RubyOnRails
[09:49:38] elaptic``: has left #RubyOnRails: ()
[09:50:02] elaptics: has joined #RubyOnRails
[09:51:40] leeky: has joined #RubyOnRails
[09:51:50] w0rd-driven: has joined #RubyOnRails
[09:54:01] yopp: has joined #RubyOnRails
[09:55:18] kapowaz_: has joined #RubyOnRails
[09:57:34] brunto: has joined #RubyOnRails
[09:57:37] upgrayeddd: has joined #RubyOnRails
[09:58:34] mozzarella: has joined #RubyOnRails
[10:00:01] nettoweb: has joined #RubyOnRails
[10:00:14] edwinvdgraaf: has joined #RubyOnRails
[10:01:05] Scient: has joined #RubyOnRails
[10:02:04] avelldiroll: has joined #RubyOnRails
[10:02:10] StevePotayTeo: has joined #RubyOnRails
[10:03:24] richb__: has joined #RubyOnRails
[10:03:34] TheMoonMaster: has joined #RubyOnRails
[10:03:40] Denarii: has joined #RubyOnRails
[10:04:34] lorn: has joined #RubyOnRails
[10:04:38] rickmasta: has joined #RubyOnRails
[10:04:54] akosednar: has joined #RubyOnRails
[10:05:08] mikajo: has joined #RubyOnRails
[10:05:48] kitsuneyo: hey sevenseacat, please help me out. i've been trying to solve this for ages and i'm almost there
[10:05:49] alexblom: has joined #RubyOnRails
[10:06:05] wldcordeiro: has joined #RubyOnRails
[10:06:34] kitallis: has joined #RubyOnRails
[10:09:50] kadoppe: has joined #RubyOnRails
[10:12:30] USvER: has joined #RubyOnRails
[10:12:40] sikachu_: has joined #RubyOnRails
[10:12:49] gregf_: has joined #RubyOnRails
[10:13:42] shibabu: has joined #RubyOnRails
[10:14:04] blackmesa: has joined #RubyOnRails
[10:14:25] worknick: has joined #RubyOnRails
[10:14:29] EXCHGR: has joined #RubyOnRails
[10:15:04] levifig: has joined #RubyOnRails
[10:15:06] worknick: i already have a integer column. how can i now make it reference to my user table so that using this relation i can access thistable.thiscolumn.user.email
[10:15:15] worknick: currently its just a plain integer column
[10:15:45] worknick: and i cant delete it and add new reference to user because this is from a gem and i need its column name to be same
[10:16:34] rodfersou: has joined #RubyOnRails
[10:17:12] Macaveli: has joined #RubyOnRails
[10:17:30] kaspergrubbe: has joined #RubyOnRails
[10:18:34] K0nserv-: has joined #RubyOnRails
[10:20:17] baweaver: has joined #RubyOnRails
[10:22:26] dionysus69: has joined #RubyOnRails
[10:22:52] tibra: has joined #RubyOnRails
[10:23:16] User458764: has joined #RubyOnRails
[10:26:35] annlewis: has joined #RubyOnRails
[10:28:21] lubekpl: has joined #RubyOnRails
[10:30:39] gnugmanov: has joined #RubyOnRails
[10:31:01] teclator: has joined #RubyOnRails
[10:34:48] bronson: has joined #RubyOnRails
[10:37:42] TPBallbag: has joined #RubyOnRails
[10:40:06] annlewis: has joined #RubyOnRails
[10:41:05] shinnya: has joined #RubyOnRails
[10:41:29] Papierkorb: has joined #RubyOnRails
[10:41:37] herenow: has joined #RubyOnRails
[10:45:26] Paradox: has joined #RubyOnRails
[10:47:55] SalexW: has joined #RubyOnRails
[10:48:23] allcentury: has joined #RubyOnRails
[10:49:20] ql6wlld: has joined #RubyOnRails
[10:49:31] marr: has joined #RubyOnRails
[10:50:50] antgel: has joined #RubyOnRails
[10:50:55] User458764: has joined #RubyOnRails
[10:51:02] Haydos: has joined #RubyOnRails
[10:54:54] annlewis: has joined #RubyOnRails
[10:55:09] jtdowney: has joined #RubyOnRails
[10:55:10] jtdowney: has joined #RubyOnRails
[10:56:28] solars: do I need special settings for webconsole in production? I've tried 'console' in a controller, but it doesn't seem to work
[10:56:30] svkurowski: has joined #RubyOnRails
[10:58:04] violarium: has joined #RubyOnRails
[10:58:12] cookiez: has joined #RubyOnRails
[10:58:23] zrl: has joined #RubyOnRails
[10:58:34] ^Denis: has joined #RubyOnRails
[10:58:36] lubekpl: solars: is the gem out of development block in your gemfile?
[11:00:26] russt: has joined #RubyOnRails
[11:01:10] violarium: Hello! How do you mock time (with timecop, for example) within integration tests which uses js-drivers?
[11:03:39] ace05: has joined #RubyOnRails
[11:04:34] build22: has joined #RubyOnRails
[11:06:45] lamaster: has joined #RubyOnRails
[11:06:54] clamstar: has joined #RubyOnRails
[11:07:21] ldnunes: has joined #RubyOnRails
[11:08:04] TheRokh: has joined #RubyOnRails
[11:08:16] aep: has joined #RubyOnRails
[11:09:16] workmaster2n: has joined #RubyOnRails
[11:09:26] TPBallbag: has joined #RubyOnRails
[11:09:38] Trynemjoel: has joined #RubyOnRails
[11:10:59] chaas: has joined #RubyOnRails
[11:11:11] Zackio: has joined #RubyOnRails
[11:11:34] blackmesa: has joined #RubyOnRails
[11:11:55] stamina: has joined #RubyOnRails
[11:12:36] g3funk: has joined #RubyOnRails
[11:12:47] kitsuneyo: has joined #RubyOnRails
[11:14:05] RegulationD: has joined #RubyOnRails
[11:17:22] Macaveli: has joined #RubyOnRails
[11:19:06] lamaster: hello, i know it???s kind of offtopic but i don???t know there to ask. After update to El Capitan i can???t open localhost with direct ip link, localhost:3000 works fine, 127.0.0.1:3000 too, but then i enter my actual IP it don???t open, even on the same machine
[11:19:09] okdas: has joined #RubyOnRails
[11:19:10] okdas: has joined #RubyOnRails
[11:19:27] Lauer: lamaster, firewall enabled?
[11:20:25] lamaster: how could i check this out?
[11:21:45] lubekpl: lamaster: what version of rails are you using?
[11:23:11] lubekpl: lamaster: I thnk it's not related to El Capitan, you should bind your rails server to 0.0.0.0 http://stackoverflow.com/questions/29083885/what-does-binding-a-rails-server-to-0-0-0-0-buy-you
[11:23:16] d0nn1e: has joined #RubyOnRails
[11:23:21] drupald: has joined #RubyOnRails
[11:23:50] sonOfRa: has joined #RubyOnRails
[11:24:34] kgrz: has joined #RubyOnRails
[11:25:21] lamaster: lubekpl: hm. yes it works fine now, thank you.
[11:25:33] lubekpl: lamaster: n/p :)
[11:25:45] webdestroya: has joined #RubyOnRails
[11:26:05] blackmesa: has joined #RubyOnRails
[11:26:27] lord4163: has joined #RubyOnRails
[11:26:42] lubekpl: lamaster: can I offer a suggestion? if you want to publicly display your app from the development machine, you can always check out https://ngrok.com/
[11:29:49] arup_r: has joined #RubyOnRails
[11:29:49] bahar: has joined #RubyOnRails
[11:30:43] workmaster2n: has joined #RubyOnRails
[11:31:51] worknick: has joined #RubyOnRails
[11:32:02] htmldrum: has joined #RubyOnRails
[11:32:45] ajb: has joined #RubyOnRails
[11:34:00] renegadeandy: has joined #RubyOnRails
[11:34:04] renegadeandy: Does anybody know a rails ER diagram generator gem which supports rails 4?
[11:34:12] sandstrom: has joined #RubyOnRails
[11:35:10] defsdoor: renegadeandy, we use gem 'rails-erd', :github => 'ready4god2513/rails-erd', :branch => 'rails-4.2-support-fix'
[11:35:12] lubekpl: renegadeandy: rails-erd ?
[11:35:23] lubekpl: ah, defsdoor was quicker
[11:35:33] renegadeandy: Do any of them support a ???legend??? to help those with poor UML association understandings!
[11:35:36] annlewis: has joined #RubyOnRails
[11:36:10] defsdoor: a legend saying what ?
[11:37:13] renegadeandy: what each line means
[11:37:22] renegadeandy: has and belongs to many
[11:37:23] workmaster2n: has joined #RubyOnRails
[11:37:30] defsdoor: wouldnt that get tedious ?
[11:37:45] defsdoor: you just need a key
[11:37:58] renegadeandy: a key would be fine
[11:38:01] dhjondoh: has joined #RubyOnRails
[11:38:06] renegadeandy: can that be done with rails-erd?
[11:38:10] sonOfRa: has joined #RubyOnRails
[11:38:25] defsdoor: it can be done in vi
[11:38:48] renegadeandy: defsdoor: sorry i dont understand
[11:39:12] daxroc: has joined #RubyOnRails
[11:39:13] mheld: has joined #RubyOnRails
[11:39:14] SuppliedRelic: has joined #RubyOnRails
[11:39:16] MiracleBlue_: has joined #RubyOnRails
[11:39:19] llakey: has joined #RubyOnRails
[11:39:20] renegadeandy: I want the association visual appearance key / legend on the same image as the output from the ER diagram
[11:40:10] defsdoor: generate a svg and add it manually
[11:42:45] blackmesa: has joined #RubyOnRails
[11:43:00] michael_mbp: has joined #RubyOnRails
[11:43:18] renegadeandy: defsdoor: So thats what I don???t want ot have to do, pity none of these gems support it out the box
[11:43:30] defsdoor: it's a very strange request
[11:43:43] defsdoor: to explain what an ERD is and what the things mean on it
[11:43:55] defsdoor: if you don't know you really ought not to be looking at an ERD
[11:44:26] defsdoor: cant you just send an accompanying explanation or an ERD guide with it ?
[11:45:10] RandyT: has joined #RubyOnRails
[11:45:21] defsdoor: otherwise I don't think your audience should be seeing an ERD - maybe you need something /much/ simpler ?
[11:45:34] Denarii: has joined #RubyOnRails
[11:45:47] rickmasta: has joined #RubyOnRails
[11:47:19] solars: lubekpl, sorry was afk - yes it is outside the dev block
[11:47:41] solars: it just processes normally, there is no web console
[11:48:06] mostlybadfly: has joined #RubyOnRails
[11:48:46] toomus_: has joined #RubyOnRails
[11:49:08] renegadeandy: defsdoor: yeah, but even those who understand the point of ERD can still sometimes forget the association markup
[11:49:30] sonOfRa: has joined #RubyOnRails
[11:49:42] toomus_: I have question about delayed_job gem
[11:50:01] sevenseacat: solars: thats a security feature. under no circumstances ever should you open a console from a browser into your production application.
[11:50:19] toomus_: Is it possible to return some value to rails app process from job?
[11:50:36] sevenseacat: toomus_: no - theyre separate processes. there's nothing to return to.
[11:51:06] solars: sevenseacat, well if I can evaluate the circumstances as save, this should be possible :) there is no difference to dev just a different db
[11:51:17] sevenseacat: solars: no no no no NO.
[11:51:34] toomus_: sevenseacat: yeah, I know that job is executing in another process
[11:51:58] solars: again, if I can evaluate the circumstances as save, there is no difference than just copying the config file into dev and starting anyway
[11:52:05] sevenseacat: solars: if you want a production console, ssh to your server and then open a rails console.
[11:52:21] toomus_: sevenseacat: but I need to do something in app process after job is done
[11:52:32] solars: sevenseacat, I need to debug a controller action
[11:52:34] sevenseacat: toomus_: I think you're missing the point of *delayed* jobs.
[11:52:39] sevenseacat: solars: then do it locally.
[11:52:49] solars: that's what I'm doing
[11:52:54] sevenseacat: solars: in development.
[11:53:38] solars: it doesn't make any sense to me to change the config files only because there is this hook for safety reasons to work around stupid users
[11:53:40] solars: that's why I'm asking
[11:53:59] sevenseacat: no, you want to *be* one of the stupid users
[11:54:08] solars: because it's not documented anywhere on the web console page
[11:54:20] solars: sevenseacat, that's a prejudice
[11:54:36] solars: it's better to teach responsibility than to treat users as idiots in my opinion
[11:54:40] pawnbox: has joined #RubyOnRails
[11:54:48] solars: otherwise no one will learn anything
[11:54:48] sevenseacat: you just said, the hook was put it to stop stupid users
[11:55:13] sevenseacat: can you not see the problem in letting the world access your production application's console?
[11:55:32] solars: it's running locally
[11:55:42] sevenseacat: then why are you in production?
[11:56:13] solars: I need production data to debug this
[11:56:37] sevenseacat: import scrubbed production data into your local db
[11:56:52] solars: it's around 8 different servers that are connected, and 11TB of data
[11:57:36] solars: I know what I'm doing, I just asked why it does not work in production env, as I don't see it mentioned on the page
[11:58:22] kitsuneyo: has joined #RubyOnRails
[11:58:50] sevenseacat: I don't think you do, I think you're one step away from being on the front page of haveibeenpwned
[11:59:09] solars: prejudice again
[11:59:23] solars: I respect your opinion, but please just let me ask my questions the way I want to ask them
[11:59:33] sevenseacat: I never said you couldnt ask them
[11:59:42] sevenseacat: you have to let us answer them how we want to answer them
[11:59:51] solars: you've started an offtopic discussion based on assumptions
[11:59:59] solars: which is not helpful for anyone
[12:00:58] kitsuneyo: has joined #RubyOnRails
[12:01:00] renegadeandy: Can somebody with a mac please try installing Rails ERD as per these instructions???http://voormedia.github.io/rails-erd/install.html i am getting a 550 and 404 on install of libpng as part of the graphviz install
[12:01:48] sevenseacat: i installed graphviz from brew, so i'm no help there
[12:02:53] arup_r: atmosx: Hi
[12:04:14] sonOfRa: has joined #RubyOnRails
[12:04:43] atmosx: hello arup_r how' slife?
[12:04:51] blackmesa: has joined #RubyOnRails
[12:05:26] arup_r: I made it forcibly smooth.. lol
[12:05:39] rvanlieshout: has joined #RubyOnRails
[12:05:54] artto: has joined #RubyOnRails
[12:06:29] arthurnn: has joined #RubyOnRails
[12:06:55] rvanlieshout: has joined #RubyOnRails
[12:07:09] allcentury: has joined #RubyOnRails
[12:07:55] worknick: has joined #RubyOnRails
[12:08:18] worknick: is there any way just from rails view to check which radio button is selected?
[12:08:31] arup_r: worknick: hey
[12:08:43] arup_r: worknick: browser inspext tool
[12:08:48] arup_r: inspect**
[12:08:59] yfeldblum: has joined #RubyOnRails
[12:09:04] kgrz: has joined #RubyOnRails
[12:09:24] rvanlieshout: worknick: wut?
[12:09:26] arup_r: ok.. got it wrongly..
[12:09:44] worknick: rvanlieshout: i use javascript to check which radio button is selected.
[12:10:01] worknick: rvanlieshout: how can i do that from rails only without js?
[12:10:20] rvanlieshout: worknick: rails runs server side
[12:10:22] rvanlieshout: not client side
[12:10:29] worknick: in mean in rails view.
[12:10:34] worknick: i know its server side.
[12:10:51] worknick: <% if something like this %> ??
[12:11:10] MaDErroR123: has joined #RubyOnRails
[12:11:11] ebertx: has joined #RubyOnRails
[12:11:38] worknick: to know id of selected radio button
[12:11:47] rvanlieshout: of what radio button?
[12:11:57] worknick: <input type="radio"/>
[12:12:09] rvanlieshout: that doesn't have an id
[12:12:24] worknick: <input type="radio"/ id="myid">
[12:12:31] rvanlieshout: then you can't
[12:12:34] rvanlieshout: if you place it in the view like that
[12:12:58] rvanlieshout: what do you want to do?
[12:13:12] rvanlieshout: and that input doesn't exist unless the response has been parsed by a browser
[12:13:20] rvanlieshout: so why do you need the id for it? you're setting it yourself
[12:13:31] worknick: while submitting one form, channge one of the form value depending upon the selection by user
[12:14:05] rvanlieshout: submitting a form is done client side
[12:14:13] rvanlieshout: so no rails there
[12:16:13] shibabu: has joined #RubyOnRails
[12:16:54] aep: has joined #RubyOnRails
[12:17:09] arBmind1: has joined #RubyOnRails
[12:17:31] Gm4n: has joined #RubyOnRails
[12:17:51] platzhirsch: has joined #RubyOnRails
[12:18:15] davidcelis: has joined #RubyOnRails
[12:18:15] davidcelis: has joined #RubyOnRails
[12:20:17] MaDErroR123: has joined #RubyOnRails
[12:20:51] bratsche: has joined #RubyOnRails
[12:21:22] baweaver: has joined #RubyOnRails
[12:22:01] matthewd: has joined #RubyOnRails
[12:22:55] gbailey: has joined #RubyOnRails
[12:27:12] melonstorm: has joined #RubyOnRails
[12:27:23] lubekpl: solars: have you whitelited your ip?
[12:27:26] lubekpl: *whitelisted
[12:28:53] toomus_: has joined #RubyOnRails
[12:30:16] aep: has joined #RubyOnRails
[12:30:53] marr: has joined #RubyOnRails
[12:31:34] kgrz: has joined #RubyOnRails
[12:33:39] toomus_: Is it possible to tell rails app to do something from other process?
[12:33:41] Megamos: has joined #RubyOnRails
[12:34:10] renegadeandy: toomus_: use an http call?
[12:34:31] krz: has joined #RubyOnRails
[12:35:14] universal: has joined #RubyOnRails
[12:35:21] toomus_: renegadeandy: hmmm, this is some solution
[12:36:05] renegadeandy: toomus_: what are you trying to do?
[12:36:10] build22_: has joined #RubyOnRails
[12:36:37] toomus_: renegadeandy: I have problem with combo: Faye + public_activity + delayed_job
[12:36:39] bronson: has joined #RubyOnRails
[12:37:04] kgrz: has joined #RubyOnRails
[12:37:20] toomus_: renegadeandy: I want to send realtime notification to some users, when new public_activity is created
[12:37:35] toomus_: renegadeandy: creating public_activity is done via delayed_job
[12:37:49] toomus_: renegadeandy: but DJ executing jobs in other process
[12:38:13] toomus_: renegadeandy: and Faye (realtime notifications) need to be run in main app process to work
[12:38:23] renegadeandy: You could use some kinda pub/sub messaging like faye to ping the other process to make the notification
[12:38:40] renegadeandy: why not make the process publish to a notifitications request queue
[12:38:59] renegadeandy: and then have the rails app faye notifications_request queue subscriber fire the update?
[12:39:33] toomus_: renegadeandy: the problem is, that I???m using faye-rails gem, which integrates with rails app as Rack Middleware
[12:40:09] toomus_: renegadeandy: this gives me a lot of facilities
[12:40:54] toomus_: facilities: but anytime I want to send message with faye I need to do this from app process
[12:41:17] chridal_: has left #RubyOnRails: ()
[12:41:21] renegadeandy: toomus_: you can just make an http request to the faye controller
[12:41:27] renegadeandy: toomus_: i thikn thats your option
[12:41:42] chridal: has joined #RubyOnRails
[12:43:37] annlewis: has joined #RubyOnRails
[12:44:08] toomus_: renegadeandy: Ah, OK :)
[12:44:09] solars: lubekpl, yep I did.. I debugged it differently though, so don't need it anymore. Thanks for your help!
[12:44:23] sankaber: has joined #RubyOnRails
[12:44:37] lubekpl: solars: didn't do anything ;)
[12:44:41] nonmadden: has joined #RubyOnRails
[12:45:03] solars: lubekpl, well you answered :)
[12:45:29] brunto: has joined #RubyOnRails
[12:46:54] quazimodo: has joined #RubyOnRails
[12:47:09] kgrz: has joined #RubyOnRails
[12:47:29] kgrz: has joined #RubyOnRails
[12:47:33] renegadeandy: toomus_: or you could use some other kind of messaging system
[12:47:50] renegadeandy: but it would likely result in the same thing, an http request, or a pub/sub client call, you could consider something like mqtt
[12:48:13] renegadeandy: https://github.com/njh/ruby-mqtt
[12:48:33] toomus_: renegadeandy: Faye is great
[12:49:37] ewnd9: has joined #RubyOnRails
[12:50:13] renegadeandy: toomus_: yes it is, but it has your restriction, whereas mqtt would not
[12:50:21] renegadeandy: but the result of using either would be the samer
[12:50:34] toomus_: renegadeandy: interesting :)
[12:54:37] Macaveli: has joined #RubyOnRails
[12:56:19] mices: this javascript throws no errors but doesn't have any effect either https://gist.github.com/mices/bd9d6c5bd68f2a6fb479
[12:56:44] flip_digits: has joined #RubyOnRails
[12:58:04] Megamos: has joined #RubyOnRails
[13:00:04] universa1: mices: so? turbolinks?
[13:00:35] mices: what do you mean
[13:00:39] tk: has joined #RubyOnRails
[13:00:58] rvanlieshout: are you using turbolinks
[13:01:00] Marquel: has joined #RubyOnRails
[13:08:52] Moeh: has joined #RubyOnRails
[13:09:25] mices: rvanlieshout: not
[13:09:41] arup_r: mices: show your application.js
[13:10:09] mices: there's no server side script, why should there be, i'm not pulling any data from the server
[13:11:35] defsdoor: your adding on document ready but with turbolinks that only fires on full page loads
[13:11:39] mices: in trying to do this i haven't done any server side scripting
[13:11:51] defsdoor: links don't fire full page loads with turbo links
[13:11:53] universa1: ohh... application.js is not server side scripting...
[13:12:01] sevenseacat: so we're just taking your word that you actually have a #format on the page, that you're actually loading this JS on the page.... so many guesses
[13:12:19] mices: yes there's a format field on the page
[13:12:24] ddv: also is it smart to do this on the client?
[13:12:30] universa1: mices: show.
[13:12:41] Moeh: Hello, I have a model "line_chart" that has a "graphs" field which I serialize as array. Inside the array there are multiple graph objects. Now I would like to create a form to edit the values inside these objects. This is the code I currently have http://pastie.org/10592204 (which doesn't work). Would be great if someone could give me a hint how to create this form.
[13:12:43] universa1: ddv: if you check it on the server again, yes.
[13:12:43] sevenseacat: thats not what I said.
[13:12:57] mices: ddv: i'm gonna validate in the model
[13:13:10] Moeh: I use an array of objects because there can be n graph objects inside of the array.
[13:13:39] Detch: has joined #RubyOnRails
[13:13:39] ddv: universa1: you already knew this?
[13:13:40] Sigfrid: has joined #RubyOnRails
[13:13:59] universa1: Moeh: what does not work? how does it not work? ....
[13:14:12] universa1: Moeh: doesn't work is not helpful as a problem / error description.
[13:14:24] universa1: ddv: no, general comment / answer to your question.
[13:14:32] Moeh: Sorry, yes. The field that is generated has the name: graphs[fillAlphas=0.4&id=count&lineThickness=1&title=count&type=smoothedLine&valueAxis=0&valueField=count][count]
[13:14:34] mices: universal: my applicatrion.js is empty
[13:14:45] shibabu: has joined #RubyOnRails
[13:14:54] sevenseacat: mices: js operates on html. without seeing the html, seeing the js is pointless.
[13:14:55] Moeh: Whereas it should be: graphs[0]["fillAlpha"]
[13:15:10] RegulationD: has joined #RubyOnRails
[13:15:14] universa1: mices: that i highly doubt, because then you most likely don't have jquery.
[13:15:32] ibouvousaime: has joined #RubyOnRails
[13:16:55] lorn: has joined #RubyOnRails
[13:17:14] jamey-uk: has joined #RubyOnRails
[13:17:29] jkamenik: has joined #RubyOnRails
[13:17:51] universa1: Moeh: what makes you think you can use a hash instead of a "model" ?
[13:18:56] jamey-uk: I'm trying to create a model with a join table that points to itself but I can't seem to get the right combination of model class methods correct. This is the proposed model and join table: https://gist.github.com/jameyg/340c8083d8cd4baaf201. Can anyone help? Various combinations of has_many and belongs_to have from the docs have not worked as hoped for yet.
[13:19:27] universa1: jamey-uk: so this is a many to many association?
[13:19:40] universa1: jamey-uk: has_and_belongs_to_many
[13:19:42] jamey-uk: universa1: yes except that the referencing table is itself
[13:19:49] pfg_: has joined #RubyOnRails
[13:19:56] Moeh: universa1: Well, I was under the impression that this would be one solution for cases where you have to store an unknown number of objects inside of a model field. How would you solve it instead?
[13:20:04] jamey-uk: universa1: i.e. if you access Colour.allowed_colours it should return a collection
[13:20:11] universa1: jamey-uk: has_and_belongs_to_many
[13:20:49] universa1: Moeh: that was not my question.
[13:21:27] universa1: jamey-uk: http://guides.rubyonrails.org/association_basics.html#the-has-and-belongs-to-many-association
[13:21:45] universa1: jamey-uk: if that is not what you want, we would need to see actual code!
[13:21:49] jamey-uk: universa1: yes that's the guide I've read but I've not been able to full understand it
[13:22:46] jamey-uk: universa1: I just need to figure out the right combination of options for has_and_belongs_to_many. I've tried this https://gist.github.com/jameyg/bc6b458400355eb0cb85 but it complains with "NameError: uninitialized constant Colour::AllowedColour".
[13:22:52] Moeh: universa1: Then I don't fully get your question. You would suggest to create a "LineChartGraph" model that belongs_to "LineChart"?
[13:23:14] mices: arup_r: https://gist.github.com/mices/bd9d6c5bd68f2a6fb479
[13:23:20] pawnbox: has joined #RubyOnRails
[13:23:25] mices: universal: ^
[13:23:31] mices: sevenseacat: ^
[13:23:44] sevenseacat: mices: so, where is the element with ID format ?
[13:23:50] universa1: jamey-uk: http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#method-i-has_and_belongs_to_many
[13:23:55] nertzy: has joined #RubyOnRails
[13:24:45] mices: sevenseacat: line 34
[13:24:57] sevenseacat: mices: check the generated HTML.
[13:25:01] sevenseacat: I think you'll find thats incorrect.
[13:25:21] gingray: has joined #RubyOnRails
[13:26:21] universa1: jamey-uk: see the class_name option
[13:26:36] mices: sevenseacat: ty, sorry
[13:26:52] mices: i had no recollection of renaming it
[13:27:23] mices: yea, i see that now
[13:27:26] mices: so what's going on?
[13:27:35] mices: why listing[format]
[13:27:39] sevenseacat: you presumed an element named format would generate an element with ID format
[13:27:46] sevenseacat: thats not the ID either
[13:29:19] toomus_: has left #RubyOnRails: ()
[13:29:24] mices: sevenseacat: i see the label, the name and the id all got changed in the dom to listing_format or listing[format] so how does that happen
[13:29:38] sevenseacat: because its a form for a listing.
[13:29:59] mices: so ... i can't name fields whatever i want?
[13:30:19] sevenseacat: sure you can, you named that one format
[13:30:35] bbrowning: has joined #RubyOnRails
[13:30:48] jamey-uk: universa1: I realise you've gone now but my solution was this: "has_and_belongs_to_many :allowed_colours, class_name: 'Colour', join_table: 'allowed_colours', association_foreign_key: 'allowed_colour_id'"
[13:31:48] mices: sevenseacat: when will rails prepend the table name to field names?
[13:32:02] sevenseacat: when the HTML gets generated?
[13:32:11] sevenseacat: like you're seeing right now?
[13:32:55] mices: so html understands the shorthand, but javascript doesn't?
[13:33:10] sevenseacat: what "shorthand"?
[13:33:31] mices: rails understands the shorthand, format for listing[format] or listing_format
[13:33:55] sevenseacat: format is the name of the field in your model. listing[format] is the generated name in the HTML.
[13:34:06] sevenseacat: listing_format is the generated ID in the HTML (i think)
[13:34:08] toastercup: has joined #RubyOnRails
[13:34:09] sevenseacat: nothing to do with shorthand
[13:34:17] sevenseacat: and JavaScript just reads the HTML.
[13:34:17] mices: sevenseacat: yea it's the id too
[13:34:31] sevenseacat: no, listing[format] is not the ID
[13:35:05] mices: <select name="listing[format]" id="listing_format">
[13:35:11] sevenseacat: right, listing_format
[13:35:15] sevenseacat: not listing[format]
[13:35:43] sevenseacat: now you know the HTML, so you can fix your JS to match it
[13:36:48] roshanavand: has joined #RubyOnRails
[13:38:06] mices: https://gist.github.com/mices/bd9d6c5bd68f2a6fb479
[13:38:16] ddv: this is so confusing :p
[13:38:18] mices: still doesn't work, i changed starting_bid too
[13:38:31] sevenseacat: mices: "doesnt work" is not something we can fix
[13:38:44] sevenseacat: you have a syntax error in that js for starters
[13:38:46] ddv: mices: are you trying to be the next ebay?
[13:39:24] mices: sevenseacat: not
[13:39:38] mices: ebay's too big i wouldn't wanna be that big
[13:39:47] blackhuey: has left #RubyOnRails: ()
[13:40:21] mices: i'm doing collectibles and used items only there's not gonna be any new listings on the site
[13:40:27] mices: nothing in new condition
[13:40:55] mices: just for collectibles, antiques and other used stuff
[13:41:05] mices: i guess just about anything that's not new
[13:41:30] rvanlieshout: mices: have you even checked if that code gets executed?
[13:42:06] mices: rvanlieshout: how can i check that
[13:42:30] rvanlieshout: by starting with some tutorials about debugging in javascript
[13:43:09] sevenseacat: i liked https://www.codeschool.com/paths/javascript .
[13:47:46] Denarii: has joined #RubyOnRails
[13:47:51] kitsuneyo: has joined #RubyOnRails
[13:48:12] toastercup: Hewwo friends! Thinking about how to structure a (conceptually) pretty simple Gem.. It's supposed to provide a helper method to any Rails view that makes 1 request to an API based on the currently executing Request. Anyone have ideas on how best to structure it? I'm just not sure how to ensure that only 1 API request is made per end-user request, reset that value every fresh request, and also handl
[13:48:12] toastercup: e caching... agh
[13:50:32] antgel: has joined #RubyOnRails
[13:51:10] mices: sevenseacat: i added output from tools->web developer->console->js at the bottom https://gist.github.com/mices/bd9d6c5bd68f2a6fb479
[13:52:43] Brando753: has joined #RubyOnRails
[13:52:46] jtdowney: has joined #RubyOnRails
[13:52:46] jtdowney: has joined #RubyOnRails
[13:53:35] g3funk: has joined #RubyOnRails
[13:54:17] rvanlieshout: mices: you should really learn the basics first
[13:55:25] brunto: has joined #RubyOnRails
[13:55:52] lorn: has joined #RubyOnRails
[13:56:01] akosednar: has joined #RubyOnRails
[14:04:07] build22: has joined #RubyOnRails
[14:04:07] medright: has joined #RubyOnRails
[14:04:43] epochwolf: has joined #RubyOnRails
[14:11:12] maximski: has joined #RubyOnRails
[14:13:09] Denarii: has joined #RubyOnRails
[14:13:24] mary5030: has joined #RubyOnRails
[14:15:21] bahar: has joined #RubyOnRails
[14:15:44] ramortegui: has joined #RubyOnRails
[14:15:53] aaronr: has joined #RubyOnRails
[14:22:17] nertzy: has joined #RubyOnRails
[14:24:46] build22: has joined #RubyOnRails
[14:25:43] vayan: has joined #RubyOnRails
[14:28:18] FastJack: has joined #RubyOnRails
[14:29:16] gaustin: has joined #RubyOnRails
[14:36:55] execute: has joined #RubyOnRails
[14:37:00] dmonster: has joined #RubyOnRails
[14:37:18] sankaber: has joined #RubyOnRails
[14:38:24] bronson: has joined #RubyOnRails
[14:38:30] RubyNewbey__: has joined #RubyOnRails
[14:38:44] user1138: has joined #RubyOnRails
[14:38:48] flashpoint9: has joined #RubyOnRails
[14:38:50] maximski: if i wanted to create an event which people could import into their google or mac calendar, how would i do that preferably?
[14:39:33] tibra_: has joined #RubyOnRails
[14:39:34] maximski: and i dont want people to authenticate with my service or something, they just should be able to insert an event into their chosen calender
[14:40:25] maximski: i found this for .ical files https://github.com/icalendar/icalendar, but nothing similar for google calendar (apart from their api, which requires authentication though as far as i could see)
[14:41:16] nertzy: has joined #RubyOnRails
[14:41:18] alexblom: has joined #RubyOnRails
[14:42:22] ace05: has joined #RubyOnRails
[14:42:32] iamayam: has joined #RubyOnRails
[14:45:12] annlewis: has joined #RubyOnRails
[14:50:13] sankaber: has joined #RubyOnRails
[14:51:29] maximski: has joined #RubyOnRails
[14:53:11] stannard: has joined #RubyOnRails
[14:54:29] medright: has joined #RubyOnRails
[14:58:28] Avon: has joined #RubyOnRails
[14:59:20] ponky: has joined #RubyOnRails
[15:01:14] Marquel: has joined #RubyOnRails
[15:01:29] Z00t: has joined #RubyOnRails
[15:03:44] jkamenik1: has joined #RubyOnRails
[15:04:16] Rikle_S: I'm using rails + nginx + unicorn
[15:05:24] stannard: has joined #RubyOnRails
[15:05:32] Rikle_S: Does someone see any reason for this problem : I have to restart rails application to see changes made in views files or controllers
[15:06:14] Aeyrix: has joined #RubyOnRails
[15:09:30] ewnd9: has joined #RubyOnRails
[15:09:35] stannard_: has joined #RubyOnRails
[15:10:19] shinnya: has joined #RubyOnRails
[15:10:28] Frem: has joined #RubyOnRails
[15:10:42] defsdoor: Rikle_S, thats normal behaviour in production mode
[15:10:43] medright: has joined #RubyOnRails
[15:10:55] defsdoor: Rikle_S, what mode are you in ?
[15:10:55] rvanlieshout: in which you shouldn't develop
[15:11:26] jamey-uk: has joined #RubyOnRails
[15:13:12] Darkman738: has joined #RubyOnRails
[15:13:20] RegulationD: has joined #RubyOnRails
[15:15:14] roshanavand: has joined #RubyOnRails
[15:15:56] roshanavand: has joined #RubyOnRails
[15:18:49] jamey-uk1: has joined #RubyOnRails
[15:19:02] medright: has joined #RubyOnRails
[15:19:05] Rikle_S: defsdoor: I'm in dev mode, but I'm wondering how sessions files will be updated in production if it's normal behavior
[15:22:26] droptone: has joined #RubyOnRails
[15:26:43] droptone: Question: I am in need of a robust audio player, is there one that is recommended for Rails?
[15:26:56] droptone: Either Rails 3.2.x or 4.x?
[15:27:21] droptone: Or do folks just normally embed HTML5 / JS audio players?
[15:27:40] ltd: has joined #RubyOnRails
[15:27:59] Pazician: has joined #RubyOnRails
[15:28:00] Pazician: has joined #RubyOnRails
[15:29:13] ace05_: has joined #RubyOnRails
[15:31:07] w0rd-driven: has joined #RubyOnRails
[15:33:46] Paradox: has joined #RubyOnRails
[15:33:56] drbayer: has joined #RubyOnRails
[15:34:07] kitsuneyo: has joined #RubyOnRails
[15:34:09] gaustin: has joined #RubyOnRails
[15:34:15] nyaa: has joined #RubyOnRails
[15:34:27] kadoppe: has joined #RubyOnRails
[15:34:28] Haydos: has joined #RubyOnRails
[15:34:28] lasker85: has joined #RubyOnRails
[15:34:29] Sirecote: has joined #RubyOnRails
[15:34:33] ^Denis: has joined #RubyOnRails
[15:34:44] gbailey: has joined #RubyOnRails
[15:34:54] centrx: has joined #RubyOnRails
[15:34:54] lasker85: Does anyone have experience getting highcharts running in a rails project? I'm running into some issues I can't resolve.
[15:35:01] Papierkorb: has joined #RubyOnRails
[15:35:04] nettoweb: has joined #RubyOnRails
[15:35:15] Darkman738: has left #RubyOnRails: ()
[15:35:23] Darkman738: has joined #RubyOnRails
[15:35:24] sankaber: has joined #RubyOnRails
[15:35:33] fmcgeough: has joined #RubyOnRails
[15:35:34] Scient: has joined #RubyOnRails
[15:35:38] herenow: has joined #RubyOnRails
[15:35:40] webdestroya: has joined #RubyOnRails
[15:35:43] gnugmanov: has joined #RubyOnRails
[15:35:47] dopie: has joined #RubyOnRails
[15:35:56] atrius: has joined #RubyOnRails
[15:36:11] akosednar: has joined #RubyOnRails
[15:36:12] brunto: has joined #RubyOnRails
[15:36:18] apeiros: has joined #RubyOnRails
[15:36:25] build22: has joined #RubyOnRails
[15:36:33] krz: has joined #RubyOnRails
[15:36:33] kmckelvin: has joined #RubyOnRails
[15:36:34] kitallis: has joined #RubyOnRails
[15:36:42] arthurnn: has joined #RubyOnRails
[15:36:46] ebertx: has joined #RubyOnRails
[15:36:46] daivyk: has joined #RubyOnRails
[15:37:01] ajb: has joined #RubyOnRails
[15:37:10] Z00t: has joined #RubyOnRails
[15:37:12] chadhs: has joined #RubyOnRails
[15:37:18] tenderlove: has joined #RubyOnRails
[15:37:24] okdas: has joined #RubyOnRails
[15:37:25] okdas: has joined #RubyOnRails
[15:37:25] chouhoulis: has joined #RubyOnRails
[15:37:30] g3funk: has joined #RubyOnRails
[15:37:36] Darkman738: I'm looking for some assistance as a n00b. I have some dev background, but only in Windows, no web development at all. I tend to learn best running through a project and sorting out parts as I need. I've ran through a few tutorials on the framework and such, but all of the tutorials I've seen provide static data
[15:37:39] shibabu: has joined #RubyOnRails
[15:37:39] artto: has joined #RubyOnRails
[15:37:45] aep: has joined #RubyOnRails
[15:37:46] Darkman738: anywhere I can work through examples of user input to calculate something
[15:37:47] eml: has joined #RubyOnRails
[15:37:51] Darkman738: it may just be I'm searching for the wrong things I'm not sure
[15:37:59] kies: has joined #RubyOnRails
[15:38:06] wsewolod: has joined #RubyOnRails
[15:38:17] goodcodeguy: has joined #RubyOnRails
[15:38:28] lindii_: has joined #RubyOnRails
[15:39:01] execute: has joined #RubyOnRails
[15:39:19] kies: has joined #RubyOnRails
[15:39:31] maxz: has joined #RubyOnRails
[15:39:34] lorn: has joined #RubyOnRails
[15:39:38] Gm4n: has joined #RubyOnRails
[15:40:00] flip_digits: has joined #RubyOnRails
[15:40:21] antgel: has joined #RubyOnRails
[15:40:33] Darkman738: has left #RubyOnRails: ("Leaving...")
[15:40:39] Darkman738: has joined #RubyOnRails
[15:40:49] Darkman738: so much disconnecting
[15:40:53] alaing: has joined #RubyOnRails
[15:40:53] ponky: has joined #RubyOnRails
[15:41:07] arBmind: has joined #RubyOnRails
[15:41:40] K0nserv-: has joined #RubyOnRails
[15:41:56] yogeshrt: has joined #RubyOnRails
[15:42:07] alaing: has joined #RubyOnRails
[15:42:15] alaing: has joined #RubyOnRails
[15:42:21] Brando753: has joined #RubyOnRails
[15:42:27] alaing: hi has anyone here used faye?
[15:42:47] ql6wlld: has joined #RubyOnRails
[15:44:33] podman: has joined #RubyOnRails
[15:45:00] llakey: has joined #RubyOnRails
[15:45:20] solenoids: has joined #RubyOnRails
[15:45:20] dragonkh: has joined #RubyOnRails
[15:45:20] bahar: has joined #RubyOnRails
[15:45:20] svkurowski: has joined #RubyOnRails
[15:45:56] annlewis: has joined #RubyOnRails
[15:46:36] joshkovach: has joined #RubyOnRails
[15:46:45] drupald: has joined #RubyOnRails
[15:47:09] mices: sevenseacat: what's the syntax error in my javascript?
[15:47:38] joshkovach: has joined #RubyOnRails
[15:47:45] jottr: has joined #RubyOnRails
[15:48:17] russt: has joined #RubyOnRails
[15:48:20] eduardodeoh: has joined #RubyOnRails
[15:48:33] RandyT: has joined #RubyOnRails
[15:49:00] badoo: has joined #RubyOnRails
[15:49:10] d0nn1e: has joined #RubyOnRails
[15:49:57] bratsche: has joined #RubyOnRails
[15:51:20] andrew-l: has joined #RubyOnRails
[15:51:34] shanemcd: has joined #RubyOnRails
[15:51:41] jgpawletko: has joined #RubyOnRails
[15:52:27] mices: sevenseacat: i don't like that tutorial, i don't have the patience right now to sit and watch the videos, another time when i'm more relaxed would be enjoyable but i couldn't now
[15:52:52] alexblom: has joined #RubyOnRails
[15:53:52] matthewd: has joined #RubyOnRails
[15:55:59] marr: has joined #RubyOnRails
[15:56:26] ddv: mices: take the time for it, sometimes you really have to
[15:56:32] honestemu: has joined #RubyOnRails
[15:57:11] mices: in 1990 i read the book 'teach yourself javascript in 21 days' at least twice
[15:57:18] mices: but i never did any javascripting
[15:57:37] mices: do i get any award for that?
[15:58:16] andrew-l: mices: lol.
[15:58:20] mices: if you say it's worth it, i know it is but right now i'm all wound up, that videos getting me mad tight
[15:58:48] ddv: mices: maybe some therapy then :p
[15:58:56] kaspergrubbe: has joined #RubyOnRails
[15:59:18] rickmasta: has joined #RubyOnRails
[15:59:19] clamstar: has joined #RubyOnRails
[15:59:50] mary5030: has joined #RubyOnRails
[16:00:01] andrew-l: i'm working on revamping our orders transaction system (i.e. orders, discounts, refunds, etc.) Does anyone have any good resources for designing a clean transaction system for ecommerce? (i'm looking for maybe a design pattern, best practice, etc.)
[16:00:02] alaing: is there a way i can get the host/ip of a service being run on another process?
[16:00:16] pawnbox: has joined #RubyOnRails
[16:00:24] alaing: I mean host/port
[16:01:25] ddv: you have to be way more specific
[16:01:37] blackmesa: has joined #RubyOnRails
[16:01:42] ddv: you could take a look at spree, but i'm not sure if those guys use the best approach
[16:01:46] davidcelis: has joined #RubyOnRails
[16:01:46] davidcelis: has joined #RubyOnRails
[16:02:12] andrew-l: ddv: yeah, looked into spree, which is now solidus.io
[16:02:20] tubbo: mices: no you didn't, because javascript wasn't invented until like 1998.
[16:02:45] andrew-l: maybe mices got the book from future biff? :-)
[16:02:46] tubbo: mices: but i see what you're saying. javascript is a little frustrating. i happened to learn it early on, but i still find myself going ???? when dealing with it sometimes
[16:03:21] tubbo: andrew-l: my entire job is building ecommerce software on rails, fwiw.
[16:03:56] andrew-l: tubbo: awesome! i'm looking for an expert to talk about this.
[16:04:00] tubbo: it's a frontend for an actual order management system, really, but it's the retail side of the ecommerce equation
[16:04:03] mices: tubbo: it must have been after 1990 because javascript was recommended to me by a passenger in my cab and i didn't drive taxi until 90
[16:04:05] tubbo: hah...i wouldn't call myself an "expert"
[16:04:20] tubbo: mices: it was, because 1998 is after 1990.
[16:04:30] mices: and there was nothing internet wise until 95
[16:04:48] teclator: has joined #RubyOnRails
[16:05:06] mices: i don't think it could have been 98 because by 99 i was reading perl books
[16:05:15] ziggles: has joined #RubyOnRails
[16:05:25] mices: instead of javascript which turned out not to be what i was looking for
[16:06:00] mices: what a shame, i just threw the book out a couple of months ago after all these years, i could have checked right now
[16:06:26] alaing: is there a way i can get the host and port of a service being run on another process i.e I using foreman to run a faye(websocket) service and rails s?
[16:06:42] tubbo: mices: nah, any book written in the 1990s about javascript is pretty much no longer relevant...it would just be teaching you things you probably already know, like conditionals, proper syntax, etc.
[16:06:52] tubbo: mices: but there are better tutorials made these days that are more up-to-date.
[16:06:54] ziggles: Anyone know how to have spaces escaped? Rails.root.join('lib') # => #<Pathname:/Volumes/m 1/code/my_app/lib>
[16:07:05] ziggles: the "m 1" breaks the script
[16:07:17] melonstorm: has joined #RubyOnRails
[16:07:54] mices: tubbo: i'm not planning on trifling javascript it's really important to me, i so like sites like grubhub that use so much javascript
[16:08:17] blackmesa: has joined #RubyOnRails
[16:08:19] jhass: alaing: use a configuration system that you can use for both, configuring the port for faye and access from your rails app
[16:08:29] lacrymology: has joined #RubyOnRails
[16:08:33] rodfersou: has joined #RubyOnRails
[16:08:41] mices: tubbo: but i like to be prepared for people hitting my site from mobile browsers
[16:09:03] tubbo: mices: if you're a web developer, javascript is important to you whether you know/accept it or not.
[16:09:10] _HombreTepic: has joined #RubyOnRails
[16:09:23] alaing: jhass: would you be able to recommend such a system? sorry i'm relatively new to rails
[16:09:30] mices: and just keeps getting more so until a replacement comes along
[16:09:30] badoo: has joined #RubyOnRails
[16:09:46] kitsuneyo: has joined #RubyOnRails
[16:09:54] jhass: alaing: the most basic one that comes with your OS would be environment variables
[16:11:27] jamey-uk1: has left #RubyOnRails: ()
[16:11:48] beneggett: has joined #RubyOnRails
[16:11:55] tubbo: mices: there won't be a replacement anytime soon.
[16:12:10] mices: tubbo: my first impression was that rails was gonna handle javascript for me through jquery and then i thought i wouldn't have to worry about what type of browser someone's using because rails is there for me, does that make any sense?
[16:13:01] wldcordeiro: has joined #RubyOnRails
[16:13:37] andrew-l: mices: yeah, if you stick to server-side rendering, you won't have to worry about javascript and have rails render what you want the page to look like each time
[16:14:19] tubbo: mices: i think you have the roles of jquery and rails mixed up here. jquery is basically just a wrapper for the regular DOM APIs. it's "just javascript", but wrapped in an easy to use and common API that is cross-browser compliant in most cases.
[16:14:59] mices: tubbo: my understanding jquery will rewrite ruby code to javascript for the javascript interpreter to read
[16:15:11] michael_mbp: has joined #RubyOnRails
[16:15:14] tubbo: mices: rails has a little plugin for jquery called rails_ujs that adds a few events around ajax calls and sets up some event handlers on the [data-remote] selector that causes those events to be fired. all rails_ujs does is make ajax in rails a little bit easier.
[16:15:33] andrew-l: mices: maybe you're thinking of opal? https://github.com/opal/opal
[16:15:34] tubbo: mices: your understanding is incorrect. i suggest actually reading about what jquery does.
[16:15:35] FLeiXiuS: has joined #RubyOnRails
[16:15:36] FLeiXiuS: has joined #RubyOnRails
[16:15:47] andrew-l: or: https://github.com/opal/opal-rails ?
[16:15:47] beneggett: I have some routes constrained to subdomains, how can I pass a subdomain into app.get, e.g. something like app.get '/my_path', subdomain: 'my_sub' ?
[16:15:49] googly: has joined #RubyOnRails
[16:15:56] mices: tubbo: right, i was thinking of ajax, that's where i got that idea, from a chapter on ajax
[16:16:07] tubbo: mices: a chapter from what?
[16:16:27] mices: agile web development with rails, chapter is "adding a dash of ajax"
[16:16:54] tubbo: mices: well, unless you're reading like volume 2 or 1 of that book, which is quite outdated, i'm not sure why you'd think that's what jquery does.
[16:17:00] tubbo: because it's not what it does and that's not what that chapter says.
[16:17:03] pulgalipe: has joined #RubyOnRails
[16:17:31] banister: has joined #RubyOnRails
[16:18:00] tubbo: there *are* ways to interpolate ruby code into your JS, but they need to be ERb JS views in app/views, and they're still kind-of rendered on the server
[16:18:25] tubbo: the way it works is a .js view gets rendered on the server when requested by the client, then the client just executes the code it was given instead of actually rendering it as a page in the browser.
[16:18:25] andrew-l: tubbo: what about using opal to do: ruby => js ?
[16:18:37] tubbo: andrew-l: meh
[16:19:31] blackmesa: has joined #RubyOnRails
[16:19:32] tubbo: andrew-l: i kinda don't think its necessary anymore. the changes in ECMAScript 6 and the proposed new ES changes in the coming year make that somewhat irrelevant. in my opinion, JS is shaping up to be quite a nice little language
[16:19:40] badoo: has joined #RubyOnRails
[16:20:14] andrew-l: tubbo: i agree. when i have to do JS work, i just do it all in pure JS.
[16:20:17] mices: tubbo: it's a completely different paradigm from what i'm trying to do because it's server side rendering with jquery but here's a half-a-snippet that may or may not demonstrate what i was saying
[16:20:19] tubbo: i mean i liked it before, but i'm a big fan of the new syntax for doing things that were previously really ugly, like defining more complex objects, exporting modules, etc.
[16:20:31] mices: tubbo: <%= escape_javascript render(@cart) %>");
[16:20:45] mices: escape_javascript converts things to javascript
[16:20:49] tubbo: mices: yeah there ya go
[16:21:24] tildes: has joined #RubyOnRails
[16:21:44] The_Phoenix: has joined #RubyOnRails
[16:21:47] tubbo: mices: it's a decent way of rendering a bit of HTML code without refreshing the page. typically i like to do all my JS code work *in* the JS files, but in the case of not repeating yourself when rendering HTML content, that option can't be beat.
[16:22:03] darkxploit: has joined #RubyOnRails
[16:22:06] tubbo: if the HTML code is *always* rendered from JS, i'll typically just use a JST in app/assets/javascripts/templates
[16:22:41] tubbo: you can use EJS (basically ERb for JS) to write your templates as if they were rails views, except they don't execute any ruby code, it's all JS
[16:22:55] tubbo: i think you can also populate these templates with data, which is great for the logic-less templating approach
[16:23:37] mices: my concern is i don't wanna frustrate users with forms that reload when they change something
[16:23:53] mices: that's so frustrating sometimes
[16:24:16] baweaver: has joined #RubyOnRails
[16:24:21] greengriminal: has joined #RubyOnRails
[16:24:40] mices: because the page moves away from underneath their mouse and they end up misclicking and having to use the back button
[16:25:00] mices: happens to me all the time online
[16:25:30] mices: i feel if it can be easily avoided, i should, though it's not a significant issue
[16:25:40] mices: just give me a reason and i don't care about it
[16:25:50] tubbo: mices: yeah i mean, that's just shitty programming...something i'd expect from the DMV site or whatever that hasn't been updated in 20 years.
[16:26:19] tubbo: mices: if all you want to do is toggle an attribute when something changes, it's basically 1 line of jquery. pretty simple.
[16:26:49] tubbo: mices: my suggestion is going to api.jquery.com and/or completing some tutorials on how jquery works before going any further.
[16:27:00] mices: and it's gotta be rendered from the server
[16:27:01] ldnunes: has joined #RubyOnRails
[16:27:13] kmckelvin: has joined #RubyOnRails
[16:27:22] hardtail: has joined #RubyOnRails
[16:27:31] mices: so i should forget about client side javascript drawing my pages?
[16:28:29] mices: if i wanna be able to have sites like grubhub i'm gonna have to draw pages from the client side?
[16:28:30] yoongkang: has joined #RubyOnRails
[16:28:37] mices: or they're using server-side?
[16:28:42] jahbrewski: has joined #RubyOnRails
[16:29:08] mices: in grubhub everything causes a pop-up window
[16:29:48] mices: so a lot is done without navigating away at all from the same page
[16:31:36] mices: it seems corny to have the server just blur a single field
[16:32:01] lasker85: has joined #RubyOnRails
[16:33:34] danneu: has joined #RubyOnRails
[16:33:49] mices: actually all that on grub hub would be server side because they're delivering data
[16:33:57] mices: the menus are on the server
[16:34:33] mices: but just to blur a field i should insert a partial? then i have to create a controller and write actions
[16:34:53] kitsuneyo: has joined #RubyOnRails
[16:34:57] mices: jquery controller
[16:40:16] bronson: has joined #RubyOnRails
[16:40:25] cydrobolt: has joined #RubyOnRails
[16:40:26] cydrobolt: has joined #RubyOnRails
[16:41:27] mices: tubbo: you're right it was 98
[16:42:07] honestemu: Have any of you guys worked with simple_form? When using simple_form_for, what kind of arguments does it take?
[16:43:01] kies: has joined #RubyOnRails
[16:44:56] honestemu: For example, https://gist.github.com/emilabraham/3d193537e00fd4d5872f
[16:45:10] loglaunch: has joined #RubyOnRails
[16:45:14] prasselpikachu: has joined #RubyOnRails
[16:45:24] shtirlic: has joined #RubyOnRails
[16:45:37] AlHafoudh: has joined #RubyOnRails
[16:45:53] gregf_: has joined #RubyOnRails
[16:46:13] tubbo: honestemu: the same arguments as form_for IIRC
[16:46:20] yardenbar: has joined #RubyOnRails
[16:46:25] tubbo: it's kind-of just a DSL for doing form_for @whatever, builder: SimpleForm::FormBuilder
[16:46:30] tubbo: s/DSL/alias
[16:46:41] annlewis: has joined #RubyOnRails
[16:48:00] kgrz: has joined #RubyOnRails
[16:49:11] renegadeandy: has joined #RubyOnRails
[16:50:49] beneggett: has joined #RubyOnRails
[16:51:06] jottr_: has joined #RubyOnRails
[16:51:22] mices: tubbo: reading on jqueryui.com, nice, thanks
[16:51:51] mag42c: has joined #RubyOnRails
[16:52:19] BlackCoyote: has joined #RubyOnRails
[16:52:24] FailBit: https://twitter.com/JoelBesada/status/670343885655293952
[16:53:02] honestemu: tubbo: What is a DSL?
[16:53:08] [Butch]: has joined #RubyOnRails
[16:53:32] FailBit: domain specific language
[16:53:47] FailBit: it is a way of crafting the language to create "your own grammar"
[16:54:16] FailBit: config/routes.rb is a good example
[16:54:35] FailBit: every line is a function call, but it doesn't read like function calls
[16:58:03] lapide_viridi: has joined #RubyOnRails
[17:00:01] tubbo: so is rspec
[17:00:15] FailBit: ACTION bites tubbo for mentioning rspec
[17:00:52] annlewis: has joined #RubyOnRails
[17:00:59] tubbo: yeah sorry, i'll mention Chef next time. even though rspec > *
[17:02:22] adre: has joined #RubyOnRails
[17:02:26] jalcine: has joined #RubyOnRails
[17:03:31] drbayer: has joined #RubyOnRails
[17:04:21] speakingcode: has joined #RubyOnRails
[17:04:47] kitsuneyo: has joined #RubyOnRails
[17:05:28] honestemu: Ahh okay. So from what I understand, form_for is taking in an instance of a new model object. In this example http://guides.rubyonrails.org/form_helpers.html#binding-a-form-to-an-object
[17:06:23] gregf_: has joined #RubyOnRails
[17:07:03] jottr_: has joined #RubyOnRails
[17:08:53] mostlybadfly: has joined #RubyOnRails
[17:08:55] Denarii: has joined #RubyOnRails
[17:08:59] tubbo: honestemu: yes, or an existing model object. it runs `new_record?` on the object to determine whether this should be a create or update request.
[17:09:00] s2013: has joined #RubyOnRails
[17:09:22] nyaa: has joined #RubyOnRails
[17:10:10] dopie: has joined #RubyOnRails
[17:13:17] Jasaka: has joined #RubyOnRails
[17:13:39] mices: does spree create mobile apk's ?
[17:13:42] s2013: k im stumped on something.. i have an user model and an application model.. application belongs to user.. so im creating a scope where its not going to include user who has an application and its application state is -2..
[17:13:54] s2013: problem is that it will not include users who dont have the application. this is my query
[17:13:58] s2013: User.joins("LEFT JOIN `membership_applications` ON `users`.id = `membership_applications`.user_id").where("membership_applications.state != ?", -2)
[17:14:18] honestemu: tubbo: Okay. Cool. So now I just have to figure out how to make it work for existing database entries. Like, I want it to have a multi_select menu for each of the model's attributes and get a list of all possible options from the database to select from.
[17:14:25] cornerma1: has joined #RubyOnRails
[17:15:28] s2013: any clue?
[17:15:32] gregf_: has joined #RubyOnRails
[17:16:06] tubbo: honestemu: i think if you just do f.input :association_name, as: :select, simple_form builds that for you
[17:16:10] davidw: has joined #RubyOnRails
[17:16:21] tubbo: honestemu: but you should refer to the wiki for all the input types that are builtin
[17:17:00] honestemu: tubbo: Where is that f coming from though? Don't I need a model to create the form?
[17:17:16] tubbo: s2013: have you tried User.where.not(membership_applications: { state: -2 } })?
[17:17:49] tubbo: honestemu: it's the form object, when you do form_for @model do |f|, the 'f' is what i'm referring to. simple_form_for also exports that object as 'f'
[17:18:38] s2013: its rails 3
[17:18:48] s2013: is where.not avialable on rails 3?
[17:18:54] tubbo: s2013: oh probably not, no
[17:19:03] maxz: has joined #RubyOnRails
[17:19:19] s2013: yeah so any clue? the left join returns all the users that has or doesnt have the applications so that part is fine
[17:19:20] tubbo: s2013: but why are you doing that custom LEFT JOIN? can't you just do User.joins(:membership_applications)?
[17:19:30] s2013: no because not all users have membership_applications
[17:19:33] s2013: and i want to include them as well
[17:19:44] tubbo: s2013: i think you can use includes() then.
[17:20:08] s2013: User.includes(:membership_application).where("membership_applications.state != ?", -2) ?
[17:20:10] s2013: like that?
[17:20:24] davidw: has joined #RubyOnRails
[17:20:24] davidw: has joined #RubyOnRails
[17:20:40] s2013: that dont work. it only returns records that has membership applications
[17:21:20] s2013: somehow the .where invalidates that left join
[17:22:14] tubbo: so what query does that generate?
[17:22:36] jobewan: has joined #RubyOnRails
[17:22:38] s2013: the includes generate a left join query. hold on
[17:22:49] beneggett: has joined #RubyOnRails
[17:23:15] s2013: SELECT COUNT(DISTINCT `users`.`id`) FROM `users` LEFT OUTER JOIN `membership_applications` ON `membership_applications`.`user_id` = `users`.`id` WHERE (membership_applications.state != -2)
[17:23:18] kitsuneyo: is it possible to send a value via a form outside of params?
[17:23:46] solenoids: has joined #RubyOnRails
[17:23:53] kitsuneyo: to the controller i mean
[17:24:05] Detch: has joined #RubyOnRails
[17:26:21] towski_: has joined #RubyOnRails
[17:27:16] s2013: hmm i think i got it.. maybe
[17:27:55] execute: has joined #RubyOnRails
[17:28:02] honestemu: What does @microsites = Microsite.all in a controller do? If I have a model called microsite?
[17:28:32] honestemu: I believe it should return all instances of the microsite model in the db. amirite?
[17:29:20] squiercaster: has joined #RubyOnRails
[17:29:21] s2013: yeah i had to use AND
[17:29:28] honestemu: Now the template should have a variable @microsites that is an instance of all microsites in the db. Right? Just wanna confirm I'm understanding this correctly.
[17:29:46] yoongkang: has joined #RubyOnRails
[17:29:47] skyjumper: anyone know of a good client-side pagination/search solution?
[17:30:43] tubbo: skyjumper: i think jquery-dataTables has that built in
[17:30:50] s2013: nvm.. wtf
[17:31:12] tubbo: s2013: weird
[17:31:18] skyjumper: it does... hoping to find a table-less solution though
[17:31:28] s2013: now it returns every record even if the state is -2
[17:31:42] tubbo: yeah i was thinking that's probably not what you want
[17:32:01] tubbo: s2013: but you want a LEFT INNER JOIN i'm pretty sure
[17:32:04] thezanke: Help! I am trying to use a helper (Dashboard::AlertsHelper) in a mailer class.. I added "helper 'dashboard/alerts'" to the top of my mailer class but it's not working
[17:32:06] tubbo: that's why you're getting 'extra' records
[17:32:13] s2013: let me try
[17:32:50] nertzy: has joined #RubyOnRails
[17:32:53] s2013: left inner join doesnt work.. gives me an error
[17:33:42] lacrymology: has joined #RubyOnRails
[17:33:54] tubbo: i hate joins
[17:33:57] s2013: dont know why its being so difficult.. i do too
[17:34:00] tubbo: can never get that shit right haha
[17:34:29] s2013: so how would you do it? basically return all records except ones that has the state of -2 for its application
[17:34:32] tubbo: s2013: my suggestion is to paste that query into whatever GUI you use for your database and try different variations to see what kind of data you get back. this is less of a rails problem, and more of a SQL problem.
[17:34:38] s2013: but if it doesnt have an application, return it
[17:34:40] moei: has joined #RubyOnRails
[17:34:44] tubbo: that's usually how i solve issues with that
[17:34:52] tubbo: DB joins*
[17:35:24] pulgalipe: has joined #RubyOnRails
[17:35:39] Pazician: has joined #RubyOnRails
[17:37:40] honestemu: has joined #RubyOnRails
[17:38:33] s2013: has joined #RubyOnRails
[17:39:11] sandstrom: has joined #RubyOnRails
[17:39:31] s2013: that stupid left join is ignoring the AND condition
[17:40:49] lacrymology: with rspec, can I expect a method to be called with SOME specific params?
[17:41:07] lacrymology: like, I've got foo(a, b, c, d, e), and I care to test the values of a, d and e
[17:41:07] bronson: has joined #RubyOnRails
[17:42:02] bergs: has joined #RubyOnRails
[17:43:52] mices: tubbo: do i still have to put jquery-ui in my gemfile or is just jquery-rails good enough now
[17:43:57] workmaster2n: has joined #RubyOnRails
[17:44:08] tubbo: mices: no, jquery-ui is a separate component.
[17:44:20] tubbo: i think there's a gem for it but i'm not sure
[17:45:11] djbkd: has joined #RubyOnRails
[17:45:13] Darkman738: has joined #RubyOnRails
[17:45:21] mices: tubbo: well the examples on jqueryui say i have to put <script src="//code.jquery.com/jquery-1.10.2.js"></script> in my view
[17:45:32] Denarii: lacrymology: there's an `anything` matcher you can use for the params you don't care about
[17:45:48] mices: but they're not talking about view they're talking about html file
[17:45:55] mices: i said view, sorry
[17:46:35] tubbo: mices: since you have //= require jquery in your application.js, you shouldn't need to do that.
[17:46:42] tubbo: mices: because jquery is already in the JS
[17:46:47] pulgalipe: has joined #RubyOnRails
[17:46:54] mices: tubbo: ty
[17:46:59] safety_cut: has joined #RubyOnRails
[17:47:51] iamayam: has joined #RubyOnRails
[17:48:34] mxrguspxrt: has joined #RubyOnRails
[17:50:05] bronson: has joined #RubyOnRails
[17:50:08] lasker85: has joined #RubyOnRails
[17:50:25] jbrhbr: has joined #RubyOnRails
[17:52:21] slash_nick: mices: also, you must keep your towel with you at all times
[17:54:06] mices: slash_nick: what do you mean?
[17:54:15] jsrn_: has joined #RubyOnRails
[17:56:30] slash_nick: mices: my mistake... my suspicion that you're a bot has been growing... </turingTest>
[17:57:06] mices: sounds like you're make a reference to fema camp
[17:57:27] renegadeandy: Is it possible to make this brilliant gem : https://github.com/ryanb/private_pub include a way for me to interrogate all current subscriptions?
[17:57:41] renegadeandy: I cannot see this in the API PrivatePub offers
[18:00:07] Cervajz: has joined #RubyOnRails
[18:03:21] RegulationD: has joined #RubyOnRails
[18:03:55] amortimer: has joined #RubyOnRails
[18:05:58] bergs: ah back at work after a week off
[18:06:02] bergs: I'm ready to go home.
[18:06:33] annlewis: has joined #RubyOnRails
[18:08:25] jottr_: has joined #RubyOnRails
[18:09:23] slash_nick: mices: reference was to hitchhiker's guide to the galaxy
[18:09:32] colleenmcguckin: has joined #RubyOnRails
[18:10:03] FailBit: mfw I just got inspired by a book to go read calculus concepts again
[18:10:18] FailBit: [fedora intensifies]
[18:10:21] FailBit: f(x) dx motherfuckers
[18:12:15] blackmesa: has joined #RubyOnRails
[18:12:40] jmrepetti: has joined #RubyOnRails
[18:13:18] mices: slash_nick: thank god
[18:14:13] mices: it's a big market, there's other auction sites besides ebay already, like delcampe.com
[18:14:29] mices: i'd just be another
[18:14:39] bergs: wait, did mices fail the turing test?
[18:15:18] slash_nick: bergs: no, passed
[18:15:32] mices: and ebay is more of a seller's platform than auction site or maybe figure 50/50
[18:15:59] mices: it's easy to be a seller's platform and hard to be an auction site i think
[18:16:16] bergs: and by passed you mean it's a bot that convinced us all it's human?
[18:16:53] baweaver: has joined #RubyOnRails
[18:16:58] mices: ask me who's the president of the united states
[18:17:14] ql6wlld: has joined #RubyOnRails
[18:17:32] mices: and i'll say that the thing ain't the ring it's the play
[18:18:10] robotbrain_: has joined #RubyOnRails
[18:18:50] fryguy: has joined #RubyOnRails
[18:19:15] krz: has joined #RubyOnRails
[18:19:34] G: has joined #RubyOnRails
[18:19:51] mices: in fact, in fine art, all the auction houses have online auctions
[18:20:18] mices: there's just a shortage of lower priced items auction sites
[18:21:07] jtdowney: has joined #RubyOnRails
[18:21:07] rakm: has joined #RubyOnRails
[18:21:07] jtdowney: has joined #RubyOnRails
[18:21:32] colleenmcguckin: has joined #RubyOnRails
[18:21:38] maloik: has joined #RubyOnRails
[18:22:50] pipework: has joined #RubyOnRails
[18:22:58] alevy: has joined #RubyOnRails
[18:23:22] mickey_mouse: has joined #RubyOnRails
[18:24:34] CheckYourSix: has joined #RubyOnRails
[18:24:59] lemur: has joined #RubyOnRails
[18:25:04] GarethAdams: has joined #RubyOnRails
[18:25:31] tris: has joined #RubyOnRails
[18:26:10] nym: has joined #RubyOnRails
[18:26:19] hahuang61: has joined #RubyOnRails
[18:26:19] robotbrain: has joined #RubyOnRails
[18:27:10] yogeshrt: has joined #RubyOnRails
[18:27:45] srinidhi: has joined #RubyOnRails
[18:28:08] urkle: has joined #RubyOnRails
[18:28:15] kmckelvin: has joined #RubyOnRails
[18:28:52] EXCHGR: has joined #RubyOnRails
[18:28:53] Junaos: has joined #RubyOnRails
[18:29:00] sbarg: has joined #RubyOnRails
[18:29:45] platzhirsch: has joined #RubyOnRails
[18:30:00] Liothen: has joined #RubyOnRails
[18:30:01] Liothen: has joined #RubyOnRails
[18:30:53] mices: will jquery-ui blind fuction work without any changes to css file
[18:31:25] safety_cut: has joined #RubyOnRails
[18:31:31] blowmage: has joined #RubyOnRails
[18:31:56] mices: still not working https://gist.github.com/mices/bd9d6c5bd68f2a6fb479
[18:33:03] mcr-credil: has joined #RubyOnRails
[18:33:25] sparr: has joined #RubyOnRails
[18:33:32] slash_nick: not working? does it toggle without a blind effect? or does it just do nthing?
[18:33:52] mices: what do you mean toggle without a blind effect?
[18:33:59] mices: how can i check for that
[18:34:12] TDJACR: has joined #RubyOnRails
[18:34:44] Sawbones: has joined #RubyOnRails
[18:34:45] mices: when i select fixed price the starting bid field just stays there
[18:36:06] jessemcgilallen: has joined #RubyOnRails
[18:37:25] sandstrom: has joined #RubyOnRails
[18:37:58] mices: there's no need for a stylesheet link in the document right? the gem is gonna handle that for me?
[18:38:30] mices: a link to code.jquery.com...
[18:39:42] Haydos: has joined #RubyOnRails
[18:39:50] ajb: has joined #RubyOnRails
[18:40:37] hahuang65: has joined #RubyOnRails
[18:40:44] atrius: has joined #RubyOnRails
[18:40:50] Scient: has joined #RubyOnRails
[18:40:53] ^Denis: has joined #RubyOnRails
[18:40:59] Frem: has joined #RubyOnRails
[18:41:14] pulgalipe: has joined #RubyOnRails
[18:41:33] tubbo: mices: here's a question, why can't i sell lower-priced items on ebay?
[18:41:37] akosednar: has joined #RubyOnRails
[18:41:57] arthurnn: has joined #RubyOnRails
[18:42:01] aep: has joined #RubyOnRails
[18:42:06] eggoez: has joined #RubyOnRails
[18:42:21] okdas: has joined #RubyOnRails
[18:42:21] okdas: has joined #RubyOnRails
[18:42:39] ebertx: has joined #RubyOnRails
[18:42:40] DanKnox[away]: has joined #RubyOnRails
[18:42:44] mices: christie's and sotheby's have online auctions
[18:42:45] Paradox: has joined #RubyOnRails
[18:42:48] apeiros: has joined #RubyOnRails
[18:42:50] Avon: has joined #RubyOnRails
[18:42:51] Avon: has joined #RubyOnRails
[18:42:55] markelite: has joined #RubyOnRails
[18:42:56] mices: but they only sell their own cheap stuff
[18:42:58] Frem: Should I be concerned about how much precision I'm losing here? And/or is there a better way to calculate differences in time? https://gist.github.com/jamesgecko/c6b4e16150ffaac89c1b
[18:43:02] mices: even broken pottery
[18:43:04] tubbo: makes sense
[18:43:11] tubbo: mices: sotheby's sells cheap stuff?
[18:43:12] Frem: oh, wait
[18:43:16] Frem: nvm, i'm an idiot
[18:43:22] mices: if you wanna consign with them, it's gotta be worth something significant
[18:43:44] mices: check their website i know christie's does
[18:43:51] tubbo: frem: unless you care about being precise on the microsecond or frame level, no.
[18:43:54] gbailey: has joined #RubyOnRails
[18:43:58] colleenm_: has joined #RubyOnRails
[18:44:01] mices: i saw them selling broken pottery they're calling forgivably chipped
[18:44:06] tubbo: mices: haha i see what you mean, but of course cheap is relative.
[18:45:05] mices: well if you take a painting to the brick and mortar auction house and it's worth less than let's say 10,000 they won't even tell you what it's worth they'll just tell you it's not enough to consign
[18:45:07] Uptime: has joined #RubyOnRails
[18:45:29] mices: i dunno about their websites
[18:45:51] pawnbox: has joined #RubyOnRails
[18:46:43] hahuang65: has joined #RubyOnRails
[18:46:43] jbrhbr: has joined #RubyOnRails
[18:46:48] mices: online these auction houses assume a different identify
[18:46:59] tubbo: mices: don't worry too much about the idea, focus on getting better with the code. the code you've shown so far is not something i'd trust in production, especially when handling other peoples' money.
[18:47:25] tubbo: mices: you might be onto something, but i say just keep working at it until you're satisfied or bored, whichever comes first :D
[18:47:45] K0nserv-: has joined #RubyOnRails
[18:47:53] mices: this isn't the kind of site you throw online, it's gonna be in development for a long time
[18:48:00] tubbo: definitely.
[18:48:06] mices: so once it's online it's not a pest
[18:48:51] mices: once a site's online and you find a bug you're stuck at your keyboard till it's fixed and if its something big ...
[18:48:55] based_pdev: has joined #RubyOnRails
[18:49:00] based_pdev_: has joined #RubyOnRails
[18:49:11] platzhirsch: has left #RubyOnRails: ()
[18:49:17] colleenmcguckin: has joined #RubyOnRails
[18:49:39] Gm4n: has joined #RubyOnRails
[18:49:41] tubbo: mices: lol tell me about it. i was at work until midnight on wednesday fixing shit for black friday. worked over the weekend too, and of course i'm working now.
[18:49:53] tubbo: shit happens, you gotta deal with it. thank god for capistrano.
[18:50:01] Uptime: has joined #RubyOnRails
[18:50:19] aguynamedben: has joined #RubyOnRails
[18:50:45] tubbo: it's cyber monday so we had to double our capacity for handling requests. i just deployed to 6 app servers.
[18:50:47] mices: aliexpress the sellers platform is just a computer offering 0 customer service, their live chat is just a bot but ebay on the other hand has to pay out tons in salary to customer service reps
[18:51:27] mices: what's cyber monday?
[18:51:37] mices: everyone's online monday?
[18:51:43] tubbo: mices: what, do you not buy computer parts? :P
[18:51:43] lacrymology: has joined #RubyOnRails
[18:51:59] tubbo: best time to buy them is either today or mid-january when the clearance sales kick in.
[18:52:07] tubbo: it's like black friday for ecommerce
[18:52:23] mices: i could use a new computer ha ha
[18:52:30] mices: a small screen laptop
[18:52:31] bergs: pricewatch.com?
[18:52:41] bergs: it's such a pain in the ass to build a computer from components
[18:52:57] mices: what type of display does a "surface" notebook use?
[18:52:57] tubbo: that's why i'm all mac
[18:53:02] Intii: has joined #RubyOnRails
[18:53:06] tubbo: mices: totally proprietary
[18:53:08] bergs: yeah I joined the mac cult last year
[18:53:11] tubbo: surface is cool
[18:53:18] mices: here's my thought
[18:53:21] Intii: Hi everyone, does anyone have experience using the Wicked gem? I have a quick question on that...
[18:53:25] bergs: I'm actually really impressed with osx
[18:53:26] tubbo: i actually want to get one *just* to compose music, because with the stylus you can change where the notes are placed really easily
[18:53:29] mices: laptops, notebooks, netbooks are backlit
[18:53:35] mices: unless they're touchscreen?
[18:53:49] tubbo: nah, everything is LCD.
[18:54:06] bergs: LCDs are backlit
[18:54:07] tubbo: it's literally a shitload of microscopic light diodes
[18:54:07] ur5us: has joined #RubyOnRails
[18:54:08] colleenmcguckin: has joined #RubyOnRails
[18:54:09] rodfersou: has joined #RubyOnRails
[18:54:14] tubbo: oh yeah true :D forgot about that
[18:54:28] Cervajz: has joined #RubyOnRails
[18:54:29] mices: including amoled?
[18:54:30] bahar: has joined #RubyOnRails
[18:54:33] Intii: has left #RubyOnRails: ()
[18:54:36] chridal: has joined #RubyOnRails
[18:54:36] tubbo: meh i don't know really
[18:54:39] bergs: LCD has a backlight and each pixel occludes the spectrum that shouldn't be visible
[18:54:47] bergs: OLED means each pixel is lit as needed
[18:55:00] ur5us: has joined #RubyOnRails
[18:55:03] bergs: OLED is more expensive, uses less power, and should have a better picture
[18:55:08] mices: i thought phones and tablets aren't backlit
[18:55:19] Klumben: has joined #RubyOnRails
[18:55:20] bergs: any LCD is backlit
[18:55:28] colleenmcguckin: has joined #RubyOnRails
[18:55:50] tpendragon: has joined #RubyOnRails
[18:56:06] Intii: has joined #RubyOnRails
[18:56:07] bergs: and then there's bistable, like the kindle. I'm not sure how those work. the pixels stay "on" with no power
[18:56:08] mices: then i guess the best tech in displays now is gzvo something like that
[18:56:20] bergs: never heard of gzvo..?
[18:56:34] mices: the new dell xps 13
[18:56:37] bergs: there was an OLED keyboard that came out a few years ago for like $900
[18:56:53] mices: 10 hours battery life with this new display tech
[18:57:24] tubbo: building a laptop from components is hard work
[18:57:26] mices: gzvzo something like that
[18:58:07] bergs: have you built a laptop, tubbo?
[18:58:10] bergs: I never did that
[18:58:25] bergs: heh when I built PCs I used to get the biggest chassis I could fine
[18:58:28] bergs: s/fine/find
[18:58:50] centrx: has joined #RubyOnRails
[18:59:44] skarn: has joined #RubyOnRails
[19:00:25] tubbo: no but i've fixed quite a few. the main issue is that you can't really just buy parts for a laptop that are generic, like you can with a PC.
[19:00:38] hahuang65: has joined #RubyOnRails
[19:00:40] Gm4n: has joined #RubyOnRails
[19:00:40] tubbo: for example, the case and fan assembly is pretty much different for every manufacturer. there's no "standard".
[19:00:49] Avon: has joined #RubyOnRails
[19:00:55] Pazician: has joined #RubyOnRails
[19:01:06] _djbkd: has joined #RubyOnRails
[19:01:19] FailBit: did someone say assembly
[19:01:31] FailBit: mov [rax], rsp+10h
[19:01:39] ascarter: has joined #RubyOnRails
[19:01:52] tubbo: RISCy click of the day
[19:02:01] FailBit: that's cisc for you
[19:02:03] _djbkd: has joined #RubyOnRails
[19:03:08] bronson: has joined #RubyOnRails
[19:03:41] momomomomo: has joined #RubyOnRails
[19:05:05] FailBit: I'm actually far more familiar with ARM
[19:05:17] FailBit: armv7a, at that
[19:06:19] `based_pdev`: has joined #RubyOnRails
[19:06:26] djbkd: has joined #RubyOnRails
[19:07:29] annlewis: has joined #RubyOnRails
[19:08:01] ellisTAA: has joined #RubyOnRails
[19:08:13] mices: well with battery life going up in 2016 laptops not worth fixing
[19:08:15] safety_cut: has joined #RubyOnRails
[19:10:04] replay: has joined #RubyOnRails
[19:10:07] ellisTAA: i have a decoupled app and i want the client to create a user from the front end to the back end. i was thinking i???d use httparty to send a post request but that required an authentication token ??? so i decided it would be easier to just make an ajax post request where it doesn???t require an authentication token. Is it better to use httparty to create the user?
[19:11:08] sonofdirt: has joined #RubyOnRails
[19:13:39] hahuang65: has joined #RubyOnRails
[19:15:25] honestemu: has joined #RubyOnRails
[19:15:32] manfrin: has joined #RubyOnRails
[19:16:07] maloik: has joined #RubyOnRails
[19:16:18] kadoppe: has joined #RubyOnRails
[19:17:25] arBmind: has joined #RubyOnRails
[19:18:02] melonstorm: has joined #RubyOnRails
[19:18:14] bergs: I have two ARMs
[19:18:36] FailBit: do you also have two THUMBs?
[19:18:53] bergs: not since.. the accident :(
[19:20:15] FailBit: (THUMB is the fast 16-bit subset of 32bit ARM)
[19:21:01] shamanime: has joined #RubyOnRails
[19:21:11] juddey: has joined #RubyOnRails
[19:21:32] apotry: has joined #RubyOnRails
[19:22:15] Sawbones: has joined #RubyOnRails
[19:22:59] maloik: has joined #RubyOnRails
[19:24:15] netzfisch: has joined #RubyOnRails
[19:25:43] mices: i think there's a point where web developing gets to fun not work once you know what you're doing
[19:25:51] mices: gets to be fun
[19:26:13] mices: so i'm not trying to create work for myself
[19:26:20] ellisTAA: if i have a decoupled app & i want to make a post request from my front end do i add rack cors to the back end or the front end? i just added it to the backend and it didn???t work
[19:26:22] mices: just because i'm building sites
[19:26:42] workmaster2n: has joined #RubyOnRails
[19:28:26] tubbo: it's alright
[19:28:35] juddey: ellistaa: add it to your back-end
[19:28:42] ellisTAA: juddey: i did :\
[19:28:55] juddey: might need some more iinformation about "what didn't work" though :D
[19:29:44] juddey: just joined the channel so if you've explained earlier I can look at the logs?
[19:30:12] ellisTAA: juddey: i didn???t add this stuff to the config.ru file ??? http://www.rubydoc.info/gems/rack-cors/0.4.0 that???s because a tutorial i followed didn???t mention it ..
[19:30:24] ellisTAA: i only added the stuff below it under Rails
[19:30:33] maloik: has joined #RubyOnRails
[19:32:36] j4d: has joined #RubyOnRails
[19:33:35] chouhoul_: has joined #RubyOnRails
[19:33:42] mices: there's no errors in debug i searched
[19:33:54] juddey: ellistaa: no, the rails stuff only is fine
[19:34:06] ellisTAA: juddey: hmm weird
[19:34:08] bronson: has joined #RubyOnRails
[19:34:34] juddey: ellistaa: not really weird, cors can be finicky when you first start out
[19:34:44] juddey: at least thats what I found
[19:36:10] juddey: so when you say "didn't work" can you give us some code or error messages or somehting? I'm assuming you have an error in your front end? Or rails back-end?
[19:36:19] juddey: or is there no error?
[19:36:36] mices: juddley: sorry i didn't think to check the server side
[19:36:48] tubbo: juddey: !dw
[19:36:48] helpa: juddey: What "didn't work"? Did your server not start? Did your computer explode? Did your webpage turn bright pink? Did your client not pay your bill on time? You may have to be more specific. A Gist (http://gist.github.com) of the code that doesn't work (and the error you are getting) will be helpful.
[19:36:54] tubbo: juddey: for future reference :D
[19:36:55] roshanavand: has joined #RubyOnRails
[19:37:06] juddey: cheers tubbo
[19:37:15] goodcodeguy: has joined #RubyOnRails
[19:37:56] tubbo: mices: https://www.youtube.com/watch?v=3KtYwWsVKU4
[19:38:27] moeabdol: has joined #RubyOnRails
[19:38:51] ql6wlld: has joined #RubyOnRails
[19:39:00] rhizome: has joined #RubyOnRails
[19:39:23] shibabu: has joined #RubyOnRails
[19:39:24] mices: tubbo: ty
[19:39:26] Darkman738: has joined #RubyOnRails
[19:39:54] mices: i stumbled across something by accident, i reloaded the page with debug open and this is what debug printed (function() { }).call(this);
[19:41:06] momomomomo: has joined #RubyOnRails
[19:41:48] lasker85: has joined #RubyOnRails
[19:45:30] slash_nick: means u r hacked
[19:45:46] droptone: ELITE HACKERS
[19:46:02] ellisTAA: when i add rack cors to my app do i need to run something on heroku like bundle install?
[19:46:13] ellisTAA: or does heroku do that by default?
[19:47:00] mices: did require j-query replace require jquery-rails and require jquery-ui-rails
[19:47:04] tubbo: ellistaa: heroku does do that for you
[19:47:21] _HombreTepic: has joined #RubyOnRails
[19:47:40] ellisTAA: tubbo: thanks
[19:47:42] mices: because i'm unable to use either
[19:47:43] tubbo: mices: you're confusing sprockets require and ruby require. read up on sprockets require: http://guides.rubyonrails.org/asset_pipeline.html
[19:48:05] crdpink: has joined #RubyOnRails
[19:48:22] tubbo: mices: and here's some more info on getting jquery-rails to work: https://github.com/rails/jquery-rails
[19:48:34] mices: tubbo: are the sprockets of use without the ruby
[19:49:41] djbkd: has joined #RubyOnRails
[19:49:56] ashishsingh173: has joined #RubyOnRails
[19:50:08] baweaver: has joined #RubyOnRails
[19:50:27] loglaunch: has joined #RubyOnRails
[19:51:55] goodcodeguy: has joined #RubyOnRails
[19:52:07] juddey: ellistaa: does rack-cors work locally? that'd be the first thing I tried
[19:52:40] shtirlic: has joined #RubyOnRails
[19:53:09] Radar: GOOD MORNING
[19:53:20] ellisTAA: juddey: figured it out. i moved configuration from application.rb to config.ru & that worked
[19:53:25] ellisTAA: juddey: thanks for all the help :)
[19:53:50] juddey: ellistaa: \o/
[19:54:23] juddey: hello, Radar, keeper of the bot.
[19:54:24] meoblast001: has joined #RubyOnRails
[19:55:00] Papierkorb: Radar: OOOOHHAAAAYYYYOOO
[19:56:15] Papierkorb: I store some data in a @instance variable inside a ActiveRecord::Base sub-class. When sub-classing from that class (doing STI), how can I copy this Class instance variable over to the new class?
[19:56:23] michaeldeol: has joined #RubyOnRails
[19:56:35] Papierkorb: having a inherited hook in there breaks things??? it seems inside Rails :)
[19:58:09] helpa: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[19:58:19] paulodiniz: has joined #RubyOnRails
[19:58:26] michaelstephens: has joined #RubyOnRails
[19:58:40] roshanavand: has joined #RubyOnRails
[19:59:35] Papierkorb: Heh. a #dup call inside the inherited hook fixed it.
[20:02:04] maloik: has joined #RubyOnRails
[20:02:05] lacuna: has joined #RubyOnRails
[20:02:59] mices: how do i get my jquery version
[20:04:29] mices: doesn't make a difference that's not gonna be the problem
[20:04:51] MaDErroR123: has joined #RubyOnRails
[20:05:07] brunto: has joined #RubyOnRails
[20:05:39] kitsuneyo: has joined #RubyOnRails
[20:06:42] bronson: has joined #RubyOnRails
[20:07:14] Cervajz: has joined #RubyOnRails
[20:08:05] annlewis: has joined #RubyOnRails
[20:08:49] Papierkorb: Ha. I can reproduce it with a minimal example. hang on
[20:10:05] Cervajz_: has joined #RubyOnRails
[20:10:25] Cervajz__: has joined #RubyOnRails
[20:11:10] Papierkorb: Ha. I forgot to call 'super'.
[20:11:12] jalcine: has joined #RubyOnRails
[20:11:46] SalexW: has joined #RubyOnRails
[20:11:49] chubijs: has joined #RubyOnRails
[20:12:26] Papierkorb: https://gist.github.com/Papierkorb/c3b8c73bafba1bc93a30 AR code fails with a NilClass exception if you don't have that
[20:13:45] sonofdirt: has joined #RubyOnRails
[20:14:40] mices: Radar: https://gist.github.com/mices/bd9d6c5bd68f2a6fb479
[20:15:30] Pazician: has joined #RubyOnRails
[20:16:50] allcentury: has joined #RubyOnRails
[20:17:05] kitsuneyo: has joined #RubyOnRails
[20:17:06] axl_: has joined #RubyOnRails
[20:17:23] tinderusr_: has joined #RubyOnRails
[20:18:14] GJdan: has joined #RubyOnRails
[20:18:37] GJdan: is there a way to run multiple versions of rails side by side for development?
[20:19:29] chubijs: Evening. I could really use tip on a few css settings to achieve my desired goal for my site background. Been struggling with this four a few hours now. Long story short - I have a 1920x1080 image as my site background. I ran into a little problem with scaling and resizing it depending on the window size. I want it to cover the whole bg with it. I got it to work on most sizes, but I run into problems when i make the window really small. It doesnt cov
[20:19:29] chubijs: er the bottom because of the dimensions. I dont need it to stretch, just render just a part of the image when the screen size is really small. Repeat is out of the question, because it's not a pattern, but an actual image
[20:19:30] duncannz: has joined #RubyOnRails
[20:19:31] roshanavand: has joined #RubyOnRails
[20:20:05] yoongkang: has joined #RubyOnRails
[20:20:45] LambdaSource: has joined #RubyOnRails
[20:21:20] maloik: has joined #RubyOnRails
[20:21:59] chubijs: I want it to show just a part of the image when the window size is really small, not resize the whole image
[20:23:23] djbkd: has joined #RubyOnRails
[20:23:33] ashishsingh173: has joined #RubyOnRails
[20:23:38] colleenmcguckin: has joined #RubyOnRails
[20:24:13] colleenmcguckin: has joined #RubyOnRails
[20:25:43] baweaver: has joined #RubyOnRails
[20:25:45] mxrguspx_: has joined #RubyOnRails
[20:26:09] ellisTAA: i???m trying to make a post request to my decoupled back end and i???m getting a 422 error (Unprocessable Entity) ??? does anyone know why this would happen?
[20:26:24] daivyk: has joined #RubyOnRails
[20:26:55] mxrguspx_: has joined #RubyOnRails
[20:28:21] juddey: ellistaa: there's plenty of reasons! could be your authentication stopping you, what you're passing in to the request, all sorts.
[20:28:27] juddey: ellistaa: !dw
[20:28:45] juddey: oh, I am not worthy of such bot-ness.
[20:28:53] Intii: Does anyone have any experience with the Wicked gem?
[20:31:35] CharliB: has joined #RubyOnRails
[20:31:42] colleenmcguckin: has joined #RubyOnRails
[20:31:59] slash_nick: juddey: soon... maybe
[20:33:13] baweaver: has joined #RubyOnRails
[20:33:30] juddey: slash_nick: try !since x-light for the full story :D
[20:33:59] slash_nick: 2014-06-24... what, you needed a change?
[20:34:33] juddey: yeah I just thought I should line stuff up with twitter and github
[20:35:11] ellisTAA: does anyone see anything wrong with this ajax request that would be causing my 422 error bad data .. https://gist.github.com/ellismarte/c18cda557b29b40162e2
[20:35:45] momomomomo: has joined #RubyOnRails
[20:35:46] slash_nick: ah... yeah, not me
[20:35:52] slash_nick: that's 3 disparate accounts
[20:36:05] paulodiniz: has joined #RubyOnRails
[20:36:35] rhizome: Papierkorb: why self.inherited?
[20:36:35] GJdan: attempting to install rvm. I get: gpg: Can't check signature: No public key
[20:36:41] GJdan: I did import the keys
[20:36:52] Papierkorb: rhizome: to copy a @variable over to the new class
[20:37:25] rhizome: Papierkorb: that doesn't make sense to me
[20:37:45] Radar: juddey: You just need to know deep down in your heart that you have access to the bot.
[20:37:52] juddey: yeah for me its like ducks in a row. i like things in order. kinda OCD. :)
[20:38:02] Radar: mices: Please stop directing questions at me. Let other people in the channel answer them.
[20:38:15] Radar: https://gist.github.com/mices/bd9d6c5bd68f2a6fb479#file-_form-html-erb-L5 This should be ==
[20:38:31] shawnacscott: has joined #RubyOnRails
[20:38:43] juddey: ACTION summons all his bot-related ESP
[20:38:46] slash_nick: or... instead of trying to control the bot, you need only to realize there is no bot
[20:39:03] Radar: Papierkorb: You've overridden self.inherited in that Foo class... why?
[20:39:08] flashpoint9: has joined #RubyOnRails
[20:39:16] slash_nick: juddey: magic!
[20:39:35] Papierkorb: Radar: in the real world, I copy a @variable over to the new class from `base:Class`
[20:39:41] helpa: Please do not use fake values, as they can be confusing or misleading. Sometimes both.
[20:39:49] Radar: !specific
[20:39:49] helpa: Questions concerning problems with code you've written must describe the specific problem and include valid code to reproduce it. See http://SSCCE.org for guidance.
[20:39:56] mices: Radar: thanks, but it still doesn't hide, anyone?
[20:40:05] roshanavand: has joined #RubyOnRails
[20:40:14] juddey: slash_nick, Radar: TY! You've made my day.
[20:40:15] Papierkorb: See above. already old tea.
[20:40:26] Radar: mices: Double check that $('#listing_starting_bid') is an actual element.
[20:40:46] maloik: has joined #RubyOnRails
[20:40:47] Radar: mices: in the console does $('#listing_starting_bid') show anything?
[20:40:51] zeyn: has joined #RubyOnRails
[20:40:56] Radar: If it shows an empty array, chances are your selector is wrong.
[20:41:05] Radar: Papierkorb: Specifically, where?
[20:41:07] rhizome: Papierkorb: if you're thinking in terms of copying variables, you may not understand inheritance
[20:41:10] Radar: https://gist.github.com/Papierkorb/c3b8c73bafba1bc93a30
[20:41:11] Radar: I see this
[20:41:25] Radar: Which is fake code and doesn't explain the problem that is trying to be solved.
[20:42:49] ellisTAA: what about this ajax request is unprocessable? https://gist.github.com/ellismarte/c18cda557b29b40162e2
[20:42:51] Radar: ACTION xy's until the cliches come home
[20:43:11] Radar: ellistaa: you tell us
[20:43:22] Radar: Seems fine to me?
[20:43:26] Radar: https://gist.github.com/ellismarte/c18cda557b29b40162e2#file-ajax-rb-L8
[20:43:31] Radar: I don't know what this line is supposed to be doing.
[20:43:41] Radar: What does your console show?
[20:43:43] ellisTAA: Radar: grabs the url
[20:43:47] Radar: JS console, that is.
[20:43:50] ellisTAA: console says 422 error unprocessabl data
[20:43:56] Radar: ellistaa: I don't see where "action" is defined in that function.
[20:44:01] Papierkorb: Radar: I did what OP does at the end of the blog post http://www.railstips.org/blog/archives/2006/11/18/class-and-instance-variables-in-ruby/ The issue to solve was exactly that, though I stored which methods are okay to call from templating code.
[20:44:03] dstarh: has joined #RubyOnRails
[20:44:10] ellisTAA: Radar: action is defined on the form
[20:44:11] Radar: ellistaa: So its your controller action which is rejecting it. Look at your Rails console for more info?
[20:44:28] mices: Radar: => "#listing_starting_bid"
[20:44:30] Radar: ellistaa: Oh, that action. I was confused with what "this" is because I've been in React-land too long.
[20:45:04] Radar: ellistaa: Network tab in Chrome/Firefox will also show you data about why it failed.
[20:45:34] Radar: ellistaa: You can also attach a .fail event handler after the .done to get info
[20:45:39] djbkd: has joined #RubyOnRails
[20:45:49] Radar: http://api.jquery.com/jquery.ajax/ jqXHR.fail is the search term
[20:45:55] ellisTAA: Radar: ill try that. do all post requests need authentication tokens?
[20:45:58] zeyn: Hello everyone. Is it normal for initialization of Rails app on Linux to be about 5 minutes ?
[20:46:04] Radar: ellistaa: Depends on how the controller is configured.
[20:46:08] Radar: zeyn: no.
[20:46:16] mxrguspxrt: has joined #RubyOnRails
[20:46:18] mices: Radar: those aren't the real field names but rather how they appear in page source from the browser so i changed them
[20:46:19] Radar: zeyn: Unless the Rails app is running on JRuby.
[20:46:33] Radar: mices: You still refuse to help yourself and it's frustrating.
[20:46:47] zeyn: Well, then I have a problem. I'm not sure why this is so slow, it was much faster on Windows, ironically.
[20:46:52] Radar: mices: You didn't answer my question about the element being there or not.
[20:46:53] mices: debug shows no error
[20:47:08] mxrguspx_: has joined #RubyOnRails
[20:47:19] Papierkorb: zeyn: on the same machine at least?
[20:47:21] mices: Radar: yea this is what was returned from your command => "#listing_starting_bid"
[20:47:33] Radar: mices: I specifically said to do $('#listing_starting_bid')
[20:47:35] zeyn: Papierkorb: yes, on same machine
[20:47:41] Radar: not '#listing_starting_bid'
[20:47:42] nonmadden: has joined #RubyOnRails
[20:47:46] paulodiniz: has joined #RubyOnRails
[20:48:02] Radar: [07:40:26] <Radar> mices: Double check that $('#listing_starting_bid') is an actual element.
[20:48:04] Radar: [07:40:47] <Radar> mices: in the console does $('#listing_starting_bid') show anything?
[20:48:25] Radar: mices: Strike #2, btw.
[20:48:57] mices: you asked if in the console does $('#listing_starting_bid') show anything
[20:49:00] adiabatic: has joined #RubyOnRails
[20:49:22] Radar: mices: And you told me it returned a fucking string!
[20:49:25] Radar: It does not return a string!
[20:49:31] mices: the console returned "
[20:49:33] Papierkorb: zeyn: Make sure you use a recent ruby interpret (MRI version 2.2.3 for example), check that the machine isn't swapping like crazy (or at all). Check that your HDD isn't the bottleneck (And if it is, ask smartctl to run a test on it)
[20:49:35] camonz: has joined #RubyOnRails
[20:49:37] Radar: mices: Final chance.
[20:49:39] Radar: Screenshot or ban.
[20:49:47] Radar: I'm sure that's an instruction that you can follow.
[20:50:09] camonz: what are some OSS repos with bad code that I could take a look at?
[20:50:10] Papierkorb: zeyn: Are you using MRI? JRuby? Something else?
[20:50:16] zeyn: Papierkorb: thanks. It's just slow when I create Rails app (rails new <app>). Other than that, it's blazing fast.
[20:50:45] zeyn: Papierkorb: I'm using plain Rails.
[20:50:49] Papierkorb: zeyn: aah. Well, it's compiling a bunch of native extensions there, so that could take some time if your computer isn't somewhat fast. specs?
[20:51:07] Radar: CamonZ: https://github.com/rubysherpas/forem
[20:51:25] camonz: Radar: thanks!
[20:51:44] Papierkorb: zeyn: doesn't take 5mins for me, but on the mid-range notebooks at work it takes 1.5 - 2 minutes. No idea what it takes on my home computer, too long ago I did rails new ..
[20:51:48] Radar: CamonZ: Oh and i forgot about https://github.com/rails/rails too
[20:52:30] zeyn: Papierkorb: Yes, it often says 'Compiling native extensions. This could take a while...' Specs: 2GB RAM, Intel D525
[20:53:01] zeyn: Maybe it has something to do with Node?
[20:53:11] mices: Radar: http://imgur.com/oCc5JLZ
[20:53:23] tubbo: wrong console
[20:53:26] Papierkorb: zeyn: that things' crazy slow (Looking at ark.intel.com). Yeah, I think that time sounds reasonable then with those specs
[20:53:29] tubbo: the JS console is in chrome dev tools, mices
[20:53:44] Intii: has left #RubyOnRails: ("Good Bye")
[20:53:49] Radar: mices: Wrong console.
[20:53:49] Radar: +q mices!*@*
[20:53:50] Radar: mices: You now have another week to go and learn JS development. Have fun.
[20:53:50] Intii: has joined #RubyOnRails
[20:53:51] Papierkorb: zeyn: for reference, the work computer is from ca. Mid 2013 and takes good 1.5 minutes to do the same
[20:54:09] Radar: tubbo: Too late.
[20:54:44] tubbo: mices: don't pm me please i'm really busy
[20:55:07] Radar: mices: May I recommend ##javascript and #jquery.
[20:55:11] iamayam: has joined #RubyOnRails
[20:55:15] Radar: mices: !rule12
[20:55:15] helpa: mices: Do not PM members of the channel without first asking if that is OK.
[20:55:18] ChanServ: +b *!*@unaffiliated/mices
[20:55:18] ChanServ: ChanServ kicked mices: is banned from this channel
[20:55:18] zeyn: Papierkorb: Thanks, I would purchase MacBook for few months so I can better focus on development.
[20:55:20] gr3yR0n1n: has joined #RubyOnRails
[20:55:44] tubbo: whoa wait a minute
[20:55:54] tubbo: Radar: he didn't actually PM me, i was just giving a warning.
[20:55:58] ellisTAA: i???m pretty stumped on this error.. if someone wouldn???t mind taking a look at it i???d really appreciate it ??? https://gist.github.com/ellismarte/e069ea85bc1a7da4a6e7#file-error-txt-L1 .. get requests are working successfully so i???m thinking there???s something wrong with the ajax request ???
[20:56:10] Radar: tubbo: He'll still do it if he's allowed in here. I've received reports of that happening last week.
[20:56:18] tubbo: Radar: yeah that's why i warned him.
[20:56:20] Radar: I don't want people of this channel disturbed by his help vampirism.
[20:56:33] Radar: He needs to go and learn on his own and by being in this channel he's not going to learn anything.
[20:56:40] ellisTAA: when i get rid of all the input fields except the submit button i get the same error
[20:56:45] tubbo: v----v i want to suck your code v----v
[20:56:49] Papierkorb: zeyn: Doesn't even have to be a Macbook ($$$, also I don't like apple heh), but anything somewhat recent (> 2011) will do. Your CPU looks like it's a Netbook of sorts. After that, sure more CPU power = faster, but not so *much* faster anymore
[20:57:02] adiabatic: Newbie question. I haveI a class called Game. It includes a class called Locatable. Game has an enum called :court_type; Locatable has an enum called :venue_type. Thing is, <%= game.game_type %> gives me nice strings like "womens" while <%= game.venue_type %> gives me numbers. What can I do to get nice-ish strings in this particular view?
[20:57:53] Radar: adiabatic: !rule0
[20:57:53] helpa: adiabatic: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[20:58:01] Radar: adiabatic: Gist the Game and Locatable models please.
[20:58:20] james1: has left #RubyOnRails: ()
[20:58:41] ellisTAA: hmm getting the same error with postman ..
[20:58:46] chouhoulis: has joined #RubyOnRails
[20:58:48] zeyn: Papierkorb: Yes, it's CPU that can be easily found in netbooks. I love Apple products and I already have an iPhone but I'm buying it for other purposes too (audio/video production).
[20:59:19] grotewold: has joined #RubyOnRails
[20:59:31] Radar: ellistaa: Checked the Rails console yet?
[20:59:47] ellisTAA: Radar: checked the heroku logs ??? no message but that it has a 422 error
[20:59:49] zeyn: I'm so grateful that I don't have to work with PHP anymore... it annoys me so much.
[21:00:02] ellisTAA: Radar: i guess i thought logs would show the same thing, ill check console
[21:00:11] Radar: ellistaa: Oh, it's through Heroku. Can you do a curl request? That'll show the body of the 422 response.
[21:00:31] maloik: has joined #RubyOnRails
[21:00:42] roshanavand: has joined #RubyOnRails
[21:00:52] ellisTAA: Radar: well i???m getting back the data in my ajax fail ??? it doesn???t really say anything but The change you wanted was rejected (422)
[21:00:54] alaing: has joined #RubyOnRails
[21:01:01] Radar: ellistaa: Fun.
[21:01:02] alaing: has joined #RubyOnRails
[21:01:13] Radar: ellistaa: So try a curl request. It might show a bit more info.
[21:01:21] alaing: hi has anyone here used faye for websockets?
[21:01:54] Radar: alaing: !used
[21:01:54] helpa: alaing: Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
[21:02:00] alaing: I've got it sort of working but i need some help with the security aspect
[21:02:23] tubbo: alaing: what did you need to know?
[21:03:15] adiabatic: https://gist.github.com/adiabatic/9d4d6732835d49cb02a5
[21:03:24] alaing: From what I have read Faye should really be run as a seperate process because its not recommended to run ti as middle ware because rails is not meant to be kept open
[21:03:54] alaing: I've been reading this http://faye.jcoglan.com/security/csrf.html
[21:04:17] alaing: but not sure where about to create the class and how to add it to the faye process I have
[21:05:20] alaing: what I would like to do it lock it down so the user needs a valid cookie session before they can send and subscript to channels
[21:05:27] alaing: subscribe
[21:05:42] Intii: I'm using Wicked to create a multi-step form and am following this guide to build objects without saving them to the db first (https://github.com/schneems/wicked/wiki/Building-objects-without-saving-to-the-database). I'm not entierly too sure on how to get to the first step in the form without providing a book_id. I'm using this to redirect to the first step in the form. redirect_to report_build_path(id: Wicked::FIRST_STEP)
[21:06:11] maloik: has joined #RubyOnRails
[21:07:01] kitsuneyo: has joined #RubyOnRails
[21:07:49] alaing: i might be reading this http://faye.jcoglan.com/security/csrf.html incorrectly but it looks like i would need to run the faye as middleware to be able to validate the session cookie used from rails
[21:08:54] annlewis: has joined #RubyOnRails
[21:12:03] drbayer: has joined #RubyOnRails
[21:12:45] adiabatic: Newbie question. I haveI a class called Game. It includes a class called Locatable. Game has an enum called :court_type; Locatable has an enum called :venue_type. Thing is, <%= game.game_type %> gives me nice strings like "womens" while <%= game.venue_type %> gives me numbers. What can I do to get nice-ish strings in this particular view? https://gist.github.com/adiabatic/9d4d6732835d49cb02a5
[21:14:06] maloik: has joined #RubyOnRails
[21:14:08] lasker85: has joined #RubyOnRails
[21:14:36] Intii: adiabatic: Where do you define the enum for game_type?
[21:15:11] adiabatic: whoops, elided that. IT's in the Game class.
[21:15:29] adiabatic: enum game_type: [:mens, :womens, :coed, :youth]
[21:17:29] ellisTAA: i???m thinking i cant make a post request because of strong params ???.
[21:20:08] Intii: adiabatic: Should this line: <td><%= game.venue_type %></td> be something like <%= game.venu.venue_type %>?
[21:20:51] tubbo: alaing: faye has its own node.js or whatever server that actually handles the websocket requests. pretty sure you need that as a separate process so that it can quickly process messages
[21:21:12] slash_nick: ellistaa: strong params just washes your user's params... it wouldn't prevent a post request. to prevent a post request to X, remove the post route to X
[21:21:16] roshanavand: has joined #RubyOnRails
[21:21:29] slash_nick: ellistaa: that is to say... look for the route you want to hit in the output from `rake routes`
[21:21:39] DanielN: has joined #RubyOnRails
[21:21:43] alaing: tubbo: you are right I'm actually using thin for it
[21:21:51] ellisTAA: slash_nick: so i can hit the route ??? it just always says the data is bad ??? even when i dont send in data
[21:22:08] alaing: but i need it to validate the cookie that is used for rails http://faye.jcoglan.com/security/csrf.html
[21:22:18] kimegede: has joined #RubyOnRails
[21:22:42] alaing: tubbo: Would I need to add it a middleware to get this functionality?
[21:22:44] slash_nick: ellistaa: my imagination is running hot... what exactly does it say?
[21:22:46] adiabatic: Intii: Nope. ActionView::Template::Error: ActionView::Template::Error: undefined method `venue' for #<Game:0x007fbee40b0ab8> (from <td><%= game.venue.venue_type %></td> )
[21:22:47] Intii: adiabatic: Well because your Game model doesn't include a definition for venue_type. That comes from the Location class. But you don't even have a relationship between Game and Location
[21:23:03] alaing: Hi slash_nick
[21:23:07] alaing: hope you are well
[21:23:10] ellisTAA: slash_nick: it gives me the static 422 error page with now clue in the logs
[21:23:15] adiabatic: Intii: Game includes Locatable, though. Isn't that enough?
[21:24:03] maloik: has joined #RubyOnRails
[21:24:04] alaing: tubbo: if you skim down this page http://faye.jcoglan.com/security/csrf.html you will see a rails example section
[21:24:30] drbayer: has joined #RubyOnRails
[21:25:06] tubbo: alaing: yeah, that middleware is for incoming faye requests to the server, so they don't need to pass an authenticity token. like you normally would in a rails form.
[21:25:26] alaing: tubbo: i was originally following this tutorial http://railscasts.com/episodes/260-messaging-with-faye
[21:25:48] Intii: adiabatic: No, those aren't model assocations. I'm assuming here so I might be off a bit but I think what you need to do is have a belongs_to :game in the Location model and then a has_one :location in the Game model (also make sure to have the correct migrations setup for this).
[21:25:48] alaing: tubbo: so i would need to setup faye as middleware?
[21:26:01] Intii: adiabatic: Then you could call <%= game.venue.venue_type %>
[21:26:08] momomomomo: has joined #RubyOnRails
[21:26:15] alaing: to be able to check if the authenticity token is valid
[21:26:28] tubbo: alaing: no, you have to run it in a separate app server
[21:26:46] Intii: adiabatic: Include is for including methods from another class
[21:26:54] alaing: tubbo: i've got it running as a seperare app server
[21:26:59] adiabatic: Intii: And enums aren't methods, then?
[21:27:32] tubbo: well, there you go
[21:27:35] alaing: tubbo: the problem is people can post messages to the channel using curl instead of using my app
[21:28:28] tubbo: is that because you have verify_authenticity_token skipped or something?
[21:28:46] neanderslob: has joined #RubyOnRails
[21:28:46] Intii: adiabatic: No, they're not methods. They're enums. Take out the include Locatable from Game class and setup a one-to-one relationship between Game and Location
[21:30:03] alaing: tubbo: tbh i'm not sure. I'm just trying to also follow this http://faye.jcoglan.com/security/csrf.html
[21:30:44] tubbo: alaing: why not try to understand why you have to follow it and what it's doing?
[21:31:10] alaing: tubbo: does this line "config.middleware.insert_after ActionDispatch::Session::CookieStore,"in that page make faye middle ware?
[21:31:11] ellisTAA: has joined #RubyOnRails
[21:31:13] baweaver: has joined #RubyOnRails
[21:31:15] tubbo: alaing: also check your app and make sure you're not skipping that before_filter anywhere. that's the reason why people can make requests to your app without actually being from your app
[21:31:36] alaing: or does it just provide a hook for the faye app server to use rails?
[21:32:02] alaing: my rails app uses devise
[21:32:51] tubbo: alaing: it doesn't seem like faye has any middleware.
[21:33:05] adiabatic: Intii: what kind of relationship do they have now?
[21:33:20] adiabatic: is-a, or something else?
[21:33:33] nickjj: alaing, you have options
[21:33:54] nickjj: only skimmed but you can have your faye server call an endpoint exposed by your rails app to validate users
[21:33:55] alaing: tubbo they basically posting messages to a seperate app server so its not going through rails app
[21:34:15] Intii: adiabatic: Between Game and Location? No relationship exists
[21:34:34] blackmesa: has joined #RubyOnRails
[21:35:02] safety_cut: has joined #RubyOnRails
[21:35:44] Cervajz: has joined #RubyOnRails
[21:35:54] alaing: nickjj: how do i config faye server to call the exposed end point?
[21:36:07] alaing: nickjj: have you worked with faye before?
[21:36:20] nickjj: alaing, i use faye in a bunch of processes, the nodejs version
[21:36:25] nickjj: and my rails app just posts to the faye server
[21:36:40] nickjj: *bunch of projects
[21:36:48] alaing: nickjj: interesting
[21:37:24] alaing: nickjj: i'm new to rails and just trying to get my head around it all
[21:37:49] nickjj: if you're using docker i have an open source faye implementation
[21:37:56] weaksauce: has joined #RubyOnRails
[21:37:59] nickjj: could get you going in about 2 minutes
[21:38:24] alaing: so your rails app validates and verifier the user before posting to the faye server
[21:38:34] alaing: I've got docker
[21:38:45] nickjj: no, the faye server calls an endpoint on my rails app which return json
[21:38:56] nickjj: and then decides if it's ok or not to send the msg
[21:39:20] nickjj: so all of the user authorization is done by rails, the faye app doesn't need to know anything
[21:39:43] shibabu: has joined #RubyOnRails
[21:39:45] alaing: nickjj: oh ok. sounds like the way to go. any particular reasons why you didn't go for hte ruby server version?
[21:40:22] amortimer: has left #RubyOnRails: ()
[21:40:37] maloik: has joined #RubyOnRails
[21:40:37] nickjj: no real reason, i hooked up the nodejs version and it's been happily doing 80-100k events a month for like 9 months now and uses nearly 0 resources
[21:40:41] alaing: nickjj: would you be able to share some faye implemenation
[21:41:07] nickjj: the docker image is at https://hub.docker.com/r/nickjj/faye/
[21:41:11] eoy: has joined #RubyOnRails
[21:41:25] Intii: has left #RubyOnRails: ("Good Bye")
[21:41:30] nickjj: the source code for the nodejs version is https://github.com/nickjj/docker-faye/blob/master/server.js
[21:41:31] Intii: has joined #RubyOnRails
[21:41:52] roshanavand: has joined #RubyOnRails
[21:41:55] nickjj: but it doesn't have user authorization built in, it simply acts as a simple push server that's redis backed
[21:42:11] nickjj: and uses a token to ensure that only your rails app is pushing events
[21:42:38] nickjj: i think that pattern is described in the faye docs somewhere
[21:43:01] lorn: has joined #RubyOnRails
[21:44:06] sbarg: has joined #RubyOnRails
[21:44:43] alaing: thanks nickjj, will you be around here tomorrow?
[21:44:55] nickjj: probably on/off yeah
[21:45:32] nickjj: you could always just look at pusher.com 's documentation too
[21:45:43] nickjj: because their authorization model works in the same way
[21:45:45] alaing: i need to get some sleep but I will play about with the setup tomorrow
[21:45:57] nickjj: it's nice because your faye server remains dumb about your data
[21:46:06] cac: has joined #RubyOnRails
[21:46:14] nickjj: which means you can use it on a number of projects without touching it
[21:46:22] alaing: nickjj: thats exactly what i want. i dont want it to be able to expose other data
[21:46:41] boshhead: has joined #RubyOnRails
[21:46:51] ethe: has joined #RubyOnRails
[21:46:53] alaing: its basically for a messaging service between customer and customer service
[21:47:00] lasker85: has joined #RubyOnRails
[21:47:27] pontiki: i'm having a problem figuring out something in Devise. I have a model Admin::User that i generated as a devise model. Supposedly it generates the authenticate_MODEL! methods when it does that, i've attempted to use `authenticate_admin_user!` but it isn't found.
[21:47:31] nickjj: yeah and you want to ensure only x user receives certain messages from your CS
[21:47:47] bakingbread: has joined #RubyOnRails
[21:47:49] alaing: nickjj: I've been reading about activecable coming to rails 5 and that looks really interesting
[21:48:01] akosednar: has joined #RubyOnRails
[21:48:03] nickjj: you could use each the user's username or email as a channel
[21:48:30] nickjj: from what i looked at months ago when dhh gave the keynote about activecable, i wasn't optimistic
[21:48:40] nickjj: unless i forgot, but didn't it run in the same process as your rails app?
[21:48:46] nickjj: in which case it's useless
[21:49:03] Papierkorb: nickjj: it does not
[21:49:06] drbayer: has joined #RubyOnRails
[21:49:09] alaing: nickjj: thats an interesting idea for channel name at first i was going to go with messages/new/1 where 1 would be the claim id
[21:49:13] Papierkorb: nickjj: it runs in its own process
[21:49:20] nickjj: Papierkorb, ah i forgot then, it was a while since he gave thay keynote
[21:49:35] nickjj: but i remember thinking "meh, i'll just stay with this implementation of faye"
[21:50:01] nickjj: alaing, if you use a unique channel for each user then it will be a bit easier to filter them
[21:50:06] paulodiniz: has joined #RubyOnRails
[21:50:15] nickjj: and that's where your authorization would come into play, to ensure you can only listen to your own channel
[21:50:52] alaing: can I then filter it down further?
[21:51:44] nickjj: Papierkorb, ah i see. i'm 99% sure the standlone part wasn't around then
[21:51:47] alaing: would the customer service user need to subscribe to the users channel to be able to pub/subscribe
[21:51:52] nickjj: checking the github page now
[21:52:25] stannard: has joined #RubyOnRails
[21:52:29] alaing: nickjj: looks like actioncable actually uses faye-server gem. it is in alpha stage at the moment so that might change
[21:52:32] nickjj: you could have a catch all channel for that, and "admins" can read it
[21:52:32] mooru: has joined #RubyOnRails
[21:52:56] nickjj: publishing messages to more than 1 channel is completely fine
[21:53:14] theery: has joined #RubyOnRails
[21:53:38] alaing: nickjj: thanks you for your help. I think i need to rethink my implementation of faye
[21:53:52] K0nserv-: has joined #RubyOnRails
[21:54:30] alaing: i like your idea of having a completely standalone service
[21:55:03] nickjj: yeah, scaling your websocket server independent of your rails app is important imo
[21:55:20] maloik: has joined #RubyOnRails
[21:55:25] nickjj: and if you use unicorn for your rails app, i don't think the embedded WS server would be a good idea
[21:55:39] nickjj: plus it allows other services to use the same server too in case you happen to use different techs
[21:56:06] alaing: we do use unicorn for production so its a none starter anyway in turns of using websockets
[21:56:20] nyaa: has joined #RubyOnRails
[21:56:53] nickjj: you'll be surprised at how much punishment your WS server will be able to take
[21:57:03] humd1ng3r: has joined #RubyOnRails
[21:57:09] alaing: so does it just speaks to the rails endpoint and checks if user can subscribe/post and then posts that message
[21:57:23] adiabatic: Intii: got my work cut out for me. thanks!
[21:57:24] edwinvdg_: has joined #RubyOnRails
[21:57:30] ethe: Hi! I cant seem to get jquery to load, any ideas?
[21:57:35] nickjj: yeah, your rails app assumes it can do anything, and the validation takes place on the WS end
[21:57:44] Intii: adiabatic: No problems! Hope I pointed you into the right direction
[21:57:51] nickjj: and that validation is done by requesting info from the rails app on a per message basis
[21:58:36] alaing: nickjj: i quiet like the idea of being able to use it across various applications
[21:58:57] arBmind: has joined #RubyOnRails
[21:58:58] alaing: we have been talking about microservices and this could potentially help with that
[21:59:11] nickjj: yeah, you could just namespace all of your channels with the app name or something like that
[21:59:18] nickjj: similar to how you would namespace your cache keys
[21:59:27] baloney_: has joined #RubyOnRails
[22:00:07] alaing: sweet. thanks for your help and advice. you have really given me some food fore thoguht and I'll be in contact with you tomorrow if thats alright
[22:00:16] nickjj: np, see ya
[22:00:22] alaing: good night
[22:00:29] markh_: has joined #RubyOnRails
[22:00:51] ethe: I've made sure the application.js is being loaded
[22:01:22] ethe: and it has //= require jquery in it
[22:02:29] roshanavand: has joined #RubyOnRails
[22:04:41] nickenchuggets: has joined #RubyOnRails
[22:04:41] nickenchuggets: has joined #RubyOnRails
[22:07:11] Gm4n: has joined #RubyOnRails
[22:08:09] tds5016: has joined #RubyOnRails
[22:08:11] maloik: has joined #RubyOnRails
[22:08:54] lacuna: has joined #RubyOnRails
[22:08:54] lacuna: has joined #RubyOnRails
[22:08:59] pontiki: never mind, i figured it out.
[22:09:35] tds5016: Question... if I use the validate API, how do I get the error that I add to show up in my view instead of having it show the default error page?
[22:09:38] annlewis: has joined #RubyOnRails
[22:10:13] slash_nick: tds5016: well... for starters, can you show us the controller (or whatever's calling #save, #create, whatever)
[22:10:36] tds5016: I'm sorry. I wish I could but I can't, and I know that isn't much help.
[22:10:46] tds5016: but it's basically just validate :my_thing.
[22:11:04] tds5016: and my_thing just does errors.add(:attr, 'my error')
[22:11:07] tds5016: and then returns false
[22:12:11] tds5016: I can give a mockup of the controller if that helps?
[22:12:29] tds5016: is there a pastern you guys prefer slash_nick ?
[22:12:39] tds5016: pastebin**
[22:14:23] momomomomo: has joined #RubyOnRails
[22:15:15] tds5016: http://pasted.co/5630f0cd
[22:16:30] Pazician: has joined #RubyOnRails
[22:18:33] pulgalipe: has joined #RubyOnRails
[22:19:08] tds5016: am I doing that right?
[22:19:20] tds5016: and/or do I need to catch the errors exception?
[22:19:44] lacuna: has joined #RubyOnRails
[22:19:44] lacuna: has joined #RubyOnRails
[22:20:14] htmldrum: has joined #RubyOnRails
[22:21:09] null__: has joined #RubyOnRails
[22:21:09] null__: has joined #RubyOnRails
[22:21:57] sandstrom: has joined #RubyOnRails
[22:22:56] roshanavand: has joined #RubyOnRails
[22:24:14] yfeldblum: has joined #RubyOnRails
[22:27:34] ellisTAA: has joined #RubyOnRails
[22:28:14] kmckelvin: has joined #RubyOnRails
[22:28:27] ellisTAA: i???m trying to create a has_many through relationship. the two tables i???m trying to connect are torrents & owners. does anyone have a good suggestion for the name of the join table?
[22:28:58] Ropeney: has joined #RubyOnRails
[22:28:59] lacuna: has joined #RubyOnRails
[22:28:59] lacuna: has joined #RubyOnRails
[22:29:01] rakm: has joined #RubyOnRails
[22:30:31] tubbo: ellistaa: pirates
[22:30:59] tubbo: why not TorrentOwner?
[22:31:20] ellisTAA: a torrent has many owners through TorrentOwner?
[22:31:25] ellisTAA: i like that
[22:32:37] lasker85: has joined #RubyOnRails
[22:32:46] maloik: has joined #RubyOnRails
[22:33:23] tubbo: kinda weird that a torrent has many owners right?
[22:33:59] cgfbee: has joined #RubyOnRails
[22:34:08] jhn: has joined #RubyOnRails
[22:35:20] wsewolod: has joined #RubyOnRails
[22:35:34] annlewis: has joined #RubyOnRails
[22:35:41] ellisTAA: tubbo: why?
[22:40:18] tubbo: i guess not...just think owner isn't the best name for that. in the bt specification, the terms used are "peers"
[22:40:48] tubbo: but i suppose a peer is someone who is both online and has the torrent, whereas an owner could be anyone who has the torent
[22:40:51] ellisTAA: a torrent has many peers ???
[22:41:47] ellisTAA: this looks good right? https://gist.github.com/ellismarte/bb7db4e8745005af988e
[22:42:01] tds5016: let me try rephrasing my question... is it correct to do a rescue from a recordInvalid in my code?
[22:42:08] tds5016: or is there a way that the rescue should be done?
[22:42:27] |PiP|: has joined #RubyOnRails
[22:43:31] roshanavand: has joined #RubyOnRails
[22:44:34] ethe: ellistaa is this for a tracker or what? tracker website?
[22:44:50] ellisTAA: ethe: making my own torrent app for fun
[22:44:55] Radar: tds5016: !rule4
[22:44:55] helpa: tds5016: Do not use any service that is not Pastie or Gist to post code. Pastebin, for example has a tiny font and it has ads on it which cause the page to load slowly. Other paste services generally look like crap.
[22:45:02] Radar: tds5016: !rule3
[22:45:02] helpa: tds5016: Clearly explain what is happening and create a Gist (http://gist.github.com), (formatted neatly please: http://bit.ly/1q75oia) of the code that is causing the problem you are encountering, as well as any useful output like stacktraces.
[22:45:05] droptone: What's a quick way from rails console to determine the data type of a specific column in a specific table?
[22:45:06] |PiP|: has joined #RubyOnRails
[22:45:18] droptone: Such as profile.email?
[22:45:26] |PiP|: How can I run ActiveSupport::Test cases run in a particular order?
[22:45:48] ethe: ellistaa ah ok
[22:46:17] tds5016: Radar: Okay, my problem is that I have a custom validator that is using validate :my_validation_method. That method adds the error like so: errors.add(:attribute, 'my error message')
[22:46:36] Radar: ACTION asks tds5016 to post code on Gist, watches in dismay as that does not happen.
[22:46:41] tds5016: That throws a recordInvalid (as it should)
[22:46:50] Radar: Depends on how you're saving the record.
[22:46:52] tds5016: Radar: I can't post the code unfortunately :-/.
[22:47:03] Radar: If it's save!, then yes it will throw an AR::RecordInvalid.
[22:47:12] tds5016: Radar: I'm using create
[22:47:20] Radar: tds5016: create or create!
[22:47:31] Radar: That does not raise an exception.
[22:48:04] tds5016: sorry. that was a typo. I meant create!
[22:48:21] Aeyrix: typo twie
[22:48:23] Aeyrix: twice even
[22:48:27] Radar: Biggggg difference :D
[22:48:29] Aeyrix: well that was probably bordering on irony
[22:48:52] Radar: tds5016: Why are you using create instead of @model = Model.new(params) and then checking the result of @model.save?
[22:49:04] tubbo: class ryanbiggdecimal < bigdecimal
[22:50:47] manfrin: has joined #RubyOnRails
[22:52:34] honestemu: has joined #RubyOnRails
[22:52:43] quazimodo: has joined #RubyOnRails
[22:53:46] edwinvdgraaf: has joined #RubyOnRails
[22:54:05] rromanchuk: has joined #RubyOnRails
[22:54:44] rromanch_: has joined #RubyOnRails
[22:58:04] tds5016: if it doesn't raise the exception; will it still do the check properly?
[22:58:16] Radar: Yes. Save will return false.
[22:58:27] shtirlic: has joined #RubyOnRails
[22:59:18] duncannz: has joined #RubyOnRails
[23:00:32] pacso: has joined #RubyOnRails
[23:01:04] tds5016: Radar thanks!
[23:01:44] tds5016: how should I handle the redirect so that it gets the error?
[23:02:07] tds5016: sorry.. how should I handle the redirect so that the error is added to the redirected output?
[23:02:14] wasserschlange_: has joined #RubyOnRails
[23:02:38] defsdoor: redirected output ?
[23:02:48] rromanch_: has joined #RubyOnRails
[23:03:02] rromanch_: has joined #RubyOnRails
[23:03:06] tds5016: sorry.. so in my create method I have it redirect_to
[23:03:10] defsdoor: you mean how do you get the error to appear in web page or something ?
[23:03:14] tds5016: if I had an error; how would I get that error?
[23:03:18] tds5016: defsdoor: exactly! :-)
[23:03:30] defsdoor: tds5016, follow just about every rails getting started guide
[23:03:34] tds5016: I am using the form builder, which I thought would add it automatically.
[23:03:53] safety_cut: has joined #RubyOnRails
[23:04:05] roshanavand: has joined #RubyOnRails
[23:04:12] tds5016: defsdoor: I might be dumb, but I read the validation docs, and I missed it somehow :-/.
[23:04:32] Radar: tds5016: !r4iafree
[23:04:32] helpa: tds5016: The first 3 chapters of Rails 4 in Action can be found for free at https://manning.com/books/rails-4-in-action. They're a great introduction to Ruby on Rails!
[23:04:41] maloik: has joined #RubyOnRails
[23:04:42] Radar: tds5016: I'm pretty certain 3rd chapter shows that
[23:04:45] Radar: tds5016: !gettingstarted
[23:04:45] helpa: tds5016: http://guides.rubyonrails.org/getting_started.html - Getting started with Ruby on Rails guide written by Mike Gunderloy and Ryan Bigg
[23:04:46] Radar: Also shows this
[23:04:55] Radar: Clue: the answer does not involve redirecting, but rendering.
[23:05:49] defsdoor: tds5016, respond_with will render either show or edit depending on the saved state of the model
[23:06:18] tds5016: oh, thank you!
[23:06:24] defsdoor: it up to you to inspect the model and render it's errors (or use a useful existing helper) in your edit view
[23:06:30] drbayer_: has joined #RubyOnRails
[23:07:21] defsdoor: http://guides.rubyonrails.org/layouts_and_rendering.html
[23:07:39] kmckelvin: has joined #RubyOnRails
[23:12:37] drbayer: has joined #RubyOnRails
[23:12:50] arBmind: has joined #RubyOnRails
[23:13:25] baweaver: has joined #RubyOnRails
[23:13:33] claytonzaugg: has joined #RubyOnRails
[23:14:23] jessemcgilallen: has joined #RubyOnRails
[23:14:38] claytonzaugg: new to ruby and I recently installed ruby via chruby per advice I got here, instead of using RVM, and I am having errors when running bundle install in my codes directory.
[23:15:00] lasker85: has joined #RubyOnRails
[23:15:10] claytonzaugg: The error: An error occurred while installing libv8 (3.16.14.7), and Bundler cannot continue.
[23:15:11] claytonzaugg: Make sure that `gem install libv8 -v '3.16.14.7'` succeeds before bundling.
[23:15:34] claytonzaugg: I tried running the gem install libv8 and I got more errors doing that
[23:16:18] neanderslob: has joined #RubyOnRails
[23:17:29] jalcine: has joined #RubyOnRails
[23:17:44] wkoszek_: has left #RubyOnRails: ()
[23:17:50] wkoszek_: has joined #RubyOnRails
[23:19:56] claytonzaugg: Radar, were you the one who showed me the ryanbigg blog post to follow for chruby instead of using RVM?
[23:20:04] rhizome: V8 has native extensions, you have to be able to compile it
[23:20:04] Radar: claytonzaugg: Yes, that is me. I am Ryan Bigg.
[23:20:21] Radar: claytonzaugg: sudo apt-get install nodejs might fix your problems.
[23:20:47] claytonzaugg: Nodejs is awesome :) But I'm trying to learn RoR for a job with my friend
[23:20:49] wkoszek: has joined #RubyOnRails
[23:21:13] claytonzaugg: anyway, is there much difference between Ruby 2.2.3 vs 2.2.2?
[23:21:21] claytonzaugg: will chruby work with ruby 2.2.3?
[23:21:48] claytonzaugg: rhizome, how do I get those native extensions?
[23:21:58] Radar: claytonzaugg: I'm serious about sudo apt-get install nodejs. It'll install libjs bindings, which will fix the issue you're seeing.
[23:22:16] claytonzaugg: Oh, lol okay let me try that
[23:22:58] claytonzaugg: Radar, is there a brew equal to that?
[23:23:08] Radar: claytonzaugg: brew install nodejs
[23:23:35] Aeyrix: Radar: Now I need an excuse to tell people to `gem install rails` in #Node.js.
[23:23:45] tds5016: thanks again for the help guys! that works beautifully and now I feel less stupid. lol.
[23:23:51] Radar: tds5016: is ok :)
[23:24:01] stannard: has joined #RubyOnRails
[23:24:30] Aeyrix: claytonzaugg: It will work with any ruby vers fwiw
[23:24:30] ellisTAA: when i get an incoming request this ??? @ip = request.remote_ip??? returns ???::1??? ??? what???s up why am i not seeing my ip address?
[23:24:41] roshanavand: has joined #RubyOnRails
[23:24:50] claytonzaugg: okay thanks Aeyrix
[23:24:52] wkoszek: http://www.isrubyfastyet.com/ <- pretty cool benchmark.
[23:25:05] Aeyrix: ellistaa: Please explain to me, in detail, why the everloving fuck we should be able to help you diagnose this issue from one completely out of context line of code?
[23:25:05] Radar: ellistaa: That is an IP address.
[23:25:19] Radar: ACTION hands Aeyrix the chill pills
[23:25:26] Aeyrix: s/bth/tbh/
[23:25:38] Aeyrix: I'm tired of taking the chill pills about people being utterly inept about asking questions.
[23:25:48] ellisTAA: Radar: that???s an ip address? i was epecting something like 50.0.242.54
[23:25:51] Aeyrix: Maybe you never asked questions in school, sure, but damn you need to learn.
[23:26:03] Radar: ellistaa: Yes, it is an IP address.
[23:26:10] ChanServ: +q *!*@gateway/web/irccloud.com/x-uwgxavognmyytgpu
[23:26:23] Aeyrix: has left #RubyOnRails: ()
[23:26:26] Radar: Dude doesn't know about IP addresses. Chill.
[23:26:42] Radar: ellistaa: ::1 is a local loopback address.
[23:26:50] Radar: Same as 127.0.0.1
[23:26:59] ellisTAA: Radar: ah ok gotcha
[23:27:09] shanemcd: has joined #RubyOnRails
[23:27:13] ellisTAA: awesome thanks
[23:27:33] baweaver: has joined #RubyOnRails
[23:28:31] neanderslob: has joined #RubyOnRails
[23:29:08] lemur: has joined #RubyOnRails
[23:29:30] ChanServ: -q *!*@gateway/web/irccloud.com/x-uwgxavognmyytgpu
[23:29:56] SalexW: has joined #RubyOnRails
[23:30:59] mag42c: has joined #RubyOnRails
[23:31:46] bronson: has joined #RubyOnRails
[23:32:24] kitsuneyo: has joined #RubyOnRails
[23:33:09] havenwood: has joined #RubyOnRails
[23:33:29] tds5016: last question I'll ask for the day (and admittedly it's stupid) if I do a save on a model that already exists; would the after_update callbacks get run?
[23:33:36] ethe: Err, I've been trying to get jquery to work for about 2 hours now. It's the standard config (i.e. straight from rails new on rails 4.2.5 with ruby 2.2.3)
[23:33:45] Radar: tds5016: Should do.
[23:33:53] ethe: I really cant get it to work, no errors or anthing, it just doesnt show up
[23:33:58] Radar: ethe: !specific
[23:33:58] helpa: ethe: Questions concerning problems with code you've written must describe the specific problem and include valid code to reproduce it. See http://SSCCE.org for guidance.
[23:34:06] tds5016: Radar: thanks!
[23:35:18] claytonzaugg: Gosh dangit, freaking libv8 is killing me!
[23:35:46] claytonzaugg: Radar, I just went through your tutorial again, made sure I didn't miss anything and I'm still getting errors trying to do bundle install in this directory.
[23:35:56] Radar: claytonzaugg: Same errors?
[23:35:59] claytonzaugg: An error occurred while installing libv8 (3.16.14.7), and Bundler cannot continue.
[23:35:59] claytonzaugg: Make sure that `gem install libv8 -v '3.16.14.7'` succeeds before bundling.
[23:36:07] Radar: claytonzaugg: !gist the ful output please
[23:36:07] helpa: claytonzaugg: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[23:36:18] mag42c: has joined #RubyOnRails
[23:36:22] mag42c: has left #RubyOnRails: ()
[23:36:29] claytonzaugg: how do I !gist?
[23:36:36] claytonzaugg: sorry, never done that before
[23:36:38] Radar: claytonzaugg: Look at what helpa said.
[23:36:59] ethe: Radar, steps to reproduce: 1) Use rails 4.2.5, and ruby 2.2.3 2) rails new helloworld 3) cd helloworld 4) rails s 5) load up in a browser, jquery isnt being loaded
[23:37:00] claytonzaugg: oh hell *shakes his head with a frown* yeah, sorry
[23:37:13] bergs: how does the !mute work?
[23:37:21] bergs: and the no-talking-without-registering?
[23:37:21] Radar: ethe: How are you confirming that jquery isn't being loaded?
[23:37:27] Radar: bergs: /mode #rubyonrails +q
[23:37:43] claytonzaugg: radar, here you go
[23:37:43] claytonzaugg: https://gist.github.com/claytonzaugg/517a5e0bfb8474350706
[23:37:57] ethe: by checking for a $ variable in the console after the page has loaded
[23:38:03] Radar: ethe: and what happens
[23:38:05] Radar: ethe: screenshot please
[23:38:06] ethe: also by looking at the scripts
[23:38:08] bergs: ah I didn't know about that on IRC
[23:38:32] Radar: claytonzaugg: "gem install libv8 -v '3.16.14.7' --with-system-v8" <- does this work?
[23:38:47] claytonzaugg: let me try one sec
[23:38:48] Radar: ethe: I have a brand new Rails app and I can see jQuery in my console.
[23:39:09] claytonzaugg: Radar, "invalid option: --with-system-v8"
[23:39:13] Radar: ethe: http://take.ms/5WZ5O
[23:39:17] Radar: claytonzaugg: Bah.
[23:39:29] Radar: claytonzaugg: "gem install libv8 -v '3.16.14.7' -- --with-system-v8" <- does this work?
[23:39:33] Radar: I missed a double dash.
[23:40:07] claytonzaugg: Successfully installed libv8-3.16.14.7
[23:40:21] wkoszek: Is there a web benchmarking tool where I could benchmark number of concurrent "sessions", where a session is defined as something real, e.g.: user loging in, selecting 10 items, shuffling them inside of the web app, saving and logging out?
[23:40:22] echosystm: has joined #RubyOnRails
[23:40:23] ethe: Radar I'm not sure what happened. It works now
[23:40:23] claytonzaugg: Is that just syntax you knew I needed to do or was that inside the error I gist'd to you?
[23:40:51] echosystm: what is the most idiomatic way to return an api token when a user logs in?
[23:41:17] echosystm: we are doing a request like POST /api/sessions {username:"x",password:"y"}
[23:41:24] pacso: has joined #RubyOnRails
[23:41:32] benlieb: has joined #RubyOnRails
[23:41:44] echosystm: so we are plannign to respond with {token:"x"}
[23:41:55] echosystm: but im wondering if there is some more standard way to do this?
[23:41:57] MaDErroR123: has joined #RubyOnRails
[23:42:05] claytonzaugg: Radar, new error when running bundle install, but at least it DID get the libv8: https://gist.github.com/claytonzaugg/66322626792466091fab
[23:42:07] echosystm: eg. server respond with Authentication header or something like that
[23:42:32] Radar: claytonzaugg: Ffffuuuu
[23:42:33] shibabu: has joined #RubyOnRails
[23:42:49] Radar: claytonzaugg: It's not you, it's your comptuer!
[23:43:29] claytonzaugg: Radar, I just tried running "gem install therubyracer -v '0.12.2'" and got another slew of errors. You want that gist as well?
[23:43:33] Radar: brb I need to reboot as my blutetooth is being shit.
[23:43:35] Radar: Yes please
[23:44:26] claytonzaugg: Radar, you still there? If so, here's the error: https://gist.github.com/claytonzaugg/ce718aa3259e563e2a1e
[23:45:00] gnugmanov: has joined #RubyOnRails
[23:45:14] roshanavand: has joined #RubyOnRails
[23:45:22] jhass: claytonzaugg: brew install libv8 or something? idk, I don't OS X
[23:45:27] hardtail: has joined #RubyOnRails
[23:45:47] Radar: Looks like same issue.
[23:45:52] Radar: https://github.com/cowboyd/libv8/issues/180
[23:45:54] claytonzaugg: jhass, I got libv8 installed from previous tip from Radar
[23:45:55] Radar: Lol, this is by a coworker of mine.
[23:46:25] jhass: claytonzaugg: the gem apparently, not the system library?
[23:46:36] claytonzaugg: ...that I do not know
[23:46:45] claytonzaugg: brew install libv8 you're saying jhass?
[23:46:46] Radar: claytonzaugg: how about "bundle update libv8"?
[23:46:55] jhass: claytonzaugg: idk, it's a rough guess
[23:47:19] Radar: Looks like it's installing an earlier version from that release (dated Sep 13 2014). This will try to install the latest libv8
[23:47:46] claytonzaugg: okay I just did bundle update, nothing else, and pressed return... waiting patiently.
[23:48:48] claytonzaugg: It's currently here "Installing libv8 3.16.14.13 (was 3.16.14.7) with native extensions"
[23:51:23] claytonzaugg: ...well wtf, screw running bundle install, I'm just going to run bundle update every freaking time! Because that actually worked for all the thing in there!
[23:51:49] claytonzaugg: I rand bundle install after and it just blew past the list, showing they were already installed
[23:52:10] Radar: claytonzaugg: Alright, so it was that you were running an older version of libv8. Yay!
[23:52:17] Radar: claytonzaugg: 'bundle update' is generally a bad idea
[23:52:24] Radar: Because it's updated ALL your gems, which can introduce problems.
[23:52:35] claytonzaugg: oh freak... okay
[23:52:51] htmldrum: has joined #RubyOnRails
[23:53:33] claytonzaugg: which is probably why rails server breaks after it starts
[23:54:08] Radar: so you can checkout Gemfile.lock, then run "bundle update libv8" and it should be golden.
[23:54:13] claytonzaugg: here https://gist.github.com/claytonzaugg/9930a98f2f04003dccb4
[23:55:25] medright: has joined #RubyOnRails
[23:55:26] claytonzaugg: when you say "checkout gemfile.lock" do I run that phrase?
[23:55:59] claytonzaugg: sorry, I know this is probably basic
[23:56:33] quazimodo: has joined #RubyOnRails
[23:56:39] Radar: "git checkout Gemfile.lock"
[23:56:42] Radar: I'm assuming you're using Git.
[23:58:08] claytonzaugg: That looks like it did it Radar!
[23:58:33] claytonzaugg: Haven't run the checkout command yet, I use a lot of sourcetree for git, what did I just do?
[23:58:55] lasker85: has joined #RubyOnRails
[23:59:05] EXCHGR: has joined #RubyOnRails
[23:59:23] claytonzaugg: Radar, don't worry about that, I'll look it up. I gotta get going, but I am very grateful for your help today. Thank you!