« Back to channel list

#RubyOnRails - 21 January 2016

« Back 1 day Forward 1 day »
[00:01:14] alonko: i guess im too involved in looking for a path to financial stability
[00:01:18] baash05: Not true alonko; the classes give you theory which you will internalize.. when you're working on a project and you have the man-month in your head, or the group of four, you're far less likely to make progress.
[00:01:28] rhizome: you're in school, you're doing fine
[00:01:33] baash05: more likely..
[00:01:40] baash05: more like to progress.
[00:01:46] Malgorath: I wish I could just grep out the code blocks, then reference the book as I need to. But I guess I'll have to keep up the way I was
[00:01:48] baash05: also it helps if you want to move country.
[00:02:09] alonko: i feel like my generation grew up on video games and it prevents us from finding our true passion haha
[00:02:16] alonko: i grew up playing runescape
[00:02:22] baash05: Like to Aus.. where it gives po9ints.
[00:02:22] alonko: is runescape my passion?
[00:02:44] rhizome: something about it might be
[00:02:54] NBarnes: has joined #RubyOnRails
[00:02:58] workmad3: alonko: I grew up playing games... didn't stop me finding my passion (it did help that my passion was pretty much just 'computers')
[00:03:00] rhizome: p.s. they said the "video games" thing about my generation too
[00:03:13] alonko: how am i supposed to try a bunch of new things and finally find something that I am satisfied with?
[00:03:28] workmad3: alonko: by trying a bunch of things
[00:03:41] alonko: i have until the 28th till i start school
[00:03:44] rhizome: you have time to do thiese things
[00:03:45] alonko: what am i supposed to do?
[00:03:52] alonko: go up to people and ask if i could shadow them at work?
[00:04:00] workmad3: alonko: or by trying something and assess whether you enjoyed it or not, and which bits you enjoyed the most
[00:04:40] workmad3: alonko: if you think you could enjoy coding or making software projects - most of the tools are free, there's lots of free tutorials and knowledge out there... try to make something!
[00:05:08] workmad3: doesn't matter what... make a blog, or a Todo app, or get a pixel to bounce in a box if you want :)
[00:05:20] alonko: i actually am committing to creating a prototype
[00:05:33] alonko: i've bought a domain and i'm learning basic ruby on rails on lynda
[00:05:33] rhizome: there you go
[00:05:40] Graphettion: blog is usually the easiest
[00:05:42] workmad3: alonko: so you're doing something ;)
[00:05:48] rhizome: do you get lynda for free through the school?
[00:05:48] shibabu: has joined #RubyOnRails
[00:05:51] alonko: haha yeah.. i guess...
[00:05:55] alonko: no i paid 240 for a year
[00:06:01] Graphettion: not users, no nothing, just a blog and create posts
[00:06:22] rhizome: ah, well then yeah take advantage of it
[00:06:49] alonko: is there a way to keep in contact with people i meet on this chat?
[00:06:51] fox_mulder_cp: has joined #RubyOnRails
[00:06:54] rhizome: do your schoolwork and work on projects. i'd love to go back and have four years of that
[00:06:59] workmad3: alonko: sure... come back and talk again ;)
[00:07:02] Graphettion: rhizome: Many local libraries provide it free.
[00:07:14] rhizome: yeah, i thought i'd heard there were arrangements out there
[00:07:43] Malgorath: anyone suggest a site for getting VIM setup for RoR dev?
[00:08:00] Graphettion: Sample: https://www.lynda.com/portal/sip?org=metrolibrary.org&triedlogout=true
[00:08:11] NBarnes: has joined #RubyOnRails
[00:08:28] alonko: workmad3: what do you think about working while at school? or should the time be spent elsewhere, trying new things
[00:08:34] Graphettion: Malgorath: https://c9.io/ ?
[00:08:54] alonko: workmad3: my parents could afford me not to work but I was thinking i might need the money to start something later on
[00:08:55] rhizome: Malgorath: honestly there's only like two things i ever have to add to vim: ^p fuzzy finder and folder sidebar
[00:09:03] Oliphaunte: has joined #RubyOnRails
[00:09:11] Graphettion: I wish I had time to focus on these issues.
[00:09:16] krainboltgreene: What are the premo rails job sites these days? Everyone I used to know about has dried up.
[00:09:17] rhizome: alonko: you can be well into making money on the side after your $240 is up
[00:09:23] Graphettion: Spend more time doing then thinking. :P
[00:09:26] harly: has joined #RubyOnRails
[00:09:37] Graphettion: Commit dat github.
[00:09:47] Malgorath: graphettion, I am completely broke, do can't purchase anything
[00:09:58] Graphettion: You don't need to.
[00:10:11] workmad3: rhizome: don't forget to map Ctrl-n to <tab>
[00:10:12] toydestroyer: has joined #RubyOnRails
[00:10:12] waldi_: has joined #RubyOnRails
[00:10:19] Graphettion: http://guides.rubyonrails.org/getting_started.html
[00:10:21] rhizome: what did you say weirdo
[00:10:23] guacamole: has joined #RubyOnRails
[00:10:31] Graphettion: Prolly the best resources out there. Completely free.
[00:10:47] NBarnes: has joined #RubyOnRails
[00:10:58] toydestroyer: has joined #RubyOnRails
[00:10:58] waldi_: has joined #RubyOnRails
[00:11:02] workmad3: rhizome: you don't use the built-in vim autocomplete? :P
[00:11:07] rhizome: should go through railscasts and figure out which ones are still relevance
[00:11:26] rhizome: workmad3: i don't use autocomplete hardly at all. maybe div<tab> in ERB sometimes
[00:11:42] chipotle: has joined #RubyOnRails
[00:11:49] workmad3: rhizome: ah :) I like the default one... autocompletes from all words in open buffers
[00:12:06] rhizome: i should spend more time getting off of ST
[00:12:07] Oliphaunte: has joined #RubyOnRails
[00:12:12] moeabdol: has joined #RubyOnRails
[00:12:27] razorgfx: has joined #RubyOnRails
[00:12:30] workmad3: I find it's more useful in vim than any other method I've tried (ctags, YouCompleteMe, etc.)
[00:12:33] Graphettion: Good luck with all that. I'm going to git shit done.
[00:12:48] workmad3: graphettion: I've gotten shit done today, I'm just wearing myself out for sleep :P
[00:13:03] IrishGringo: has joined #RubyOnRails
[00:13:26] Graphettion: Good deal - I'm talking in general.
[00:13:38] NBarnes: has joined #RubyOnRails
[00:14:28] mices: bootstrap and jquery stopped working https://gist.github.com/mices/8e4a3c9564afa95aad06
[00:14:36] greengriminal: has joined #RubyOnRails
[00:14:47] Graphettion: It coincidentally came after your chat - wasn't aimed at you specifically.
[00:15:14] Radar: krainboltgreene: stackoverflow.com/careers
[00:15:33] artX000: has joined #RubyOnRails
[00:15:45] harly: workmad3: if you like default ctrl-p try the supertab plugin. you can just tab complete in insert mode then. :)
[00:15:47] rhizome: mices: take require_tree out
[00:15:52] krainboltgreene: That's the choice place, eh? Surpises me. I never saw them as a good channel.
[00:16:34] Radar: krainboltgreene: I just use Twitter and all my meetup contacts to get jobs these days.
[00:16:47] krainboltgreene: Radar: And the reverse?
[00:16:50] Radar: krainboltgreene: If I put out that I was available for work I would have > 5 offers
[00:16:59] mices: rhizome: ty
[00:17:00] Radar: krainboltgreene: reverse of?
[00:17:02] choke: any reason that link_to element.name, admin_element_path(element) would give me a link like: http://admin.mylocal.dev:3000/elements.56a01aed67e92c2348000009 instead of having a slash before the id?
[00:17:17] krainboltgreene: Radar: When you're looking for hires.
[00:17:20] Radar: choke: Are you really doing admin_element_path(element) or admin_elements_path(element)
[00:17:21] workmad3: choke: because you've accidentally put `admin_elements_path(element)` instead
[00:17:32] Radar: workmad3: snap
[00:17:35] Radar: krainboltgreene: It's really hard to find them.
[00:17:47] atomical: has joined #RubyOnRails
[00:17:56] krainboltgreene: Well at least everyone is having the same problem.
[00:17:58] Radar: krainboltgreene: Usually the same methods though. Talk to people who I know who aren't publicly looking
[00:18:09] Radar: krainboltgreene: Keeping up with the community at large helps with that imo
[00:18:22] Radar: Helpful that Melbourne has quite a big Ruby scene
[00:18:48] NBarnes: has joined #RubyOnRails
[00:19:18] mices: rhizome: didn't help
[00:19:24] rhizome: it's a start
[00:19:50] mices: rhizome: it was actually in application.css and application.js i don't remember if it belongs in both
[00:19:51] rhizome: did you remove it from both?
[00:19:56] choke: Radar it was doing the plural of it 100% switching to the singular works fine so thanks for that workmad3
[00:19:59] rhizome: do so if not
[00:20:08] mices: rhizome: i tried that yes
[00:20:13] kiki_lam1: has left #RubyOnRails: ()
[00:20:24] rhizome: i don't use require_tree at all
[00:20:39] Radar: Oh right, mices is here.
[00:20:56] workmad3: completely unrelated, I'm off
[00:20:59] workmad3: o/ night all
[00:21:02] Radar: night workmad3
[00:21:25] workmad3: rhizome: bah, now I can't leave straight away, or I'll be a h8er :(
[00:21:35] NBarnes: has joined #RubyOnRails
[00:21:38] rhizome: it's not unalloyed bad
[00:21:59] workmad3: meh, too tired
[00:22:03] workmad3: I'm a h8er... o/
[00:22:05] rhizome: besides, in this context it just means a person who turns off their computer
[00:22:17] guacamole: has joined #RubyOnRails
[00:24:37] Oliphaunte: has joined #RubyOnRails
[00:24:37] choke: turn off computer? I'm hesitant to even reboot mine... might never run again ( i haven't restarted my computer in months )
[00:26:03] thejamespinto: has joined #RubyOnRails
[00:27:08] threeminutemonta: has joined #RubyOnRails
[00:27:47] twilling: has joined #RubyOnRails
[00:27:53] jkamenik: has joined #RubyOnRails
[00:28:10] Radar: Speaking of jobs and what not: a friend that I made in 2009 now wants to apply for a position at the company I currently work for.
[00:28:52] djellemah: has joined #RubyOnRails
[00:29:08] NBarnes: has joined #RubyOnRails
[00:29:10] harly: thats good isn't it?
[00:29:22] Spami_: has joined #RubyOnRails
[00:31:54] harly: has joined #RubyOnRails
[00:32:43] Radar: Weird. Lost connection to my DO box for a couple of minutes. First time in a long time that's happened.
[00:34:39] NBarnes: has joined #RubyOnRails
[00:34:58] ltd: has joined #RubyOnRails
[00:35:25] harly: has joined #RubyOnRails
[00:36:20] NBarnes: has joined #RubyOnRails
[00:36:36] guacamole: has joined #RubyOnRails
[00:38:20] Maletor: has joined #RubyOnRails
[00:38:48] NBarnes: has joined #RubyOnRails
[00:39:26] CrazyHorse18: has joined #RubyOnRails
[00:41:38] Scripore: has joined #RubyOnRails
[00:42:39] greengriminal: Radar, does Spree have a slack channel?
[00:42:52] Radar: greengriminal: https://github.com/solidusio/solidus
[00:42:59] Radar: greengriminal: You should be using Solidus and not Spree :)
[00:43:04] Radar: Same codebase, just evolved.
[00:43:07] Radar: But they have a Slack channel
[00:43:52] greengriminal: I've just been thrown onto a spree project that was maintained by someone else and I can't get in contact with them and am having issues with seeding the database -.-
[00:44:32] Radar: greengriminal: np :) Go to the #support channel there and someone might be able to help you.
[00:49:43] Encapsulation: has joined #RubyOnRails
[00:49:57] hannelita: has joined #RubyOnRails
[00:52:51] lethjakman-l: has joined #RubyOnRails
[00:54:51] northfurr: has joined #RubyOnRails
[00:54:52] paradisaeidae: has joined #RubyOnRails
[00:55:23] lemur: has joined #RubyOnRails
[00:56:24] sevenseacat: has joined #RubyOnRails
[01:00:58] marienz: has joined #RubyOnRails
[01:01:28] D9: has joined #RubyOnRails
[01:02:58] lethjakman-l: has joined #RubyOnRails
[01:03:00] User458764: has joined #RubyOnRails
[01:04:15] smathy: Radar, were going somewhere with the 2009 friend wanting to apply to your workplace?
[01:05:24] nertzy2: has joined #RubyOnRails
[01:06:38] choke: alright more of my noobness dealing with html stuff and i'm almost 100% certain it has something to do with my subdomain constraint and path within the namespace. https://gist.github.com/ch0ke/b21e803498dde3598131 before i refactored the form to be a partial my spec worked perfect. refactoring, the edit spec functions, but the create spec fails as its trying to go to the show action instead of the create action and no clue how
[01:06:38] choke: to repair that
[01:07:02] guacamole: has joined #RubyOnRails
[01:07:13] eljimmy: has joined #RubyOnRails
[01:09:35] ericdykstra: has joined #RubyOnRails
[01:13:03] jottr_: has joined #RubyOnRails
[01:13:36] ZiggyTheHamster: has joined #RubyOnRails
[01:13:37] ZiggyTheHamster: has joined #RubyOnRails
[01:17:25] rromanch_: has joined #RubyOnRails
[01:20:53] thejamespinto: has joined #RubyOnRails
[01:21:25] brycesenz: has joined #RubyOnRails
[01:22:53] User458764: has joined #RubyOnRails
[01:25:10] Honeycomb: has joined #RubyOnRails
[01:25:48] choke: figured it out...
[01:26:33] janebootydoe: has joined #RubyOnRails
[01:28:59] brycesenz: has joined #RubyOnRails
[01:31:26] tbuehlmann: has joined #RubyOnRails
[01:32:32] bronson: has joined #RubyOnRails
[01:32:55] northfurr: has joined #RubyOnRails
[01:33:34] pawnbox: has joined #RubyOnRails
[01:34:34] shibabu: has joined #RubyOnRails
[01:36:04] onlyme_: has joined #RubyOnRails
[01:37:18] Z00t: has joined #RubyOnRails
[01:41:12] northfurr: has joined #RubyOnRails
[01:42:17] brycesenz: has joined #RubyOnRails
[01:43:40] cicloid_: has joined #RubyOnRails
[01:44:09] blackhuey: has joined #RubyOnRails
[01:46:13] baweaver: has joined #RubyOnRails
[01:46:38] Oliphaunte: has joined #RubyOnRails
[01:47:34] northfurr: has joined #RubyOnRails
[01:47:48] cicloid: has joined #RubyOnRails
[01:48:59] cicloid: has joined #RubyOnRails
[01:51:27] cicloid_: has joined #RubyOnRails
[01:52:32] lethjakman-l: has joined #RubyOnRails
[01:53:04] northfurr: has joined #RubyOnRails
[01:53:35] crankharder: has joined #RubyOnRails
[01:56:06] bklane: has joined #RubyOnRails
[01:56:06] shibabu: has joined #RubyOnRails
[01:56:17] aloneintheworld: has joined #RubyOnRails
[01:56:38] ur5us: has joined #RubyOnRails
[02:02:06] paradisaeidae: has joined #RubyOnRails
[02:03:46] pawnbox: has joined #RubyOnRails
[02:05:26] pulgalipe: has joined #RubyOnRails
[02:08:32] NBarnes: has joined #RubyOnRails
[02:08:43] nfk|laptop: has joined #RubyOnRails
[02:08:44] ziggy: has joined #RubyOnRails
[02:08:44] ziggy: has joined #RubyOnRails
[02:10:44] spyd3r: has joined #RubyOnRails
[02:11:47] Radar: smathy: Yes but it doesn't matter now.
[02:14:47] bklane: has joined #RubyOnRails
[02:16:58] gusaiani: has joined #RubyOnRails
[02:18:16] robbyoconnor: has joined #RubyOnRails
[02:19:05] pulgalipe: has joined #RubyOnRails
[02:26:17] razorgfx: has joined #RubyOnRails
[02:26:31] ddv: has joined #RubyOnRails
[02:30:09] northfurr: has joined #RubyOnRails
[02:32:45] brycesenz: has joined #RubyOnRails
[02:34:59] chipotle: has joined #RubyOnRails
[02:38:07] Oliphaunte: has joined #RubyOnRails
[02:39:25] iateadonut: has joined #RubyOnRails
[02:42:16] shmilan: has joined #RubyOnRails
[02:42:57] LeoDee: has joined #RubyOnRails
[02:43:36] ericdykstra: has joined #RubyOnRails
[02:44:05] shmilan: Has anyone previewed/seen this book yet? Thoughts? http://goo.gl/q1xg5f
[02:48:47] Ropeney: @shmilan does look worth a read
[02:49:22] Rodya_: has joined #RubyOnRails
[02:50:27] sevenseacat: not interested in it, but it would be better to buy it from pragprog directly
[02:50:35] djellemah: has joined #RubyOnRails
[02:50:43] Radar: I am hesitant to recommend anything with Angular in it after having a pretty bad experience with it at my current job.
[02:52:15] shmilan: Really, Radar? Anyone js framework/library you feel works well with rails?
[02:52:28] Radar: shmilan: React
[02:52:50] Radar: shmilan: I ripped out a couple of thousand lines of Angular code and replaced it with a couple of hundred lines of React.
[02:53:11] Radar: Angular is great for the "getting started" demo but using it any kind of large project has lead to headaches for more people than just myself and my team here.
[02:53:45] Radar: so the book probably has a ton of good examples of how to use Angular in a "getting started" sense, but not many of "this code was written 9 months ago and the developer who knew how it worked doesn't work here any more"
[02:54:20] Ropeney: radar: is that because there is so many ways to do the same thing in angular?
[02:54:31] Radar: Ropeney: partially yes
[02:54:49] Radar: Ropeney: Angular provides you with an entire arsenal to cover your foot shooting needs.
[02:54:50] shmilan: I guess that kind of contradicts the "rails way"
[02:54:54] titeiko: has joined #RubyOnRails
[02:55:44] Ropeney: my worry of the books is how out of date is it with angular 2.0 being so different
[02:56:10] lemur: has joined #RubyOnRails
[02:56:16] sevenseacat: lol foot-shooting needs
[02:56:37] sevenseacat: chris mccord called something a good 'footgun' the other day, that word stuck with me
[02:58:00] razorgfx: has joined #RubyOnRails
[02:58:23] Radar: Ropeney: yeah there's that too
[02:58:41] Radar: I'm waiting for one of React or Ember to win these wars and then we can all move on with our lives.
[02:59:18] sevenseacat: my question is, do you need a book to cover the four different techs and how they interact together, and how in-depth would it be about any of them
[03:02:10] shmilan: Probably covers the basics and then expects people to, if they're interested, to learn the advanced stuff on their own
[03:02:13] shmilan: Is my guess
[03:02:18] shibabu: has joined #RubyOnRails
[03:03:12] pawnbox: has joined #RubyOnRails
[03:03:30] alexhartley: has joined #RubyOnRails
[03:04:39] Ropeney: sevenseacat: Its just a brief read to see if there are things i could go about differently and if Im interested in following. But your right, 240 pages couldn't have too much content on all 4.
[03:05:28] sevenseacat: you couldn't even cover Rails basics well in 240 pages. heck, we needed like 500.
[03:06:04] Honeycomb: has joined #RubyOnRails
[03:07:54] hannelita: has joined #RubyOnRails
[03:08:08] Maletor: has joined #RubyOnRails
[03:08:56] thejamespinto: has joined #RubyOnRails
[03:09:38] pulgalipe: has joined #RubyOnRails
[03:09:58] xardion_: has joined #RubyOnRails
[03:11:17] harly: i'd be curious what they do that's special with postgres, in that context.
[03:12:48] rhizome: "If I had more time, I would have written a shorter [book]"
[03:14:21] alex88: has joined #RubyOnRails
[03:15:38] redtail: has joined #RubyOnRails
[03:15:39] one_zero: has joined #RubyOnRails
[03:19:06] tvw: has joined #RubyOnRails
[03:22:15] rtail: has joined #RubyOnRails
[03:23:06] pulgalipe: has joined #RubyOnRails
[03:23:32] redtail: has joined #RubyOnRails
[03:26:15] Rodya_: has joined #RubyOnRails
[03:29:25] njero: has joined #RubyOnRails
[03:29:31] eljimmy: has joined #RubyOnRails
[03:31:10] Rodya_: has joined #RubyOnRails
[03:31:31] IrishGringo: has joined #RubyOnRails
[03:33:33] confounds: has joined #RubyOnRails
[03:35:53] thejamespinto: has joined #RubyOnRails
[03:41:49] ericdykstra: has joined #RubyOnRails
[03:43:18] pawnbox: has joined #RubyOnRails
[03:45:32] ericdykstra: has left #RubyOnRails: ()
[03:49:39] pulgalipe: has joined #RubyOnRails
[03:53:38] pawnbox: has joined #RubyOnRails
[03:54:02] pulgalipe: has joined #RubyOnRails
[04:03:19] ZiggyTheHamster: has joined #RubyOnRails
[04:07:10] User458764: has joined #RubyOnRails
[04:07:52] tildes: has joined #RubyOnRails
[04:08:36] hannelita: has joined #RubyOnRails
[04:11:19] Oliphaunte: has joined #RubyOnRails
[04:13:21] rhizome: i wonder how hard it would be to stack https://github.com/janpaepke/ScrollMagic onto livereload for sync interactions
[04:15:43] shmilan: has joined #RubyOnRails
[04:15:44] arup_r: has joined #RubyOnRails
[04:17:29] braincrash: has joined #RubyOnRails
[04:17:57] roshanavand: has joined #RubyOnRails
[04:21:49] cajone: has left #RubyOnRails: ()
[04:25:20] Oliphaunte: has joined #RubyOnRails
[04:27:07] Oliphaunte: has joined #RubyOnRails
[04:29:29] cajone: has joined #RubyOnRails
[04:31:48] pulgalip1: has joined #RubyOnRails
[04:31:54] naavinm: hi, all. would like to ask, is there an authorisation gem that would allow modular authorisations based on roles, whereby the db has true false values and the role based functions are based off that?
[04:32:08] tjbiddle: has joined #RubyOnRails
[04:33:29] Radar: naavinm: Take a look at Pundit.
[04:35:25] bronson: has joined #RubyOnRails
[04:37:49] brycesenz: has joined #RubyOnRails
[04:38:14] tjbiddle: Hey all. I'm running some tests. I have ModelB inherit from ModelA and am calling ModelB.first - Is there a method I can override, and then pass to super, so that I can write `puts "test"` in?
[04:38:22] tjbiddle: From the debug - it almost looks like it does a direct SQL call
[04:39:05] crdpink: has joined #RubyOnRails
[04:40:14] waka: has joined #RubyOnRails
[04:40:39] naavinm: Radar: okay, i'll have a look. thanks for pointing to that, had been looking at cancancan and devise
[04:41:59] JohnT: has joined #RubyOnRails
[04:46:44] greengriminal: has joined #RubyOnRails
[04:47:05] baweaver: has joined #RubyOnRails
[04:47:14] one_zero: has joined #RubyOnRails
[04:47:45] bmalum: has joined #RubyOnRails
[04:48:49] rtail: has joined #RubyOnRails
[04:49:16] razorgfx: has joined #RubyOnRails
[04:51:49] sarink: has joined #RubyOnRails
[04:55:25] shibabu: has joined #RubyOnRails
[04:56:58] greengriminal: I am trying to strip the domain from a URL in my controller action which i successfully do. However upon doing so when I point my browser to this action it appends the incorrect domain.
[04:57:02] greengriminal: to demonstrate: https://gist.github.com/davidpatters0n/43f2a08a7a3ea817a29c
[04:59:19] djellemah: has joined #RubyOnRails
[05:02:58] spyd3r: has joined #RubyOnRails
[05:05:25] sneakerhax: has joined #RubyOnRails
[05:09:24] hannelita: has joined #RubyOnRails
[05:10:34] eljimmy: has joined #RubyOnRails
[05:15:36] pulgalip1: has joined #RubyOnRails
[05:26:15] tjbiddle: has joined #RubyOnRails
[05:26:36] chipotle: has joined #RubyOnRails
[05:26:46] pwnd_nsfw`: has joined #RubyOnRails
[05:30:08] techsethi: has joined #RubyOnRails
[05:30:24] dmarr: has joined #RubyOnRails
[05:30:42] greengriminal: has joined #RubyOnRails
[05:32:44] arup_r: has joined #RubyOnRails
[05:34:41] speaking1ode: has joined #RubyOnRails
[05:37:10] djellemah: has joined #RubyOnRails
[05:37:11] bronson: has joined #RubyOnRails
[05:42:30] KnownSyntax: has joined #RubyOnRails
[05:42:30] KnownSyntax: has joined #RubyOnRails
[05:43:47] pawnbox: has joined #RubyOnRails
[05:44:36] krz: has joined #RubyOnRails
[05:44:41] pulgalipe: has joined #RubyOnRails
[05:45:00] djbkd: has joined #RubyOnRails
[05:48:51] rhizome: that is not any way i've ever seen to display a photo attached to a user model
[05:51:32] Radar: greengriminal: show us the Roofer model please.
[05:51:40] Radar: greengriminal: I want to know how the profile_photo method is defined.
[05:51:53] Radar: My guess is that you're not setting the URL correctly in paperclip, but it's a big guess.
[05:53:28] Palsson: has joined #RubyOnRails
[05:54:39] Cohedrin: has joined #RubyOnRails
[05:56:42] greengriminal: Radar, so nothing really special in the roofer model at the moment but I inherit a image class as you will see here - https://gist.github.com/davidpatters0n/04515be1bfcf1aed9537
[05:57:19] Radar: I see no profile_photo method.
[05:57:30] Radar: https://gist.github.com/davidpatters0n/04515be1bfcf1aed9537#file-model-rb-L24-L34
[05:57:34] Radar: Why is url defined twice
[05:57:38] Radar: and why is base_url defined twice
[05:59:08] greengriminal: apologies, and that was a copy and paste error updated the gist.
[05:59:38] armyriad: has joined #RubyOnRails
[06:00:30] greengriminal: i know another alternative around this and this is essentially to have a short list of whitelisted domains and do a check to see if the request contains the hostname and if not then simply don't redirect.
[06:00:43] Radar: I still so no profile_photo method.
[06:00:58] rhizome: what problem are you trying to solve?
[06:04:18] greengriminal: so i've ran brakeman and its reported: `Possible unprotected redirect near line #: redirect_to` to which i understand what it is saying that redirecting a user need to be handled correctly
[06:04:37] greengriminal: Radar, i updated the gist again with the `Roofer` model you'll see the profile_photo association.
[06:04:53] Radar: Thank you.
[06:05:07] Radar: greengriminal: it'd be good if that was the same gist as https://gist.github.com/davidpatters0n/43f2a08a7a3ea817a29c
[06:05:09] greengriminal: rhizome, so the issue is that I need to ensure I am correctly handling external redirect in a right manor.
[06:05:23] greengriminal: I will condense this into one gist 2 seconds please.
[06:05:43] Radar: greengriminal: I would put a binding.pry after this line https://gist.github.com/davidpatters0n/43f2a08a7a3ea817a29c#file-example-rb-L9 and then see waht the value of roofer.url is
[06:06:14] greengriminal: Radar, you'll see that it is all now in one gist: https://gist.github.com/davidpatters0n/04515be1bfcf1aed9537
[06:07:02] greengriminal: wrt to adding the binding.pry did you mean at this line: https://gist.github.com/davidpatters0n/04515be1bfcf1aed9537#file-controller_snippet-rb-L10?
[06:07:47] Radar: Yes, before that line.
[06:08:12] chipotle: has joined #RubyOnRails
[06:10:01] roamingdog: has joined #RubyOnRails
[06:10:54] greengriminal: right, so i did do that initially doing: `url => https://ucarecdn.com/3242j4jkqdsb30/-/resize/1200x/-/crop/803x803/0,0/-/inline/yes/` as mentioned in the comments in my gist here(https://gist.github.com/davidpatters0n/04515be1bfcf1aed9537#file-controller_snippet-rb-L2).
[06:11:05] brycesenz: has joined #RubyOnRails
[06:13:05] Radar: greengriminal: Ok, so the problem then is that you're doing url = URI.parse(roofer.url).path
[06:13:06] pulgalipe: has joined #RubyOnRails
[06:13:07] greengriminal: My exact issue is that doing URI.parse(url).path returns the path isn't right because when it calls redirect to you're effectively saying `redirect_to URI.parse(url).path`
[06:13:10] Radar: greengriminal: why not just url = roofer.url?
[06:13:19] Radar: or even, redirect_to roofer_url?
[06:13:41] greengriminal: http://brakemanscanner.org/docs/warning_types/redirect/
[06:14:09] greengriminal: this is what i am going by quote -> "If the first argument is a string, then it is possible to parse the string and extract the path"
[06:14:46] chouhoulis: has joined #RubyOnRails
[06:14:49] Radar: I don't understand.
[06:14:51] djellemah: has joined #RubyOnRails
[06:15:00] Radar: You WANT to redirect to that full URL. But you're only getting the path.
[06:15:07] greengriminal: the url i am redirecting to is an offsite redirect
[06:15:07] Radar: This is why it's localhost:3000 and not the other host.
[06:15:15] Radar: redirect_to roofer.url
[06:15:17] helpa: Next question, please!
[06:15:43] greengriminal: correct... So how do you *safely handle external redirects* without this brakeman error coming up.
[06:16:12] Radar: gem uninstall brakeman
[06:16:15] Radar: close computer
[06:16:17] Radar: throw it in the ocean
[06:16:34] Radar: I seriously don't know. I think Brakeman is being too pedantic in this instance.
[06:16:40] Radar: It's a safe redirect because it's not user generated.
[06:17:33] greengriminal: Well lets put it this way, I was working on a project and they had an official penetration test done and this was one of the things that came back in the pdf report.
[06:17:33] Oliphaunte: has joined #RubyOnRails
[06:17:49] Radar: It's a CDN
[06:18:01] ascarter_: has joined #RubyOnRails
[06:18:07] Radar: There is nothing that the user is inputting here that can be used as a malicious redirect.
[06:18:13] greengriminal: also according to owasp it (handling external redirects in a safe manner) is considered to be in the top 10.
[06:18:29] Radar: https://gist.github.com/davidpatters0n/04515be1bfcf1aed9537
[06:18:39] Radar: Please point to the bit in the code where it uses user input to generate the URL
[06:18:59] waka: has joined #RubyOnRails
[06:19:34] Radar: Thank you.
[06:19:50] Radar: So the warning it's giving you is... let's say it together... a FALSE POSITIVE.
[06:20:10] greengriminal: maybe i should loosen brakeman up a little
[06:21:00] ur5us: has joined #RubyOnRails
[06:21:01] pawnbox: has joined #RubyOnRails
[06:21:19] greengriminal: oh and btw i ditched Spree and went with Solidus.
[06:22:03] greengriminal: no disrespect to you (as i know you work for them or did work for them)
[06:22:15] Radar: did work for them
[06:22:23] Radar: Spree Commerce the company can be left to the annals of history
[06:23:33] _3by8: I'm calling a helper function in my view which is unintentionally printing a hash. The helper function contains some code that iterates over a hash. If I remove that loop, the key-value pairs stop showing up. Can someone explain to me what's happening and why nothing prints inside of that loop?
[06:23:46] _3by8: Nevermind that last part.
[06:24:08] Radar: _3by8: !rule0
[06:24:08] 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.
[06:24:59] greengriminal: where the gist at ?
[06:25:05] Radar: Good question.
[06:25:19] lemur: has joined #RubyOnRails
[06:25:34] dionysus69: has joined #RubyOnRails
[06:25:36] embr: has joined #RubyOnRails
[06:26:13] Radar: _3by8: hi.
[06:26:29] _3by8: Radar: hi, sorry, creating Gist now.
[06:29:29] ur5us: has joined #RubyOnRails
[06:30:18] dionysus69: has joined #RubyOnRails
[06:30:52] ur5us_: has joined #RubyOnRails
[06:32:48] razorgfx: has joined #RubyOnRails
[06:33:19] arup_r: In my view I have `<%= f.text_field :name, class: "form-control", placeholder: t(".placeholder", model: titleize( @group.class.name ) ) %>`, and it throws error: -> undefined method `titleize' for #<#<Class:0x007fcb27cb7358>:0x007fcb284d7f10>
[06:34:46] havenwood: arup_r: Do you mean?: @group.class.name.titleize
[06:34:47] arup_r: I want to titleize the model name, what else method is there ? this one not working..
[06:35:01] chipotle: has joined #RubyOnRails
[06:35:22] arup_r: havenwood: I was following this doc signature, http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html#method-i-titleize
[06:35:26] arup_r: let me try .. that
[06:36:09] havenwood: arup_r: ^ see how it's called in the examples (I think you're looking at #transliterate docs but trying to use #titleize).
[06:37:16] agit0: has joined #RubyOnRails
[06:37:34] arup_r: havenwood: worked..sorry, I was looking at the http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html#method-i-humanize and want titleize actually :)
[06:37:43] pulgalip1: has joined #RubyOnRails
[06:37:50] arup_r: wrong eyes
[06:37:56] tildes: has joined #RubyOnRails
[06:38:15] czerasz: has joined #RubyOnRails
[06:41:50] rhizome: arup_r: is that your actual code, @group.class.name?
[06:42:58] JohnT: has joined #RubyOnRails
[06:43:06] _3by8: Radar: https://gist.github.com/anonymous/d4238dd3c872aac41580
[06:44:08] hannelita: has joined #RubyOnRails
[06:45:13] krz: has joined #RubyOnRails
[06:45:24] lxsameer: has joined #RubyOnRails
[06:46:35] _3by8: Radar: line 6 of orders_helper.rb is causing rows of hashes to be printed on my otherwise beautiful view.
[06:47:43] djellemah: has joined #RubyOnRails
[06:49:22] rhizome: maybe because that whole thing is inside of <%=, and you have an .each
[06:52:42] aganov: has joined #RubyOnRails
[06:53:50] martinliu: has joined #RubyOnRails
[06:57:18] arBmind: has joined #RubyOnRails
[06:58:20] User458764: has joined #RubyOnRails
[06:59:30] shibabu: has joined #RubyOnRails
[07:01:08] chipotle: has joined #RubyOnRails
[07:02:23] waka: has joined #RubyOnRails
[07:03:08] _3by8: Okay so here's what I did to try to solve the situation. I removed the = and ran puts "test" inside of the conditional statement in orders_helper.rb
[07:03:14] atmosx: has joined #RubyOnRails
[07:03:24] _3by8: So it should have printed "test" but it didn't
[07:05:15] alexhartley: has joined #RubyOnRails
[07:07:32] pawnbox: has joined #RubyOnRails
[07:07:48] Radar: _3by8: it'll print it to the console
[07:08:32] baash05: has left #RubyOnRails: ()
[07:11:13] moeabdol: has joined #RubyOnRails
[07:11:36] yardenbar: has joined #RubyOnRails
[07:13:40] rvanlieshout: has joined #RubyOnRails
[07:13:42] kp666: has joined #RubyOnRails
[07:14:48] arup_r: has joined #RubyOnRails
[07:15:57] chouhoulis: has joined #RubyOnRails
[07:17:26] _3by8: Radar: how do I get it to print from within the loop? I've tried just typing a string enclosed with quotation marks as well. How does that work?
[07:18:37] paradisaeidae: has left #RubyOnRails: ()
[07:18:50] chipotle: has joined #RubyOnRails
[07:19:21] solars: has joined #RubyOnRails
[07:19:26] ascarter: has joined #RubyOnRails
[07:20:25] spooky_pumpkin: has joined #RubyOnRails
[07:20:59] djellemah: has joined #RubyOnRails
[07:25:18] spooky_pumpkin: has joined #RubyOnRails
[07:29:11] Pazician: has joined #RubyOnRails
[07:33:09] lxsameer: has joined #RubyOnRails
[07:34:52] Hans267: has joined #RubyOnRails
[07:35:04] bklane: has joined #RubyOnRails
[07:35:34] DeXterbed: has joined #RubyOnRails
[07:37:01] LeoDee: has joined #RubyOnRails
[07:37:06] darutoko: has joined #RubyOnRails
[07:38:59] srinidhi: has joined #RubyOnRails
[07:39:08] bronson: has joined #RubyOnRails
[07:41:35] ascarter: has joined #RubyOnRails
[07:48:35] _3by8: There's some feature of the language that I'm not familiar with that's preventing me from figuring this out.
[07:50:40] jas02: has joined #RubyOnRails
[07:50:43] lyoshajapan: has joined #RubyOnRails
[07:51:08] chipotle: has joined #RubyOnRails
[07:52:10] arBmind: has left #RubyOnRails: ()
[07:52:31] artto: has joined #RubyOnRails
[07:53:09] arBmind: has joined #RubyOnRails
[07:55:31] bklane_: has joined #RubyOnRails
[07:55:48] deweysdecimal: has joined #RubyOnRails
[07:56:07] Rinalds: has joined #RubyOnRails
[08:03:13] lyoshajapan: has joined #RubyOnRails
[08:03:47] _3by8: This helper method isn't doing what I expect it to: https://gist.github.com/anonymous/6028dd71838bba207d67 it will tell me what I expect it to in the flash but there's never any HTML output. What am I not doing right here?
[08:04:04] Bloomer: has joined #RubyOnRails
[08:04:36] titeiko: has joined #RubyOnRails
[08:04:52] kara_sweets: has joined #RubyOnRails
[08:05:53] Oliphaunte: has joined #RubyOnRails
[08:07:08] djbkd: has joined #RubyOnRails
[08:10:24] sevenseacat: has joined #RubyOnRails
[08:11:33] smoitra: has joined #RubyOnRails
[08:11:41] chipotle: has joined #RubyOnRails
[08:12:02] pawnbox: has joined #RubyOnRails
[08:12:08] moeabdol: has joined #RubyOnRails
[08:13:50] ascarter: has joined #RubyOnRails
[08:14:12] deweysdecimal: has joined #RubyOnRails
[08:15:13] gavinhughes: has joined #RubyOnRails
[08:15:44] razorgfx: has joined #RubyOnRails
[08:16:09] edwinvdgraaf: has joined #RubyOnRails
[08:16:14] deweysdecimal: has joined #RubyOnRails
[08:16:17] jgt: has joined #RubyOnRails
[08:16:39] chouhoulis: has joined #RubyOnRails
[08:17:28] jkprg_: has joined #RubyOnRails
[08:18:23] DirtyFInn: has joined #RubyOnRails
[08:19:22] czerasz: has joined #RubyOnRails
[08:19:30] mark2: has joined #RubyOnRails
[08:20:21] curses: has joined #RubyOnRails
[08:21:37] antgel: has joined #RubyOnRails
[08:23:20] deweysdecimal: has joined #RubyOnRails
[08:24:10] shibabu: has joined #RubyOnRails
[08:25:08] herbst: has joined #RubyOnRails
[08:25:08] herbst: has joined #RubyOnRails
[08:27:21] bratsche: has joined #RubyOnRails
[08:33:46] deweysdecimal: has joined #RubyOnRails
[08:34:36] deweysdecimal: has joined #RubyOnRails
[08:35:06] mattt: has joined #RubyOnRails
[08:35:53] mattt: hi all, i'm trying to use ajax on link_to, which is working fine ... however the javascript in the rendered js.erb isn't firing, any suggestions hwere to look?
[08:36:02] craigp: has joined #RubyOnRails
[08:36:53] djbkd: has joined #RubyOnRails
[08:37:10] PedramT: has joined #RubyOnRails
[08:37:44] alexhartley: has joined #RubyOnRails
[08:39:13] deweysdecimal: has joined #RubyOnRails
[08:39:28] ascarter: has joined #RubyOnRails
[08:40:13] User458764: has joined #RubyOnRails
[08:43:03] sandstrom: has joined #RubyOnRails
[08:43:10] roshanavand: has joined #RubyOnRails
[08:43:48] deweysdecimal: has joined #RubyOnRails
[08:44:36] roshanavand: has joined #RubyOnRails
[08:46:11] agit0: has joined #RubyOnRails
[08:47:35] ecmacoder: has joined #RubyOnRails
[08:48:40] Cohedrin: has joined #RubyOnRails
[08:50:30] blackmes1: has joined #RubyOnRails
[08:51:17] Spami: has joined #RubyOnRails
[08:51:56] dionysus69: has joined #RubyOnRails
[08:53:01] deweysdecimal: has joined #RubyOnRails
[08:54:34] baweaver: has joined #RubyOnRails
[08:54:42] yfeldblum: has joined #RubyOnRails
[08:55:27] lyoshajapan: has joined #RubyOnRails
[08:57:05] puria: has joined #RubyOnRails
[08:58:03] shibabu: has joined #RubyOnRails
[09:02:10] ascarter: has joined #RubyOnRails
[09:04:14] solars: what feature/issue trackers are people using for private projects? pivotal? trello?
[09:04:18] alexhartley: has joined #RubyOnRails
[09:04:37] defsdoor: has joined #RubyOnRails
[09:04:52] herbst: has joined #RubyOnRails
[09:04:52] herbst: has joined #RubyOnRails
[09:05:22] andrew9184: has joined #RubyOnRails
[09:06:41] Ergo: has joined #RubyOnRails
[09:09:03] mattt: any suggestion on what i'm doing wrong? my template.js.erb just has a console.log in it, the file is being rendered but does not write to console :(
[09:09:21] mattt: the method in the ajax request is being hit also, as i am doing a database write which i see
[09:09:31] jsrn_: has joined #RubyOnRails
[09:09:54] edwinvdgraaf: has joined #RubyOnRails
[09:10:06] DoubleMalt: has joined #RubyOnRails
[09:11:30] quazimodo: has joined #RubyOnRails
[09:12:36] ascarter: has joined #RubyOnRails
[09:12:43] deweysdecimal: I just had a problem with my JS as well, and it turned out to be some issue with Turbolinks
[09:13:14] deweysdecimal: I ended up installing this gem in my project to fix it: https://github.com/kossnocorp/jquery.turbolinks
[09:13:42] mattt: deweysdecimal: heh, i've read stuff about turbolinks being an issue, but i even added the attribute to link_to to disable turbolinks
[09:13:44] mattt: still didn't work :)
[09:13:52] mattt: let me try this gem just to see if it helps
[09:14:30] deweysdecimal: I tried disabling turbolinks before trying that gem, but I must have done it wrong, and the gem resolved my issue
[09:14:43] herbst: has joined #RubyOnRails
[09:14:43] herbst: has joined #RubyOnRails
[09:15:10] Palsson: has joined #RubyOnRails
[09:15:18] sarink: has joined #RubyOnRails
[09:17:02] sandstrom: has joined #RubyOnRails
[09:17:27] chouhoulis: has joined #RubyOnRails
[09:18:03] krz: has joined #RubyOnRails
[09:20:39] roshanav_: has joined #RubyOnRails
[09:21:38] mattt: deweysdecimal: installed it, still not working
[09:21:56] deweysdecimal: bummer, that's all I can think of
[09:22:13] deweysdecimal: I just tried adding a console.log() to a new JS file, and it worked fine for me
[09:23:35] Mia: has joined #RubyOnRails
[09:23:35] Mia: has joined #RubyOnRails
[09:24:27] defsdoor: mattt, show us the code
[09:24:39] drptbl: has joined #RubyOnRails
[09:24:59] chipotle: has joined #RubyOnRails
[09:25:25] hannelita: has joined #RubyOnRails
[09:25:30] Axy: has joined #RubyOnRails
[09:25:30] Axy: has joined #RubyOnRails
[09:27:17] puria: has joined #RubyOnRails
[09:29:32] ascarter: has joined #RubyOnRails
[09:30:27] marr: has joined #RubyOnRails
[09:30:36] arBmind: has joined #RubyOnRails
[09:30:46] mattt: defsdoor: https://gist.github.com/mattt416/29bad42cf1fc144b0d15
[09:31:25] theod: has joined #RubyOnRails
[09:32:00] spyd3r: has joined #RubyOnRails
[09:36:03] deweysdecimal: mattt: are you sure it's not logging, or does it just look like it isn't because you are just logging an empty string?
[09:36:30] fox_mulder_cp: hm... bot can't answer ((
[09:37:03] elaptics`: has left #RubyOnRails: ()
[09:37:23] elaptics: has joined #RubyOnRails
[09:43:15] ascarter: has joined #RubyOnRails
[09:45:56] toydestroyer: has joined #RubyOnRails
[09:47:06] cornerma1: has joined #RubyOnRails
[09:50:27] ascarter: has joined #RubyOnRails
[09:51:19] neanderslob: has joined #RubyOnRails
[09:52:39] mattt: deweysdecimal: fat fingered the console.log(), i'm actually logging something
[09:52:55] mattt: deweysdecimal: i also tried doing an appendTo and the element doesn't get appended to
[09:53:26] lipoqil: has joined #RubyOnRails
[09:55:01] chipotle: has joined #RubyOnRails
[09:57:23] lacrymology: has joined #RubyOnRails
[10:00:19] moeabdol: has joined #RubyOnRails
[10:00:22] robbyoconnor: has joined #RubyOnRails
[10:01:12] rodfersou: has joined #RubyOnRails
[10:01:26] ascarter: has joined #RubyOnRails
[10:02:51] PedramT: has joined #RubyOnRails
[10:05:32] snowy: has joined #RubyOnRails
[10:06:53] alexhartley: has joined #RubyOnRails
[10:11:02] PedramT: has joined #RubyOnRails
[10:12:37] stamina: has joined #RubyOnRails
[10:17:47] FooMunki: has joined #RubyOnRails
[10:17:51] sarink: has joined #RubyOnRails
[10:18:12] chouhoulis: has joined #RubyOnRails
[10:19:10] FooMunki: has joined #RubyOnRails
[10:19:18] PedramT: has joined #RubyOnRails
[10:19:27] workmad3: has joined #RubyOnRails
[10:20:55] jyraff: has joined #RubyOnRails
[10:22:42] chipotle: has joined #RubyOnRails
[10:25:32] herbst: has joined #RubyOnRails
[10:25:46] PedramT_: has joined #RubyOnRails
[10:25:59] hannelita: has joined #RubyOnRails
[10:26:10] pydave6367: has joined #RubyOnRails
[10:26:32] jottr_: has joined #RubyOnRails
[10:27:25] Z00t: has joined #RubyOnRails
[10:28:23] User458764: has joined #RubyOnRails
[10:28:43] AzaToth: has joined #RubyOnRails
[10:29:59] Junaos: has joined #RubyOnRails
[10:30:33] ascarter: has joined #RubyOnRails
[10:32:04] arup_r: has joined #RubyOnRails
[10:32:51] vasilakisFiL: has joined #RubyOnRails
[10:34:27] ferr: has joined #RubyOnRails
[10:37:14] pydave6367: has joined #RubyOnRails
[10:38:49] quazimodo: has joined #RubyOnRails
[10:38:54] quazimod1: has joined #RubyOnRails
[10:39:27] ldnunes: has joined #RubyOnRails
[10:40:54] deweysdecimal: has joined #RubyOnRails
[10:43:10] FooMunki: has joined #RubyOnRails
[10:45:37] drptbl: has joined #RubyOnRails
[10:45:55] lacrymology: has joined #RubyOnRails
[10:46:46] hannelita: has joined #RubyOnRails
[10:47:10] mrtomme_: has joined #RubyOnRails
[10:47:37] zpe: has joined #RubyOnRails
[10:48:12] artto: has joined #RubyOnRails
[10:48:58] aloneintheworld: has joined #RubyOnRails
[10:51:56] wethu: has joined #RubyOnRails
[10:53:42] srinidhi: has joined #RubyOnRails
[10:53:51] StaticVoid: has joined #RubyOnRails
[10:55:26] Jasaka: has joined #RubyOnRails
[11:09:48] platzhirsch: has joined #RubyOnRails
[11:10:00] arup_r1: has joined #RubyOnRails
[11:10:58] platzhirsch: I cannot seem to find the appropriate RSpec matcher for 'string' value should be any of [array_of_different_strings_that_are_valid]
[11:12:44] CaptainAl: has joined #RubyOnRails
[11:15:11] CaptainAl: has joined #RubyOnRails
[11:18:23] sarink: has joined #RubyOnRails
[11:19:01] chouhoulis: has joined #RubyOnRails
[11:20:24] rickmasta: has joined #RubyOnRails
[11:21:11] StaticVoid: platzhirsch: regex matcher ? https://relishapp.com/rspec/rspec-expectations/v/2-2/docs/matchers/match-matcher
[11:21:15] djellemah: has joined #RubyOnRails
[11:21:20] herbst: has joined #RubyOnRails
[11:21:40] StaticVoid: platzhirsch: I don't have any experience with it, I just remember reading about it
[11:21:52] tvw: has joined #RubyOnRails
[11:22:50] Papierkorb: platzhirsch: if the values are not too many, you could use the .or matcher: expect("foo").to eq('foo').or eq('bar').or eq('...')
[11:22:52] Rinalds: has joined #RubyOnRails
[11:24:18] arup_r: has joined #RubyOnRails
[11:25:48] wethu: has joined #RubyOnRails
[11:26:51] waka: has joined #RubyOnRails
[11:27:28] platzhirsch: oh.. right thanks
[11:27:47] platzhirsch: But now where I am thinking about that
[11:28:10] platzhirsch: I think it should really be a validation, but it's a non-AR model, so I wonder how I could make that work
[11:28:18] chipotle: has joined #RubyOnRails
[11:28:30] platzhirsch: maybe it's really the same
[11:28:32] Fly80: has joined #RubyOnRails
[11:29:43] workmad3: platzhirsch: you might be able to do `expect("foo").to be_in(ary)`
[11:29:53] platzhirsch: ah, workmad3 right
[11:30:08] workmad3: platzhirsch: but tbh, I'd be fairly dubious of a test that does that
[11:30:16] platzhirsch: workmad3: I agree
[11:30:33] platzhirsch: It's really model validation I am doing here, but since my model is fed from a YAML file???
[11:30:34] workmad3: I'd expect a test to actually know what string it should get back and assert that
[11:31:10] workmad3: platzhirsch: how about using the shoulda matchers and test the validation itself then? :)
[11:31:28] platzhirsch: workmad3: *nod* that sounds the most reasonable
[11:31:41] workmad3: platzhirsch: also, you should be able to pull in ActiveModel::Validations into your non-AR model if you want them
[11:31:46] lyoshajapan: has joined #RubyOnRails
[11:31:51] platzhirsch: yeah I'd love to
[11:32:14] workmad3: platzhirsch: so what's stopping you? ;)
[11:32:23] platzhirsch: Rails 2.3 *drop*
[11:32:50] platzhirsch: I have a couple of stories that would allow us to upgrade, they're not exactly fun :)
[11:33:03] workmad3: platzhirsch: ok... so what you do is you delete the entire app, rewrite the git history and force-push it to github...
[11:33:22] platzhirsch: oh I like that
[11:34:37] workmad3: platzhirsch: don't forget to steal someone elses PGP key and sign the commit as them, so you don't get caught out ;)
[11:35:30] matthias_: has joined #RubyOnRails
[11:38:56] startupality: has joined #RubyOnRails
[11:42:48] herbst: has joined #RubyOnRails
[11:44:20] rvanlieshout: has joined #RubyOnRails
[11:46:37] DoubleMalt: has joined #RubyOnRails
[11:46:57] bob_f: Hi, has anyone had any luck using Combustion with Rails 4 ? I'm having issues.
[11:47:02] herbst: has joined #RubyOnRails
[11:47:03] herbst: has joined #RubyOnRails
[11:47:10] bob_f: Or does anybody know of a good alternative for testing engines ?
[11:48:26] moeabdol: has joined #RubyOnRails
[11:48:41] norc: has joined #RubyOnRails
[11:49:25] User458764: has joined #RubyOnRails
[11:51:13] blackmes1: has joined #RubyOnRails
[11:52:30] mrbubbles: has joined #RubyOnRails
[11:52:40] ericdykstra: has joined #RubyOnRails
[11:53:58] acosonic: hi all how do I turn on logging for rails app ?
[11:55:53] rvanlieshout: acosonic: how did you turn it off?
[11:55:55] moeabdol: has joined #RubyOnRails
[11:57:49] acosonic: Its on, for Redmine, but I get some specific content causing page not found on one Redmine install. And it works on another, I've made log to debug, and it displays sql query when everything is OK
[11:58:22] rvanlieshout: and what logging would you expect or want? also, what do the Remine docs write about this?
[11:58:33] acosonic: rvanlieshout: nothing...
[11:58:54] acosonic: rvanlieshout: I'm expecting to see what's going on.. SQL query or something. Now I'm inspecting apache
[11:59:24] andrew-l: has joined #RubyOnRails
[11:59:43] drptbl: has joined #RubyOnRails
[11:59:45] c355E3B: has joined #RubyOnRails
[11:59:56] herbst: has joined #RubyOnRails
[11:59:56] herbst: has joined #RubyOnRails
[12:00:36] mices: I have some polymorphic associations where profiles has_many pictures as :imageable
[12:00:36] mices: So then what should appear in routes.rb, imageable or pictures ?
[12:01:34] rvanlieshout: it depens on what you want to do there
[12:01:42] rvanlieshout: would make sense
[12:02:56] rvanlieshout: cause imageable isn't a 'thing'
[12:03:32] acosonic: rvanlieshout: Nothing, just 404 in apache log, arghhh
[12:04:06] srinidhi: has joined #RubyOnRails
[12:04:13] Detch: has joined #RubyOnRails
[12:04:17] acosonic: rvanlieshout: looks like it might be apache mod security causing issue... Let me check on that...
[12:05:54] drptbl: has joined #RubyOnRails
[12:06:44] andrew-l: has joined #RubyOnRails
[12:07:09] myntcake: has joined #RubyOnRails
[12:08:06] arup_r: got question. I am trying to initializing a constant from the config/initializers/mfa.rb .. but the value of MFA_ENCRYPTION_KEY is nil after loading the app. What am I missing ? https://gist.github.com/aruprakshit/a7b13777e0fbcbf40560
[12:08:42] acosonic: rvanlieshout: yeah it was mod security... Arrghhh
[12:08:48] acosonic: wasted 3 hrs on that...
[12:09:45] arup_r: acosonic: time has no value.. I am on something till last 2 days.. no light yet :/
[12:09:59] rvanlieshout: arup_r: that constant is just defined in that context
[12:10:09] rvanlieshout: just as a local variable
[12:10:33] arup_r: so what is the correct way ? in application.rb
[12:11:05] rvanlieshout: add it to ENV, or the app config variable
[12:11:37] arup_r: ENV i do know. how to add to app config variable ?
[12:11:48] arup_r: asking to enhance my skill rvanlieshout :)
[12:12:25] rvanlieshout: i don't know if you can assign custom attributes
[12:12:54] rvanlieshout: http://stackoverflow.com/questions/18768498/custom-rails-configuration-section
[12:13:03] rvanlieshout: config.foo is allowed, so set something there
[12:13:11] arup_r: let me see
[12:13:18] Papierkorb: arup_r: I use the 'config' gem for application configuration.
[12:14:04] Papierkorb: Which gives you a Settings.nested.yaml.attributes.here accessor for everything the settings.yml states, including stuff like environment specific config etc.
[12:15:22] arup_r: Papierkorb: didn't know . thanks. Papierkorb the one I am working on is such a giant rails app, that they broke it into 2 many repos .. now activeadmin had been moved to a separate repo, where I add specs since last one month :DD
[12:15:33] arup_r: into too **
[12:16:16] arup_r: so adding something means I may loose my sleep.. hehe..so I am going with there current set up.. But I looked at the gem which I will use in my other projects..
[12:19:20] sarink: has joined #RubyOnRails
[12:19:48] chouhoulis: has joined #RubyOnRails
[12:19:54] gbgdev: has joined #RubyOnRails
[12:20:36] gbgdev: has joined #RubyOnRails
[12:20:59] gbgdev_: has joined #RubyOnRails
[12:21:21] craigp: has joined #RubyOnRails
[12:22:15] artto: has joined #RubyOnRails
[12:22:37] sandstrom: has joined #RubyOnRails
[12:32:05] ecmacoder: has joined #RubyOnRails
[12:36:55] Craigimus: has joined #RubyOnRails
[12:37:11] ecmacoder: has joined #RubyOnRails
[12:42:02] Z00t_: has joined #RubyOnRails
[12:42:08] ecmacoder: has joined #RubyOnRails
[12:43:17] sevenseacat: has joined #RubyOnRails
[12:47:07] ecmacoder: has joined #RubyOnRails
[12:49:17] ql6wlld: has joined #RubyOnRails
[12:51:47] IrishGringo: has joined #RubyOnRails
[12:51:54] artto: has joined #RubyOnRails
[12:51:54] DEA7TH: has joined #RubyOnRails
[12:52:07] ecmacoder: has joined #RubyOnRails
[12:55:27] pawnbox: has joined #RubyOnRails
[12:56:19] pawnbox: has joined #RubyOnRails
[12:56:40] arup_r: I have added this https://github.com/tinfoil/devise-two-factor#testing test in my project to see all things are going well. But, it is saying `Faker` is not found. https://gist.github.com/aruprakshit/d0ab3375ad095b1ae77b
[12:57:06] arup_r: But I see this https://github.com/tinfoil/devise-two-factor/blob/master/devise-two-factor.gemspec#L37 present
[12:57:21] arup_r: why this error coming.. ?
[12:57:28] ecmacoder: has joined #RubyOnRails
[12:57:42] onlyme_: has joined #RubyOnRails
[12:57:57] Craigimus: has joined #RubyOnRails
[13:02:09] ecmacoder: has joined #RubyOnRails
[13:04:39] jyraff: has joined #RubyOnRails
[13:05:12] Phobik2000: has joined #RubyOnRails
[13:06:54] arup_r: leave this ^^ ... I asked in #ruby.
[13:07:08] ecmacoder: has joined #RubyOnRails
[13:07:11] arup_r: I think it is not Rails, but it is inclined to how Gem system works..
[13:07:29] PedramT: has joined #RubyOnRails
[13:09:00] PedramT_: has joined #RubyOnRails
[13:11:21] roshanavand: has joined #RubyOnRails
[13:12:08] ecmacoder: has joined #RubyOnRails
[13:12:31] shinnya: has joined #RubyOnRails
[13:13:28] PedramT: has joined #RubyOnRails
[13:17:27] roshanavand: has joined #RubyOnRails
[13:17:28] ecmacoder: has joined #RubyOnRails
[13:17:43] cornerman: has left #RubyOnRails: ()
[13:19:28] craigp: has joined #RubyOnRails
[13:20:33] chouhoulis: has joined #RubyOnRails
[13:20:46] startupality: has joined #RubyOnRails
[13:20:52] PedramT: has joined #RubyOnRails
[13:21:03] sarink: has joined #RubyOnRails
[13:22:09] ecmacoder: has joined #RubyOnRails
[13:22:27] CrazyHorse18: has joined #RubyOnRails
[13:23:11] PedramT_: has joined #RubyOnRails
[13:24:09] qejk: has joined #RubyOnRails
[13:24:47] Malgorath: Is there a way when I do rails s to set it to listen to all ips without using -d ?
[13:25:43] Malgorath: er -b I meant
[13:26:21] craigp: has joined #RubyOnRails
[13:27:08] ecmacoder: has joined #RubyOnRails
[13:27:40] snowy: has joined #RubyOnRails
[13:28:25] Malgorath: nvm found the answer, boot.rb
[13:32:08] ecmacoder: has joined #RubyOnRails
[13:36:39] sandstrom: has joined #RubyOnRails
[13:37:11] ecmacoder: has joined #RubyOnRails
[13:37:40] arup_r: has joined #RubyOnRails
[13:37:54] jkamenik: has joined #RubyOnRails
[13:41:04] Craigimus: has joined #RubyOnRails
[13:41:38] tvw: has joined #RubyOnRails
[13:42:08] ecmacoder: has joined #RubyOnRails
[13:42:16] pwnd_nsfw`: has left #RubyOnRails: ()
[13:42:35] Ropeney: has joined #RubyOnRails
[13:42:35] pwnd_nsfw: has joined #RubyOnRails
[13:43:43] ecmacoder: has joined #RubyOnRails
[13:45:02] bronson: has joined #RubyOnRails
[13:45:18] arup_r: has joined #RubyOnRails
[13:46:10] Z00t: has joined #RubyOnRails
[13:46:27] roshanavand: has joined #RubyOnRails
[13:46:33] shibabu: has joined #RubyOnRails
[13:47:16] DaniG2k: has joined #RubyOnRails
[13:47:29] atomical: has joined #RubyOnRails
[13:48:03] startupality: has joined #RubyOnRails
[13:48:57] ramortegui: has joined #RubyOnRails
[13:51:15] FooMunki: has joined #RubyOnRails
[13:51:45] DEA7TH: has left #RubyOnRails: ()
[13:51:51] startupality: has joined #RubyOnRails
[13:58:38] Pupeno: has joined #RubyOnRails
[13:59:13] nertzy2: has joined #RubyOnRails
[13:59:16] puria: has joined #RubyOnRails
[14:00:00] arup_r1: has joined #RubyOnRails
[14:02:54] startupality: has joined #RubyOnRails
[14:04:18] chipotle: has joined #RubyOnRails
[14:04:27] Nilbus: has joined #RubyOnRails
[14:06:22] startupality: has joined #RubyOnRails
[14:07:55] JonasOSDever: has joined #RubyOnRails
[14:09:15] AimlessRAven: has joined #RubyOnRails
[14:09:46] AimlessRAven: hi guys .. i encryp string like "str".crypt("sh")
[14:09:54] AimlessRAven: now how to decypt this
[14:10:00] AimlessRAven: is there any command for that
[14:10:44] mikecmpbll: has joined #RubyOnRails
[14:11:48] treehug88: has joined #RubyOnRails
[14:11:51] The_Phoenix: has joined #RubyOnRails
[14:12:04] arup_r1: AimlessRaven: You may look http://ruby-doc.org/stdlib-1.9.3/libdoc/openssl/rdoc/OpenSSL/Cipher.html
[14:12:08] rvanlieshout: AimlessRaven: you did read the documentation about that method?
[14:12:17] rvanlieshout: "Applies a one-way cryptographic hash to str"
[14:12:21] lacrymology: has joined #RubyOnRails
[14:13:04] ddv: don't laugh arup___, it's not like you don't make any mistakes....
[14:13:20] AimlessRAven: rvanlieshout: exacly.. thank you
[14:13:27] zpe_: has joined #RubyOnRails
[14:13:40] arup_r1: ddv: I don't laugh, I am remembering me..
[14:13:51] arup_r1: ddv: I will keep my eyes on you.. :)
[14:14:04] ddv: I don't understand your engrish arup___....
[14:14:22] arup_r1: ddv: I don't understand you.. :)
[14:15:00] ddv: yeah okay
[14:15:11] arup_r1: ddv: but, good to see your supportive attitude.. i miss that
[14:15:20] arup_r1: ddv: cool.. be happy.
[14:15:35] Bsian: has joined #RubyOnRails
[14:15:43] Bsian: has left #RubyOnRails: ()
[14:16:21] astrofog: has joined #RubyOnRails
[14:19:02] techsethi: has joined #RubyOnRails
[14:19:03] Bsian: has joined #RubyOnRails
[14:20:57] Bsian: Hi! Which place do you recommend for the sorting method (quite complex sorting rules) which is used in models and view_models. Now its placed in Model class method but new requirements: I need to apply such sorting for an Array of elements
[14:21:14] blackmes1: has joined #RubyOnRails
[14:21:18] chouhoulis: has joined #RubyOnRails
[14:21:35] startupality: has joined #RubyOnRails
[14:21:36] Rodya_: has joined #RubyOnRails
[14:21:37] jkamenik: has joined #RubyOnRails
[14:21:48] sarink: has joined #RubyOnRails
[14:21:55] rvanlieshout: Bsian: service object
[14:22:06] aegis3121: has joined #RubyOnRails
[14:22:51] herbst: has joined #RubyOnRails
[14:23:19] startupality: has joined #RubyOnRails
[14:23:22] Bsian: rvanlieshout: thanks. I was between lib/ and service objects. Could I know why do you think that placing this is lib is a bad idea? I'm just interesting
[14:24:17] lessless: has joined #RubyOnRails
[14:24:20] rvanlieshout: is it application specific?
[14:24:39] nertzy2: has joined #RubyOnRails
[14:25:37] Nilbus: Corey Haines suggests using lib for things that have no dependency or reference to rails or objects that depend on rails, such that it could be extracted to a separate gem if wanted.
[14:25:56] Bsian: rvanlieshout: ye, something like sorting objects for wizard (next -> next -> next)
[14:25:59] Nilbus: If you use lib/, it's also recommended that you add that directory to your autoload_paths configuration.
[14:26:10] rvanlieshout: Bsian: then it should go in app/ :)
[14:26:51] Bsian: I see, thanks!
[14:28:25] startupality: has joined #RubyOnRails
[14:28:48] lacrymology: is there migration generator options to make an existing column non-nullable?
[14:29:14] mrgreenfur: has joined #RubyOnRails
[14:29:47] sevenseacat: lacrymology: generate a migration, use change_column_default inside it
[14:29:54] sevenseacat: change_column_null, sorry
[14:30:00] jkamenik: has joined #RubyOnRails
[14:30:18] gambl0re: has joined #RubyOnRails
[14:30:20] weckl: has joined #RubyOnRails
[14:30:38] lacrymology: sevenseacat: yeah, I know how to write it manually, I was wondering if the generator had some option that'd do it automatically. Thanks
[14:31:13] sevenseacat: generators are good for basic stuff.
[14:31:17] sevenseacat: thats about it.
[14:32:10] AimlessRAven: its a hard to deploy rails server ?
[14:32:48] nilbus_: has joined #RubyOnRails
[14:32:56] rvanlieshout: AimlessRaven: for somebody who reads documentation, or.. ?
[14:33:04] Rodya_: has joined #RubyOnRails
[14:33:15] AimlessRAven: i mean is details are write step-by-step in documentation
[14:33:22] AimlessRAven: and kid can do this if check documentation ?
[14:33:33] rvanlieshout: anybody who is willing to learn, sure
[14:33:49] rvanlieshout: which you haven't shown us yet
[14:33:53] sevenseacat: in other words, you'll likely have a lot of problems AimlessRaven .
[14:34:07] rclanan: has joined #RubyOnRails
[14:35:33] pulgalipe: has joined #RubyOnRails
[14:37:19] arup_r1: pls.. don't
[14:38:56] Scripore: has joined #RubyOnRails
[14:39:51] drptbl: has joined #RubyOnRails
[14:39:56] Scripore: has joined #RubyOnRails
[14:40:33] sarink: has joined #RubyOnRails
[14:40:59] sergey_makagon: has joined #RubyOnRails
[14:44:59] PedramT: has joined #RubyOnRails
[14:45:03] B1n4r10: has joined #RubyOnRails
[14:49:08] DeXterbed: has joined #RubyOnRails
[14:50:55] sterl: has joined #RubyOnRails
[14:51:27] sterl: has left #RubyOnRails: ()
[14:52:12] recurrence: has joined #RubyOnRails
[14:52:27] recurrence: Is there a find_or_initialize that matches considering database column precision?
[14:52:40] recurrence: I'm guessing misses because my ruby code has better precision than the saved record in postgres :)
[14:53:02] DoubleMalt: has joined #RubyOnRails
[14:55:14] startupality: has joined #RubyOnRails
[14:55:50] FailBit: marilize leguana
[14:56:42] ericdykstra: has joined #RubyOnRails
[14:57:09] FailBit: also make sure to bundle update if you use devise
[14:57:16] FailBit: it got cve'd
[14:57:23] FailBit: http://blog.plataformatec.com.br/2016/01/improve-remember-me-cookie-expiration-in-devise/
[15:00:28] herbst: has joined #RubyOnRails
[15:00:28] herbst: has joined #RubyOnRails
[15:01:04] krz: has joined #RubyOnRails
[15:02:32] mattt: hi all, asked a few hours ago but those online weren't sure ... i'm trying to do a very basic ajax request (see https://gist.github.com/mattt416/29bad42cf1fc144b0d15), the controller action is being called but the associated viewed.js.erb isn't firing, what am i doing wrong?
[15:03:03] hannelita: has joined #RubyOnRails
[15:03:20] dionysus69: has joined #RubyOnRails
[15:03:22] mordof_work: has joined #RubyOnRails
[15:03:55] roshanavand: has joined #RubyOnRails
[15:05:42] FailBit: who even uses RJS anymore
[15:06:30] mattt: FailBit: disclaimer, no idea what i'm doing
[15:06:58] User458764: has joined #RubyOnRails
[15:07:07] arup_r1: mattt: can you add the rails dev log also for this particular action only..
[15:07:36] mattt: arup___: the log states that it renders viewed.js.erb, nothing else of interest
[15:07:40] rromanchuk: has joined #RubyOnRails
[15:10:08] adavia: has joined #RubyOnRails
[15:10:17] mattt: FailBit: best to just write all the ajax stuff manually?
[15:10:21] momomomomo: has joined #RubyOnRails
[15:10:41] arup_r1: mattt: dunno, your approach to debug this, is ok. But why in the browser console, you are not seeing 'test' no idea.
[15:11:03] lacrymology: is there a way to update a model attribute without touching updated_at?
[15:11:05] arup_r1: FailBit: I use it.
[15:11:53] arup_r1: lacrymology: http://stackoverflow.com/a/10824249
[15:11:56] FailBit: lacrymology: @model.update_columns
[15:12:25] Coldblackice: has joined #RubyOnRails
[15:12:27] eljimmy: has joined #RubyOnRails
[15:12:53] bmalum_: has joined #RubyOnRails
[15:12:56] FailBit: eg @model.update_columns(name: "PPPP")
[15:13:12] gbgdev: has joined #RubyOnRails
[15:14:21] startupality: has joined #RubyOnRails
[15:15:37] bmalum_: has left #RubyOnRails: ()
[15:15:49] bmalum: has joined #RubyOnRails
[15:16:42] sbarg: has joined #RubyOnRails
[15:16:49] sbarg: has left #RubyOnRails: ()
[15:19:42] lacrymology: FailBit: sorry, different question. I looked in the docs but I can't figure it out. Do you know if .touch(:somethig) changes updated_at as well?
[15:20:00] lacrymology: I'll test that, nvm
[15:20:01] FailBit: uh, probably
[15:20:55] lacrymology: ok, update_columns, then
[15:21:06] VeryBewitching: has joined #RubyOnRails
[15:21:44] arup_r1: VeryBewitching: hi.. :)
[15:22:01] chouhoulis: has joined #RubyOnRails
[15:22:09] rickmasta: has joined #RubyOnRails
[15:22:46] VeryBewitching: Oh hey FailBit, what was the cloud host you had for images? I was trying to find it yesterday but I didn't record it.
[15:23:34] FailBit: we don't use a cloud host for anything
[15:23:42] FailBit: too pricey
[15:24:34] FailBit: our physical server host is OVH - images are served from a 4TB (2??2) main disk and cached through cloudflare
[15:26:14] VeryBewitching: You had mentioned at one point a free platform images could be hosted on
[15:26:32] tubbo: imgur.com ;)
[15:26:34] FailBit: I don't remember that
[15:26:40] fmcgeough: has joined #RubyOnRails
[15:26:44] Papierkorb: free hosting lel
[15:26:54] FailBit: and cloud stuff is super fucking expensive for our scale
[15:27:16] FailBit: 1.9TB of images, 75TB of image traffic per month
[15:27:35] theblang: has joined #RubyOnRails
[15:27:38] FailBit: (terabytes not bits)
[15:28:13] VeryBewitching: Maybe I was drunk that day, nvm :D
[15:28:13] Bloomer: has joined #RubyOnRails
[15:28:53] FailBit: vs cloudflare which is free and this cheap ovh sever which has unmetered bandwidth for 250???/mo
[15:29:12] FailBit: S3 would be $10k per month
[15:32:03] bmalum: has joined #RubyOnRails
[15:32:09] FailBit: any CDN worth their salt already has unmetered bandwidth at all their PoPs so them charging you for bits transferred is literally squeezing free money from you
[15:32:22] FailBit: always keep that in mind
[15:33:07] VeryBewitching: Well they have an investment in that bandwidth too, it's not "free" for them.
[15:33:33] VeryBewitching: It doesn't cost them nearly as much as it does you, though, I agree.
[15:33:39] Papierkorb: Bandwidth isn't that expensive if you're peering
[15:34:00] VeryBewitching: That would depend on how much bandwidth, there *are* limits to copper.
[15:34:13] Papierkorb: Who's still using copper ..?
[15:34:50] roshanavand: has joined #RubyOnRails
[15:34:59] VeryBewitching: There's still copper connecting portions of the internet; it's being replaced but that's not done yet.
[15:35:15] tubbo: bandwidth is expensive in the US for other reasons
[15:35:21] podman: has joined #RubyOnRails
[15:35:31] tubbo: not sure how it is in canada
[15:35:56] Papierkorb: VeryBewitching: tbh, as someone who would be paying a CDN to deliver assets .. I don't care. That's their problem to handle :)
[15:36:30] VeryBewitching: Canada doesn't particularly have a huge number of data centers, but the ones we do have are connected via a East->West buried fiber.
[15:38:33] drptbl: has joined #RubyOnRails
[15:39:00] sonofdirt: has joined #RubyOnRails
[15:40:56] FailBit: I'm not saying that they shouldn't charge you
[15:41:05] FailBit: I'm just saying they should be honest about it
[15:41:38] sarink: has joined #RubyOnRails
[15:41:52] jkamenik: has joined #RubyOnRails
[15:43:03] VeryBewitching: I think the cost of internet access has only gone up in Canada since the introduction of high-bandwidth cable/fiber
[15:43:30] VeryBewitching: Basic package from my provider is $60.00/mo. @ 2GB cap
[15:43:43] polishdub: has joined #RubyOnRails
[15:43:48] VeryBewitching: $0.50/10Mb beyond that
[15:44:01] skinofstars: has joined #RubyOnRails
[15:44:05] FailBit: that's fucked
[15:44:10] VeryBewitching: So I pay $100.00/mo. to avoid having a cap
[15:44:22] skinofstars: is it normal for a root_path to not have a (.:format) options?
[15:44:28] FailBit: $60/mo with no cap
[15:44:30] FailBit: skinofstars: yes
[15:44:31] VeryBewitching: skinofstars: Yes
[15:44:51] skinofstars: ahh... any way of resolving that?
[15:45:39] FailBit: you'll need to ask API users to hit the route that root resolves to
[15:45:54] skinofstars: yeah. ok. thanks :)
[15:45:54] roshanavand: has joined #RubyOnRails
[15:46:23] puria: has joined #RubyOnRails
[15:47:04] shibabu: has joined #RubyOnRails
[15:47:12] Papierkorb: It amazes me how expensive internet plans are in the US and canada
[15:47:13] bklane: has joined #RubyOnRails
[15:47:31] bronson: has joined #RubyOnRails
[15:47:35] tubbo: Papierkorb: yeah...it's a combination of a very few companies doing all the legwork initially and the distance between people.
[15:47:41] Papierkorb: If someone tried to charge ???100/mo for internet in Germany with a cap and slow speed and all, we'd laugh at you
[15:48:05] VeryBewitching: Papierkorb: It's that it continues to rise that baffles me. I don't know someone who isn't connected via broadband; obviously the capacity exists, why doesn't this cost come down?
[15:48:12] roshanavand: has joined #RubyOnRails
[15:48:23] tubbo: Papierkorb: for example, it probably *doesn't* cost comcast $50/mo to send internet to people's homes in a medium-sized metropolis like philadelphia...but what about the people out in the farms in lancaster? all the people in central PA? nebraska?
[15:48:28] tubbo: the prices are about the same everywhere.
[15:48:31] VeryBewitching: Papierkorb: For you it would be ???40.00
[15:48:35] Papierkorb: VeryBewitching: Because you're still paying
[15:48:38] tubbo: the way they do that is by basically overcharging some people and undercharging others.
[15:48:59] Papierkorb: VeryBewitching: ???30/mo, consistent 100MBit/s down 6MBit up, no cap
[15:49:05] VeryBewitching: Papierkorb: There are only three companies I can get broadband from, it's not that I'm still paying, it's that there's hardly an alternative.
[15:49:21] VeryBewitching: Papierkorb: Ya, so cost-wise, we're paying close to the same thing
[15:49:23] Papierkorb: VeryBewitching: not that much better in Germany in that regard though.
[15:49:38] tubbo: but i agree with you, i think the internet will eventually be treated as a utility. once the government realizes that it's in their best interest to give everyone free broadband
[15:49:58] VeryBewitching: Oh, maybe not, we're not too far off the Euro nowadays.
[15:50:09] tubbo: or, at least, give people enough free access to get shit done the government needs them to do, like taxes, social security, etc.
[15:50:29] tubbo: doesn't Germany subsidize their internet?
[15:50:46] Papierkorb: There's the Deutsche Telekom, then cable providers offer internet too for competetive service and price, and after that .. nothing really anymore. Some mobile carriers try to sell mobile internet for home use, but that's ultra slow, data caps, and expensive. So "ahahah no".
[15:50:48] VeryBewitching: tubbo: I pay $100/mo internet, $150/mo. water, $150/mo. power, $125/mo. natural gas
[15:50:53] amortimer: has joined #RubyOnRails
[15:50:55] roshanavand: has joined #RubyOnRails
[15:50:59] platzhirsch: has left #RubyOnRails: ()
[15:51:53] Papierkorb: VeryBewitching: Just alone those insane prices is enough to me not even thinking about doing anything in the US or canada at all. How can you even pay all that? I pay a fraction for each here
[15:52:18] disgrntld: has joined #RubyOnRails
[15:52:26] mcr-credil: has joined #RubyOnRails
[15:52:50] VeryBewitching: Papierkorb: That's not including food, housing, travel, prescriptions and funny money
[15:53:14] VeryBewitching: My monthly costs are ~$3K
[15:54:33] tubbo: jesus christ
[15:54:36] tubbo: VeryBewitching: $150/mo for water?
[15:54:45] greengriminal: has joined #RubyOnRails
[15:54:48] tubbo: where do you live, Burning Man? ;)
[15:54:55] Papierkorb: A third of that and you have paid everything for in a bigger city ..
[15:55:10] tubbo: Papierkorb: yeah, but then you have to pay rent ;)
[15:55:27] Papierkorb: tubbo: including rent, I was below that
[15:55:34] VeryBewitching: tubbo: The city I live in grew faster than the water service.
[15:55:39] k13nox: has joined #RubyOnRails
[15:55:45] tubbo: Papierkorb: so in other words, you pay your government for internet. it costs as much as the government wants you to pay. which right now, is cheap. but it might not be always.
[15:56:04] Papierkorb: tubbo: I do what? Since when?
[15:56:06] tubbo: water is like $20/month
[15:56:18] VeryBewitching: Also, our power/water companies used to be government-run and have since been privatized so we're now in "debt repayment" mode because our government mismanaged everything.
[15:56:20] Papierkorb: tubbo: I don't pay my gov for internet Oo
[15:56:28] tubbo: Papierkorb: wait, isn't Deutsche Telekom a gov't-sponsored corp?
[15:56:46] tubbo: if not that's weird that they just have a monopoly..
[15:57:17] Papierkorb: tubbo: Hasn't been for a long time. They're getting money to improve their infrastructure sometimes, which they manage to 'waste' (like that wasn't the intention). But I'm not with the Telekom idiots
[15:57:32] Papierkorb: They tried to introduce data caps and got that shut down by court order.
[15:57:54] Papierkorb: My ISP tried to pull this one too recently and that got so much attention, three days later they "changed their minds"
[15:57:55] atomical_: has joined #RubyOnRails
[15:58:35] tubbo: oh i didn't see the cable provider stuff
[15:58:37] tubbo: never mind
[15:59:04] tubbo: but yeah, Internet providers feel like their "owed" this money because they laid cables once like 30 years ago
[15:59:05] Nilbus: has joined #RubyOnRails
[16:00:25] momomomomo: has joined #RubyOnRails
[16:01:58] bklane: has joined #RubyOnRails
[16:03:20] mary5030: has joined #RubyOnRails
[16:04:00] mordof_work: has joined #RubyOnRails
[16:04:08] mary5030: has joined #RubyOnRails
[16:04:42] VeryBewitching: We just have to figure out how to survive another 300 years so we can enjoy the luxuries of the Enterprise D
[16:05:10] bklane_: has joined #RubyOnRails
[16:06:21] startupality: has joined #RubyOnRails
[16:06:29] Honeycomb: has joined #RubyOnRails
[16:10:34] Scripore: has joined #RubyOnRails
[16:12:08] djbkd: has joined #RubyOnRails
[16:14:02] skinofstars: has left #RubyOnRails: ()
[16:14:13] Z00t: has joined #RubyOnRails
[16:15:46] Rodya_: has joined #RubyOnRails
[16:16:39] sonofdirt: has joined #RubyOnRails
[16:19:55] tubbo: captain's log stardate 2455.71.34.7...we were going to make a close approach to the orion nebula, but rubygems.org is down and we can't `bundle install`. our tracking systems are therefore offline.
[16:20:22] VeryBewitching: I just wanna play WoW's 68th expansion over subspace
[16:20:43] moresilenter: has joined #RubyOnRails
[16:22:56] moresilenter: I've been poking around and it appears like the current release of sprockets doesn't support source maps. does anyone know if this is true? am I just being dumb
[16:23:18] moresilenter: (trying to use scss files in my chrome developer toolkit)
[16:24:05] Spami_: has joined #RubyOnRails
[16:24:29] herbst: has joined #RubyOnRails
[16:24:45] bklane: has joined #RubyOnRails
[16:25:28] User458764: has joined #RubyOnRails
[16:26:20] lacrymology: has joined #RubyOnRails
[16:26:35] Oliphaunte: has joined #RubyOnRails
[16:26:47] bklane_: has joined #RubyOnRails
[16:28:02] workmad3: moresilenter: sourcemaps in sprockets are patchy at best
[16:29:49] momomomomo: has joined #RubyOnRails
[16:32:41] moresilenter: workmad3: that's what I feared. thanks for the intel
[16:32:44] Spami_: has joined #RubyOnRails
[16:33:12] pyemkey: has joined #RubyOnRails
[16:34:29] bklane: has joined #RubyOnRails
[16:34:48] chouhoulis: has joined #RubyOnRails
[16:35:06] hanneli: has joined #RubyOnRails
[16:35:27] JohnT: has joined #RubyOnRails
[16:35:45] pyemkey: Hello. Anyone know a rails project which use affiliation system?
[16:36:08] dionysus69: will gems work on rails 5 the same way they work now or all of them need to be altered?
[16:37:22] bklane_: has joined #RubyOnRails
[16:37:25] matthewd: dionysus69: It depends on the gem
[16:39:00] Pupeno: has joined #RubyOnRails
[16:39:00] Pupeno: has joined #RubyOnRails
[16:42:04] safety_cut: has joined #RubyOnRails
[16:43:51] PedramT: has joined #RubyOnRails
[16:44:32] bklane: has joined #RubyOnRails
[16:44:53] ldnunes_: has joined #RubyOnRails
[16:45:00] Rodya_: has joined #RubyOnRails
[16:45:38] DonOtreply: has joined #RubyOnRails
[16:48:31] melter: has joined #RubyOnRails
[16:48:36] bklane: has joined #RubyOnRails
[16:51:24] jottr: has joined #RubyOnRails
[16:51:53] momomomomo: has joined #RubyOnRails
[16:51:57] sarink: has joined #RubyOnRails
[16:53:28] beingjohnm: I'm having an issue with one section of my app where I'm getting values of "-$0". I tried this (http://stackoverflow.com/questions/8711055/how-can-i-efficiently-scrub-rubys-negative-zero-float) and it doesn't seemt to be working. Anybody know of a reson why that wouldn't work? If no, then the answer is probably somewhere else in my code.
[16:56:35] DonOtreply: has joined #RubyOnRails
[16:56:51] bklane: has joined #RubyOnRails
[16:58:52] Quintin: has joined #RubyOnRails
[16:59:08] bklane_: has joined #RubyOnRails
[16:59:11] ericdykstra: has joined #RubyOnRails
[17:00:02] mordof_work: has joined #RubyOnRails
[17:02:13] beingjohnm: and the trouble is I'm having difficulty recreating the problem locally but it shows up on Heroku
[17:02:20] cschneid_: has joined #RubyOnRails
[17:02:24] FooMunki: has joined #RubyOnRails
[17:02:37] sarink: has joined #RubyOnRails
[17:03:59] alex88: has joined #RubyOnRails
[17:04:47] PedramT: has joined #RubyOnRails
[17:04:56] mag42c: has joined #RubyOnRails
[17:05:32] mices: when using polymorphic associations reference the real table in routes.rb or the pseudo table?
[17:06:47] Graphettion: has joined #RubyOnRails
[17:07:58] djbkd: has joined #RubyOnRails
[17:08:08] corioliss: has joined #RubyOnRails
[17:08:58] [Butch]: has joined #RubyOnRails
[17:10:00] arup_r: has joined #RubyOnRails
[17:14:09] bklane: has joined #RubyOnRails
[17:15:47] pulgolino: has joined #RubyOnRails
[17:16:04] tildes: has joined #RubyOnRails
[17:16:27] manfrin: has joined #RubyOnRails
[17:19:27] hannelita: has joined #RubyOnRails
[17:22:54] rickmasta: has joined #RubyOnRails
[17:23:14] baweaver: has joined #RubyOnRails
[17:24:41] Hates_: beingjohnm: have you tried -0.0.abs ?
[17:25:55] mordof_work: has joined #RubyOnRails
[17:27:49] beingjohnm: Hates_: trying now. I'm not sure if the value.zero? test is catching the negative zero
[17:31:01] benlieb: has joined #RubyOnRails
[17:33:31] nertzy2: has joined #RubyOnRails
[17:34:12] k13nox: has joined #RubyOnRails
[17:34:21] Z00t: has joined #RubyOnRails
[17:34:47] wldcordeiro: has joined #RubyOnRails
[17:35:16] PedramT: has joined #RubyOnRails
[17:36:16] beingjohnm: Hates_: yeah, the check if the value is zero is not working
[17:36:29] beingjohnm: so not able to apply abs to it
[17:36:36] Scripore: has joined #RubyOnRails
[17:37:35] chadhs: has joined #RubyOnRails
[17:37:45] beingjohnm: and the check seems to be working locally but is not working on heroku which is seriously frustrating
[17:39:57] lacrymology: has joined #RubyOnRails
[17:39:58] slash_quit: negative zero?
[17:40:21] slash_quit: is that a thing?
[17:40:53] slash_quit: ... or does that just mean #zero? #=> false, negative zero?
[17:40:58] beingjohnm: slash_quit: It shouldn't be but apparently in Ruby if you do "0 * -1" you get "-0"
[17:41:26] beingjohnm: I'm having an issue with number_to_currency returning "-$0"
[17:41:41] slash_quit: beingjohnm: what should it return?
[17:42:06] Limix: has joined #RubyOnRails
[17:42:36] slash_quit: beingjohnm: abs should work... or is -$1 something you might encounter?
[17:42:51] slash_quit: encounter/need-to-support
[17:42:55] beingjohnm: slash_quit: yeah, it is an accounting app so plenty of negative numbers
[17:43:17] beingjohnm: slash_quit: the issue seems to be that on heroku doing a check "value.zero?" isn't working
[17:44:45] slash_quit: beingjohnm: can you gist the code that isn't working?
[17:45:21] MarkAValdez: has joined #RubyOnRails
[17:46:33] slash_quit: ... i also don't really know what you mean by isn't working... it should return true or false, are you saying it's not doing that? or it's doing that but it's wrong?
[17:46:41] beingjohnm: slash_quit: https://gist.github.com/willjohnson/0bd8508b076e28acd635
[17:47:01] beingjohnm: Locally I see "zero value" in the logs but that is not happening on heroku
[17:47:49] aldodelgado: has joined #RubyOnRails
[17:48:06] slash_quit: beingjohnm: i don't think puts logs.
[17:48:58] slash_quit: Loggers log, http://guides.rubyonrails.org/debugging_rails_applications.html#the-logger
[17:48:59] beingjohnm: slash_quit: I saw puts in an example here https://devcenter.heroku.com/articles/logging
[17:49:23] slash_quit: ah... go heroku!
[17:49:29] shibabu: has joined #RubyOnRails
[17:49:33] bronson: has joined #RubyOnRails
[17:49:54] PedramT: has joined #RubyOnRails
[17:50:17] kara_sweets: has joined #RubyOnRails
[17:50:46] slash_quit: beingjohnm: can we confirm it's #zero? by changing that to == 0 ?
[17:51:57] crdpink: has joined #RubyOnRails
[17:54:01] slash_quit: beingjohnm: i'm more inclined to think the code just hasn't been deployed, than to think #zero? is failing us... i suspect #zero? is a sort of red herring for ya
[17:55:31] bklane: has joined #RubyOnRails
[17:55:57] beingjohnm: slash_quit: testing == 0 works locally but not on heroku
[17:56:23] beingjohnm: slash_quit: I can do heroku run bash and see that the helper is there
[17:57:39] rakm: has joined #RubyOnRails
[17:57:53] Scripore: has joined #RubyOnRails
[17:58:47] DonOtreply_: has joined #RubyOnRails
[17:59:09] rtail: has joined #RubyOnRails
[17:59:17] worknick: has joined #RubyOnRails
[17:59:17] beingjohnm: I'm going to ask heroku
[17:59:29] beingjohnm: Already spent four hours on this
[17:59:38] worknick: how can I change the path of this <%= link_to 'Like', vote_pet_activity_path(pa), class: "like btn btn-primary", id: lkbtn, method: :put, :remote => true %> on its on click from jquery?
[18:00:06] yardenbar: has joined #RubyOnRails
[18:01:07] mikecmpbll: has joined #RubyOnRails
[18:04:27] dopie: has joined #RubyOnRails
[18:04:31] roshanavand: has joined #RubyOnRails
[18:05:12] tubbo: worknick: not sure what you're asking
[18:05:20] herbst: has joined #RubyOnRails
[18:05:49] rakm: has joined #RubyOnRails
[18:06:49] mrgreenfur: worknick: you can do anything youw ant to it via jquery once it???s rendered to hte browser
[18:07:19] djbkd: has joined #RubyOnRails
[18:07:38] mrgreenfur: the rails stuff is all server side, so you can just look at the page and write jquery, e.g. $(???#ikbtn???).click(function(){});
[18:08:20] rtail_: has joined #RubyOnRails
[18:09:36] darkxploit: has joined #RubyOnRails
[18:10:09] pyemkey: has joined #RubyOnRails
[18:10:49] hanneli: has joined #RubyOnRails
[18:11:53] bklane: has joined #RubyOnRails
[18:13:07] sonofdirt: has joined #RubyOnRails
[18:14:17] deweysdecimal: has joined #RubyOnRails
[18:16:04] rtl: has joined #RubyOnRails
[18:16:31] neohunter: has joined #RubyOnRails
[18:16:41] cullen: has joined #RubyOnRails
[18:16:42] neohunter: rails or bundle does some kind of cache to gem source files?
[18:21:13] aegis3121: has joined #RubyOnRails
[18:21:18] choke: has joined #RubyOnRails
[18:22:08] craigp: has joined #RubyOnRails
[18:24:23] moei: has joined #RubyOnRails
[18:25:19] nertzy2: has joined #RubyOnRails
[18:25:52] kara_sweets: has joined #RubyOnRails
[18:26:23] deweysdecimal: has joined #RubyOnRails
[18:27:17] Oliphaunte: has joined #RubyOnRails
[18:27:50] baweaver: has joined #RubyOnRails
[18:28:32] embr: has left #RubyOnRails: ("Leaving")
[18:29:24] kadoppe: has joined #RubyOnRails
[18:30:41] safety_cut: has joined #RubyOnRails
[18:30:47] tubbo: neohunter: yes, in $YOUR_BUNDLE_FOLDER/cache
[18:30:50] tubbo: neohunter: mine is vendor/bundle/cache
[18:31:18] tubbo: those are the .gem files that it untars into vendor/bundle/gems, which is actually where the *.rb source code lives and is interpreted from
[18:31:28] tubbo: you can `bundle open GEM_NAME` or `bundle show GEM_NAME` to get access to those files
[18:32:40] safety_cut: has joined #RubyOnRails
[18:33:04] yardenbar: has joined #RubyOnRails
[18:33:08] sneakerhax: has joined #RubyOnRails
[18:33:15] neohunter: tubbo tahnks! any bundle command to clear that cache?
[18:34:26] tubbo: neohunter: !xy
[18:34:26] helpa: neohunter: It seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[18:34:35] Oliphaunte: has joined #RubyOnRails
[18:36:16] neohunter: so.. my problem is that i edit a source file of a gem, and it doesnt get updated.
[18:36:28] neohunter: i need to do some small testing
[18:36:40] neohunter: but after couple of minutes, my changes on the gem source file works
[18:36:50] neohunter: is not a web server, is a script runned by rails runner
[18:36:54] tubbo: neohunter: that's interesting. are you using Spring by any chance?
[18:36:58] jottr_: has joined #RubyOnRails
[18:37:06] neohunter: nop, rails just installed.
[18:37:19] neohunter: i added a raise inside a method in the gem source file.
[18:37:21] neohunter: dont worked
[18:37:30] tubbo: neohunter: so if you type `bin/spring stop`, what happens?
[18:37:34] neohunter: 10 minutes later the raise worked.
[18:37:43] smathy: has joined #RubyOnRails
[18:37:45] roshanavand: has joined #RubyOnRails
[18:37:52] neohunter: spring stopped
[18:37:56] neohunter: wth is spring
[18:38:22] neohunter: mmm is working even if no rails server is running??
[18:38:53] jkamenik: has joined #RubyOnRails
[18:38:58] neohunter: absolutely interesting
[18:39:04] neohunter: so solution is to remove from gemfile..
[18:39:08] tubbo: neohunter: haha guess you are using spring :)
[18:39:21] neohunter: yep it worked
[18:39:27] neohunter: ha, incredible!
[18:39:28] tubbo: neohunter: you can do whatever you want, but typically spring won't fuck you up unless you're going into gems and editign their code
[18:39:32] felixal: has joined #RubyOnRails
[18:39:43] tubbo: neohunter: because `rails`, `rake`, `rspec`, et. al., won't boot a new instance of the app every time it runs now.
[18:39:46] Pupeno: has joined #RubyOnRails
[18:39:47] tubbo: that makes things a LOT faster
[18:39:54] neohunter: i understand
[18:40:04] neohunter: interesting!
[18:40:30] tubbo: ACTION uses spring, a lot of people don't.
[18:40:40] tubbo: i do recommend gem 'spring-watcher-listen' so that you don't have to spring stop so often
[18:41:13] tbuehlmann: nowadays it's enough to additionally list 'listen' in your gemfile, iirc
[18:42:21] tbuehlmann: can't find it in the repo though, where did I read that?
[18:43:49] tubbo: tbuehlmann: the listen gem is a more general-purpose library for watching a dir for changes, basically it wraps existing OS infrastructure for that purpose. spring-watcher-listen is the gem that integrates listen into spring.
[18:43:57] tubbo: you do not also need to specify the listen gem when using spring-watcher-listen, fwiw.
[18:44:11] tbuehlmann: I know what listen is
[18:44:12] baweaver: has joined #RubyOnRails
[18:44:29] tbuehlmann: I was of the opinion spring would use listen if you listed it
[18:44:50] JusticeFries: has joined #RubyOnRails
[18:45:20] tubbo: oh! no, it can't
[18:45:34] tubbo: that would essentially couple Rails to a handful of architectures by default
[18:45:37] tbuehlmann: yeah, couldn't find it either, but I was pretty sure about that
[18:45:48] tubbo: it might have back in the day but definitely not since it was integrated into rails
[18:46:01] tubbo: ACTION used zeus back when spring was its own gem b/c spring was confusing to use lol
[18:46:24] baweaver: has joined #RubyOnRails
[18:46:27] Oliphaunte: has joined #RubyOnRails
[18:46:43] FailBit: spring is crap
[18:47:17] tbuehlmann: strong opinions are crap
[18:47:26] tubbo: poop is crap
[18:51:40] arathald: has joined #RubyOnRails
[18:51:48] cnk: has joined #RubyOnRails
[18:51:52] Oliphaunte: has joined #RubyOnRails
[18:52:56] NBarnes: has joined #RubyOnRails
[18:56:03] safety_cut: has joined #RubyOnRails
[18:56:40] Bloomer: has joined #RubyOnRails
[18:56:41] cschneid_: has joined #RubyOnRails
[18:57:41] LeoDee: has joined #RubyOnRails
[18:57:58] sbarg1: has joined #RubyOnRails
[18:58:40] jottr: has joined #RubyOnRails
[18:59:54] alexhartley: has joined #RubyOnRails
[19:00:17] sonofdirt: has joined #RubyOnRails
[19:01:43] Lewix: has joined #RubyOnRails
[19:02:23] Lewix: is there a way to explicitly set the foreign keys in the model just like we could set the PK on a model
[19:07:21] cnk: Lewix: yes: http://guides.rubyonrails.org/active_record_migrations.html#foreign-keys
[19:08:16] Pazician: has joined #RubyOnRails
[19:09:19] jkamenik: has joined #RubyOnRails
[19:09:51] choke: has joined #RubyOnRails
[19:09:53] aclearman037: has joined #RubyOnRails
[19:13:24] meoblast001: has joined #RubyOnRails
[19:13:49] safety_cut: has joined #RubyOnRails
[19:14:30] Lewix: cnk: not what im referring to
[19:14:57] cnk: OK rephrase your question
[19:16:37] nerium: has joined #RubyOnRails
[19:16:55] Lewix: When we work with legacy db, we can set the primary key in a given model as such self.primary_key, the question was - do we have something similar for foreign_keys
[19:18:04] cnk: the association methods, e.g. belongs_to, have parameters that let you set the name of the column / field you are using to make the link
[19:19:01] Frem: has joined #RubyOnRails
[19:19:08] cnk: look at section 4.1.2 of http://guides.rubyonrails.org/association_basics.html#belongs-to-association-reference
[19:19:34] Lewix: cnk: right, it will not be useful in my case. thanks
[19:20:41] Lewix: does tiny_tds has an irc channel?
[19:20:43] cnk: Really? surprises me
[19:21:11] cnk: I found those options covered everything I needed dealing with my legacy schema
[19:21:20] baweaver: has joined #RubyOnRails
[19:21:37] cnk: do you have multi column primary keys or something?
[19:22:34] Lewix: cnk: I work with an old database and they didn't bother to put the foreign keys on some of the tables.... the auto generated support provided for associations is useless
[19:22:59] matthewd: Lewix: I really don't see how cnk's answer doesn't address your question
[19:23:34] aost: has joined #RubyOnRails
[19:23:37] cnk: Rails doesn't care if you have not explicitly defined a key relationship between tables at the db level
[19:23:54] rickmasta: has joined #RubyOnRails
[19:25:15] manfrin: has joined #RubyOnRails
[19:27:01] ewnd9: has joined #RubyOnRails
[19:27:06] ericdykstra: has joined #RubyOnRails
[19:28:07] momomomomo: has joined #RubyOnRails
[19:29:44] ur5us: has joined #RubyOnRails
[19:30:10] juddey: has joined #RubyOnRails
[19:30:41] craigp: has joined #RubyOnRails
[19:31:26] Lewix: cnk: really? I must be missing something then - I couldn't get it to work properly I assumed the ORM didn't make the connection - I was even tempted to look into the has_many codebase
[19:31:34] Lewix: matthewd: cnk , I'll try again
[19:31:41] edwinvdgraaf: has joined #RubyOnRails
[19:32:03] PedramT: has joined #RubyOnRails
[19:32:45] edwinvdgraaf: has joined #RubyOnRails
[19:33:38] Oliphaunte: has joined #RubyOnRails
[19:35:13] sarink: has joined #RubyOnRails
[19:36:25] cnk: good luck
[19:36:47] ewnd9: has joined #RubyOnRails
[19:37:14] Oliphaunte: has joined #RubyOnRails
[19:37:47] norfumpit: has joined #RubyOnRails
[19:38:44] sandstrom: has joined #RubyOnRails
[19:38:46] symbole: has joined #RubyOnRails
[19:40:00] Oliphaunte: has joined #RubyOnRails
[19:41:57] hahuang65: has joined #RubyOnRails
[19:44:15] bklane: has joined #RubyOnRails
[19:44:53] Encapsulation: has joined #RubyOnRails
[19:45:00] arup_r: has joined #RubyOnRails
[19:46:11] hannelita: has joined #RubyOnRails
[19:47:59] kadoppe: has joined #RubyOnRails
[19:48:07] badoo: has joined #RubyOnRails
[19:49:50] Radar: GOOD MORNING!
[19:50:22] juddey: Happy Friday, Radar.
[19:50:32] michael_mbp: Morning mate o/
[19:51:39] bronson: has joined #RubyOnRails
[19:52:13] shibabu: has joined #RubyOnRails
[19:53:17] Muz: has joined #RubyOnRails
[19:56:46] maxx88: can someone take a look at this code and tell me what I am doing wrong. I am building a template.rb file for new rails apps and have tried multiple versions of the thor actions and cant get insert_into_file to work. https://gist.github.com/KudosX/7dda2908b05cd5d25980
[19:57:13] safety_cut: has joined #RubyOnRails
[19:57:44] Pazician: has joined #RubyOnRails
[19:58:27] Oliphaunte: has joined #RubyOnRails
[19:59:35] sarink: has joined #RubyOnRails
[20:00:56] tubbo: maxx88: the 3rd iteration of that is the one i used and it seemed to work
[20:01:11] tubbo: inject_into_file 'path/to/file.rb', 'the code', after: "some other code\n"
[20:01:24] Oliphaunte: has joined #RubyOnRails
[20:01:27] tubbo: i needed the \n otherwise it would put the new code right next to the `after:` text, not on a new line.
[20:01:44] tubbo: maxx88: alsoooo i'm not sure '' works with \n, i think you need ""
[20:02:04] tubbo: so after: "<head>\n", not after: '<head>\n'
[20:03:04] blackmes1: has joined #RubyOnRails
[20:03:12] User458764: has joined #RubyOnRails
[20:03:12] maxx88: tubbo: thanks, let me play around with your suggestions, i did try double quotes, didn???t try inject but, should be same as insert, been banging my head on my template file for a week now. just breaking it up in little pieces until it works.
[20:05:02] JohnT: has joined #RubyOnRails
[20:05:07] djellemah_: has joined #RubyOnRails
[20:05:41] LOLCANADA: has joined #RubyOnRails
[20:06:47] herbst: has joined #RubyOnRails
[20:06:51] pyemkey: has joined #RubyOnRails
[20:07:32] deweysdecimal: has joined #RubyOnRails
[20:07:41] fox_mulder_cp: has joined #RubyOnRails
[20:09:25] arup_r: what is the inject_into_file ? I never know it..
[20:10:08] lxsameer: has joined #RubyOnRails
[20:10:08] lxsameer: has joined #RubyOnRails
[20:10:10] arBmind: has joined #RubyOnRails
[20:10:28] Radar: I believe it's a thor helper
[20:10:41] quazimodo: has joined #RubyOnRails
[20:10:45] quazimod1: has joined #RubyOnRails
[20:12:06] tubbo: yeah it's a thor helper used a lot in rails generators
[20:12:16] maxx88: arup_r: http://guides.rubyonrails.org/generators.html section 9.4
[20:12:45] maxx88: but examples are different in thor http://www.rubydoc.info/github/wycats/thor/Thor/Actions
[20:13:28] agit0: has joined #RubyOnRails
[20:14:21] arup_r: let me see maxx88
[20:15:01] yfeldblum: has joined #RubyOnRails
[20:15:03] cicloid: has joined #RubyOnRails
[20:15:40] FernandoBasso: has joined #RubyOnRails
[20:16:13] sbarg: has joined #RubyOnRails
[20:16:17] Cohedrin: has joined #RubyOnRails
[20:16:26] nocontrol: has joined #RubyOnRails
[20:16:53] Ratler: has joined #RubyOnRails
[20:16:56] Ratler: has joined #RubyOnRails
[20:17:11] cicloid: has joined #RubyOnRails
[20:17:41] kara_sweets: has joined #RubyOnRails
[20:17:45] nocontrol: http://stackoverflow.com/questions/34933459/parse-output-from-bash-script-to-rails can someone please help ?
[20:19:28] ascarter: has joined #RubyOnRails
[20:19:52] FailBit: you don't know how to use ruby
[20:20:24] FailBit: if you did you would know that you need to unmarshal the string (ie using JSON.parse)
[20:21:46] maxx88: tubbo: thanks it was <head>\n that worked vs. <head> \n, i had white space inbetween the \n, like a famous philosopher said: change the way you look at things and the things you look at will change
[20:22:19] arup_r: I liked it maxx88 :)
[20:22:28] FailBit: no philosophizing allowed
[20:22:30] FailBit: go back to work
[20:23:37] baweaver: has joined #RubyOnRails
[20:26:33] lemur: has joined #RubyOnRails
[20:26:36] aegis3121: has joined #RubyOnRails
[20:27:03] pulgalipe: has joined #RubyOnRails
[20:28:17] wethu: has joined #RubyOnRails
[20:28:37] maxx88: rhizome: had to look up minaswan, good to know. sounds like zoroastrianism there mantra is good thoughts, good words, good deeds
[20:28:51] deweysdecimal: Rails beginner here, I have a Challenge model and a Tag model that are joined through: :challenge_tags, and I'm trying to require that each challenge must have at least one tag, but I haven't been able to figure out the problem with my code
[20:28:59] deweysdecimal: here is a gist with the relevant code: https://gist.github.com/goronfreeman/9b778419bdef77d18b2f
[20:29:07] FailBit: oh boy join tables
[20:29:19] deweysdecimal: haha, that seems to be everyone's reaction
[20:29:43] sonofdirt: has joined #RubyOnRails
[20:30:55] deweysdecimal: when I submit the form it is trying to create a new tag instead of a new challenge_tag, and I'm not allowing the creation of tags
[20:31:01] lorn: has joined #RubyOnRails
[20:31:18] lorn: has joined #RubyOnRails
[20:31:31] rhizome: it what? that seems like a second question
[20:31:44] FailBit: the answer to the first one is easy
[20:31:51] rhizome: for the <1 tag thing use a validation
[20:31:57] deweysdecimal: alright, I'm listening!
[20:32:07] FailBit: also you screwed up your relations
[20:32:30] FailBit: delete this has_many :challenge_tags
[20:32:50] FailBit: to validate that it has at least one add this validates :tags, presence: true
[20:33:21] michael_mbp: allow_nil: true may be an option you want deweysdecimal or not.
[20:33:37] deweysdecimal: delete has_many in both the Challenge and Tag models?
[20:33:41] matthewd: > delete this has_many :challenge_tags
[20:33:43] matthewd: FailBit: huh?
[20:34:11] FailBit: handled by the HMT
[20:34:36] FailBit: unless you want direct access to the join table
[20:34:53] deweysdecimal: I don't think I need direct access
[20:35:13] FailBit: actually yeah you do need it nvm
[20:35:21] FailBit: (because of the collection_select)
[20:35:25] tubbo: wait yeah
[20:35:32] deweysdecimal: alright, haha. So leave both has_many?
[20:35:45] tubbo: you need to set up the has_many :through_models first so that has_many :models, through: :through_models will actually work
[20:35:53] tubbo: because has_many just defines a method
[20:36:09] tubbo: imho has_many :through should *also* define the through_model's has_many but that's none of my business (/cc matthewd ;))
[20:36:28] tubbo: not sure why the opposite decision was made, and would be curious to know more
[20:36:31] FailBit: activerecord surprises me (read: makes me want to punch something) every time
[20:36:36] roshanavand: has joined #RubyOnRails
[20:36:45] tubbo: i like AR
[20:36:54] tubbo: probably the only person in this room who actually enjoys 99% of rails
[20:37:03] deweysdecimal: I had accidentally removed the validates :tags, presence: true, so that was a solved problem for me
[20:37:17] deweysdecimal: I just reverted a bunch of changes that didn't work, so let me figure out a better way to pose my question
[20:38:10] mordof_work: has joined #RubyOnRails
[20:38:24] tbuehlmann: tubbo, I feel you
[20:38:49] matthewd: tubbo: Apart from the occasional "glorified HABTM" use case, most of the time an HMT is secondary to a separately first class HM, I think
[20:38:51] Lewix: cnk: How to force the name of has many :foo ,:through :"force_name" association
[20:39:33] matthewd: Lewix: Have you checked the API documentation for has_many, or the association guide?
[20:40:02] roshanavand: has joined #RubyOnRails
[20:40:40] djbkd: has joined #RubyOnRails
[20:40:50] slash_quit: beingjohnm: what's the word?
[20:41:22] cnk_: has joined #RubyOnRails
[20:42:28] cnk_: FailBit: what about AR surprises you?
[20:42:48] deweysdecimal: OK, so I think I have a better grip on what's going wrong now
[20:42:49] cnk_: It was my first ORM so seems completely natural
[20:43:02] cnk_: am now struggling with wanting Django's ORM to be more like AR
[20:43:40] deweysdecimal: when I submit the form, it is trying to look up a ChallengeTag to associate with the Challenge, instead of just the Tag
[20:43:44] cnk: tubbo: You are not the only one. ROR is just about perfect for most things i do - even the things I am not getting to use it for
[20:43:46] smathy: I'm loving ROM, FWIW /cc FailBit
[20:44:03] FailBit: one is lack of natural Arel predicates in the query builder
[20:44:09] deweysdecimal: for example, it's trying to look up a ChallengeTag with id=8 (which doesn't exist), instead of a Tag with id=8
[20:44:16] FailBit: another one is merge conflicts in the schema, it likes to fuck with indentation
[20:44:27] arBmind: has joined #RubyOnRails
[20:45:15] deweysdecimal: line 17 in new.html.erb seems like it could be the problem, but I've messed with it for hours and haven't gotten it to work yet
[20:45:16] FailBit: defining migrations is painful especially for branch work
[20:45:16] deweysdecimal: https://gist.github.com/goronfreeman/9b778419bdef77d18b2f#file-new-html-erb-L17
[20:45:26] guacamole: has joined #RubyOnRails
[20:45:31] cnk: FailBit: how odd. Schema is generated so how does that happen? You could just redump it but...
[20:45:32] FailBit: (if you merge into master then rails will often refuse to recognize schema changes)
[20:45:47] rhizome: tubbo: obviously you aren't getting involved in the *sport* of rails
[20:46:01] bamorim: has joined #RubyOnRails
[20:46:15] tubbo: rhizome: haha
[20:46:34] cnk: FailBit: any migrations on the branch should be applied - even if they are out of time order
[20:46:50] shmilan: has joined #RubyOnRails
[20:46:56] FailBit: yeah and that is what I have tried (and often failed) to accomplish
[20:47:03] hannelita: has joined #RubyOnRails
[20:47:18] FailBit: even with my own local work, after reloading masters schema, it will not migrate the stuff in the branch
[20:48:03] Z00t_: has joined #RubyOnRails
[20:48:35] cnk: hmm do you make a lot of small changes via migrations?
[20:49:39] cnk: hmmm. I have been fighting a lot with Django's autogenerated migrations but have not really had trouble with ARs' Perhaps because I am usually a solo developer in Rails
[20:50:45] kara_sweets: has joined #RubyOnRails
[20:50:59] ur5us: has joined #RubyOnRails
[20:51:54] baweaver: has joined #RubyOnRails
[20:52:23] jocuman: has joined #RubyOnRails
[20:53:26] nerium: has joined #RubyOnRails
[20:53:36] k13nox: has joined #RubyOnRails
[20:54:34] fox_mulder_cp: has joined #RubyOnRails
[20:55:48] ericdykstra: has joined #RubyOnRails
[20:56:47] arBmind1: has joined #RubyOnRails
[21:02:31] alevy: has joined #RubyOnRails
[21:03:19] kara_sweets: has joined #RubyOnRails
[21:04:27] treehug88: has joined #RubyOnRails
[21:04:56] safety_cut: has joined #RubyOnRails
[21:05:03] PedramT: has joined #RubyOnRails
[21:06:58] sarink: has joined #RubyOnRails
[21:07:41] jaequery: has joined #RubyOnRails
[21:07:58] djbkd: has joined #RubyOnRails
[21:09:35] manfrin: has joined #RubyOnRails
[21:09:52] tubbo: matthewd: i tend to use HMT all the time
[21:10:12] k13nox: has joined #RubyOnRails
[21:10:32] victortyau: has joined #RubyOnRails
[21:11:24] deweysdecimal: is there an option for collection_select to have it use a different controller action?
[21:11:55] tubbo: deweysdecimal: collection_select doesn't use any controller action IIRC
[21:12:48] deweysdecimal: tubbo: hmm, well I've sort of figured out what's going wrong with my form, but I'm still unsure of how to fix it
[21:14:13] pollardj: has joined #RubyOnRails
[21:14:52] pollardj: has joined #RubyOnRails
[21:15:13] tubbo: deweysdecimal: !gist that code
[21:15:13] helpa: deweysdecimal: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[21:15:22] tubbo: never mind
[21:15:32] deweysdecimal: I've updated a couple things, let me update the gist
[21:15:34] tubbo: deweysdecimal: ok so what's the issue with your form
[21:17:02] deweysdecimal: tubbo: alright, updated the gist: https://gist.github.com/goronfreeman/9b778419bdef77d18b2f
[21:18:06] deweysdecimal: ok, so when I submit the new form, since it's POSTing, it is trying to create a new tag with the id that is passed, instead of looking up the tag by the id
[21:18:07] djbkd: has joined #RubyOnRails
[21:18:26] Limix: has joined #RubyOnRails
[21:18:48] deweysdecimal: and since I'm validating that the tag name is unique, and is included in the array in the tag model, it's failing validation
[21:19:28] deweysdecimal: but if I create a challenge without a tag, then edit it through my form, it will associate the tag with the challenge, since it's a PATCH instead of POST
[21:19:33] deweysdecimal: at least that's what I think is going on
[21:19:40] deweysdecimal: from looking at server output
[21:19:56] tubbo: deweysdecimal: the PATCH and POST stuff isn't relevant here. what is going on is that you're sending the form data necessary for mass-assigning *new* tags, but not taking into account whether the tag exists or not.
[21:19:59] tubbo: rails doesn't do that for you IIRC
[21:20:01] PedramT_: has joined #RubyOnRails
[21:20:16] tubbo: so like, if you wanted to assign tags to that challenge, you'd want to do challenge.challenge_tags << ...
[21:20:29] tubbo: but you can't do that because you might not have a tag_id
[21:21:11] deweysdecimal: alright, I think I'm with you
[21:21:12] tubbo: deweysdecimal: your form also only permits tag_ids, it doesn't seem to permit the attrs needed for creating a new tag
[21:21:29] deweysdecimal: yeah, I'm not allowing the creation of tags themselves
[21:21:36] deweysdecimal: I have a predefined list to choose from
[21:21:37] tubbo: deweysdecimal: the first thing i'd try before reinventing the wheel at all would be to make sure there are no "Unpermitted parameters" log messages in there
[21:22:01] tubbo: deweysdecimal: in that case, i think you want to be updating challenge_tags instead
[21:22:24] tubbo: deweysdecimal: https://gist.github.com/tubbo/cc40e4540d57b1978786#file-challenges_controller-rb-L62
[21:22:25] zpe: has joined #RubyOnRails
[21:22:43] tubbo: because that is going to create new rows in the challenge_tags table, which are associated to rows in the tags table
[21:22:50] tubbo: since you are assuming that the tag_id is already known and defined
[21:22:56] tubbo: (which should be true given your collection_select)
[21:22:59] deweysdecimal: let me try that out! thanks for the help, btw
[21:23:05] deweysdecimal: been trying to figure this out for a long long time
[21:23:20] tubbo: deweysdecimal: i'm not 100% on this it's been a while but i think that's how it works.
[21:24:50] rickmasta: has joined #RubyOnRails
[21:26:26] jkamenik: has joined #RubyOnRails
[21:26:35] quazimodo: has joined #RubyOnRails
[21:26:38] quazimod1: has joined #RubyOnRails
[21:27:10] deweysdecimal: ok, so with just that one change in the permitted params, I'm getting Unpermitted parameter: tag_ids
[21:27:16] PedramT: has joined #RubyOnRails
[21:32:20] djbkd: has joined #RubyOnRails
[21:32:22] DoubleMalt: has joined #RubyOnRails
[21:33:13] rhizome: nested form on the join model using the collection of tags
[21:33:23] NBarnes: has joined #RubyOnRails
[21:34:47] _djbkd: has joined #RubyOnRails
[21:36:07] deweysdecimal: rhizome: are you talking about something like described here? https://github.com/nathanvda/cocoon/wiki/A-guide-to-doing-nested-model-forms
[21:37:02] rhizome: well, it's a generic concept in rails, but to select from an unchangeable list that's what i'd do
[21:37:17] ascarter: has joined #RubyOnRails
[21:37:55] deweysdecimal: rhizome: alright, guess I have some reading to do. thanks for the suggestion
[21:38:10] rhizome: form for @challenge...fields_for @challenge.tags...collection_select Tags.all
[21:38:24] rhizome: there's more to it, but that's the foundation
[21:39:02] rhizome: fields_for :tags or :tags_attributes is better
[21:39:22] Radar: fields_for :tags should convert to tags_attributes if there's an accepts_nested_attributes_for :tags defined on the challenge model
[21:40:00] deweysdecimal: rhizome: I think I have the basics of it after looking at the fields_for docs
[21:40:28] NBarnes: has joined #RubyOnRails
[21:40:35] rhizome: oh whoops, fields_for :challenge_tags
[21:41:29] rhizome: radar that may be the rule of thumb i've been looking for
[21:42:18] NBarnes: has joined #RubyOnRails
[21:45:00] beingjohnm: slash_quit: They called it a code problem and wouldn't help.
[21:45:44] Pumukel: has joined #RubyOnRails
[21:46:07] StaticVoid: is it possible to validate an update before actually doing the update? Or is the only solution to do @task.update!(params) and use 'rescue' inside a transaction? I need to update/insert 2 models at the same time and they need to either both go through or neither of them if one of them has a validation error
[21:46:37] StaticVoid: *if one of them has a validation error
[21:47:46] hannelita: has joined #RubyOnRails
[21:47:57] guacamole: has joined #RubyOnRails
[21:47:58] choke: has joined #RubyOnRails
[21:48:03] Radar: StaticVoid: Wrap it in an ActiveRecord::Base.transaction block, then if the update fails raise ActiveRecord::Rollback.
[21:48:50] StaticVoid: Radar: cool, thanks - I was going down that route, but was missing the rollback.
[21:50:10] slash_quit: beingjohnm: i'm not surprised... i'm just so certain that -0.0.zero? will return true, so it has to be something else... either the thing you're calling #zero? on is not what you expect it to be, or something like that... you could add more verbose logging. Instead of `puts "value was zero"`, you could `puts value` for example
[21:50:26] sandstrom: has joined #RubyOnRails
[21:53:02] beingjohnm: slash_quit: I've moved onto another headscratching bug and am going to revist that tomorrow. I honestly don't know. It seems to work fine in my devlopment environment. They suggested to run a production environment locally to test.
[21:54:05] bronson: has joined #RubyOnRails
[21:54:40] hannelita: has joined #RubyOnRails
[21:55:58] shibabu: has joined #RubyOnRails
[21:56:17] k13nox: has joined #RubyOnRails
[21:56:20] sonofdirt: has joined #RubyOnRails
[21:56:30] guacamole: has joined #RubyOnRails
[21:57:50] djbkd: has joined #RubyOnRails
[21:58:49] Pazician: has joined #RubyOnRails
[21:59:11] threeminutemonta: has joined #RubyOnRails
[22:00:35] Quintasan: has joined #RubyOnRails
[22:01:18] Quintasan: t.decimal :latitude, scale: 10, precision: 6 results in PG::InvalidParameterValue: ERROR: NUMERIC scale 10 must be between 0 and precision 6 when doing migration on postgres, what am I doing wrong?
[22:01:21] slash_quit: beingjohnm: okay, well good luck... i'd lean more on the side of expected result from unexpected input than unexpected result from expected input
[22:01:43] Quintasan: I'm running Rails 5 if that helps
[22:02:07] ur5us: has joined #RubyOnRails
[22:02:18] one_zero: has joined #RubyOnRails
[22:02:22] rickmasta: has joined #RubyOnRails
[22:02:31] matthewd: Quintasan: That error sounds quite specific
[22:03:05] Quintasan: I just realized that I have been horribly dumb.
[22:03:30] bklane: has joined #RubyOnRails
[22:03:49] beingjohnm: slash_quit: heh. you're likely right.
[22:05:22] tercenya: has joined #RubyOnRails
[22:05:30] ur5us: has joined #RubyOnRails
[22:08:22] beingjohnm: damn, just wasted an hour due to this http://stackoverflow.com/questions/12928050/why-does-ruby-seem-to-hoist-variable-declarations-from-inside-a-case-statement-e
[22:09:08] herbst: has joined #RubyOnRails
[22:09:17] Radar: Quintasan: All good now?
[22:09:27] quazimodo: has joined #RubyOnRails
[22:09:28] quazimod1: has joined #RubyOnRails
[22:09:49] Quintasan: Radar: Yes. I somehow confused what scale and precision does.
[22:10:01] Radar: Don't we all?
[22:10:58] baweaver: has joined #RubyOnRails
[22:11:59] nerium: has joined #RubyOnRails
[22:14:33] Scripore: has joined #RubyOnRails
[22:16:04] djbkd: has joined #RubyOnRails
[22:16:15] wethu: has joined #RubyOnRails
[22:20:42] guacamole: has joined #RubyOnRails
[22:21:51] jgpawletko: has joined #RubyOnRails
[22:24:30] sheeny: has joined #RubyOnRails
[22:26:03] guacamole: has joined #RubyOnRails
[22:27:00] k13nox: has joined #RubyOnRails
[22:29:59] eljimmy: has joined #RubyOnRails
[22:31:10] manfrin: has joined #RubyOnRails
[22:33:25] `aspiRe: has joined #RubyOnRails
[22:34:06] MarkAValdez: has joined #RubyOnRails
[22:34:25] jaequery: has joined #RubyOnRails
[22:36:13] jaequery: has joined #RubyOnRails
[22:36:38] craigp: has joined #RubyOnRails
[22:37:18] sheeny: Could anyone explain why having a port in action mailer from returns a string rather than an array? https://gist.github.com/craigsheen/aab578ce85700626e909
[22:37:30] Scripore: has joined #RubyOnRails
[22:38:14] yfeldblum: has joined #RubyOnRails
[22:38:31] NinetyNineTails: has joined #RubyOnRails
[22:38:36] matthewd: sheeny: Because that's a malformed address, so it can't parse it
[22:39:38] jaequery: has joined #RubyOnRails
[22:40:00] sheeny: matthewd: ah ok, cool thanks
[22:42:09] jaequery: has joined #RubyOnRails
[22:42:10] melonstorm: has joined #RubyOnRails
[22:45:00] guacamole: has joined #RubyOnRails
[22:46:38] AntiSpamMeta: has joined #RubyOnRails
[22:47:10] jaequery: has joined #RubyOnRails
[22:47:19] meoblast001: has joined #RubyOnRails
[22:49:22] djbkd: has joined #RubyOnRails
[22:50:16] guacamole: has joined #RubyOnRails
[22:50:41] bga57: has joined #RubyOnRails
[22:53:34] fidalgo: has joined #RubyOnRails
[22:53:44] Scripore: has joined #RubyOnRails
[22:54:11] k13nox: has joined #RubyOnRails
[22:54:55] fidalgo: In a rails-api app what I should test in requests and what to test in controllers? What differentiate them?
[22:56:07] Scripore: has joined #RubyOnRails
[22:57:18] someish: has joined #RubyOnRails
[22:58:12] ericdykstra: has joined #RubyOnRails
[22:58:52] chipotle: has joined #RubyOnRails
[22:58:53] edwinvdgraaf: has joined #RubyOnRails
[22:59:03] baweaver: has joined #RubyOnRails
[22:59:13] Limix: has joined #RubyOnRails
[23:01:08] smathy: fidalgo, same as a non-API app.
[23:01:35] alexhartley: has joined #RubyOnRails
[23:02:03] jgpawletko: has joined #RubyOnRails
[23:03:13] safety_cut: has joined #RubyOnRails
[23:04:17] guacamole: has joined #RubyOnRails
[23:06:03] snowy: has joined #RubyOnRails
[23:06:08] user083: has joined #RubyOnRails
[23:08:12] mdw: has joined #RubyOnRails
[23:09:30] maletor_: has joined #RubyOnRails
[23:09:34] k13nox: has joined #RubyOnRails
[23:11:34] quazimodo: has joined #RubyOnRails
[23:11:58] choke: has joined #RubyOnRails
[23:13:05] aloneintheworld: has joined #RubyOnRails
[23:14:06] deweysdecimal: has joined #RubyOnRails
[23:14:46] deweysdecimal: has left #RubyOnRails: ()
[23:14:55] Quintin: has joined #RubyOnRails
[23:15:09] deweysdecimal: has joined #RubyOnRails
[23:16:06] jkamenik: has joined #RubyOnRails
[23:19:12] guacamole: has joined #RubyOnRails
[23:19:36] roller234: has joined #RubyOnRails
[23:20:42] cicloid: has joined #RubyOnRails
[23:21:39] pulgalip1: has joined #RubyOnRails
[23:22:25] Quintasan: How on earth do I start rails console in production when my database.yml has <%= ENV['DB_PASSWORD']? %> ? I tried doing `RAILS_ENV=production DB_PASSWORD=insertpasswordhere rails c` but it dies with fe_sendauth: no password supplied
[23:23:29] Radar: Doesn't it ask you to specify a username as well?
[23:23:52] matthewd: Quintasan: Assuming the extra '?' in there was a copy & paste error... does your password contain characters that need to be quoted for the shell?
[23:24:43] Quintasan: Radar: It does but I ommited the whole thing
[23:24:55] Radar: Quintasan: Is username in ENV['DB_USERNAME'] as well?
[23:24:58] Quintasan: matthewd: the '?' is not there, I made a mistake when typing
[23:25:17] Quintasan: Radar: yes same for secret_key_base when running in production
[23:25:18] Radar: Quintasan: Why did you type instead of copy and paste?
[23:25:33] Radar: Quintasan: So wouldn't it make sense to specify DB_USERNAME as well as DB_PASSWORD?
[23:25:35] Quintasan: it's like rails ignores those variables
[23:26:10] Radar: Quintasan: !rule0
[23:26:11] helpa: Quintasan: 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.
[23:26:29] Radar: I'd like to see config/database.yml so I can see what you're seeing.
[23:26:42] tfitts: I'm trying to setup some tests for a legacy app that doesn't have any. One of the things I'm trying to test is an action that involves 8 different models. If the action takes place as a result of an update to a single model does it make sense to put the test for all of that in the model_spec or is it more like integration testing when it involves that many models?
[23:27:03] Radar: tfitts: integration testing
[23:27:12] dideler: has joined #RubyOnRails
[23:27:21] Radar: tfitts: definitely. That way you can test the whole flow works and then your model tests should just be for little chunks of that flow.
[23:27:21] crystal77: has joined #RubyOnRails
[23:28:13] Quintasan: `RAILS_ENV=production SECRET_KEY_BASE=something DB_USERNAME=insertusernamehere DB_PASSWORD=insertpasswordhere rails console` dies with Devise whining about secret.key not being set (it uses SECRET_KEY_BASE if set). If I hardcode it in config/secrets.yml it stops whining but still can't connect to database
[23:28:16] tfitts: Radar: that's what I thought. Thanks.
[23:28:34] Radar: Quintasan: Is this someone else's Rails app?
[23:29:04] Quintasan: http://pastebin.com/q6eCmEyk config/database.yml
[23:29:20] Radar: Quintasan: Please follow all lighted signs and crew member instructions. Thanks.
[23:30:02] Quintasan: http://pastie.org/10696425 config/database.yml
[23:30:48] matthewd: So, which env variables are being used?
[23:31:17] Quintasan: it appears that only RAILS_ENV is respected when doing something from command line
[23:31:32] matthewd: Which env variables are being read by your database.yml?
[23:31:49] Radar: Quintasan: You could make this a lot easier by using the dotenv-rails gem and then setting these ENV vars in a .env file.
[23:32:00] Quintasan: DB_USER and DB_PASSWORD obviously
[23:32:16] matthewd: And what are you setting, oh so obviously?
[23:32:24] helpa: http://i.imgur.com/tyViD.gif
[23:33:47] Quintasan: matthewd: My mistake there, though it's not solving anything because it's not even reading SECRET_KEY_BASE
[23:34:07] Radar: Quintasan: Show us what error you're getting specifically, please.
[23:34:13] Radar: Quintasan: !rule0 again if you need a reminder.
[23:34:13] helpa: Quintasan: 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.
[23:34:31] mostlybadfly: has joined #RubyOnRails
[23:37:17] HenriettaSalt: has joined #RubyOnRails
[23:37:47] maletor_: has joined #RubyOnRails
[23:37:55] K_r3aPeR: has joined #RubyOnRails
[23:38:18] Quintasan: http://pastie.org/private/fygpqu9blelbor2ahe4fg as you can see it fails to read SECRET_KEY_BASE in spite of it being specified, in case it's hard to process here is config/secrets.yml http://pastie.org/private/poacnee7kreobcv6nom5vq
[23:38:43] Radar: And, pray tell, what does the Devise configuration use?
[23:38:52] Quintasan: SECRET_KEY_BASE when it's set.
[23:39:01] Radar: No, that's config/secrets.yml
[23:39:11] Radar: What does the Devise configuration use? The one that's in config/initializers/devise.rb?
[23:39:20] Radar: The one that's setting secret_key to a particular value?
[23:40:08] ascarter: has joined #RubyOnRails
[23:40:42] k13nox: has joined #RubyOnRails
[23:41:24] maletor_: has joined #RubyOnRails
[23:41:35] AntiSpamMeta: has joined #RubyOnRails
[23:41:40] Quintin: has joined #RubyOnRails
[23:42:43] Quintasan: Radar: I don't have that initializer since I'm using devise_token_auth
[23:43:01] Quintasan: Devise is supposed to use SECRET_KEY_BASE in case it is set
[23:43:01] Quintasan: https://github.com/plataformatec/devise/commit/eba91e65803cf1cbf8dc6a482507596ab7c23e47
[23:43:17] Radar: Oh, neat.
[23:43:28] Radar: Are you using a version of Devise greater than 3.2.3?
[23:43:39] Quintasan: I think I know what's going on
[23:43:44] Quintasan: I'm running rails 5
[23:43:47] Radar: Good, because I don't.
[23:44:35] hannelita: has joined #RubyOnRails
[23:44:36] Quintasan: and unless Devise has changed rails_4? method to check for >= 4 it's not going to work
[23:44:55] speaking1ode: has joined #RubyOnRails
[23:45:26] Radar: I don't think that Devise has been updated for Rails 5 compat anyway
[23:45:58] Quintasan: master is supposed to work with Rails 5
[23:45:58] edwinvdgraaf: has joined #RubyOnRails
[23:46:01] Radar: https://github.com/plataformatec/devise/issues/3877#issuecomment-172890574
[23:46:03] matthewd: They seem to have at least attempted it, before they bumped their dependency
[23:46:05] threeminutemonta: has joined #RubyOnRails
[23:46:07] Radar: indeed. Just saw it ^
[23:46:33] Quintasan: I'll file a PR for it then.
[23:48:28] bklane: has joined #RubyOnRails
[23:51:13] yfeldblum: has joined #RubyOnRails
[23:52:23] guacamole: has joined #RubyOnRails
[23:52:39] gbgdev: has joined #RubyOnRails
[23:52:42] roller546: has joined #RubyOnRails
[23:54:49] edwinvdg_: has joined #RubyOnRails
[23:55:06] roller546: hi Just wondering if anyone could help me regarding this issue that I'm facing while running rubber command https://github.com/rubber/rubber/issues/580
[23:55:12] k13nox: has joined #RubyOnRails
[23:55:46] roller546: I've spent a lot of time pulling my hair on this but just can't find a way around it
[23:56:10] bronson: has joined #RubyOnRails
[23:56:41] Radar: roller546: Can you reproduce the issue within a new application?
[23:56:54] Encapsulation: has joined #RubyOnRails
[23:57:55] snowy: has joined #RubyOnRails
[23:58:03] roller546: yes for a new application
[23:58:36] roller546: This is actually a new environment I've setup in my mac and this was the first application on it
[23:59:06] roller546: I'm using RVM just in case i did not mention it
[23:59:12] shibabu: has joined #RubyOnRails
[23:59:18] juddey: has joined #RubyOnRails
[23:59:36] Pazician: has joined #RubyOnRails