« Back to channel list

#RubyOnRails - 30 May 2015

« Back 1 day Forward 1 day »
[00:00:07] TinkerTyper: has joined #RubyOnRails
[00:00:57] moretti: has joined #RubyOnRails
[00:03:48] paradisaeidae: has joined #RubyOnRails
[00:03:48] commondream: has joined #RubyOnRails
[00:04:07] TheNet: has joined #RubyOnRails
[00:04:53] workmad3: has joined #RubyOnRails
[00:07:52] _redmenace: has joined #RubyOnRails
[00:08:16] mello: has joined #RubyOnRails
[00:08:43] Scripore: has joined #RubyOnRails
[00:10:23] smathy: assembledbits, yes.
[00:10:31] smathy: assembledbits, rename the file too.
[00:13:04] dballenger: has joined #RubyOnRails
[00:15:05] kropotkin__: has joined #RubyOnRails
[00:18:07] jenrzzz: has joined #RubyOnRails
[00:19:32] scottmatheina: has joined #RubyOnRails
[00:21:25] iliketurtles: has joined #RubyOnRails
[00:22:40] assembledbits: smathy: thanks man! I just successfully ported my demo CMS to my portfolio
[00:22:57] assembledbits: and now I have confidence working with Ruby on Rails
[00:23:24] smathy: assembledbits, glad to hear it, you're very welcome.
[00:23:28] assembledbits: now let's hope I can get this on a production server without too many hiccups
[00:23:43] assembledbits: that's the only thing the lynda.com essentials course doesn't cover for some reason
[00:24:00] smathy: What? You want to actually ship code?
[00:24:06] smathy: How un-academic of you!
[00:24:34] assembledbits: I spent a day and a half figuring out the best server set up
[00:24:48] assembledbits: settled with Apache and Passenger because Nginx and Unicorn / Capistrano was toooo much
[00:25:01] assembledbits: and did it manually on DigitalOcean
[00:25:17] smathy: Heh, cool.
[00:25:20] pjammer: has joined #RubyOnRails
[00:25:24] smathy: You know about capistrano?
[00:25:31] assembledbits: I know that it's a bastard
[00:26:01] smathy: Hmm, that's not my experience at all.
[00:26:09] smathy: I think it's excellent.
[00:26:20] assembledbits: I'll probably look into it more after I get my new portfolio up
[00:26:24] assembledbits: now it's time to go for a walk
[00:26:37] smathy: Oh, I see above you mentioned it with unicorn. It's nothing to do with unicorn.
[00:26:41] qwertme: has joined #RubyOnRails
[00:28:38] asteros: has joined #RubyOnRails
[00:29:01] Lightsword: has joined #RubyOnRails
[00:30:47] asheinfeld: has joined #RubyOnRails
[00:31:37] scottmatheina: has joined #RubyOnRails
[00:32:03] DigitallyBorn: has joined #RubyOnRails
[00:35:21] nettoweb: has joined #RubyOnRails
[00:36:00] garyserj: has joined #RubyOnRails
[00:36:54] Scripore: has joined #RubyOnRails
[00:38:09] thebatu1: has joined #RubyOnRails
[00:39:00] livathinos: has joined #RubyOnRails
[00:39:11] juanda: has joined #RubyOnRails
[00:40:12] rickmasta: has joined #RubyOnRails
[00:40:29] allcentury: has joined #RubyOnRails
[00:42:37] Scripore: has joined #RubyOnRails
[00:43:00] ndrei: has joined #RubyOnRails
[00:43:51] commondream: has joined #RubyOnRails
[00:44:34] zooot: has joined #RubyOnRails
[00:45:35] garyserj: has joined #RubyOnRails
[00:45:42] zeknox: smathy: thank you again sir, just checked out your PR and fixed my issues... had to add in config.assets.precompile += %w( trumbowyg/* ) to application.rb as well, but seems to be working!
[00:46:10] smathy: zeknox, yeah, needs that too - you're welcome.
[00:46:17] joaomdmoura: has joined #RubyOnRails
[00:46:39] zeknox: smathy: is that typical with some gems that you need to add in the precompile line, or is that because the gem is missing that component?
[00:47:09] smathy: zeknox, no, it should do that for you.
[00:48:00] blackhuey: has joined #RubyOnRails
[00:50:13] pontiki: has joined #RubyOnRails
[00:50:37] asteros: has joined #RubyOnRails
[00:50:59] garyserj: has joined #RubyOnRails
[00:52:24] SeriousMatters: has left #RubyOnRails: ()
[00:53:02] robustus|Off: has joined #RubyOnRails
[00:53:14] iliketurtles: has joined #RubyOnRails
[00:54:01] asheinfeld: has joined #RubyOnRails
[00:56:20] maz-dev: has joined #RubyOnRails
[00:56:38] leafac: has joined #RubyOnRails
[00:58:12] chipotle: has joined #RubyOnRails
[00:58:35] yaymukund: has joined #RubyOnRails
[00:58:47] ghr: has joined #RubyOnRails
[00:59:28] Duckily: whats the best way to do a joins requiring a datetime
[00:59:38] michael_mbp: has joined #RubyOnRails
[00:59:44] Duckily: :created_at => "#{Time.now.strftime("%Y-%m-%d %H:%M:%S")}"
[01:00:02] Duckily: i meant ???created_at > #{Time.now.strftime("%Y-%m-%d %H:%M:%S")}"
[01:01:58] ProLoser: has joined #RubyOnRails
[01:03:46] SalexW: has joined #RubyOnRails
[01:06:31] Radar: what the hell is that
[01:06:40] Radar: Duckily: Why are you strftiming that?
[01:06:56] Radar: Duckily: where("created_at > ?", Time.current) should be sufficient
[01:07:02] Duckily: Radar: its a join
[01:07:08] Radar: Duckily: Is it?
[01:07:31] Duckily: @organizations.joins("LEFT OUTER JOIN orders AS created_orders ON (created_orders.organization_id = organizations.id AND created_orders.created_at > #{params[:from]} AND created_orders.created_at < #{params[:to]})")
[01:07:58] Duckily: the beast, i???m trying to figure out how to avoid injection attack and format date correctly
[01:08:01] doritostains: has joined #RubyOnRails
[01:08:18] Duckily: using a where clause will implicitly convert the query to an inner join
[01:08:53] mello: has joined #RubyOnRails
[01:09:15] chipotle: has joined #RubyOnRails
[01:09:44] Radar: hmm I don't know.
[01:10:27] dseitz: has joined #RubyOnRails
[01:11:59] philcrissman: has joined #RubyOnRails
[01:12:29] Duckily: i wish rails supported inserting values into joins, i really don???t get why it doesn???t have the same syntax as the where clause for joins
[01:12:50] pipework: Duckily: Just provide your own string.
[01:13:03] pipework: It's easier than going into arel
[01:13:37] Duckily: i thought thats essentially what i???m doing. not sure i follow, can you give an example?
[01:13:46] TheNet: has joined #RubyOnRails
[01:14:50] pipework: Duckily: IIRC, the join(s) method, whichever it is, takes a string for the join table expression.
[01:15:13] pipework: Note: I hate this site, just top result. http://apidock.com/rails/ActiveRecord/QueryMethods/joins
[01:15:19] ProLoser: has joined #RubyOnRails
[01:15:37] Duckily: pipework: thats what im giving it in the example above, no?
[01:15:48] pipework: I didn't see your example, sorry.
[01:15:52] pipework: Only just connected.
[01:15:59] pipework: ZNC with no history, wewt.
[01:16:02] Duckily: @organizations.joins("LEFT OUTER JOIN orders AS created_orders ON (created_orders.organization_id = organizations.id AND created_orders.created_at > #{params[:from]} AND created_orders.created_at < #{params[:to]})")
[01:17:12] rodfersou: has joined #RubyOnRails
[01:17:46] pipework: Duckily: First off, you shouldn't use interpolation. Use like this: Article.joins(:friend).where(???friends.url like ? ???, url)
[01:18:11] Duckily: pipework: its a joins query though
[01:18:20] pipework: Duckily: so?
[01:18:20] juanda: has joined #RubyOnRails
[01:18:24] Duckily: rails doesn???t support that syntax for joins queries
[01:18:29] Duckily: i don???t know why :-(
[01:18:35] pipework: Second, what's the #to_sql on that after?
[01:18:37] pipework: What, really?
[01:19:07] Scripore: has joined #RubyOnRails
[01:20:23] annlewis: has joined #RubyOnRails
[01:21:20] pipework: Hm, I'd have to set up an app to play around. Maybe after food.
[01:21:49] mary5030: has joined #RubyOnRails
[01:22:08] Duckily: pipework: Organization.joins("LEFT OUTER JOIN orders AS created_orders ON (created_orders.organization_id = organizations.id AND created_orders.created_at > ?)", "2015-05-29 18:21:23")
[01:22:21] nettoweb: has joined #RubyOnRails
[01:22:28] Duckily: ActiveRecord::StatementInvalid: SQLite3::SQLException: near "2015": syntax error: SELECT "organizations".* FROM "organizations" LEFT OUTER JOIN orders AS created_orders ON (created_orders.organization_id = organizations.id AND created_orders.created_at > ?) 2015-05-29 18:21:23
[01:22:48] Duckily: seems to concatenate the values together
[01:23:05] pipework: Duckily: Neat to know.
[01:23:18] pipework: I'd have to poke around with the query to see what's up though.
[01:23:21] Duckily: really bizarre
[01:23:39] Duckily: i figured out what was wrong with the original query, needed quotes around the inserted datetimes
[01:23:51] pipework: Huh, neat find.
[01:24:15] Duckily: ??????#{params[:from]}')"
[01:24:22] Duckily: ?????? ???#{params[:from]}')"
[01:24:25] Duckily: like that i meant
[01:25:37] Duckily: now i just need to see if rails has a quick way of formatting the datetime so i don???t need strftime and also a way to prevent injections
[01:26:00] beauby: has joined #RubyOnRails
[01:27:26] s2013: has joined #RubyOnRails
[01:27:38] MartinElvar: has joined #RubyOnRails
[01:28:01] gambl0re: has joined #RubyOnRails
[01:29:33] asteros: has joined #RubyOnRails
[01:35:25] dkam: has joined #RubyOnRails
[01:36:17] gaussblurinc1: has joined #RubyOnRails
[01:37:35] Duckily: pipework: so the solution seems to be sanitize_sql_array which also seems to no longer work in rails 4 :-(
[01:37:56] pipework: Duckily: good digging, that sucks.
[01:37:59] Duckily: https://github.com/Casecommons/pg_search/issues/7
[01:41:57] scottmatheina: has joined #RubyOnRails
[01:44:04] paulcsmith: has joined #RubyOnRails
[01:44:09] scottmatheina: has joined #RubyOnRails
[01:44:54] jkamenik: has joined #RubyOnRails
[01:45:11] RegulationD: has joined #RubyOnRails
[01:45:15] garyserj: has joined #RubyOnRails
[01:45:51] quazimodo: has joined #RubyOnRails
[01:47:13] commondream: has joined #RubyOnRails
[01:48:14] rickmasta: has joined #RubyOnRails
[01:49:02] rickmasta: has joined #RubyOnRails
[01:51:09] Duckily: it doesn???t seem deprecated but i can???t figure out how to use it http://api.rubyonrails.org/classes/ActiveRecord/Sanitization/ClassMethods.html#method-i-sanitize_sql_array
[01:52:15] qwertme: has joined #RubyOnRails
[01:53:48] jstr: has joined #RubyOnRails
[01:54:17] Joshmfrankel: has joined #RubyOnRails
[01:54:23] Joshmfrankel: has left #RubyOnRails: ()
[01:55:55] TheNet: has joined #RubyOnRails
[01:57:16] gauke: has joined #RubyOnRails
[01:57:35] nettoweb: has joined #RubyOnRails
[01:59:04] ghr: has joined #RubyOnRails
[01:59:21] merryfett: has joined #RubyOnRails
[02:01:43] bmulholland: has joined #RubyOnRails
[02:06:04] sarink: has joined #RubyOnRails
[02:08:06] Etriaph: Trying to solve an annoying issue, https://gist.github.com/anonymous/8e8e4207f81abe10a366 The input fields flicker because of the way this works, submitting a form with ujs and :remote => true
[02:08:30] beauby: has joined #RubyOnRails
[02:08:31] Etriaph: Is there a way to change the values of a few fields before ujs sends them, but after they've been serialized?
[02:09:23] rhizome: i don't get it.
[02:11:25] PlasmaStar: has joined #RubyOnRails
[02:13:33] Sylario: has joined #RubyOnRails
[02:13:50] jstr: has joined #RubyOnRails
[02:15:42] corioliss: Rager: how do you feel about this whole ruby thing
[02:16:47] rhizome: sick of studying for finals huh
[02:17:16] crevax: has joined #RubyOnRails
[02:23:20] chouhoulis: has joined #RubyOnRails
[02:25:27] charliesome: has joined #RubyOnRails
[02:25:29] x-light: has joined #RubyOnRails
[02:27:04] thebatu1: has joined #RubyOnRails
[02:28:24] shyshy: has joined #RubyOnRails
[02:31:29] beauby: has joined #RubyOnRails
[02:31:39] bendangelo: has joined #RubyOnRails
[02:32:38] sarink: has joined #RubyOnRails
[02:36:59] kalusn: has joined #RubyOnRails
[02:39:24] yourabi: has joined #RubyOnRails
[02:40:44] dkam_: has joined #RubyOnRails
[02:41:05] cjlarose: has joined #RubyOnRails
[02:44:51] jeromedoyle: has joined #RubyOnRails
[02:45:08] rubyonrails473: has joined #RubyOnRails
[02:45:57] jeromedoyle: has joined #RubyOnRails
[02:47:59] Glyphik: has joined #RubyOnRails
[02:50:52] Scripore: has joined #RubyOnRails
[02:51:48] asheinfeld: has joined #RubyOnRails
[02:54:12] DigitallyBorn: has joined #RubyOnRails
[02:54:23] asheinfeld: has joined #RubyOnRails
[02:56:08] Feyn: has joined #RubyOnRails
[02:56:39] RegulationD: has joined #RubyOnRails
[02:56:49] nettoweb: has joined #RubyOnRails
[02:57:41] sevenseacat: has joined #RubyOnRails
[02:58:02] mello: has joined #RubyOnRails
[02:58:51] ghr: has joined #RubyOnRails
[02:59:03] DoctorMonocular: has joined #RubyOnRails
[03:04:34] SalexW: has joined #RubyOnRails
[03:08:39] sarink: has joined #RubyOnRails
[03:09:05] beauby: has joined #RubyOnRails
[03:12:42] sarink_: has joined #RubyOnRails
[03:13:26] braincrash: has joined #RubyOnRails
[03:13:48] smathy: Etriaph, use hidden fields that are updated with non-masked values as the masked field values are updated.
[03:15:22] ismaelga: has joined #RubyOnRails
[03:17:45] chinmay_dd: has joined #RubyOnRails
[03:23:24] sankaber: has joined #RubyOnRails
[03:24:12] tejasmanohar: has joined #RubyOnRails
[03:24:41] chinmay_dd: has joined #RubyOnRails
[03:25:45] mary5030: has joined #RubyOnRails
[03:26:06] andywww: has joined #RubyOnRails
[03:26:36] mary5030: has joined #RubyOnRails
[03:28:25] _blizzy_: has joined #RubyOnRails
[03:30:01] twilling: has joined #RubyOnRails
[03:30:01] Forgetful_Lion: has joined #RubyOnRails
[03:31:43] asheinfeld: has joined #RubyOnRails
[03:32:35] nso95: has joined #RubyOnRails
[03:33:41] nso95: This is from a book, http://pastebin.com/KFz3rUBP Anyone care to explain the product.invalid? bit
[03:34:18] nso95: https://gist.github.com/anonymous/32818c0be710dddc5eae
[03:34:52] sarink: has joined #RubyOnRails
[03:38:14] sarink_: has joined #RubyOnRails
[03:38:37] Etriaph: smathy: Ya, thought of that a while ago and was hoping there was something a little more elegant to do.
[03:39:07] Etriaph: smathy: I can manipulate xhr and settings in ajax:beforeSend but I didn't quite like that approach.
[03:39:18] Soviet_jesus: has joined #RubyOnRails
[03:41:16] jenrzzz: has joined #RubyOnRails
[03:42:09] workmad3: has joined #RubyOnRails
[03:42:13] JamesBrink: has joined #RubyOnRails
[03:42:37] byprdct: has joined #RubyOnRails
[03:44:13] byprdct: has joined #RubyOnRails
[03:45:45] Soviet_jesus: So I'm attempting to use find_or_create_by in a callback to check if something exists and create it if it doesn't, but if I'm reading the test output right, its not actually creating the record, or at least isn't reassigning it like I would expect it to, Am I misunderstanding the nature of that method?
[03:46:17] commondream: has joined #RubyOnRails
[03:46:23] zeknox: Soviet_jesus: could be validations failing on the model?
[03:47:05] rhizome: have to see the code
[03:47:21] Soviet_jesus: well, for a while I messed up and was using first or create and that seemed to work...1 minute getting a gist up
[03:47:58] Soviet_jesus: https://gist.github.com/JasonMadeSomething/e27164019354b8581818
[03:48:46] Soviet_jesus: the test could be wrong too but it ....seeems... right
[03:49:48] s2013: has joined #RubyOnRails
[03:50:16] watchtheblur: has joined #RubyOnRails
[03:51:33] rhizome: 1. after_initialize is bad juju; 2. i'm a little unclear why address attrs aren't just a part of Contact; 3. use a uniqueness validation on Address instead of all that Contact stuff
[03:51:58] rhizome: 4. uniqueness validation on address_id
[03:52:16] rhizome: i dunno, just spitballing
[03:53:03] coderhs: has joined #RubyOnRails
[03:54:06] skiz: has joined #RubyOnRails
[03:54:15] Soviet_jesus: I separeated out addresses because another model uses them too, and they tend to share..probably something broader I'm missing then. Part of what I was going for was an automatic reassignment, would uniquness do that or just piss off the users?
[03:55:41] Soviet_jesus: I also kinda intend to reuse whatever pattern I wind up with there to save (physical) mail dimensions
[03:56:03] nso95: Why is product.invalid?() being asserted?: https://gist.github.com/anonymous/32818c0be710dddc5eae
[03:56:31] Lytol: has joined #RubyOnRails
[03:58:30] sevenseacat: because you wrote it?
[03:58:42] ghr: has joined #RubyOnRails
[03:58:56] sevenseacat: it has to check the validity, to populate all of the errors
[03:59:41] nso95: I pulled it from a book, it didn???t really say much about it
[04:00:59] The_Phoenix: has joined #RubyOnRails
[04:01:03] lethjakman: has joined #RubyOnRails
[04:04:37] doodlehaus: has joined #RubyOnRails
[04:05:45] merryfett: has joined #RubyOnRails
[04:06:31] quazimodo: has joined #RubyOnRails
[04:06:50] doodlehaus: has joined #RubyOnRails
[04:07:13] dopie: has joined #RubyOnRails
[04:08:49] chinmay_dd: has joined #RubyOnRails
[04:09:03] Soviet_jesus: @rhizome I updated that gist, now only one of the tests fail. though the one that was failing before I'm suspicious of
[04:09:10] zorak8: has joined #RubyOnRails
[04:10:41] bronson: has joined #RubyOnRails
[04:12:15] Soviet_jesus: I think my issue is how I'm trying to reassign the address in the existence check, because it appears to be creating the new address...i think
[04:13:42] jacor: has joined #RubyOnRails
[04:14:10] acti0nman: has joined #RubyOnRails
[04:14:10] rhizome: i'd suggest moving that stuff into the controller, at least for now
[04:15:55] thebatu1: has joined #RubyOnRails
[04:17:42] Soviet_jesus: um...so I'm like a total noob, and I've just been putzing around with the models so far. There are no controllers yet >_>
[04:19:47] rhizome: generally, managing uniqueness in one model from another is bad juju
[04:22:38] Soviet_jesus: so what happens when I enforce uniqueness on the address (which I also do) but then the save fails? I want to get that record that causes the failure somehow
[04:24:22] Soviet_jesus: I think I have a better idea of what to google at now though, thank you.
[04:28:36] maz-dev: has joined #RubyOnRails
[04:31:15] erich: has joined #RubyOnRails
[04:31:15] zorak8: has joined #RubyOnRails
[04:33:54] n3b: has joined #RubyOnRails
[04:34:18] commondream: has joined #RubyOnRails
[04:34:41] chinmay_dd: has joined #RubyOnRails
[04:34:56] raj___: has joined #RubyOnRails
[04:35:20] rushed: has joined #RubyOnRails
[04:38:15] kalusn: has joined #RubyOnRails
[04:38:21] Soviet_jesus: whaddya know. I think I got it to work. Instead of doing a find by attributes, I used all but the ones that would be nil before record creation. It creates the record then.
[04:39:50] ghox: has joined #RubyOnRails
[04:41:33] Soviet_jesus: so how bad is my juju here? https://gist.github.com/JasonMadeSomething/e27164019354b8581818
[04:42:36] skiz: has joined #RubyOnRails
[04:45:11] DoctorMonocular: has joined #RubyOnRails
[04:45:58] RegulationD: has joined #RubyOnRails
[04:46:40] mello: has joined #RubyOnRails
[04:48:57] MartinElvar: has joined #RubyOnRails
[04:49:39] zorak8: has joined #RubyOnRails
[04:49:44] baweaver: has joined #RubyOnRails
[04:52:33] davpet77: has joined #RubyOnRails
[04:53:01] chouhoulis: has joined #RubyOnRails
[04:58:59] ghr: has joined #RubyOnRails
[04:59:22] bmalum: has joined #RubyOnRails
[05:03:46] jenrzzz: has joined #RubyOnRails
[05:05:23] eoy_: has joined #RubyOnRails
[05:05:27] SalexW: has joined #RubyOnRails
[05:09:45] Lightsword: has joined #RubyOnRails
[05:10:15] duderonomy: has joined #RubyOnRails
[05:10:42] hahuang65: has joined #RubyOnRails
[05:12:38] bronson: has joined #RubyOnRails
[05:14:14] dseitz: has joined #RubyOnRails
[05:14:21] commondream: has joined #RubyOnRails
[05:16:42] raj___: has joined #RubyOnRails
[05:17:25] charliesome: has joined #RubyOnRails
[05:18:09] riotjones: has joined #RubyOnRails
[05:18:24] Deck-: has joined #RubyOnRails
[05:19:01] michael_mbp: has joined #RubyOnRails
[05:19:09] riotjones: has joined #RubyOnRails
[05:19:17] michael_mbp: I'm seeing something rather strange from rake db:migrate
[05:19:27] michael_mbp: it's refusing to do so via DATABASE_URL in the env.
[05:19:38] michael_mbp: anyone else seen this?
[05:20:10] Deck-: has joined #RubyOnRails
[05:22:09] Deck-: has joined #RubyOnRails
[05:22:54] Deck-: has joined #RubyOnRails
[05:23:32] Lorn_: has joined #RubyOnRails
[05:23:53] Deck-: has joined #RubyOnRails
[05:25:21] User458764: has joined #RubyOnRails
[05:33:25] konsolebox: has joined #RubyOnRails
[05:33:36] sarink: has joined #RubyOnRails
[05:45:56] DoctorMonocular: has joined #RubyOnRails
[05:48:50] arup_r: has joined #RubyOnRails
[05:49:10] speakingcode: has joined #RubyOnRails
[05:50:42] lxsameer: has joined #RubyOnRails
[05:50:42] lxsameer: has joined #RubyOnRails
[05:55:18] eoy_: has joined #RubyOnRails
[05:57:00] krz: has joined #RubyOnRails
[05:58:38] allcentury: has joined #RubyOnRails
[05:58:43] ghr: has joined #RubyOnRails
[06:00:16] Lightsword: has joined #RubyOnRails
[06:01:17] davpet77: has joined #RubyOnRails
[06:02:22] dkam__: has joined #RubyOnRails
[06:04:46] thebatu1: has joined #RubyOnRails
[06:05:16] eoy_: has joined #RubyOnRails
[06:09:43] allcentury: has joined #RubyOnRails
[06:14:23] bronson: has joined #RubyOnRails
[06:17:26] maz-dev: has joined #RubyOnRails
[06:21:53] shyshy: has joined #RubyOnRails
[06:22:23] DoubleMalt: has joined #RubyOnRails
[06:26:04] Sheperson: has joined #RubyOnRails
[06:32:54] eoy_: has joined #RubyOnRails
[06:33:55] sinkensabe: has joined #RubyOnRails
[06:34:45] RegulationD: has joined #RubyOnRails
[06:35:09] Liothen: has joined #RubyOnRails
[06:35:28] mello: has joined #RubyOnRails
[06:36:25] davidhq: has joined #RubyOnRails
[06:40:09] papercode: has joined #RubyOnRails
[06:41:22] synfinatic: has joined #RubyOnRails
[06:41:35] drewdavis: has joined #RubyOnRails
[06:45:33] raj___: has joined #RubyOnRails
[06:48:06] drale2k: has joined #RubyOnRails
[06:49:26] jstr: has joined #RubyOnRails
[06:52:24] sarink: has joined #RubyOnRails
[06:59:08] ghr: has joined #RubyOnRails
[07:02:19] User458764: has joined #RubyOnRails
[07:06:12] cubicme: has joined #RubyOnRails
[07:06:22] SalexW: has joined #RubyOnRails
[07:15:49] allcentury: has joined #RubyOnRails
[07:17:26] Hates_: has joined #RubyOnRails
[07:18:32] davidhq: has joined #RubyOnRails
[07:20:44] ndrei: has joined #RubyOnRails
[07:21:27] hahuang65: has joined #RubyOnRails
[07:21:35] MartinElvar: has joined #RubyOnRails
[07:23:19] bmalum: has joined #RubyOnRails
[07:30:01] lele: has joined #RubyOnRails
[07:34:42] quazimodo: has joined #RubyOnRails
[07:36:14] mello: has joined #RubyOnRails
[07:37:45] chinmay_dd: has joined #RubyOnRails
[07:38:54] darutoko: has joined #RubyOnRails
[07:39:24] MartinElvar: has joined #RubyOnRails
[07:44:29] tvw: has joined #RubyOnRails
[07:44:29] eoy_: has joined #RubyOnRails
[07:45:21] vasilakisFiL: has joined #RubyOnRails
[07:50:25] notakid: has joined #RubyOnRails
[07:50:32] User458764: has joined #RubyOnRails
[07:51:38] jenrzzz: has joined #RubyOnRails
[07:53:40] thebatu1: has joined #RubyOnRails
[07:56:58] notakid: What are the good gems for adding good gamification features to a rails application?
[07:57:33] sevenseacat: define 'good gamification features'
[07:57:56] commondream: has joined #RubyOnRails
[07:58:42] ghr: has joined #RubyOnRails
[07:59:11] notakid: sevenseacat: point systems for using features and all, like activerecord-reputation-system from twitter
[08:00:40] roolo: has joined #RubyOnRails
[08:02:09] notakid: notakid: to be exact, I have a application which allows users to add reviews about movies, add movies etc, I want a reputation system where I can have a karma or something like that.
[08:02:52] bluish: has joined #RubyOnRails
[08:03:45] sevenseacat: if you cant find any out of the box tools (and i doubt there would be any) you might have to write it
[08:03:56] sevenseacat: there was one gamification gem i knew of, trying t ofind it
[08:04:08] sevenseacat: https://github.com/GiocoApp/gioco
[08:04:20] sevenseacat: see if that helps you out
[08:05:09] notakid: sevenseacat: this is something I can write, But if there something modular with bells and whistles, I can save some time :)
[08:06:13] maz-dev: has joined #RubyOnRails
[08:10:40] notakid: sevenseacat: that gem look interesting :)
[08:14:41] bronson: has joined #RubyOnRails
[08:14:53] bruno-: has joined #RubyOnRails
[08:15:06] DLSteve: has joined #RubyOnRails
[08:16:55] srinidhi: has joined #RubyOnRails
[08:17:36] Deck`: has joined #RubyOnRails
[08:18:30] dideler: has joined #RubyOnRails
[08:23:37] RegulationD: has joined #RubyOnRails
[08:27:57] davidhq: has joined #RubyOnRails
[08:28:00] eoy_: has joined #RubyOnRails
[08:30:40] mrbubbles: has joined #RubyOnRails
[08:31:54] chagel: has joined #RubyOnRails
[08:32:04] chinmay_dd: has joined #RubyOnRails
[08:33:55] raj___: has joined #RubyOnRails
[08:38:26] gaussblurinc1: has joined #RubyOnRails
[08:39:42] kalusn: has joined #RubyOnRails
[08:42:02] bmalum: has joined #RubyOnRails
[08:43:48] nso95: has joined #RubyOnRails
[08:44:21] ndrei: has joined #RubyOnRails
[08:44:46] Sylario: has joined #RubyOnRails
[08:48:49] rajasekhar: has joined #RubyOnRails
[08:53:01] edwinvdgraaf: has joined #RubyOnRails
[08:53:21] chagel: has joined #RubyOnRails
[08:54:40] cornerma1: has joined #RubyOnRails
[08:56:07] jenrzzz: has joined #RubyOnRails
[08:59:03] ghr: has joined #RubyOnRails
[09:01:28] s2013: has joined #RubyOnRails
[09:04:10] User458764: Hi, Does accepts_nested_attributes_for doesn't work with a simple has_many association, I get it work with a has_many through: but not this one. I think I have a similar problem to this one: http://stackoverflow.com/q/24090024/4918824
[09:04:17] ndrei: has joined #RubyOnRails
[09:07:15] SalexW: has joined #RubyOnRails
[09:07:20] sevenseacat: it works just fine. what does your code look like?
[09:07:34] hahuang65: has joined #RubyOnRails
[09:08:29] User458764: sevenseacat I have this error ActiveRecord::RecordNotFound in CampaignsController#create Couldn't find List with ID=2 for Campaign with ID= . It try to create an assocation before saving the children record
[09:08:31] workmad3: has joined #RubyOnRails
[09:08:49] sevenseacat: and what does your code look like?
[09:09:09] toretore: has joined #RubyOnRails
[09:11:06] gaussblurinc1: has joined #RubyOnRails
[09:11:37] ndrei: has joined #RubyOnRails
[09:11:42] User458764: sevenseacat here is the gist https://gist.github.com/guibru-sh/9bb17205b251bfb97eac
[09:12:38] sevenseacat: your code is totally different - you have a belongs_to association, which means you don't need a nested form at all
[09:12:42] Lytol: has joined #RubyOnRails
[09:12:51] sevenseacat: you just want to have a list_id field on your form
[09:12:53] baweaver: Controller code would probably help there too mate
[09:13:21] sevenseacat: put the collection_select in the main form and remove the fields_for, becuase you dont need it
[09:13:32] mello: has joined #RubyOnRails
[09:13:34] sevenseacat: you also dont need accepts_nested_attributes_for
[09:13:41] User458764: sevenseacat ok so in this case accepts_nested_attributes_not does not work?
[09:13:47] sevenseacat: its not needed.
[09:13:56] sevenseacat: its incorrect usage of it.
[09:14:26] User458764: sevenseacat ok I will fix that thanks
[09:16:46] artto: has joined #RubyOnRails
[09:17:12] DoctorMonocular: has joined #RubyOnRails
[09:24:09] rakd: has joined #RubyOnRails
[09:24:30] omerraja: has joined #RubyOnRails
[09:25:49] artto: has joined #RubyOnRails
[09:25:59] centrx: has joined #RubyOnRails
[09:26:19] delianides: has joined #RubyOnRails
[09:26:20] livathinos: has joined #RubyOnRails
[09:26:51] kaz: has joined #RubyOnRails
[09:27:59] omerraja: FAIL["test_should_get_help", StaticPagesControllerTest, 0.396111248]
[09:28:00] omerraja: test_should_get_help#StaticPagesControllerTest (0.40s)
[09:28:02] omerraja: <Help | Ruby on Rails Tutorial Sample App> expected but was
[09:28:03] allcentury: has joined #RubyOnRails
[09:28:03] omerraja: <Help | Ruby on Rails Tutorial Sample App>..
[09:28:05] omerraja: Expected 0 to be >= 1.
[09:28:06] omerraja: test/controllers/static_pages_controller_test.rb:11:in `block in <class:StaticPagesControllerTest>'
[09:28:10] helpa: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[09:28:14] sevenseacat: dont spam the channel.
[09:28:21] omerraja: woops forgot
[09:29:50] omerraja: https://gist.github.com/artvetica/17fdbb35b9e260b4b964
[09:30:02] omerraja: can anyone please explain what this failure is trying to say
[09:30:33] sevenseacat: omerraja: compare the expected to the actual results
[09:30:44] kalusn: has joined #RubyOnRails
[09:30:45] jhass: space is significant
[09:30:53] sevenseacat: they are not the same, so the test fails.
[09:31:01] s2013: has joined #RubyOnRails
[09:31:38] platzhirsch: has joined #RubyOnRails
[09:32:24] omerraja: but everything seems to be same
[09:32:34] omerraja: I cant figure out what the difference is
[09:32:39] sevenseacat: https://gist.github.com/artvetica/17fdbb35b9e260b4b964#file-gistfile1-rb-L7-L8 theyre not the same
[09:32:42] sevenseacat: one has an extra space in it
[09:32:55] sevenseacat: https://gist.github.com/artvetica/17fdbb35b9e260b4b964#file-gistfile1-rb-L21-L22 theyre really not the same at all
[09:33:21] sevenseacat: dunno about the second one, but you didnt post the test
[09:41:38] User458764: has joined #RubyOnRails
[09:41:44] edwinvdgraaf: has joined #RubyOnRails
[09:42:15] omerraja: https://gist.github.com/artvetica/17fdbb35b9e260b4b964
[09:42:25] omerraja: here i have pasted the test file too
[09:42:33] thebatu1: has joined #RubyOnRails
[09:42:50] sevenseacat: those tests do not match those failures
[09:43:36] omerraja: and I just updated the failure too
[09:45:08] sevenseacat: try copying and pasting the string from here https://gist.github.com/artvetica/17fdbb35b9e260b4b964#file-gistfile1-rb-L8 you'll find something odd about it.
[09:45:56] stamina: has joined #RubyOnRails
[09:47:15] omerraja: where is that extra space comming from
[09:47:18] mrbubbles: has joined #RubyOnRails
[09:47:25] omerraja: I cant see it in the code?
[09:47:48] sevenseacat: theres not an extra space - you have a bodgy whitespace character in the code
[09:47:53] sevenseacat: delete and re-insert it
[09:48:02] mrbubbles: Morning guys. I???m using CRON to run a rake task that parses a load of csvs and then uses Model.create! to insert the values into my db. However, some of the rows of data aren???t being logged, but no error is appearing. Should I wrap the Model.create! function in some kind of error catcher so that errors are logged? I used raise ???xxx??? elsewhere in the code and that was logged to my CRON log correctly, but I
[09:48:03] mrbubbles: thought that create! logged errors automatically
[09:48:07] thsig: has joined #RubyOnRails
[09:48:38] sevenseacat: create! will raise an exception if it fails
[09:49:18] jstr: has joined #RubyOnRails
[09:49:34] jhass: .create won't
[09:49:42] omerraja: OK that was wierd
[09:50:05] mrbubbles: so no exception suggests that it???s actually something else that is failing
[09:50:12] mrbubbles: interesting, cheers sevenseacat
[09:50:39] omerraja: When I highlight the code it shows the string like this "Ruby . on . Rails . Tutorial - Sample . App"
[09:50:48] omerraja: The "-" was the bus
[09:52:11] omerraja: probably because I copied the code from the PDF reader
[09:54:57] maz-dev: has joined #RubyOnRails
[09:56:12] JamesBrink: has joined #RubyOnRails
[09:58:59] ghr: has joined #RubyOnRails
[10:03:48] omerraja: thank you again seavenseacat
[10:04:58] kaz: has left #RubyOnRails: ()
[10:07:19] Spami: has joined #RubyOnRails
[10:11:53] shinnya: has joined #RubyOnRails
[10:12:27] RegulationD: has joined #RubyOnRails
[10:15:14] rikkipitt: has joined #RubyOnRails
[10:17:05] qwertme: has joined #RubyOnRails
[10:18:03] roshanavand: has joined #RubyOnRails
[10:22:28] DLSteve: has joined #RubyOnRails
[10:28:14] AzaToth: has joined #RubyOnRails
[10:28:25] sandstrom: has joined #RubyOnRails
[10:29:14] commondream: has joined #RubyOnRails
[10:30:09] intinig: has joined #RubyOnRails
[10:35:57] DEA7TH: has joined #RubyOnRails
[10:36:20] eoy_: has joined #RubyOnRails
[10:37:09] allcentury: has joined #RubyOnRails
[10:38:16] elia: has joined #RubyOnRails
[10:38:24] krz: is Rails.env supposed to be available in config/initializer/foo.rb?
[10:39:30] artto: has joined #RubyOnRails
[10:40:24] sevenseacat: i would presume so.
[10:40:52] jhass: a few gems read their initializers directly though
[10:42:58] lapide_viridi: has joined #RubyOnRails
[10:43:25] raj___: has joined #RubyOnRails
[10:44:20] jenrzzz: has joined #RubyOnRails
[10:47:39] allcentury: has joined #RubyOnRails
[10:49:32] haz111: has joined #RubyOnRails
[10:49:55] riotjones: has joined #RubyOnRails
[10:52:24] thelastinuit: has joined #RubyOnRails
[10:53:54] mikecmpbll: has joined #RubyOnRails
[10:55:43] maz-dev: has joined #RubyOnRails
[10:56:33] hahuang65: has joined #RubyOnRails
[10:57:45] workmad3: has joined #RubyOnRails
[10:57:47] maz-dev: has joined #RubyOnRails
[10:58:40] ghr: has joined #RubyOnRails
[11:00:26] cha1tanya: has joined #RubyOnRails
[11:04:19] chipotle: has joined #RubyOnRails
[11:07:23] gaussblurinc1: has joined #RubyOnRails
[11:07:49] SalexW: has joined #RubyOnRails
[11:08:02] darutoko-: has joined #RubyOnRails
[11:10:12] i: has joined #RubyOnRails
[11:10:51] jstr: has joined #RubyOnRails
[11:12:59] Mudstart: has joined #RubyOnRails
[11:14:27] tianyi: has joined #RubyOnRails
[11:15:04] maxshelley: has joined #RubyOnRails
[11:16:33] MrBeardy: has joined #RubyOnRails
[11:20:06] rickmasta: has joined #RubyOnRails
[11:20:39] allcentury: has joined #RubyOnRails
[11:22:51] Ropeney_: has joined #RubyOnRails
[11:23:11] Pupeno: has joined #RubyOnRails
[11:23:35] Ropeney_: has joined #RubyOnRails
[11:24:45] Ropeney: has joined #RubyOnRails
[11:26:57] s2013: has joined #RubyOnRails
[11:28:14] intinig: has joined #RubyOnRails
[11:29:08] elia: has joined #RubyOnRails
[11:31:24] thebatu1: has joined #RubyOnRails
[11:35:09] krz: sevenseacat jhass i tried and got https://gist.github.com/9e71b50c0f684c64abbe
[11:35:26] krz: it seems Rails.env might not be available on initialization
[11:36:04] jhass: uh, it looks like your RAILS_ENV is set to --concurrency?
[11:36:29] sevenseacat: krz: works fine here.
[11:36:34] raj___: has joined #RubyOnRails
[11:36:43] bronson: has joined #RubyOnRails
[11:36:46] sevenseacat: ACTION just stuck a byebug in an initializer and checked
[11:36:54] jhass: really double check what your RAILS_ENV is set to
[11:37:34] sevenseacat: indeed, where is --concurrency coming from?
[11:38:01] sevenseacat: did you by some chance run `rails s --concurrency`? ;)
[11:38:16] jhass: or sidekiq -e --concurrency?
[11:38:21] sevenseacat: something like that
[11:38:29] MartinElvar: has joined #RubyOnRails
[11:39:46] krz: oh wait
[11:39:49] krz: i think i know why
[11:40:08] artto: has joined #RubyOnRails
[11:40:14] krz: im looking at the wrong file. face palm. i should be looking at the chef recipe. i think i found the issue
[11:42:11] nfk: has joined #RubyOnRails
[11:43:08] Guest26781: has joined #RubyOnRails
[11:45:56] djellemah: has joined #RubyOnRails
[11:55:07] Scripore: has joined #RubyOnRails
[11:56:20] platzhirsch: has joined #RubyOnRails
[11:58:59] ghr: has joined #RubyOnRails
[12:01:15] Meow-J: has joined #RubyOnRails
[12:01:21] RegulationD: has joined #RubyOnRails
[12:02:18] eoy_: has joined #RubyOnRails
[12:05:02] elia: has joined #RubyOnRails
[12:06:09] mikecmpbll: has joined #RubyOnRails
[12:09:37] User458764: has joined #RubyOnRails
[12:10:03] coin3d: has joined #RubyOnRails
[12:10:13] mello: has joined #RubyOnRails
[12:10:25] bendangelo: has joined #RubyOnRails
[12:12:09] ndrei: has joined #RubyOnRails
[12:13:23] Guest26781: has joined #RubyOnRails
[12:19:10] roolo: has joined #RubyOnRails
[12:22:53] tejasmanohar: has joined #RubyOnRails
[12:29:51] artto: has joined #RubyOnRails
[12:30:09] pjammer: has joined #RubyOnRails
[12:30:36] Scripore: has joined #RubyOnRails
[12:31:06] jacor: has joined #RubyOnRails
[12:31:44] michael_mbp: has joined #RubyOnRails
[12:33:45] krz: has joined #RubyOnRails
[12:34:39] Guest26781: has joined #RubyOnRails
[12:37:56] kropotkin__: has joined #RubyOnRails
[12:39:07] taxen: has joined #RubyOnRails
[12:43:24] brendan-: has joined #RubyOnRails
[12:45:01] hahuang65: has joined #RubyOnRails
[12:45:12] qwertme: has joined #RubyOnRails
[12:46:23] workmad3: has joined #RubyOnRails
[12:47:20] sinkensabe: has joined #RubyOnRails
[12:48:09] sandstrom: has joined #RubyOnRails
[12:50:00] Hamled: has joined #RubyOnRails
[12:52:25] watchtheblur: has joined #RubyOnRails
[12:53:10] doodlehaus: has joined #RubyOnRails
[12:55:08] Scripore: has joined #RubyOnRails
[12:56:52] chagel: has joined #RubyOnRails
[12:57:44] scottmatheina: has joined #RubyOnRails
[12:58:47] ghr: has joined #RubyOnRails
[12:59:27] sandstrom: has joined #RubyOnRails
[13:02:26] michael_mbp: anyone alive?
[13:06:55] coin3d: michael_mbp: woddap?
[13:07:37] Scripore: has joined #RubyOnRails
[13:09:08] thsig: has joined #RubyOnRails
[13:09:10] michael_mbp: have you tried doing a rake migrate via DATABASE_URL only?
[13:11:25] taxen: Anyone here have experience with the StripeJS gem?
[13:15:06] Scripore: has joined #RubyOnRails
[13:15:31] ismaelga: has joined #RubyOnRails
[13:18:47] coin3d: michael_mbp: nope :( whats your problem?
[13:19:47] user121212: has joined #RubyOnRails
[13:20:18] thebatu1: has joined #RubyOnRails
[13:22:51] srinidhi: has joined #RubyOnRails
[13:23:32] Peteykun: has joined #RubyOnRails
[13:23:49] DEA7TH: has joined #RubyOnRails
[13:24:06] moeabdol: has joined #RubyOnRails
[13:24:37] moeabdol: i just read an article that rails is dead. Or atleast on its way to death!
[13:24:46] moeabdol: I wonder what you guys think?
[13:25:13] jenrzzz: has joined #RubyOnRails
[13:26:08] leafac: has joined #RubyOnRails
[13:26:48] Scripore: has joined #RubyOnRails
[13:27:21] SimpleString: has joined #RubyOnRails
[13:27:25] SimpleString: Hi everybody. I'm trying to implement some javascript in a partial and it isn't working. I have a summary here http://pastebin.com/C8b1c7gh . Could somebody tell me what's going on? Thanks a lot.
[13:28:08] SimpleString: Hi everybody. I'm trying to implement some javascript in a partial and it isn't working. I have a summary here http://pastie.org/10215102 . Could somebody tell me what's going on? Thanks a lot.
[13:28:21] coin3d: moeabdol: thats good, means it got mature now. :D
[13:28:56] moeabdol: coin3d: :) I love rails
[13:29:08] SimpleString: Sadly pastie has cut off some of my text... I think it's still readable
[13:29:25] shinnya: has joined #RubyOnRails
[13:29:25] moeabdol: coin3d: they also claim in the article that other frameworks are much better
[13:29:27] SimpleString: disregard. horizontal scroll
[13:29:29] pjammer: has joined #RubyOnRails
[13:29:48] coin3d: moeabdol: link, please
[13:29:48] moeabdol: am not sure which one the mentioned (angular or something else)
[13:30:17] moeabdol: coin3d: http://ilikekillnerds.com/2015/02/is-ruby-on-rails-dying/
[13:30:22] moeabdol: coin3d: sorry!
[13:30:32] moeabdol: oh and it's node.js
[13:32:13] RegulationD: has joined #RubyOnRails
[13:36:40] SimpleString: Can I put javascript in a partial?
[13:37:49] raj___: has joined #RubyOnRails
[13:38:33] elaptics: SimpleString: why are you puuting it in a partial?
[13:38:49] elaptics: SimpleString: you would be better off putting it into the javascript in the asset pipeline
[13:39:09] SimpleString: would you mind looking at a section of my code? http://pastie.org/10215102
[13:39:25] raj___: has joined #RubyOnRails
[13:39:44] SimpleString: I'm trying to implement like buttons for microposts
[13:40:09] Scripore: has joined #RubyOnRails
[13:40:14] SimpleString: , as my introduction to javascript/ajax/jquery
[13:40:23] SimpleString: right now just trying to get the button to change when pressed as an exercise
[13:40:49] tejasmanohar: has joined #RubyOnRails
[13:41:05] elaptics: you'd be best to add a class to your like buttons then change the javascript to attach on the page:load event from turbolinks (as it looks like you're using that) to look for the clicks on the submit buttons with the class you gave it
[13:42:36] elaptics: SimpleString: have you read http://guides.rubyonrails.org/working_with_javascript_in_rails.html
[13:43:16] SimpleString: I'll give that a look
[13:43:18] SimpleString: thanks a lot :)
[13:43:33] elaptics: effectively you want do something similar to what's described in the unobtrusive javascript section, adapting it for your use
[13:44:18] elaptics: then instead of using the normal jquery document ready function you need to switch it out for the turbolinks page:change event as described at the bottom of that guide
[13:44:46] elaptics: the only thing to bear in mind there are that the examples are in coffeescript
[13:45:12] juanda: has joined #RubyOnRails
[13:47:08] earthquake: has joined #RubyOnRails
[13:49:31] Bil1: has joined #RubyOnRails
[13:50:12] doodlehaus: has joined #RubyOnRails
[13:50:16] mostlybadfly: has joined #RubyOnRails
[13:53:42] Scripore: has joined #RubyOnRails
[13:54:57] dkam__: has joined #RubyOnRails
[13:57:11] Glyphik: What are some really good books on the development process with RoR specifically in mind?
[13:58:44] ghr: has joined #RubyOnRails
[13:58:59] victorkohl: has joined #RubyOnRails
[13:59:40] Bil1: Hello everone :-). I'm stuck again on ruby on rails and can't figure out what I am doing wrong. I am following this guide: http://asciicasts.com/episodes/196-nested-model-form-part-1 I am pretending "Servey" is "Person" and "Question" is "Student" in my project. In my project it will be a has_one relationship for the person but for now has many is fine. I am getting an error: unknown attribute 'person_id' for Student.
[14:00:34] Bil1: The error is in the controller... it doesn't like the @person.students.build command
[14:01:07] Guest26781: has joined #RubyOnRails
[14:01:12] asheinfeld: has joined #RubyOnRails
[14:01:46] nothingmuch: has joined #RubyOnRails
[14:04:06] Ropeney: has joined #RubyOnRails
[14:04:55] coin3d: Bil1: do you have a belongs_to :person relationship in your Student model?
[14:05:12] Bil1: coin3d: class Student < ActiveRecord::Base belongs_to :person end
[14:05:12] elaptics: Bil1: !gist your code
[14:05:12] helpa: Bil1: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[14:05:33] Bil1: Oh neat.. give me a sec and i'll do that
[14:05:42] coin3d: did you also run database migrations?
[14:05:43] gambl0re: has joined #RubyOnRails
[14:08:00] Scripore: has joined #RubyOnRails
[14:10:03] Bil1: elaptics https://gist.github.com/bc677bfbad9d975af4f8.git
[14:10:53] acti0nman: has joined #RubyOnRails
[14:11:19] Bil1: The error changes on refresh somteims to "undefined local variable or method `person_id=' "
[14:12:23] elaptics: Bil1: you haven't allowed the students nested attributes in your people controller
[14:12:38] Rylee: has joined #RubyOnRails
[14:12:51] Bil1: I put " accepts_nested_attributes_for :students" in the person model
[14:13:51] Bil1: elaptics ... do you have to put it in the controller to?
[14:14:19] coin3d: Bil1: sometimes? restart rails server :D
[14:14:45] coin3d: your code looks ok
[14:15:00] Bil1: Just did... :-P I have several times and the errors switch back and forth... The only thing I did different than the guide was not use the scaffold generators and not use the nifty layout gem
[14:15:07] coin3d: elaptics is right, but that should return an other error
[14:15:10] Bil1: I already ahd the models and stuff built
[14:15:12] roolo: has joined #RubyOnRails
[14:15:28] Bil1: "undefined local variable or method `person_id=' for #<Student:0x007f5572494d18>"
[14:15:29] Rylee: hi! I'm getting started w/ my first Rails project and I'm architecting out my models, and I've currently got https://gist.github.com/b43c201aa57356dac29b ??? can anyone see any obvious flaws?
[14:15:37] tvw: has joined #RubyOnRails
[14:15:41] maz-dev: has joined #RubyOnRails
[14:15:45] Bil1: Restarted server and got "unknown attribute 'person_id' for Student."
[14:15:59] Bil1: Refresha nd get "undefined local variable or method `person_id=' for #<Student:0x00000004593ce8>" again
[14:16:06] elaptics: Bil1: did you migrate your database as coin3d said?
[14:16:17] Bil1: I did a rake db:reset
[14:16:20] Bil1: and rake db:migrate
[14:16:51] coin3d: Bil1: are you using sqlite? then maybe just delete database/development.sqlite3 and re-run rake db:migrate
[14:17:07] sinkensabe: has joined #RubyOnRails
[14:17:08] elaptics: Bil1: what does your person form look like, and can you also add the actual log output of the request
[14:17:13] elaptics: from your development log
[14:17:45] Bil1: coin3d I am using sqlite. i'll try that; one sec
[14:17:57] elaptics: Rylee: nothing obvious jumps out
[14:18:15] Bil1: elaptics i'll update the gist with teh view but if I comment out "@person.students.build" the errors stop... I don't get the form for the student portion but the form for person appears.
[14:18:42] nettoweb: has joined #RubyOnRails
[14:18:47] victorkohl: has joined #RubyOnRails
[14:18:53] elaptics: Rylee: other than has_and_belongs_to_many is generally regarded as outdated, instead using has_many :through
[14:19:13] Rylee: oh, so I'd make a BoardUser model for that relation, then?
[14:19:58] Rylee: hmm, would User need a relation on it such as `has_many posts`?
[14:20:25] Bil1: OK, can't figure out how to edit a gist.... meh
[14:20:44] elaptics: Rylee: or something like a moderatorships table which has the ids for board and users and then you'd have a Board has_many: moderatorships and has_many: :moderators, through: :moderatorships
[14:21:08] elaptics: Rylee: yes if you want to be able to get to the users posts
[14:21:13] Rylee: yeah, that's the idea I was going for there :-) thanks, elaptics!
[14:21:22] platzhirsch: has joined #RubyOnRails
[14:21:44] Rylee: here comes a question that may be super simple: in this architecture, how would I get at all Reports given a Board?
[14:22:10] Geffy: has joined #RubyOnRails
[14:22:28] elaptics: Rylee: what is a report?
[14:22:42] elaptics: Rylee: I mean, I can see it's something related to posts
[14:22:42] Rylee: elaptics: e.g. user reports a post for breaking board rules, containing illegal content, etc.
[14:23:02] krz: has joined #RubyOnRails
[14:23:24] Rylee: For context, the application is going to be a mostly anonymous imageboard, just as a toy project
[14:23:51] elaptics: Rylee: well if you want to see all reports for a board then I'd just have a report belong to a post and a board and make sure you attach the board when the report is created. Then you can just have a direct Board has_many :reports
[14:24:03] Guest26781: has joined #RubyOnRails
[14:24:28] Rylee: oh, so just a simple belongs_to :board on the Report model, w/ has_many :reports on Board?
[14:24:49] Rylee: wonderful, thanks elaptics, you're a fantastic person
[14:24:59] elaptics: saves messing around with joins to do it :)
[14:25:31] Bil1: coin3d elaptics... welp... I think I shouldn't edit migration files anymore... deleting the sqlite database file and running rake db:migrate fixed it. But now the form still doesn't load lol. But no error
[14:25:34] elaptics: Rylee: np :)
[14:26:12] elaptics: Bil1: update the gist with your current code
[14:26:34] bronson: has joined #RubyOnRails
[14:26:40] Bil1: elaptics coin3d yep here ya go. Nothing changed but I added the view code https://gist.github.com/3d44a96b0547cdd02261.git
[14:26:44] elaptics: Bil1: it's fine to re-edit the migrations if you're still in the very early stages and you're blowing it all away and restarting from scratch, db-wise
[14:26:50] platzhirsch: has left #RubyOnRails: ()
[14:26:58] Limix: has joined #RubyOnRails
[14:27:12] Bil1: elaptics ... is there a rake command that will blow it away and start over. I thought db:reset did that but apparently not
[14:27:39] elaptics: Bil1: btw, you can just copy/paste the url - we don't need the clone url with the .git on the end to just view the gist on the web
[14:28:02] coin3d: Bil1: rake db:drop normally does, but not sure if it works with sqlite
[14:28:33] cha1tanya: has joined #RubyOnRails
[14:28:40] elaptics: Bil1: you're using the latest version of rails?
[14:28:43] Bil1: I tried rake db:drop... looks like it works
[14:28:47] Bil1: elaptics rails 4.2.1
[14:29:06] Bil1: elaptics ruby 2.2.2 I think
[14:29:06] elaptics: db:drop then db:setup
[14:29:33] elaptics: generally think you need to make sure nothing's got the db open though
[14:29:39] coin3d: Bil1: so you just get a blank page?
[14:29:40] elaptics: tbh I don't use sqlite though
[14:30:15] coin3d: Bil1: any log output on console?
[14:30:30] Bil1: coin3d elaptics I get everything excapt Anything after the <h1> that says I'm assumign you are a student and before the submit button paragraph
[14:30:45] elaptics: Bil1: what's the student_id field in the view for?
[14:30:57] Bil1: Started GET "/people/new" for 192.168.169.1 at 2015-05-29 22:02:44 -0500 Cannot render console from 192.168.169.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255 Processing by PeopleController#new as HTML Rendered people/new.html.erb within layouts/application (4.1ms) Completed 200 OK in 42ms (Views: 38.8ms | ActiveRecord: 0.0ms)
[14:31:08] elaptics: Bil1: that would be right because you've stopped building the student
[14:31:19] coin3d: Bil1: closely look at <% f.fields_for :students do |builder| %>
[14:31:37] coin3d: second char :)
[14:32:01] elaptics: oh ignore me - was too busy looking at the commented line :)
[14:32:02] Bil1: studnet_id is my own field... perhaps I shoudl rename it lol. Students have an ID from another system and I need to store it in this one too.
[14:32:06] elaptics: coin3d is right though
[14:32:17] elaptics: you're missing a character in fields_for :)
[14:32:35] elaptics: Bil1: here's a clue - compare it to form_for :)
[14:33:06] Bil1: The guide says to use "<% f.fields_for :questions do |builder| %>"
[14:33:17] Bil1: So, I changed it to "<% f.fields_for :students do |builder| %>"
[14:33:31] elaptics: Bil1: the asciicasts guide?
[14:33:39] Bil1: http://asciicasts.com/episodes/196-nested-model-form-part-1
[14:33:51] hahuang65: has joined #RubyOnRails
[14:33:54] elaptics: it was right when it was written, for the version of rails that existed then
[14:34:05] elaptics: you need an = like form_for
[14:34:17] elaptics: they changed it because it was confusing for people
[14:34:24] elaptics: to know when you needed it and when you didn't
[14:34:49] Bil1: That would have taken me all day to figure out
[14:35:01] coin3d: yes. guess what it took me, back in my early rails days :D
[14:35:27] elaptics: it's caught me out loads too when upgrading old rails 2 apps to rails 3 and 4
[14:35:43] coin3d: i mean hours and hours... :D
[14:35:56] Bil1: gotcha... well i'm going to try to convert this to has_one relationship.......
[14:35:59] Bil1: Are my relationships rights?
[14:36:04] Bil1: What I want to do:
[14:36:52] Bil1: Person can be either student or staffmember. student and staffmember have different fields so I don't want to use an STI here. I'm hoping person can belong to both tables and have 1 for both tables.
[14:37:04] Bil1: I said that wrong
[14:37:12] Rylee: and... I think I'm done designing models. https://gist.github.com/9977a286dd91cd4cbf0f
[14:37:24] Bil1: I'm hoping student and staffmember can both belong to person. And person can have 1 of each table (if needed)
[14:37:50] ghox: has joined #RubyOnRails
[14:38:43] elaptics: Bil1: why not just have Staff and Student models then?
[14:38:53] elaptics: why do you want a Person model?
[14:39:27] Bil1: they share some fields... first_name, middle_name, last_name etc. And I would want their ID's to be unique between one another since I plan on displaying both when I join them to some other tables later
[14:39:33] michael_mbp: I'm having trouble running migrations with DATABASE_URL
[14:39:46] michael_mbp: keep getting errors saying the socket cannot be connected too
[14:39:58] michael_mbp: I've intensionally cut access to the mysql socket too.
[14:40:17] elaptics: Bil1: why not have a Profile table that will hold that common data then? And invert it so Staff has_one :profile
[14:40:41] elaptics: Bil1: you can make the profile be polymorphic so that a profile can belong to either student or staff
[14:40:43] IrishGringo: has joined #RubyOnRails
[14:41:17] elaptics: Bil1: http://guides.rubyonrails.org/association_basics.html#polymorphic-associations
[14:42:11] Bil1: elaptics: I am thinking... one sec
[14:42:24] elaptics: Bil1: what do you plan to do for showing them both at the same time, re the unique ids?
[14:42:40] elaptics: there's probably other options there
[14:42:48] chinmay_dd: has joined #RubyOnRails
[14:43:12] elaptics: Bil1: if these users are to log in then maybe you could have an account model which is the unique thing
[14:43:13] Bil1: we can pretend I am checking out books to students and staff. If I were to look at the assignments page I would want to see the students' names and grades etc... but I would also want to see a staff member's name and location.
[14:43:31] Bil1: These users are not logging in; authentication is completley separate
[14:43:48] sinkensabe: has joined #RubyOnRails
[14:44:07] elaptics: Bil1: so you'd be looking at a list of book assignments, each assignment could be to a staff or student?
[14:44:31] elaptics: well you could have a polymorphic association on that too
[14:45:02] Bil1: in my previous system I only had a "students" table... then when staff needed assignments I'v been manually modifying the database to pretend like the staff member is a student (it was not rails btw).
[14:46:33] elaptics: I'd go with polymorphic associations if staff and students are pretty different
[14:46:44] elaptics: if you're trying to avoid STI
[14:47:24] Bil1: so if I do staffmember which associates with "idenity" and student that associates with "identity". How would I later query both student and staff together and join to an assignment table?
[14:47:27] Bil1: can rails handle that?
[14:47:43] Bil1: I guess worse case scenario I write the sql myself but yea...
[14:48:25] shyshy: has joined #RubyOnRails
[14:48:56] scottmatheina: has joined #RubyOnRails
[14:49:02] elaptics: Bil1: well if you're iterating through the assignments to show a list of assignments then you'd do something like Assignment.includes(:fooable) where fooable is the name of the polymorphic association you set up. Rails will do the right queries to pull the records back efficiently
[14:49:19] delianid_: has joined #RubyOnRails
[14:49:23] kalusn: has joined #RubyOnRails
[14:49:44] tvw: has joined #RubyOnRails
[14:50:17] Bil1: elaptics I guess what I don't get is this. Rails likes using the ID for things. If i were to put both student and staffmember on teh same page and they were different models they would not have unique ID's... so would rials do something like "student[1]" then in a link?
[14:51:52] elaptics: Bil1: if you correctly set up the associations, you don't need to worry about that
[14:52:11] elaptics: rails will take care of it
[14:52:48] Bil1: elaptics you are probably right. I am just not familier with how rails is going to handle this stuff.... I should just focus on setting up the models I need and move from there instead of trying to make sure I can do what I need to do later (which is what I have to do in php/mysql)
[14:52:53] Klumben: has joined #RubyOnRails
[14:52:55] scottmatheina: has joined #RubyOnRails
[14:53:36] elaptics: yep, if you get stuck, come here and just ask
[14:54:34] Bil1: elaptics. I am going to make them different models. They don't share much in common I guess. They can have many assignments and assignments have many books... should be fun. Once this back end is workign the front end is where things are going to get really fun lol
[14:54:47] Bil1: elaptics coin3d thanks for the help you two. Learning alot here
[14:54:58] Bil1: better than any google search I can do... keep hitting dead ends like that
[14:59:02] ghr: has joined #RubyOnRails
[15:01:27] michael_mbp: hey elaptics https://github.com/rails/rails/issues/20373#issuecomment-107048833
[15:01:58] sevenseacat: michael_mbp: the rails issue tracker isnt a place for help requests
[15:02:03] sevenseacat: thats what places like stack overflow are for
[15:02:15] elaptics: michael_mbp: I've no clue about docker
[15:02:55] Junaos: has joined #RubyOnRails
[15:03:01] michael_mbp: sevenseacat: this wasn't a help request per say.
[15:03:14] michael_mbp: I thought there was an issue, seems it's not the case.
[15:03:31] sevenseacat: 'heres my problem, how do i fix it?'
[15:03:46] michael_mbp: docs say that if DATABASE_URL exists, it'll supercede whatever's in the database.yml file.
[15:04:14] michael_mbp: but even with the env var present, it's trying to connect to the socket.
[15:06:55] bmalum: has joined #RubyOnRails
[15:07:37] mase-chatter: has joined #RubyOnRails
[15:07:52] ndrei: has joined #RubyOnRails
[15:09:13] thebatu1: has joined #RubyOnRails
[15:09:36] Limix: has joined #RubyOnRails
[15:15:12] Jarboe: has joined #RubyOnRails
[15:15:34] ndrei: has joined #RubyOnRails
[15:15:45] cs44: has joined #RubyOnRails
[15:16:10] cs44: just updated my rails project to 4.2.1 and now i'm seeing
[15:16:20] qejk: has joined #RubyOnRails
[15:16:20] cs44: SQL in my console whenever I run rake or rspec
[15:16:27] cs44: that normal?
[15:16:44] bendangelo: has joined #RubyOnRails
[15:16:58] mello: has joined #RubyOnRails
[15:17:34] The_Phoenix: has joined #RubyOnRails
[15:18:11] ismaelga: has joined #RubyOnRails
[15:18:46] Limix: has joined #RubyOnRails
[15:19:23] n3b: has joined #RubyOnRails
[15:19:34] maz-dev: has joined #RubyOnRails
[15:19:59] cs44: actually, looks like it's coming from the 'rails_12factor' gem
[15:20:33] cs44: forgot to limit it to prod
[15:20:53] chouhoulis: has joined #RubyOnRails
[15:21:08] RegulationD: has joined #RubyOnRails
[15:22:10] lindii_: has joined #RubyOnRails
[15:22:29] STONECOLDDEVIN: has joined #RubyOnRails
[15:23:44] jenrzzz: has joined #RubyOnRails
[15:25:24] michael_mbp: figured it out
[15:25:28] chouhoulis: has joined #RubyOnRails
[15:25:34] porkqpain: has joined #RubyOnRails
[15:25:35] michael_mbp: if the DATABASE_URL has host as localhost, it expects socket
[15:25:43] michael_mbp: host must be 127.0.0.1
[15:26:58] n3b: has joined #RubyOnRails
[15:32:16] zorak8: has joined #RubyOnRails
[15:34:36] _blizzy_: has joined #RubyOnRails
[15:36:15] asheinfeld: has joined #RubyOnRails
[15:36:22] dseitz: has joined #RubyOnRails
[15:38:05] leafac: has joined #RubyOnRails
[15:38:19] jstanton: has joined #RubyOnRails
[15:40:50] Meow-J: has joined #RubyOnRails
[15:41:09] jstr: has joined #RubyOnRails
[15:41:39] moeabdol: has joined #RubyOnRails
[15:42:19] allcentury: has joined #RubyOnRails
[15:44:24] User458764: has joined #RubyOnRails
[15:44:33] asheinfeld: has joined #RubyOnRails
[15:45:18] nothingmuch: has joined #RubyOnRails
[15:45:19] Lytol: has joined #RubyOnRails
[15:47:33] User4587_: has joined #RubyOnRails
[15:48:09] mheld: has joined #RubyOnRails
[15:49:07] railsForDaiz: has joined #RubyOnRails
[15:53:23] doodlehaus: has joined #RubyOnRails
[15:53:59] edwinvdgraaf: has joined #RubyOnRails
[15:57:07] asheinfeld: has joined #RubyOnRails
[15:58:40] ghr: has joined #RubyOnRails
[15:59:54] Brozo: has joined #RubyOnRails
[16:00:37] tomkadwill: has joined #RubyOnRails
[16:02:48] scottmatheina: has joined #RubyOnRails
[16:03:21] asheinfeld: has joined #RubyOnRails
[16:04:24] moeabdol: has joined #RubyOnRails
[16:06:00] coderhs: has joined #RubyOnRails
[16:06:12] maz-dev: has joined #RubyOnRails
[16:06:27] rubyonrailed: has joined #RubyOnRails
[16:08:11] railsForDaiz: Hi, i want my rails application to load assets (css, js) from an html template which i have placed in public/assets. However i have a projects controller and each page is tying to locate the assets from projects/assets/ but obviously there is nothing there. Assets are getting loaded from the custom dashboard page which routes to dashboard#index but not for any controller i create using rails g scaffold controller_name. Is there any place I
[16:08:11] railsForDaiz: need to look in particular?
[16:09:07] tomkadwill: has left #RubyOnRails: ()
[16:09:30] paul0: has joined #RubyOnRails
[16:10:25] tomkadwill: has joined #RubyOnRails
[16:14:24] moeabdol: has joined #RubyOnRails
[16:14:46] tomaw: has joined #RubyOnRails
[16:16:35] mary5030: has joined #RubyOnRails
[16:17:58] mello: has joined #RubyOnRails
[16:18:08] paul0: has left #RubyOnRails: ()
[16:18:13] rubyonrailed: has joined #RubyOnRails
[16:19:14] m0r0n: has joined #RubyOnRails
[16:20:38] raj___: has joined #RubyOnRails
[16:21:22] tomaw: has joined #RubyOnRails
[16:22:33] hahuang65: has joined #RubyOnRails
[16:23:35] workmad3: has joined #RubyOnRails
[16:23:55] delianides: has joined #RubyOnRails
[16:24:25] thelastinuit: has joined #RubyOnRails
[16:24:40] tomkadwill: has left #RubyOnRails: ()
[16:24:43] ismaelga: has joined #RubyOnRails
[16:24:49] tomkadwill: has joined #RubyOnRails
[16:25:23] kinduff: has joined #RubyOnRails
[16:25:48] raj___: has joined #RubyOnRails
[16:26:03] sinkensabe: has joined #RubyOnRails
[16:26:41] tomkadwill: has left #RubyOnRails: ()
[16:26:51] tomkadwill: has joined #RubyOnRails
[16:27:07] Threedee: has joined #RubyOnRails
[16:28:23] bronson: has joined #RubyOnRails
[16:29:25] sandstrom: What's a good way of encapsulating internal methods of a module? (stuff that doesn't need to be accessible from the class that includes the module)
[16:30:20] pontiki: has joined #RubyOnRails
[16:32:42] User458764: has joined #RubyOnRails
[16:33:13] benhuda: has joined #RubyOnRails
[16:34:28] Scripore: has joined #RubyOnRails
[16:35:21] elaptics: sandstrom: ? that doesn't make sense? Why include a module into a class then? Just make the methods private
[16:35:50] sandstrom: private methods are still accessible to the class
[16:36:07] mello: has joined #RubyOnRails
[16:36:07] jenrzzz: has joined #RubyOnRails
[16:36:34] sandstrom: Modules included in ApplicationController, I'd like to avoid polluting the namespace of all controllers with additional methods.
[16:36:40] elaptics: yes, but I don't know why you'd want to include a module into a class and then not want methods in that module available to the class. It's kind of the point of mixins
[16:36:41] rhizome: you can never completely private a method in ruby
[16:36:52] sandstrom: My best idea so far is something like this: `module MyModule; module Internal; extend self; def my_int_method; end; end; def my_shared_method; my_int_method; end; end;`
[16:37:17] sandstrom: (sorry for the hard-to-read one-liner ;)
[16:37:37] leafac: has joined #RubyOnRails
[16:38:00] elaptics: what are you actually doing?
[16:39:08] sarink: has joined #RubyOnRails
[16:39:16] elaptics: would refinements do what you want?
[16:40:33] elaptics: I'm not sure what refinements do in inheritance terms - never tried
[16:40:35] sandstrom: I found something similar here: https://github.com/rails/rails/blob/e57921f83eeef6f39cdc6bba56bda1cafd244337/actionpack/lib/action_controller/metal/http_authentication.rb#L112
[16:40:54] sandstrom: I think I'll go with the above
[16:40:57] Cache_Money: has joined #RubyOnRails
[16:42:06] benhuda: has joined #RubyOnRails
[16:42:18] cs44: has joined #RubyOnRails
[16:42:43] cs44: opinion needed: is it a bad sign to have to .reload vars in specs?
[16:43:10] cs44: as in, load var, execute code under test, then .reload the var to verify expectation
[16:43:19] cs44: always wondered, figured i'd as here.
[16:44:06] nettoweb: has joined #RubyOnRails
[16:45:27] raj___: has joined #RubyOnRails
[16:50:43] haz111_: has joined #RubyOnRails
[16:52:16] MartinElvar: has joined #RubyOnRails
[16:54:02] rubyonrailed: has joined #RubyOnRails
[16:56:22] vickleton: has joined #RubyOnRails
[16:59:01] ghr: has joined #RubyOnRails
[17:01:04] givanse: has joined #RubyOnRails
[17:01:56] allcentury: has joined #RubyOnRails
[17:04:22] krz: has joined #RubyOnRails
[17:04:29] bendangelo: has joined #RubyOnRails
[17:05:30] djbkd: has joined #RubyOnRails
[17:05:34] srinidhi: has joined #RubyOnRails
[17:05:50] hsps_: has joined #RubyOnRails
[17:06:16] elia: has joined #RubyOnRails
[17:07:21] asheinfeld: has joined #RubyOnRails
[17:07:53] doodlehaus: has joined #RubyOnRails
[17:09:13] pontiki: not necessarily, but it might mean your code isn't working with your var the way you think it is
[17:10:01] RegulationD: has joined #RubyOnRails
[17:10:03] coin3d: has joined #RubyOnRails
[17:10:40] gaboesquivel: has joined #RubyOnRails
[17:11:08] rubyonrailed: has joined #RubyOnRails
[17:12:36] maz-dev: has joined #RubyOnRails
[17:14:47] barnex: has joined #RubyOnRails
[17:19:48] JDeen: has joined #RubyOnRails
[17:20:51] raj___: has joined #RubyOnRails
[17:20:52] JDeen: Hi Guys. I just wrote a query, which I think is right. I appreciate your support in converting this to some thing thta doesn't involve a raw string. `late_count += briefs.where('id NOT IN (SELECT brief_id FROM articles)').where{ created_at > Time.now }.count`.
[17:21:12] shuber_: has joined #RubyOnRails
[17:21:26] JDeen: The story is as follows, Brief has one Article, Article blongs to brief, I want to find a Brief without an article.
[17:21:44] JDeen: Thanks in advance
[17:22:52] Ropeney: has joined #RubyOnRails
[17:22:59] rhizome: "a" brief?
[17:24:00] JDeen: corrections, a collction of
[17:24:20] rhizome: use counter_cache instead of all that
[17:25:33] podman: has joined #RubyOnRails
[17:26:06] podman: Hey people! Do you guys consider this to be a big issue? http://osvdb.org/show/osvdb/97726
[17:26:24] doodlehaus: has joined #RubyOnRails
[17:26:39] podman: Basically the fact that rails sessions using the CookieStore don't actually expire?
[17:26:48] JDeen: rhizome: Thanks, reading...
[17:27:03] Geffy_: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[17:28:14] rubyonrailed: has joined #RubyOnRails
[17:28:43] nettoweb: has joined #RubyOnRails
[17:30:12] podman: Also, is it not considered best practice anymore to use the CookieStore?
[17:30:29] Limix: has joined #RubyOnRails
[17:31:02] tejasmanohar_: has joined #RubyOnRails
[17:31:48] barnex: Slightly offtopic, but do you guys know why everyone is using ansible to provision digital ocean and vagrant boxes only? Won't this recipes work on normal machine?
[17:31:56] barnex: s/recipes/playbooks/
[17:32:14] Geffy: has joined #RubyOnRails
[17:33:09] rhizome: i'm sure they would.
[17:33:18] Scripore: has joined #RubyOnRails
[17:33:37] delianides: has joined #RubyOnRails
[17:34:04] pontiki: you can use ansible that way
[17:34:51] pontiki: ansible doesn't actually know squat about that
[17:36:23] i: has joined #RubyOnRails
[17:38:19] hahuang65: has joined #RubyOnRails
[17:41:35] porkqpain: has joined #RubyOnRails
[17:42:07] User458764: has joined #RubyOnRails
[17:44:27] a346: has joined #RubyOnRails
[17:44:29] bmalum: has joined #RubyOnRails
[17:44:43] barnex: thanks pontiki
[17:46:14] mary5030_: has joined #RubyOnRails
[17:47:29] MartinElvar: has joined #RubyOnRails
[17:48:50] nettoweb: has joined #RubyOnRails
[17:49:04] dr_watson: has joined #RubyOnRails
[17:54:20] ndrei_: has joined #RubyOnRails
[17:54:50] Lightsword: has joined #RubyOnRails
[17:56:03] DoctorMonocular: has joined #RubyOnRails
[17:58:46] ghr: has joined #RubyOnRails
[18:00:01] seank_: has joined #RubyOnRails
[18:01:13] momomomomo: has joined #RubyOnRails
[18:03:43] bmalum: has joined #RubyOnRails
[18:03:46] jenrzzz: has joined #RubyOnRails
[18:03:46] asheinfeld: has joined #RubyOnRails
[18:05:04] kinduff: has joined #RubyOnRails
[18:08:11] tomkadwill: has joined #RubyOnRails
[18:08:36] chouhoul_: has joined #RubyOnRails
[18:09:02] Limix: has joined #RubyOnRails
[18:09:33] vanne: has joined #RubyOnRails
[18:10:24] juanda: has joined #RubyOnRails
[18:10:52] RegulationD: has joined #RubyOnRails
[18:12:53] Siyo: has joined #RubyOnRails
[18:14:46] twilling: has joined #RubyOnRails
[18:15:32] kies: has joined #RubyOnRails
[18:17:05] zorak8: has joined #RubyOnRails
[18:17:23] dru`: has joined #RubyOnRails
[18:18:01] bmalum: has joined #RubyOnRails
[18:18:45] bruno-: has joined #RubyOnRails
[18:23:17] commondream: has joined #RubyOnRails
[18:24:26] uhsf: has joined #RubyOnRails
[18:27:51] cjlarose: has joined #RubyOnRails
[18:28:43] uhsf: I'm trying to set up a Rails app in a subdirectory with nginx and unicorn but it always redirects to domain root as if the socket is wrong or something. It works fine when I set the app to domain root. What could be wrong?
[18:28:56] leafac: has joined #RubyOnRails
[18:30:37] nrnube: has joined #RubyOnRails
[18:31:21] mary5030: has joined #RubyOnRails
[18:32:44] jottr: has joined #RubyOnRails
[18:33:27] r4pha: has joined #RubyOnRails
[18:34:36] cac: has joined #RubyOnRails
[18:36:01] scottmatheina: has joined #RubyOnRails
[18:37:35] karimb: has joined #RubyOnRails
[18:39:42] m0r0n: has joined #RubyOnRails
[18:40:51] jobewan: has joined #RubyOnRails
[18:41:08] mary5030: has joined #RubyOnRails
[18:42:19] Spami: has joined #RubyOnRails
[18:42:24] User458764: has joined #RubyOnRails
[18:43:01] centrx: has joined #RubyOnRails
[18:43:30] JDeen: has joined #RubyOnRails
[18:46:51] thebatu1: has joined #RubyOnRails
[18:47:01] Scripore: has joined #RubyOnRails
[18:50:24] victorkohl: has joined #RubyOnRails
[18:51:59] Limix: has joined #RubyOnRails
[18:52:28] ismaelga: has joined #RubyOnRails
[18:56:09] pacMakaveli: has joined #RubyOnRails
[18:59:03] ghr: has joined #RubyOnRails
[19:01:22] juanda: has joined #RubyOnRails
[19:02:30] bmalum: has joined #RubyOnRails
[19:04:03] maz-dev: has joined #RubyOnRails
[19:08:12] chouhoulis: has joined #RubyOnRails
[19:08:19] asheinfeld: has joined #RubyOnRails
[19:11:11] towski_: has joined #RubyOnRails
[19:11:19] Cache_Money: has joined #RubyOnRails
[19:12:23] gaboesquivel: has joined #RubyOnRails
[19:13:41] elia: has joined #RubyOnRails
[19:14:45] futilegames: has joined #RubyOnRails
[19:15:20] towski_: has joined #RubyOnRails
[19:17:39] Lytol: has joined #RubyOnRails
[19:20:08] tomkadwill: has joined #RubyOnRails
[19:22:31] arup_r: has joined #RubyOnRails
[19:23:16] atmosx: has joined #RubyOnRails
[19:24:14] kadwill: has joined #RubyOnRails
[19:26:23] benhuda: has joined #RubyOnRails
[19:26:37] kadwill: has joined #RubyOnRails
[19:26:47] RegulationD: has joined #RubyOnRails
[19:27:14] hahuang65: has joined #RubyOnRails
[19:27:54] jobewan: has joined #RubyOnRails
[19:29:07] jenrzzz: has joined #RubyOnRails
[19:29:15] tomkadwill: has joined #RubyOnRails
[19:29:40] Limix: has joined #RubyOnRails
[19:29:47] ismael_: has joined #RubyOnRails
[19:32:38] kadoppe: has joined #RubyOnRails
[19:36:07] mrbubbles: has joined #RubyOnRails
[19:37:04] victorkohl: has joined #RubyOnRails
[19:37:35] MartinElvar: has joined #RubyOnRails
[19:37:53] bendangelo: has joined #RubyOnRails
[19:38:17] kinduff: has joined #RubyOnRails
[19:39:03] allcentury: has joined #RubyOnRails
[19:41:36] victorkohl: has joined #RubyOnRails
[19:45:46] nahtnam: has joined #RubyOnRails
[19:47:25] doodlehaus: has joined #RubyOnRails
[19:49:29] bmalum: has joined #RubyOnRails
[19:50:14] platosha: has joined #RubyOnRails
[19:52:38] allcentury: has joined #RubyOnRails
[19:53:58] delianid_: has joined #RubyOnRails
[19:54:32] tejasmanohar_: has joined #RubyOnRails
[19:54:51] delianides: has joined #RubyOnRails
[19:55:47] eoy_: has joined #RubyOnRails
[19:57:29] kalusn: has joined #RubyOnRails
[19:58:21] Lytol: has joined #RubyOnRails
[19:58:38] Scripore: has joined #RubyOnRails
[19:58:39] delianid_: has joined #RubyOnRails
[19:58:43] ghr: has joined #RubyOnRails
[19:59:41] Limix: Hi all, wondering if anyone can help me understand a solid approach for websockets in rails.
[20:00:24] Limix: I would like to build an API only websocket rails app for an ember client
[20:00:48] Limix: is there a good stack to achieve this? JSONAPI resources + socket etc.
[20:01:03] Limix: btw, been cross posting this in the ember channel
[20:01:07] ProLoser: has joined #RubyOnRails
[20:01:08] workmad3: has joined #RubyOnRails
[20:01:36] redmenace: has joined #RubyOnRails
[20:02:01] riotjones: has joined #RubyOnRails
[20:02:23] baweaver: has joined #RubyOnRails
[20:09:39] asheinfeld: has joined #RubyOnRails
[20:10:31] commondream: has joined #RubyOnRails
[20:12:13] gambl0re: has joined #RubyOnRails
[20:12:27] m0r0n: has joined #RubyOnRails
[20:12:27] pulgalipe: has joined #RubyOnRails
[20:12:54] eoy_: has joined #RubyOnRails
[20:13:26] eoy_: has joined #RubyOnRails
[20:13:45] Scripore: has joined #RubyOnRails
[20:14:38] cac: has joined #RubyOnRails
[20:15:03] eoy_: has joined #RubyOnRails
[20:21:13] elia: has joined #RubyOnRails
[20:21:53] michael_mbp: has joined #RubyOnRails
[20:26:10] Etriaph: has joined #RubyOnRails
[20:28:10] omerraja: has joined #RubyOnRails
[20:28:10] Etriaph: G'day folks.
[20:30:01] SalexW: has joined #RubyOnRails
[20:34:17] centrx: has joined #RubyOnRails
[20:35:47] thebatu1: has joined #RubyOnRails
[20:40:08] soahccc: has joined #RubyOnRails
[20:41:03] maloik: has joined #RubyOnRails
[20:41:09] qwertme: has joined #RubyOnRails
[20:41:20] watchtheblur: has joined #RubyOnRails
[20:42:23] alexmr: has joined #RubyOnRails
[20:43:40] Coldblackice: has joined #RubyOnRails
[20:45:58] Pupeno: has joined #RubyOnRails
[20:45:58] Pupeno: has joined #RubyOnRails
[20:47:11] DigitallyBorn: has joined #RubyOnRails
[20:49:08] maloik: has joined #RubyOnRails
[20:52:00] commondream: has joined #RubyOnRails
[20:52:59] commondream: has joined #RubyOnRails
[20:54:31] commondream: has joined #RubyOnRails
[20:57:46] DefV: has joined #RubyOnRails
[21:00:47] mnilsson: has joined #RubyOnRails
[21:02:45] tomkadwill: has joined #RubyOnRails
[21:07:21] thsig: has joined #RubyOnRails
[21:07:38] qwertme: has joined #RubyOnRails
[21:10:29] asheinfeld: has joined #RubyOnRails
[21:12:43] barnex: uh, so many people deploying rails servers all the time, yet looking for any plug-and-play provisioning solution that actually works on ubuntu is so hard :f
[21:12:59] aarkerio: has joined #RubyOnRails
[21:13:03] DefV: has joined #RubyOnRails
[21:13:55] rhizome: not sure what you mean by "plug and play"
[21:14:21] barnex: I mean one where I just put in an user, git repo and app directory, and get something working
[21:14:24] barnex: for a staging server
[21:14:50] Etriaph: They support Ubuntu with their toolbelt
[21:15:02] barnex: Maybe I'll look into it
[21:15:12] barnex: I haven't tried it in few years
[21:15:14] Etriaph: https://toolbelt.heroku.com/debian
[21:15:37] RegulationD: has joined #RubyOnRails
[21:15:47] hahuang65: has joined #RubyOnRails
[21:15:54] rhizome: generally, simplicity here costs money
[21:15:54] barnex: uh, ok, I thought they now give you ubuntu servers.
[21:16:23] barnex: the toolbelt might work on ubuntu, I still need the server for stuff like c processes doing things
[21:17:05] barnex: I wish railbox.io actually did what it's supposed to
[21:17:23] Etriaph: Or that the server was online?
[21:17:33] rhizome: it's a good first step
[21:18:08] barnex: it is online, I'm trying to use their deploy script, but it has already taken more time than setting the machine old-fashioned way would
[21:18:12] ddv: has joined #RubyOnRails
[21:18:47] Etriaph: railbox.io can't be resolved in my dns lookups
[21:18:57] sarink: has joined #RubyOnRails
[21:19:03] barnex: railsbox.io, sorry
[21:19:39] barnex: it's actually working really well with vagrant
[21:19:56] barnex: but then when you try to use the scripts they've provided to provision other configured servers
[21:20:00] barnex: they fail and fail and fail
[21:20:21] barnex: at least that's my experience deploying on the same ubuntu 14.04 I'm having on my vagrant
[21:21:30] Etriaph: I'm really wary of server automation for deployment. Unless it's the only route in, I'll typically do at least half of the work manually.
[21:21:51] Etriaph: (The first time.)
[21:21:55] barnex: Sure, but it's not for production.
[21:22:06] barnex: It's for a staging server in a vpn.
[21:22:09] rhizome: i half-automate. manual setup, scripted deploy via capistrano
[21:22:17] barnex: And I just want to make it as fast as possible
[21:22:18] Etriaph: rhizome: *nods*
[21:22:27] barnex: result obviously being the opposite
[21:23:18] rhizome: barnex: i hope you're appreciating the "fast as possible" irony at the moment
[21:23:45] barnex: it was working so well on vagrant :<
[21:24:10] rhizome: rubber + defaults + AWS or DO is fairly OK
[21:24:11] qwertme: has joined #RubyOnRails
[21:27:52] jenrzzz: has joined #RubyOnRails
[21:29:02] cac_: has joined #RubyOnRails
[21:29:08] Cache_Money: has joined #RubyOnRails
[21:30:36] byprdct: has joined #RubyOnRails
[21:30:38] MartinElvar: has joined #RubyOnRails
[21:30:47] Pupeno: has joined #RubyOnRails
[21:33:20] juanda: has joined #RubyOnRails
[21:34:20] doublemalt_: has joined #RubyOnRails
[21:36:03] simplyianm: has joined #RubyOnRails
[21:37:12] cornerma1: has joined #RubyOnRails
[21:43:39] yfeldblum: has joined #RubyOnRails
[21:43:52] chouhoulis: has joined #RubyOnRails
[21:43:54] Scripore: has joined #RubyOnRails
[21:45:04] Brozo: has joined #RubyOnRails
[21:45:53] tomaszbalon: has joined #RubyOnRails
[21:46:59] ur5us: has joined #RubyOnRails
[21:47:22] allcentury: has joined #RubyOnRails
[21:48:16] chouhoulis: has joined #RubyOnRails
[21:49:46] chouhoul_: has joined #RubyOnRails
[21:51:51] coderhs: has joined #RubyOnRails
[21:51:51] tomkadwill: has joined #RubyOnRails
[21:53:54] taxen: has joined #RubyOnRails
[21:55:07] allcentury: has joined #RubyOnRails
[21:57:01] commondream: has joined #RubyOnRails
[21:58:19] ghr: has joined #RubyOnRails
[21:58:44] Limix: has joined #RubyOnRails
[21:59:05] DoctorMonocular: has joined #RubyOnRails
[22:00:30] Guest50824: has joined #RubyOnRails
[22:02:52] DoctorMonocular: if I call layout() in a base controller, all the child controllers should use it, right? I'm having an issue where the layout line never gets called in the base controller, I'm wondering if there's something common or obvious I should look for
[22:06:38] cac: has joined #RubyOnRails
[22:07:08] seank_: has joined #RubyOnRails
[22:09:12] chouhoulis: has joined #RubyOnRails
[22:10:55] asheinfeld: has joined #RubyOnRails
[22:12:54] chouhoulis: has joined #RubyOnRails
[22:13:09] DigitallyBorn: has joined #RubyOnRails
[22:14:06] Xiti: has joined #RubyOnRails
[22:16:42] hahuang65: has joined #RubyOnRails
[22:17:05] juanda: has joined #RubyOnRails
[22:18:44] mello: has joined #RubyOnRails
[22:18:46] assembledbits: has joined #RubyOnRails
[22:18:59] assembledbits: Hey guys, I have this as html_safe output, flash[:notice] = '<div class="alert alert-success" role="alert">Category <strong>#{category.name}"</strong> destroyed successfully.</div>'
[22:19:16] assembledbits: but the interpolation isn't working, it just spits out as string.. what's the correct format?
[22:19:24] chouhoulis: has joined #RubyOnRails
[22:20:00] Scripore: has joined #RubyOnRails
[22:20:12] assembledbits: i tried concatenation with ' + but that throws an error
[22:22:20] mattp__: has joined #RubyOnRails
[22:24:08] pjammer: has joined #RubyOnRails
[22:24:42] thebatu1: has joined #RubyOnRails
[22:25:35] ekain: has joined #RubyOnRails
[22:25:44] barnex: has joined #RubyOnRails
[22:27:17] maz-dev: has joined #RubyOnRails
[22:27:52] rickmasta: has joined #RubyOnRails
[22:28:11] assembledbits: interpolation problem solved
[22:31:33] wethu: has joined #RubyOnRails
[22:31:46] artto: has joined #RubyOnRails
[22:31:47] ArchRogem: has joined #RubyOnRails
[22:33:16] Guest50824: has joined #RubyOnRails
[22:34:30] zeknox: anyone tell me why the filename option is not working in this line of code and that the file downloaded is named download_csv instead, send_data(@data.download_csv, filename: "data.csv")
[22:36:05] Cache_Money: has joined #RubyOnRails
[22:40:15] jenrzzz: has joined #RubyOnRails
[22:40:38] frowmanjo: has joined #RubyOnRails
[22:41:57] qwertme: has joined #RubyOnRails
[22:43:18] blackmesa: has joined #RubyOnRails
[22:44:07] Cache_Money: has joined #RubyOnRails
[22:45:28] erich: has joined #RubyOnRails
[22:51:30] Pupeno: has joined #RubyOnRails
[22:51:30] Pupeno: has joined #RubyOnRails
[22:53:03] leafac: has joined #RubyOnRails
[22:53:56] eoy_: has joined #RubyOnRails
[22:56:53] sarink: has joined #RubyOnRails
[22:58:42] ghr: has joined #RubyOnRails
[23:00:18] Forgetful_Lion: has joined #RubyOnRails
[23:00:21] pacMakaveli: has joined #RubyOnRails
[23:00:55] SalexW: has joined #RubyOnRails
[23:01:01] dseitz: has joined #RubyOnRails
[23:04:28] RegulationD: has joined #RubyOnRails
[23:05:05] xcm: has joined #RubyOnRails
[23:05:51] artto: has joined #RubyOnRails
[23:05:55] moeabdol1: has joined #RubyOnRails
[23:07:48] porkqpain: has joined #RubyOnRails
[23:10:39] Pupeno: has joined #RubyOnRails
[23:11:47] asheinfeld: has joined #RubyOnRails
[23:16:22] GPrime: has joined #RubyOnRails
[23:24:05] juanda: has joined #RubyOnRails
[23:24:25] allcentury: has joined #RubyOnRails
[23:25:04] kinduff: has joined #RubyOnRails
[23:28:59] royvandermeij: has joined #RubyOnRails
[23:33:06] centrx: has joined #RubyOnRails
[23:34:19] frank_o: has joined #RubyOnRails
[23:34:55] frank_o: Hi! I'm trying to check for database change using a route, but I'm currently getting not found: https://gist.github.com/dt1973/a97a167c21d07e3252a9 -- anybody mind having a look?
[23:35:18] centrx: has joined #RubyOnRails
[23:36:34] zorak8: has joined #RubyOnRails
[23:36:57] kinduff_: has joined #RubyOnRails
[23:38:40] workmad3: has joined #RubyOnRails
[23:38:44] erich: has joined #RubyOnRails
[23:39:17] balr0g: has joined #RubyOnRails
[23:41:07] DigitallyBorn: has joined #RubyOnRails
[23:44:58] DoctorMonocular: has joined #RubyOnRails
[23:46:14] Brozo: has joined #RubyOnRails
[23:47:14] Guest50824: has joined #RubyOnRails
[23:47:30] maz-dev: has joined #RubyOnRails
[23:48:27] Pupeno_: has joined #RubyOnRails
[23:52:35] Duckily: has joined #RubyOnRails
[23:52:53] spetryk: has joined #RubyOnRails
[23:53:54] kinduff: has joined #RubyOnRails
[23:54:34] leafac: has joined #RubyOnRails
[23:54:44] kinduff: good morning
[23:58:21] leafac: has joined #RubyOnRails
[23:59:06] ghr: has joined #RubyOnRails
[23:59:09] commondream: has joined #RubyOnRails
[23:59:35] Encapsulation: has joined #RubyOnRails
[23:59:40] chipotle: has joined #RubyOnRails