« Back to channel list

#RubyOnRails - 17 February 2016

« Back 1 day Forward 1 day »
[00:00:26] tildes: has joined #RubyOnRails
[00:01:10] spyd3r: has joined #RubyOnRails
[00:03:10] intrigueD: has joined #RubyOnRails
[00:05:23] j4d: has joined #RubyOnRails
[00:07:17] dnewkerk: has joined #RubyOnRails
[00:07:32] J4D_: has joined #RubyOnRails
[00:07:34] mattboll: https://gist.github.com/mattboll/a0647a727dff60fda7d9 I hope I added enough information
[00:08:16] mattboll: i'm quite noob in ror, so I can miss what is relevant
[00:09:45] nettoweb: has joined #RubyOnRails
[00:13:26] Technodrome: has joined #RubyOnRails
[00:13:36] pawnbox: has joined #RubyOnRails
[00:15:57] DLSteve: has joined #RubyOnRails
[00:17:36] quazimodo: has joined #RubyOnRails
[00:18:55] triptec: has joined #RubyOnRails
[00:20:15] mattboll: it looks like I also miss X-CSRF-Token when modifying the field with js
[00:20:52] Rodya_: has joined #RubyOnRails
[00:21:15] rhizome: consider putting the hidden field in the form
[00:21:28] swillits: has joined #RubyOnRails
[00:21:40] rhizome: .val might be what flips the switch, maybe there's a js-friendly way to do it
[00:22:12] mattboll: it is in the form, it's = f.text_field :aws_url, hidden or not it's the same thing
[00:31:23] swillits: has left #RubyOnRails: ()
[00:31:48] stannard: has joined #RubyOnRails
[00:35:49] JoshGlzBrk: has joined #RubyOnRails
[00:38:28] slash_nick: aws_url is not a csrf token
[00:39:18] slash_nick: that's not relevant, sorry :)
[00:40:22] slash_nick: mattboll: what version of rails are you using?
[00:40:43] blackmesa: has joined #RubyOnRails
[00:41:58] slash_nick: mattboll: i know it's not what you're here for, but you should really consider upping to 4.1.13... you're missing out on lots of security patches
[00:42:11] jottr_: has joined #RubyOnRails
[00:44:16] yfeldblum: has joined #RubyOnRails
[00:44:28] mattboll: slash_nick: well, i'm on still on dev mode and using the docker onbuild image
[00:44:30] Technodrome: has joined #RubyOnRails
[00:45:30] mwcmitchell: has joined #RubyOnRails
[00:47:20] rhizome: mattboll: the difference is that if it's in the form, you don't need to manipulate it with js
[00:48:00] lemur: has joined #RubyOnRails
[00:48:12] mattboll: rhizome: I just don't want it to be set by the user, i want it to be automatically fill
[00:48:57] rhizome: so use f.hidden_field and get rid of that js
[00:49:46] slash_nick: mattboll: disabled; true?
[00:49:53] slash_nick: without typos though
[00:50:21] slash_nick: (or hidden field, why's that an issue?)...
[00:51:02] slash_nick: anyway... what stops the user from setting it isn't the <form>
[00:51:13] slash_nick: it's the controller that applies the parameters from the form
[00:52:28] mattboll: when disabled, it's not in the parameter
[00:53:36] rubyonrailed: has joined #RubyOnRails
[00:54:23] mattboll: e.g with a datepicker, there can be an hidden field to contain the value chosen by click. I just want the same thing
[00:54:47] slash_nick: mattboll: if the user can't set it, does it really need to be in the form?.... if you really want to show it to the user, submit it with params, and not let the user change it [easily]... then use a hidden field like rhizome suggests, but add a <p> or <dl> or something to show the user what the value is
[00:54:52] djinni`: has joined #RubyOnRails
[00:55:21] dustinm`: has joined #RubyOnRails
[00:55:23] slash_nick: ignore the first question :) ^
[00:55:53] yfeldblum: has joined #RubyOnRails
[00:56:37] ryanRT: has joined #RubyOnRails
[00:56:43] rhizome: yeah, why send it through the form cycle
[00:56:45] mattboll: i don't get what you meant, i can submit in a hidden field or whatever but anything i tried doesn't work
[00:57:11] rhizome: why is it in the form at all?
[00:57:21] mattboll: where should it be ?
[00:57:24] rhizome: it's a thing you have that isn't going to change
[00:57:34] rhizome: apply it at the receiving end
[00:57:48] mattboll: it's going to change depending on user action
[00:58:03] sleungcy: has joined #RubyOnRails
[00:58:03] rhizome: things just got a lot more vague
[00:58:41] Ropeney: has joined #RubyOnRails
[00:59:12] mattboll: i want to send a value with my form that I get with javascript.
[00:59:42] rhizome: can i assume that "get" means retrieve when the page containing the form is loaded?
[01:00:33] rgtk: has joined #RubyOnRails
[01:00:38] maesitos: has joined #RubyOnRails
[01:00:42] mattboll: nop, means retrieve when the user make an action
[01:00:50] rhizome: please to explain
[01:02:19] mattboll: for exemple, there is an other form on the page, the user send an image to amazon s3, we get back the definitive url (could be any ajax call) and i want to put the value in my own form
[01:02:28] maesitos: has joined #RubyOnRails
[01:02:38] rgtk: has joined #RubyOnRails
[01:03:33] pawnbox: has joined #RubyOnRails
[01:03:44] mattboll: it could be : the user make a click at 2AM, we want to send this value
[01:04:20] maesitos_: has joined #RubyOnRails
[01:04:29] rgtk: has joined #RubyOnRails
[01:04:31] rhizome: sure, you don't want to have to visit their house to give it to them
[01:04:36] ryanRT: has joined #RubyOnRails
[01:04:38] slash_nick: mattboll: have you tried f.hidden_field? does it behave the same as f.text_field?
[01:04:54] rhizome: does "get back" happen via callback to your server or within the browser?
[01:05:14] itkin: has joined #RubyOnRails
[01:05:20] mattboll: slash_nick: yes, exactly the same behaviour
[01:05:46] ryanRT: has left #RubyOnRails: ()
[01:05:53] JoshGlzBrk: has joined #RubyOnRails
[01:06:03] mattboll: rhizome: within the browser, or i wouldn't bother of doing what i'm trying to do ^^
[01:06:06] Prira: has joined #RubyOnRails
[01:06:12] _Tariq: has joined #RubyOnRails
[01:06:12] maesitos: has joined #RubyOnRails
[01:06:13] sevenseacat: has joined #RubyOnRails
[01:06:39] rgtk: has joined #RubyOnRails
[01:08:09] maesitos: has joined #RubyOnRails
[01:08:13] rgtk: has joined #RubyOnRails
[01:09:10] rhizome: just asking
[01:09:42] sleungcy: has joined #RubyOnRails
[01:09:58] maesitos: has joined #RubyOnRails
[01:10:10] rgtk: has joined #RubyOnRails
[01:11:15] Diaoer: has joined #RubyOnRails
[01:11:53] maesitos: has joined #RubyOnRails
[01:12:00] rgtk: has joined #RubyOnRails
[01:12:35] slash_nick: mattboll: the behavior you describe is unexpected... are there any javascript errors when you submit? does the form still have data-remote after changing the value with jQuery?
[01:12:40] chouhoulis: has joined #RubyOnRails
[01:13:22] shanemcd: has joined #RubyOnRails
[01:13:47] maesitos: has joined #RubyOnRails
[01:13:55] rgtk: has joined #RubyOnRails
[01:15:44] mattboll: no javascript error… or may be it disappeared, i'll look for that. data-remote is set to true even after javascript
[01:15:54] maesitos: has joined #RubyOnRails
[01:15:54] rgtk: has joined #RubyOnRails
[01:17:25] mattboll: the only javascript error is what I've got due to processing as html
[01:17:29] maesitos: has joined #RubyOnRails
[01:17:49] rgtk: has joined #RubyOnRails
[01:18:08] slash_nick: mattboll: and that's an error showing up in your browser? what's it say?... i'm not talking about errors in the rails log
[01:18:42] mattboll: slash_nick: ActionController::UnknownFormat on respond_to do |format|
[01:19:22] maesitos: has joined #RubyOnRails
[01:19:50] rgtk: has joined #RubyOnRails
[01:21:15] maesitos_: has joined #RubyOnRails
[01:21:20] Radar: steps to reproduce in a new app plzkthx
[01:21:45] rgtk: has joined #RubyOnRails
[01:23:12] maesitos: has joined #RubyOnRails
[01:23:24] mattboll: well if i could send all my code i would do that but my customer doesn't want… what could be the minimum part i'm missing ?
[01:23:41] rgtk: has joined #RubyOnRails
[01:23:52] Radar: minimum steps to reproduce this issue in a new app, plzkthx.
[01:24:12] Radar: Nobody's figured it out after an hour, so maybe that's a sign that what you've provided so far isn't going to cut it?
[01:24:28] Radar: And trying to reproduce the issue in a new app might show you where you went wrong in the first app.
[01:25:07] maesitos_: has joined #RubyOnRails
[01:25:15] rgtk: has joined #RubyOnRails
[01:26:57] maesitos: has joined #RubyOnRails
[01:27:11] rgtk: has joined #RubyOnRails
[01:27:43] kirillzh: has joined #RubyOnRails
[01:28:02] Logograph: has joined #RubyOnRails
[01:28:47] maesitos: has joined #RubyOnRails
[01:29:06] rgtk: has joined #RubyOnRails
[01:30:18] viiralvx: has joined #RubyOnRails
[01:30:46] maesitos: has joined #RubyOnRails
[01:31:01] rgtk: has joined #RubyOnRails
[01:31:13] t92: has joined #RubyOnRails
[01:31:23] t92: has left #RubyOnRails: ()
[01:32:37] maesitos: has joined #RubyOnRails
[01:32:38] i: has joined #RubyOnRails
[01:32:56] rgtk: has joined #RubyOnRails
[01:34:30] maesitos_: has joined #RubyOnRails
[01:35:01] rgtk: has joined #RubyOnRails
[01:35:57] FooMunki: has joined #RubyOnRails
[01:36:24] maesitos: has joined #RubyOnRails
[01:36:52] rgtk: has joined #RubyOnRails
[01:37:58] DEA7TH: has joined #RubyOnRails
[01:38:26] hinbody_: has left #RubyOnRails: ()
[01:38:27] rgtk: has joined #RubyOnRails
[01:40:07] maesitos: has joined #RubyOnRails
[01:40:09] roamingdog: has joined #RubyOnRails
[01:40:27] rgtk_: has joined #RubyOnRails
[01:41:37] miguel: has joined #RubyOnRails
[01:41:59] maesitos: has joined #RubyOnRails
[01:42:17] rgtk: has joined #RubyOnRails
[01:42:27] moring: has joined #RubyOnRails
[01:43:00] Guest69653: has joined #RubyOnRails
[01:44:09] maesitos: has joined #RubyOnRails
[01:44:12] rgtk: has joined #RubyOnRails
[01:44:17] msosa: has joined #RubyOnRails
[01:45:46] maesitos: has joined #RubyOnRails
[01:46:12] rgtk: has joined #RubyOnRails
[01:47:35] moring: hi everyone
[01:47:43] maesitos: has joined #RubyOnRails
[01:47:44] crdpink: has joined #RubyOnRails
[01:48:17] rgtk: has joined #RubyOnRails
[01:48:39] jtong: has joined #RubyOnRails
[01:48:49] cih: has joined #RubyOnRails
[01:49:26] sevenseacat: morning moring :)
[01:49:33] maesitos: has joined #RubyOnRails
[01:50:13] rgtk: has joined #RubyOnRails
[01:50:34] Pazician: has joined #RubyOnRails
[01:51:26] maesitos: has joined #RubyOnRails
[01:51:45] rgtk: has joined #RubyOnRails
[01:52:08] moring: so I know some basic rails. I want to learn more but I have no idea where to go from here. I have no ideas for projects or things to practice. Please Help.
[01:52:50] ryanRT: has joined #RubyOnRails
[01:52:53] moring: Is there any kind of mentorship program or something out there?
[01:53:04] sevenseacat: well, why did you set out to learn rails in the first place? i assume you wanted to build something specific
[01:53:21] maesitos: has joined #RubyOnRails
[01:53:27] sevenseacat: we don't have an official mentorship program, but we're a pretty friendly bunch here
[01:53:30] pawnbox: has joined #RubyOnRails
[01:53:37] roamingdog: has joined #RubyOnRails
[01:53:38] rgtk: has joined #RubyOnRails
[01:53:51] sevenseacat: always happy to sit and chat and discuss code and whatnot
[01:55:13] duderonomy: has joined #RubyOnRails
[01:55:13] maesitos: has joined #RubyOnRails
[01:55:17] Radar: moring: Have you read any books about Rails so far?
[01:55:37] rgtk: has joined #RubyOnRails
[01:55:57] sevenseacat: we like books.
[01:56:07] sevenseacat: (I like books)
[01:56:08] moring: sevenseacat: I was working on a web app for civil engineering. Kind of a startup idea that didn't materialize.
[01:56:57] moring: Radar: I have not read any books. Mostly look up stuff on the guide, stackoverflow, etc
[01:57:07] maesitos: has joined #RubyOnRails
[01:57:19] akshat: has joined #RubyOnRails
[01:57:22] mary5030: has joined #RubyOnRails
[01:57:30] Radar: moring: sevenseacat and I wrote a book called Rails 4 in Action. If your intention is to learn Rails and you want a project to build while doing so, then that book will fit that purpose.
[01:57:37] Radar: moring: !r4ia
[01:57:37] helpa: moring: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[01:57:56] Radar: It's the only Rails book on Amazon with an average of 5 stars.
[01:58:06] DmitryBochkarev: has joined #RubyOnRails
[01:58:52] sevenseacat: ACTION checks, yep, still got it
[01:59:03] maesitos_: has joined #RubyOnRails
[02:00:13] Radar: Ranked #506,823rd in all books on Amazon.
[02:00:17] moring: Radar: let me check it out
[02:00:52] maesitos: has joined #RubyOnRails
[02:01:05] Radar: (best rank was Feb 9th, at 88,386th.
[02:02:42] baweaver: has joined #RubyOnRails
[02:02:44] maesitos_: has joined #RubyOnRails
[02:02:49] moring: Radar: so my main goal is to learn more and try to find a remote job. Where could I go after your book?
[02:03:10] nbdy: has joined #RubyOnRails
[02:03:47] Radar: moring: After going through that book you could go on sites like https://weworkremotely.com/ and look for jobs there.
[02:04:39] maesitos: has joined #RubyOnRails
[02:06:18] nfk|laptop: has joined #RubyOnRails
[02:06:30] maesitos: has joined #RubyOnRails
[02:06:57] moring: Radar: ok, i've looked but I feel like I don't make the cut
[02:07:07] Radar: moring: for the book or weworkremotely.com/
[02:08:23] maesitos: has joined #RubyOnRails
[02:08:32] rgtk: has joined #RubyOnRails
[02:10:19] maesitos: has joined #RubyOnRails
[02:12:10] maesitos_: has joined #RubyOnRails
[02:12:44] rgtk_: has joined #RubyOnRails
[02:14:05] maesitos: has joined #RubyOnRails
[02:15:58] maesitos: has joined #RubyOnRails
[02:16:04] manfrin: has joined #RubyOnRails
[02:16:36] arBmind: has joined #RubyOnRails
[02:16:58] rgtk: has joined #RubyOnRails
[02:17:30] moring: Radar: for weworkremotely.com
[02:17:47] maesitos: has joined #RubyOnRails
[02:18:14] Kulo: has joined #RubyOnRails
[02:18:25] superlou: has joined #RubyOnRails
[02:19:33] adavia: they usually look for ppl with serious skills in those sites
[02:19:47] maesitos: has joined #RubyOnRails
[02:20:29] bronson: has joined #RubyOnRails
[02:21:09] rgtk_: has joined #RubyOnRails
[02:21:39] maesitos_: has joined #RubyOnRails
[02:23:30] maesitos: has joined #RubyOnRails
[02:25:25] maesitos_: has joined #RubyOnRails
[02:25:28] rgtk: has joined #RubyOnRails
[02:26:05] _Tariq: has joined #RubyOnRails
[02:26:17] KnownSyntax: has joined #RubyOnRails
[02:26:20] KnownSyntax: has joined #RubyOnRails
[02:27:15] maesitos: has joined #RubyOnRails
[02:28:41] JoshGlzBrk: has joined #RubyOnRails
[02:29:10] maesitos: has joined #RubyOnRails
[02:29:21] rgtk: has joined #RubyOnRails
[02:30:04] moring: adavia: What do you mean by serious skills? Like seasoned programmers?
[02:30:55] adavia: moring: talent
[02:31:20] maesitos: has joined #RubyOnRails
[02:31:57] moring: adavia: hmmm, makes sense. I guess your either have it or you don't. But how can they assest it?
[02:32:22] kies^: has joined #RubyOnRails
[02:32:25] Guest59535: has joined #RubyOnRails
[02:32:30] pwnd_nsfw`: has joined #RubyOnRails
[02:32:56] maesitos: has joined #RubyOnRails
[02:33:09] DmitryBochkarev: has joined #RubyOnRails
[02:33:17] stannard: has joined #RubyOnRails
[02:33:26] rgtk_: has joined #RubyOnRails
[02:33:49] adavia: morfin: interviews, tests, etc
[02:34:47] maesitos: has joined #RubyOnRails
[02:34:55] oniMaker: I've got serious skills.
[02:35:41] Spami: has joined #RubyOnRails
[02:36:44] maesitos: has joined #RubyOnRails
[02:37:05] moring: adavia: So, if I do some projects to improve my rails and then get an interview they'll be able to tell If Im worth hiring? Even if it might take a while to catch up?
[02:37:41] rgtk: has joined #RubyOnRails
[02:38:24] dexter_: has joined #RubyOnRails
[02:38:36] maesitos: has joined #RubyOnRails
[02:40:31] maesitos: has joined #RubyOnRails
[02:41:50] adavia: moring: usually they have a whole hiring process which i guess is even more fussy with remote positions
[02:42:06] rgtk_: has joined #RubyOnRails
[02:42:21] maesitos: has joined #RubyOnRails
[02:42:23] adavia: moring: anyways just keep learning and building stuff im also new with this
[02:42:42] moring: adavia: thanks! Good luck!
[02:44:24] unl0ckd: has joined #RubyOnRails
[02:46:10] maesitos_: has joined #RubyOnRails
[02:46:22] neilfse: has joined #RubyOnRails
[02:47:13] moring: well thanks everyone for the tips
[02:47:30] moring: i'll try to figure it out
[02:47:36] moring: good night
[02:47:41] moring: has left #RubyOnRails: ()
[02:48:03] maesitos: has joined #RubyOnRails
[02:49:04] rakm: has joined #RubyOnRails
[02:49:29] baweaver: has joined #RubyOnRails
[02:50:10] maesitos: has joined #RubyOnRails
[02:51:47] maesitos_: has joined #RubyOnRails
[02:52:06] spyd3r: has joined #RubyOnRails
[02:53:59] maesitos: has joined #RubyOnRails
[02:54:05] atrius: has joined #RubyOnRails
[02:54:54] stannard: has joined #RubyOnRails
[02:54:58] rgtk: has joined #RubyOnRails
[02:55:38] maesitos: has joined #RubyOnRails
[02:57:30] maesitos_: has joined #RubyOnRails
[02:59:23] maesitos: has joined #RubyOnRails
[03:01:17] maesitos: has joined #RubyOnRails
[03:01:57] emchamp: has joined #RubyOnRails
[03:03:07] maesitos: has joined #RubyOnRails
[03:04:57] Gabriel403: has joined #RubyOnRails
[03:05:03] maesitos: has joined #RubyOnRails
[03:06:10] Ropeney: has joined #RubyOnRails
[03:06:28] moeabdol1: has joined #RubyOnRails
[03:06:54] maesitos: has joined #RubyOnRails
[03:08:06] rgtk: has joined #RubyOnRails
[03:08:51] maesitos: has joined #RubyOnRails
[03:10:42] maesitos_: has joined #RubyOnRails
[03:11:54] rgtk: has joined #RubyOnRails
[03:12:34] maesitos: has joined #RubyOnRails
[03:14:29] maesitos: has joined #RubyOnRails
[03:15:52] DanKnox_: has joined #RubyOnRails
[03:15:53] DanKnox: has joined #RubyOnRails
[03:16:22] maesitos: has joined #RubyOnRails
[03:17:06] triptec: has joined #RubyOnRails
[03:18:18] maesitos: has joined #RubyOnRails
[03:20:06] maesitos: has joined #RubyOnRails
[03:21:00] Rodya_: has joined #RubyOnRails
[03:22:02] maesitos: has joined #RubyOnRails
[03:23:58] maesitos_: has joined #RubyOnRails
[03:25:05] rgtk: has joined #RubyOnRails
[03:25:09] hcnewsom: has joined #RubyOnRails
[03:25:46] maesitos: has joined #RubyOnRails
[03:27:44] maesitos_: has joined #RubyOnRails
[03:27:49] zworks: has joined #RubyOnRails
[03:27:59] zworks: Anyone knows how to use rails footnotes gem?
[03:28:20] zworks: Just installed it, but don't know how to get the most out of it
[03:28:41] _Tariq: has joined #RubyOnRails
[03:29:34] maesitos: has joined #RubyOnRails
[03:30:11] sevenseacat: the documentation might help
[03:31:25] maesitos: has joined #RubyOnRails
[03:33:54] arup_r: has joined #RubyOnRails
[03:34:18] roamingdog: has joined #RubyOnRails
[03:34:33] chouhoulis: has joined #RubyOnRails
[03:35:22] kirillzh: has joined #RubyOnRails
[03:37:23] roamingdog: has joined #RubyOnRails
[03:39:38] Arcaire: There's nowhere to ask my Phoenix questions like there is my Rails questions.
[03:39:50] sevenseacat: #elixir-lang works
[03:39:55] Arcaire: But Chris is in there.
[03:39:58] Arcaire: dhh isn't here
[03:40:07] sevenseacat: so you cant shitpost about it all day? :P
[03:40:12] Arcaire: It means I can ask blisteringly stupid questions here without being judged by the person behind the framework.
[03:40:18] Arcaire: But in #elixir-lang I can't do that.
[03:40:27] sevenseacat: no-one will judge you, they're way nicer than we are
[03:40:42] Arcaire: That is true, Chris is a pretty cool guy.
[03:40:50] cih: has joined #RubyOnRails
[03:41:47] arup_r: ok. I am going to ask some Rails questions shortly.. :)
[03:42:12] Arcaire: There's a familiar face.
[03:43:08] sevenseacat: we've got time to prepare ourselves. goody.
[03:43:13] pawnbox: has joined #RubyOnRails
[03:45:59] baweaver: has joined #RubyOnRails
[03:48:22] sevenseacat: writing a feature spec to cover redirecting to an external website and back to my site again, grrrr
[03:48:28] sevenseacat: can't seem to stub it out
[03:48:42] arup_r: I want to write my own admin panels.. I want to confirm if the way, I am trying to declare my routes is standard way to go or not. I am planning to write all normal routes inside the `admin` scope as I go. Looks like I am duplicating, but the intention of doing this pretty much clear to me. But I would like to get your feed back. I added some sample admin routes, which I will implement. https://gist.github.com/aruprakshit/09a27456b0809b446
[03:50:52] arup_r: after routes confirmation, I will ask another question though.. :)
[03:51:37] Pazician: has joined #RubyOnRails
[03:53:23] _Tariq: has joined #RubyOnRails
[03:53:25] sevenseacat: you havent asked the first question
[03:56:25] smizell_: has joined #RubyOnRails
[03:57:32] chipotle: has joined #RubyOnRails
[03:57:34] tbuehlmann: has joined #RubyOnRails
[03:57:34] sevenseacat: what's your actual question?
[03:57:44] arup_r: I asked. My question is the way I am namespacing the resources inside the `/admin` scope, is this a standard way to organize the routes. I am asking because once I did `resources :tournaments` for normal users, and again `scope "/admin" { resources :tournaments }` this will be for admin.
[03:58:03] arup_r: sevenseacat: I am asking the way I am organizing the routes are correct or not
[03:58:22] arup_r: for admin ofcourse.
[03:58:48] dkam: has joined #RubyOnRails
[03:59:07] _Tariq: has joined #RubyOnRails
[03:59:51] triptec: has joined #RubyOnRails
[04:00:21] arup_r: and my second question is i am thinking to create controllers for admin separately under the admin/ directories. Like app/controllers/admin/tournaments_controller.rb, and for normal users I have already like `app/controllers/tournaments_controller.rb`
[04:00:39] Omen: has joined #RubyOnRails
[04:01:38] arup_r: I am using pundit to set up authorization which applies for normal users, but admin is a super admin, so I will not have any restriction on them. That's why thinking to make a separate controller to do them CRUD after authentication.
[04:02:14] treaki__: has joined #RubyOnRails
[04:06:12] treaki: has joined #RubyOnRails
[04:06:36] moeabdol1: has joined #RubyOnRails
[04:07:05] Graphettion: has joined #RubyOnRails
[04:09:40] tildes: has joined #RubyOnRails
[04:11:10] hippyphysicist: has joined #RubyOnRails
[04:11:46] emaxi: has joined #RubyOnRails
[04:12:43] braincrash: has joined #RubyOnRails
[04:14:28] Radar: arup_r: yes it's standard to structure them that way
[04:14:32] Radar: it's the way recommended in Rails 4 in Action
[04:14:46] Radar: we do namespace :admin though so that the controllers are Admin::ProjectsController, for example.
[04:15:03] Radar: This provides a clear difference between what controllers + actions are user facing and what controllers + actions are admin facing.
[04:16:41] stannard: has joined #RubyOnRails
[04:17:12] arup_r: thanks Radar for the reply
[04:19:59] fedexo: has joined #RubyOnRails
[04:24:25] moeabdol2: has joined #RubyOnRails
[04:25:21] treaki: has joined #RubyOnRails
[04:26:35] DanKnox: has joined #RubyOnRails
[04:26:41] DanKnox_: has joined #RubyOnRails
[04:27:40] bronson: has joined #RubyOnRails
[04:29:53] triptec: has joined #RubyOnRails
[04:32:15] dopamean_: has joined #RubyOnRails
[04:33:18] AntiSpamMeta: has joined #RubyOnRails
[04:35:15] algernop_k: has joined #RubyOnRails
[04:35:27] voker57: has joined #RubyOnRails
[04:35:27] voker57: has joined #RubyOnRails
[04:36:08] krz: has joined #RubyOnRails
[04:36:27] drPoggs: has joined #RubyOnRails
[04:37:18] DylanJ: has joined #RubyOnRails
[04:41:14] duncannz: has joined #RubyOnRails
[04:41:22] pawnbox: has joined #RubyOnRails
[04:44:50] kirillzh: has joined #RubyOnRails
[04:45:32] waltz: has joined #RubyOnRails
[04:58:44] kp666: has joined #RubyOnRails
[04:59:24] godzillaenlacasa: has joined #RubyOnRails
[04:59:44] treaki_: has joined #RubyOnRails
[05:00:04] kp666: has joined #RubyOnRails
[05:00:24] manfrin: has joined #RubyOnRails
[05:04:03] treaki: has joined #RubyOnRails
[05:10:47] chipotle: has joined #RubyOnRails
[05:11:46] chouhoulis: has joined #RubyOnRails
[05:12:02] diegoviola: has joined #RubyOnRails
[05:18:07] shanemcd: has joined #RubyOnRails
[05:20:01] DEA7TH: has joined #RubyOnRails
[05:24:55] Nuck: So, I'm using factory_girl with this setup https://gist.github.com/NuckChorris/005689719aeacf72dac8 and it blows the stack. I mean, it's *obvious* why it blows the stack, but really waht I'm wondering is how the hell to make it not, while still keeping both valid
[05:26:03] DEA7TH: has joined #RubyOnRails
[05:26:08] Radar: nuck: Maybe have it so that you are building only a coach or a team and that you're not implicitly creating the associations when you create those objects.
[05:26:31] Radar: nuck: We have this exact problem in our app at the moment where you go something like FactoryGirl.create(:advert) and it creates 10 records when more often than not you really only need one
[05:26:39] Nuck: Radar: Yes, but then my factories produce invalid objects and FactoryGirl.lint is a jerk
[05:26:52] Radar: nuck: So remove the coachable validation then.
[05:27:12] Radar: Or both validations, actually.
[05:27:23] Radar: It's not a user-facing validation and so I think it's unnecessary.
[05:27:25] Nuck: But they're damn useful validations
[05:27:40] Radar: You're effectively enforcing the same thing as a foreign key constraint would enforce
[05:28:04] Nuck: Well, I enforce the coach-of-coachable constraint on the database layer
[05:28:33] Nuck: And I guess the other direction could be handled by my authorization layer
[05:29:43] Nuck: Radar: And it's not the same as a foreign key constraint. Since one end is presence of a has_many, my understanding is that enforces a non-empty list
[05:29:55] Radar: nuck: Why is that validation useful, though?
[05:30:10] Nuck: Make absolutely sure that we don't end up with orphaned teams
[05:31:38] Nuck: Since a team can have N coaches, but a team needs at least one to act as administrator for it
[05:31:50] atrius: has joined #RubyOnRails
[05:32:20] maesitos: has joined #RubyOnRails
[05:33:06] techsethi: has joined #RubyOnRails
[05:33:25] Nuck: I can probably safely remove the other validation though... the database will enforce it, and beyond that it's still an edgecase
[05:34:13] Devalo: has joined #RubyOnRails
[05:34:14] rhizome: before_destroy and check
[05:34:23] Nuck: Wait, no, that's also user-facing since users can do it :(
[05:34:39] arup_r: has joined #RubyOnRails
[05:34:51] Nuck: Now *that* is a perfect answer
[05:34:55] Nuck: Thank you rhizome
[05:36:25] KensoDev: has joined #RubyOnRails
[05:36:59] yfeldblum: has joined #RubyOnRails
[05:39:14] rvanlieshout: has joined #RubyOnRails
[05:44:17] PolarIce: has joined #RubyOnRails
[05:46:51] apotry: has joined #RubyOnRails
[05:47:13] dkam: has joined #RubyOnRails
[05:47:20] rhizome: you're welcome
[05:50:59] asianMike: has joined #RubyOnRails
[05:52:08] Pazician: has joined #RubyOnRails
[05:54:26] DanKnox: has joined #RubyOnRails
[05:54:32] DanKnox_: has joined #RubyOnRails
[05:54:37] SteenJobs: is the best way to create an admin user (when hosting on heroku in this case) to just do it thru rails console? I would add it to db/seeds, but since it’s sensitive info it would presumably be in .gitignore, and then i’m guessing heroku won’t have access to it
[05:57:43] alex88: has joined #RubyOnRails
[05:58:03] Eswar: has joined #RubyOnRails
[05:59:03] agoldboi: has joined #RubyOnRails
[05:59:33] krzkrz: has joined #RubyOnRails
[06:02:50] rubyonrailed: has joined #RubyOnRails
[06:05:07] mary5030: has joined #RubyOnRails
[06:05:39] lxsameer: has joined #RubyOnRails
[06:06:25] srinidhi: has joined #RubyOnRails
[06:06:38] draig: has joined #RubyOnRails
[06:06:54] arup_r: SteenJobs: you can create a Rake task, where the you can pass the secures values as arguments to the rake task
[06:07:26] arup_r: In that way, you are safe on not exposing any thing confidentials
[06:08:01] techsethi: has joined #RubyOnRails
[06:08:05] SteenJobs: not a bad idea, but at that point it doesn’t add much over just creating through rails console. granted you don’t have to create the object if done thru a rake task, but you still have to manually input the info.
[06:08:28] SteenJobs: good approach though in general
[06:09:26] mephistophocles: has joined #RubyOnRails
[06:09:48] chipotle: has joined #RubyOnRails
[06:12:41] chouhoulis: has joined #RubyOnRails
[06:15:16] Rodya_: has joined #RubyOnRails
[06:16:24] pawnbox: has joined #RubyOnRails
[06:18:20] jscheel: has joined #RubyOnRails
[06:18:22] Palsson: has joined #RubyOnRails
[06:24:14] timmyBsd: has joined #RubyOnRails
[06:24:40] Diaoer: has joined #RubyOnRails
[06:25:44] Diaoer: has joined #RubyOnRails
[06:28:09] Eswar: has joined #RubyOnRails
[06:29:32] bronson: has joined #RubyOnRails
[06:29:41] rickmasta: has joined #RubyOnRails
[06:30:52] atrius: has joined #RubyOnRails
[06:36:09] ziyadb: has joined #RubyOnRails
[06:37:15] aganov: has joined #RubyOnRails
[06:38:17] stannard: has joined #RubyOnRails
[06:44:20] triptec: has joined #RubyOnRails
[06:45:12] intrigueD: has joined #RubyOnRails
[06:45:56] chipotle: has joined #RubyOnRails
[06:48:19] SusieDerkins: has joined #RubyOnRails
[06:50:07] yfeldblum: has joined #RubyOnRails
[06:50:16] Rodya_: has joined #RubyOnRails
[06:50:26] zenergi: has joined #RubyOnRails
[06:51:13] shanemcd: has joined #RubyOnRails
[06:52:11] dkam: has joined #RubyOnRails
[06:54:12] ur5us: has joined #RubyOnRails
[06:54:25] neanderslob_: has joined #RubyOnRails
[06:54:53] SkepBrain: has joined #RubyOnRails
[06:54:56] yardenbar: has joined #RubyOnRails
[06:55:11] neanderslob_: has joined #RubyOnRails
[06:56:05] solars: has joined #RubyOnRails
[06:56:18] DanKnox: has joined #RubyOnRails
[06:56:39] netzfisch: has joined #RubyOnRails
[06:57:03] neanderslob: has joined #RubyOnRails
[06:57:21] DanKnox_: has joined #RubyOnRails
[06:58:22] Technodrome: has joined #RubyOnRails
[06:59:52] blackmesa: has joined #RubyOnRails
[07:00:16] futilegames: has joined #RubyOnRails
[07:07:50] rgtk: has joined #RubyOnRails
[07:09:00] shiffles: has joined #RubyOnRails
[07:09:43] apg: has joined #RubyOnRails
[07:13:38] chouhoulis: has joined #RubyOnRails
[07:16:07] netzfisch: has joined #RubyOnRails
[07:17:01] Guest1068: has joined #RubyOnRails
[07:17:04] atrius: has joined #RubyOnRails
[07:18:27] cih: has joined #RubyOnRails
[07:20:15] PolarIce: has joined #RubyOnRails
[07:20:21] Guest1068: has joined #RubyOnRails
[07:20:22] sandstrom: has joined #RubyOnRails
[07:21:19] Pazician: has joined #RubyOnRails
[07:22:20] tvw: has joined #RubyOnRails
[07:26:37] mhoungbo: has joined #RubyOnRails
[07:26:43] pyemkey: has joined #RubyOnRails
[07:27:49] bklane: has joined #RubyOnRails
[07:32:09] gingray: has joined #RubyOnRails
[07:32:16] Pazician: has joined #RubyOnRails
[07:33:13] maesitos: has joined #RubyOnRails
[07:35:26] [dmp]: has joined #RubyOnRails
[07:39:17] Macaveli: has joined #RubyOnRails
[07:43:18] chrissonar: has joined #RubyOnRails
[07:45:20] mdw: has joined #RubyOnRails
[07:47:29] christianrolle: has joined #RubyOnRails
[07:49:03] Macaveli_: has joined #RubyOnRails
[07:49:19] tetraktys: has joined #RubyOnRails
[07:49:59] chrisrolle: has joined #RubyOnRails
[07:51:41] chrisrolle: has joined #RubyOnRails
[07:51:49] sandstrom: has joined #RubyOnRails
[07:53:06] dkam: has joined #RubyOnRails
[07:54:06] bklane_: has joined #RubyOnRails
[07:54:11] darutoko: has joined #RubyOnRails
[07:54:59] chrisrolle: has joined #RubyOnRails
[07:56:08] quazimodo: has joined #RubyOnRails
[07:56:19] chrisrolle: has joined #RubyOnRails
[07:57:56] rubyonrailed: has joined #RubyOnRails
[07:58:06] GriffinHeart: has joined #RubyOnRails
[07:58:07] dionysus69: has joined #RubyOnRails
[07:59:07] chrisrolle: has joined #RubyOnRails
[08:00:21] chrisrolle: has joined #RubyOnRails
[08:01:48] DanKnox_: has joined #RubyOnRails
[08:01:48] DanKnox: has joined #RubyOnRails
[08:03:04] roshanavand: has joined #RubyOnRails
[08:04:15] chipotle: has joined #RubyOnRails
[08:05:36] chrisrolle: has joined #RubyOnRails
[08:07:07] alphaatom: has joined #RubyOnRails
[08:07:11] comrad: has joined #RubyOnRails
[08:07:31] bklane: has joined #RubyOnRails
[08:07:53] defsdoor: has joined #RubyOnRails
[08:11:47] artto: has joined #RubyOnRails
[08:11:57] jottr_: has joined #RubyOnRails
[08:13:43] Technodrome: has joined #RubyOnRails
[08:14:33] MuffinPimp: has joined #RubyOnRails
[08:15:41] chouhoulis: has joined #RubyOnRails
[08:16:30] Macaveli: has joined #RubyOnRails
[08:16:38] quazimodo: when using docker should I asset precompile before, during build or during first image run
[08:16:50] quazimodo: I can't really decide
[08:23:50] bklane: has joined #RubyOnRails
[08:25:06] atrius: has joined #RubyOnRails
[08:25:32] giom: has joined #RubyOnRails
[08:26:37] Surt_Q: has joined #RubyOnRails
[08:26:58] sandstrom: has joined #RubyOnRails
[08:27:00] kmckelvin: has joined #RubyOnRails
[08:27:15] Macaveli: has joined #RubyOnRails
[08:27:46] spyd3r: has joined #RubyOnRails
[08:27:57] Macaveli: has joined #RubyOnRails
[08:28:03] antgel: has joined #RubyOnRails
[08:29:10] adre: has joined #RubyOnRails
[08:29:55] dkam: has joined #RubyOnRails
[08:30:50] bronson: has joined #RubyOnRails
[08:31:50] timmyBsd: has joined #RubyOnRails
[08:32:34] rgtk: has joined #RubyOnRails
[08:33:00] pawnbox: has joined #RubyOnRails
[08:33:01] futilegames: has joined #RubyOnRails
[08:33:33] tbuehlmann: has joined #RubyOnRails
[08:35:46] yfeldblum: has joined #RubyOnRails
[08:35:47] norc_: has joined #RubyOnRails
[08:36:12] StaticVoid: has joined #RubyOnRails
[08:38:55] Palsson_: has joined #RubyOnRails
[08:39:07] stannard: has joined #RubyOnRails
[08:39:35] atrius: has joined #RubyOnRails
[08:42:41] herpless: has joined #RubyOnRails
[08:43:58] neanderslob: has joined #RubyOnRails
[08:48:18] roshanavand: has joined #RubyOnRails
[08:50:07] nettoweb: has joined #RubyOnRails
[08:50:32] quazimodo: has joined #RubyOnRails
[08:50:50] cih: has joined #RubyOnRails
[08:51:52] AzaToth: has joined #RubyOnRails
[08:52:19] pawnbox: has joined #RubyOnRails
[08:53:39] pyemkey: has joined #RubyOnRails
[08:59:07] techsethi: has joined #RubyOnRails
[08:59:32] abracadaniel: has joined #RubyOnRails
[09:00:01] stannard: has joined #RubyOnRails
[09:00:40] mdw: has joined #RubyOnRails
[09:01:02] Psy-Q: has joined #RubyOnRails
[09:03:51] DanKnox_: has joined #RubyOnRails
[09:03:51] DanKnox: has joined #RubyOnRails
[09:05:31] rubyonrailed: has joined #RubyOnRails
[09:06:17] marienz: has joined #RubyOnRails
[09:07:00] artto_: has joined #RubyOnRails
[09:09:51] Omen: has joined #RubyOnRails
[09:10:08] atrius: has joined #RubyOnRails
[09:11:32] msyvich: has joined #RubyOnRails
[09:12:50] pydave6367: has joined #RubyOnRails
[09:15:08] msyvich: has joined #RubyOnRails
[09:15:35] ddv: quazimodo: during
[09:15:54] ddv: (build)
[09:16:28] chouhoulis: has joined #RubyOnRails
[09:17:57] pjammer: has joined #RubyOnRails
[09:18:02] pydave6367: has joined #RubyOnRails
[09:20:37] RTG`: has joined #RubyOnRails
[09:21:09] atrius: has joined #RubyOnRails
[09:23:05] Dbugger: has joined #RubyOnRails
[09:23:08] Dbugger: Hello everyone
[09:23:24] dangerousdave: has joined #RubyOnRails
[09:23:37] Dbugger: I have a small issue with RoR and bootstrap. I get a "Undefined variable: $alert-padding" and I have no idea how to fix it. Can anyone help me figure out how, please?
[09:24:15] ddv: use a dbugger, dbugger
[09:24:39] ddv: anyways check your application.{s}css?
[09:25:09] kirillzh: has joined #RubyOnRails
[09:25:35] Dbugger: ddv, what should I look out for exactly?
[09:25:58] ddv: precedence is my guess
[09:28:08] Dbugger: What line is the one adding bootstrap exactly?
[09:29:51] cih: has joined #RubyOnRails
[09:30:40] dkam: has joined #RubyOnRails
[09:32:03] Hates_: dbugger: is this a new error or you're trying to add bootstrap to your project?
[09:32:30] snowbro: has joined #RubyOnRails
[09:33:21] Eswar: has joined #RubyOnRails
[09:33:47] rgtk: has joined #RubyOnRails
[09:34:10] atrius: has joined #RubyOnRails
[09:34:12] maesitos: has joined #RubyOnRails
[09:34:47] aganov: has joined #RubyOnRails
[09:36:25] Dbugger: Hates_, Im starting on a old project. and Im starting to set up the project in my computer
[09:36:32] Dbugger: but the start is being kinda bumpy
[09:36:39] Dbugger: and my new colleagues have no idea why this error is happening
[09:39:48] blackhuey: has joined #RubyOnRails
[09:40:17] baweaver: has joined #RubyOnRails
[09:40:54] quazimodo: has joined #RubyOnRails
[09:41:02] Hates_: dbugger: is the error in your existing scss or is a bootstrap scss file complaining?
[09:41:39] tetraktys: has joined #RubyOnRails
[09:41:50] Dbugger: Hates_, I dont know...
[09:41:57] worknick: has joined #RubyOnRails
[09:42:42] Hates_: dbugger: the error should tell you which file the error is in
[09:43:06] Dbugger: It says: Showing /home/dbugger/projects/myprojects/app/views/layouts/backend.html.erb where line #9 raised:
[09:43:16] Dbugger: so I guess it is my own problem
[09:43:19] Dbugger: but I could be wrong
[09:43:51] Hates_: dbugger: can you put the whole stacktrace/error in a gist
[09:44:16] roshanavand: has joined #RubyOnRails
[09:44:18] sevenseacat: has joined #RubyOnRails
[09:45:14] Dbugger: Here: https://gist.github.com/enriquemorenotent/570a730bf117c9a3a776
[09:46:16] Dbugger: Hates_, not sure what I can get out of it. It seems to be a problem that only happens when the project is set u pfor first time
[09:46:21] Dbugger: because my colelagues have no problem with the project
[09:46:36] Dbugger: but I heard that it also happened once to another colleague
[09:47:51] Hates_: dbugger: you have the bootstrap-sprockets include in your scss file too?
[09:48:42] Dbugger: Let me see
[09:48:54] Dbugger: I have gem 'bootstrap-sass', '~> 3.3.5'
[09:49:38] rodfersou: has joined #RubyOnRails
[09:51:30] rhizome: what does your application.css look like?
[09:51:38] rhizome: are you just doing require_tree?
[09:52:15] FooMunki: has joined #RubyOnRails
[09:52:23] Dbugger: let me see
[09:52:32] Dbugger: I dont have an application.css
[09:52:54] Dbugger: I have an application.css.scss
[09:52:54] soahccc: has joined #RubyOnRails
[09:52:54] tparenti: has joined #RubyOnRails
[09:52:54] greenhat: has joined #RubyOnRails
[09:52:54] sung: has joined #RubyOnRails
[09:53:01] jamo: has joined #RubyOnRails
[09:53:01] livcd: has joined #RubyOnRails
[09:53:01] philtr: has joined #RubyOnRails
[09:53:01] Quintasan: has joined #RubyOnRails
[09:53:01] Quintasan: has joined #RubyOnRails
[09:53:02] rtl: has joined #RubyOnRails
[09:53:07] raenk: has joined #RubyOnRails
[09:53:07] aep: has joined #RubyOnRails
[09:53:07] sung: has joined #RubyOnRails
[09:53:07] Xat`: has joined #RubyOnRails
[09:53:07] veloutin: has joined #RubyOnRails
[09:53:07] waseem_: has joined #RubyOnRails
[09:53:08] DefV: has joined #RubyOnRails
[09:53:08] fourq: has joined #RubyOnRails
[09:53:08] EXCHGR: has joined #RubyOnRails
[09:53:08] noah256: has joined #RubyOnRails
[09:53:08] Paradox: has joined #RubyOnRails
[09:53:08] Fire-Dragon-DoL: has joined #RubyOnRails
[09:53:08] chaas: has joined #RubyOnRails
[09:53:08] jalcine: has joined #RubyOnRails
[09:53:08] ciree: has joined #RubyOnRails
[09:53:08] elektronaut: has joined #RubyOnRails
[09:53:08] Olipro: has joined #RubyOnRails
[09:53:08] _fortis: has joined #RubyOnRails
[09:53:09] xMopxShell: has joined #RubyOnRails
[09:53:09] beingjohnm: has joined #RubyOnRails
[09:53:09] Diabolik: has joined #RubyOnRails
[09:53:09] fumduq: has joined #RubyOnRails
[09:53:10] differentreality: has joined #RubyOnRails
[09:53:10] Veejay: has joined #RubyOnRails
[09:53:12] eduardodeoh: has joined #RubyOnRails
[09:53:12] FooMunki: has joined #RubyOnRails
[09:53:12] \13k: has joined #RubyOnRails
[09:53:17] gremly: has joined #RubyOnRails
[09:53:20] thorgi: has joined #RubyOnRails
[09:53:20] borkdude: has joined #RubyOnRails
[09:53:20] djbkd: has joined #RubyOnRails
[09:53:20] drupald: has joined #RubyOnRails
[09:53:23] davidcelis: has joined #RubyOnRails
[09:53:23] davidcelis: has joined #RubyOnRails
[09:53:23] ankhers: has joined #RubyOnRails
[09:53:24] djellemah: has joined #RubyOnRails
[09:53:24] mhenrixon: has joined #RubyOnRails
[09:53:27] shamanime: has joined #RubyOnRails
[09:53:27] berserk_ren: has joined #RubyOnRails
[09:53:32] Olipro_: has joined #RubyOnRails
[09:54:14] Andr3as: has joined #RubyOnRails
[09:54:14] contradictioned: has joined #RubyOnRails
[09:54:15] hoodow: has joined #RubyOnRails
[09:54:15] hoodow: has joined #RubyOnRails
[09:54:33] thomasfedb: has joined #RubyOnRails
[09:54:33] artmann: has joined #RubyOnRails
[09:54:33] thomasfedb: has joined #RubyOnRails
[09:55:18] cih: has joined #RubyOnRails
[09:55:29] Guest56206: has joined #RubyOnRails
[09:55:34] phrozen77: has joined #RubyOnRails
[09:55:34] avelldiroll: has joined #RubyOnRails
[09:55:35] xybre: has joined #RubyOnRails
[09:55:35] joeytwiddle: has joined #RubyOnRails
[09:55:35] AntiSpamMeta_: has joined #RubyOnRails
[09:55:35] Emily: has joined #RubyOnRails
[09:55:35] kalzz: has joined #RubyOnRails
[09:55:35] g3funk: has joined #RubyOnRails
[09:55:37] gremax: has joined #RubyOnRails
[09:55:37] roshanavand: has joined #RubyOnRails
[09:55:47] sekrit: has joined #RubyOnRails
[09:56:04] Eswar: has joined #RubyOnRails
[09:57:45] silverdust: has joined #RubyOnRails
[09:57:47] kallisti5: has joined #RubyOnRails
[09:57:54] jsrn_: has joined #RubyOnRails
[09:57:58] Dbugger: Well, that was a nice netsplit
[09:58:00] Dbugger: just in time
[09:58:11] justinweiss: has joined #RubyOnRails
[09:58:49] nibbo: has joined #RubyOnRails
[09:58:49] atian: has joined #RubyOnRails
[09:59:00] epitron: has joined #RubyOnRails
[09:59:05] jcp: has joined #RubyOnRails
[09:59:30] czetter: has joined #RubyOnRails
[09:59:33] daxroc: has joined #RubyOnRails
[09:59:41] sdn90: has joined #RubyOnRails
[09:59:43] Guest13231: has left #RubyOnRails: ()
[09:59:43] swgillespie: has joined #RubyOnRails
[09:59:52] golgaroth: has joined #RubyOnRails
[10:00:15] DukeDave: has joined #RubyOnRails
[10:00:20] RubyNewbey_____: has joined #RubyOnRails
[10:00:34] lbotos_: has joined #RubyOnRails
[10:00:53] Hates_: has joined #RubyOnRails
[10:01:01] deeprave: has joined #RubyOnRails
[10:01:02] dmcc: has joined #RubyOnRails
[10:02:06] roamingdog: has joined #RubyOnRails
[10:02:13] ewilliam: has joined #RubyOnRails
[10:02:13] ELCALOR: has joined #RubyOnRails
[10:02:24] gmci: has joined #RubyOnRails
[10:03:10] kumavis: has joined #RubyOnRails
[10:03:24] Eswar: has joined #RubyOnRails
[10:03:32] tejasmanohar: has joined #RubyOnRails
[10:03:49] alxndr: has joined #RubyOnRails
[10:03:49] thomasfedb: has joined #RubyOnRails
[10:03:49] thomasfedb: has joined #RubyOnRails
[10:03:49] Quintasan: has joined #RubyOnRails
[10:03:49] Quintasan: has joined #RubyOnRails
[10:03:52] tparenti: has joined #RubyOnRails
[10:03:53] zenergi: has joined #RubyOnRails
[10:03:56] StaticVoid: has joined #RubyOnRails
[10:03:57] timmyBsd: has joined #RubyOnRails
[10:04:00] ciree: has joined #RubyOnRails
[10:04:07] defsdoor: has joined #RubyOnRails
[10:04:12] pawnbox: has joined #RubyOnRails
[10:04:40] voker57: has joined #RubyOnRails
[10:04:40] Andr3as: has joined #RubyOnRails
[10:04:40] voker57: has joined #RubyOnRails
[10:04:45] techsethi: has joined #RubyOnRails
[10:04:47] borkdude: has joined #RubyOnRails
[10:04:50] Dbugger: Hates_, Ey, welcome back!
[10:04:55] hoodow: has joined #RubyOnRails
[10:04:55] hoodow: has joined #RubyOnRails
[10:04:55] contradictioned: has joined #RubyOnRails
[10:04:55] artmann: has joined #RubyOnRails
[10:05:10] cjk101010: has joined #RubyOnRails
[10:05:13] Dbugger: Hates_, as I was saying before, I have no application.css but I do have an application.css.scss
[10:05:13] soahccc: has joined #RubyOnRails
[10:05:15] phrozen77: has joined #RubyOnRails
[10:05:33] differentreality: has joined #RubyOnRails
[10:05:33] elektronaut: has joined #RubyOnRails
[10:05:35] drPoggs: has joined #RubyOnRails
[10:05:40] waldi_: has joined #RubyOnRails
[10:05:40] toydestroyer: has joined #RubyOnRails
[10:05:47] dustinm`: has joined #RubyOnRails
[10:06:13] RTG`: has joined #RubyOnRails
[10:06:36] DanKnox: has joined #RubyOnRails
[10:06:54] jlpeters: has joined #RubyOnRails
[10:07:00] joaomdmoura__: has joined #RubyOnRails
[10:09:07] BaNzounet: has joined #RubyOnRails
[10:09:07] jamo: has joined #RubyOnRails
[10:09:08] trinaldi: has joined #RubyOnRails
[10:09:08] livcd: has joined #RubyOnRails
[10:09:08] parus: has joined #RubyOnRails
[10:09:08] arBmind: has joined #RubyOnRails
[10:09:08] penguinpowernz: has joined #RubyOnRails
[10:09:08] targaf: has joined #RubyOnRails
[10:09:08] SkepBrain: has joined #RubyOnRails
[10:09:08] techsethi_: has joined #RubyOnRails
[10:09:09] mclee: has joined #RubyOnRails
[10:09:09] noah256: has joined #RubyOnRails
[10:09:09] Thouren: has joined #RubyOnRails
[10:09:09] kallisti5: has joined #RubyOnRails
[10:09:09] c0defeed: has joined #RubyOnRails
[10:09:09] tenderlove: has joined #RubyOnRails
[10:09:09] Fire-Dragon-DoL: has joined #RubyOnRails
[10:09:09] pyemkey: has joined #RubyOnRails
[10:09:09] tercenya: has joined #RubyOnRails
[10:09:09] Paradox: has joined #RubyOnRails
[10:09:10] cookiez: has joined #RubyOnRails
[10:09:10] nettoweb: has joined #RubyOnRails
[10:09:10] FooMunki: has joined #RubyOnRails
[10:09:10] DanKnox_: has joined #RubyOnRails
[10:09:16] phon: has joined #RubyOnRails
[10:09:24] chipotle: has joined #RubyOnRails
[10:09:35] Mchl: has joined #RubyOnRails
[10:09:45] thejoecarroll: has joined #RubyOnRails
[10:10:39] yardenbar: has joined #RubyOnRails
[10:10:41] berserk_ren: has joined #RubyOnRails
[10:10:45] Surt_Q: has joined #RubyOnRails
[10:11:00] rhizome: that's fine
[10:11:07] srinidhi: has joined #RubyOnRails
[10:11:23] alethea: has joined #RubyOnRails
[10:11:33] c355E3B: has joined #RubyOnRails
[10:11:42] atian: has joined #RubyOnRails
[10:12:29] gremax: has joined #RubyOnRails
[10:12:45] justinweiss: has joined #RubyOnRails
[10:12:54] Terens: has joined #RubyOnRails
[10:12:58] neilfse: has joined #RubyOnRails
[10:13:06] spastorino: has joined #RubyOnRails
[10:13:10] shwoodard____: has joined #RubyOnRails
[10:13:17] gavit: has joined #RubyOnRails
[10:13:52] swgillespie: has joined #RubyOnRails
[10:13:56] deeprave: has joined #RubyOnRails
[10:13:58] Hates_: dbugger: freenode having a bad day. can you gist your application.scss
[10:14:28] aujt74: has joined #RubyOnRails
[10:14:51] benlakey: has joined #RubyOnRails
[10:15:05] jottr_: has joined #RubyOnRails
[10:15:18] mark1: has joined #RubyOnRails
[10:15:32] Arcaire: has joined #RubyOnRails
[10:16:00] Eswar: has joined #RubyOnRails
[10:16:19] sdn90: has joined #RubyOnRails
[10:16:32] srinidhi: has joined #RubyOnRails
[10:16:58] Dbugger: Hates_, sure
[10:17:08] chouhoulis: has joined #RubyOnRails
[10:17:30] Dbugger: Hates_, https://gist.github.com/enriquemorenotent/90210738eb68a1eeb32b
[10:17:35] Guest12896: has joined #RubyOnRails
[10:17:44] Dbugger: It is not "application.scss". It is "application.css.scss"
[10:18:23] Hates_: dbugger: hmmm and what's in your bootstrap_and_overrides file? perhaps you need to move from require to proper scss @imports
[10:18:43] Hates_: sorry got to shoot.. daily standup :)
[10:19:07] maesitos: has joined #RubyOnRails
[10:20:00] p1k: has joined #RubyOnRails
[10:20:33] Dbugger: Hates_, there I have this: $icon-font-path: "fonts/bootstrap/";
[10:20:33] Dbugger: @import "bootstrap";
[10:20:33] Dbugger: @import "bootstrap-sprockets";
[10:22:56] Dbugger: and nothing else
[10:23:52] Dbugger: Another thing I should probably mention, the error comes on this line: "<%= javascript_include_tag 'application' %>"
[10:24:03] Dbugger: Weirdly enough, it is the Js line and not the CSS line
[10:25:25] rhizome: what's in your application.js?
[10:25:55] Dbugger: The weird thing is that if I delete completely that line, the same error comes on the stylesheet line
[10:26:05] Dbugger: so it must be a issue with the whole precompiling... somehow
[10:26:35] Dbugger: rhizome, this: https://gist.github.com/enriquemorenotent/aa44b6dbe653e15a0433
[10:26:47] Hates_: dbugger: sprokects should be before bootstrap
[10:27:07] dkam: has joined #RubyOnRails
[10:27:25] Dbugger: Hates_, I changed it, and I still get the same error
[10:27:33] shanemcd: has joined #RubyOnRails
[10:28:57] adre: has joined #RubyOnRails
[10:29:35] atrius: has joined #RubyOnRails
[10:30:45] Eswar1: has joined #RubyOnRails
[10:34:47] yfeldblum: has joined #RubyOnRails
[10:35:42] yfeldblum: has joined #RubyOnRails
[10:35:57] artto: has joined #RubyOnRails
[10:36:01] tvw: has joined #RubyOnRails
[10:38:45] quazimodo: ddv: yeah I think so
[10:39:09] quazimodo: ddv: recon it's worth it to use the same docker-compose trick done with gems to speed up asset compilation?
[10:39:29] atrius: has joined #RubyOnRails
[10:47:41] Psy-Q: has joined #RubyOnRails
[10:48:41] Ergo: has joined #RubyOnRails
[19:40:59] helpa: has joined #RubyOnRails
[19:40:59] hron84: so eq({:start_year ...
[19:41:50] hron84: dopie: it's because Ruby thinks the opening curly braces are a start of a method expression, like how you use Array#each
[19:42:13] hron84: s/method expression/block expression/
[19:42:51] hron84: so ruby thinks you want to exec { :start date => } as a ruby code and does not treat it as a hash value
[19:42:56] dsimon: hron84, yeah, that always bugs me, i wish i could go back in time and force the curly nullity block expression syntax to be foo {|| ... }
[19:44:52] ur5us: has joined #RubyOnRails
[19:45:23] FernandoBasso: has joined #RubyOnRails
[19:46:08] bklane: has joined #RubyOnRails
[19:47:29] droptone: Question: Can anyone here translate this backtrace? https://gist.github.com/anonymous/34b66fe140fd4073be9b
[19:47:45] droptone: It appears to me that railties has a syntax error but I have no idea why, I've never seen this before and I work on rails all the time
[19:47:56] droptone: I've blown away and re-installed bundler then all gems via bundler, no effect.
[19:50:25] intrigueD: has joined #RubyOnRails
[19:50:31] droptone: It's this line in railties 4.2.5.1: delegate :initialize!, :initialized?, to: :application
[19:51:20] Radar: I see the problem
[19:51:24] Radar: home/tfc_spa/.rvm/
[19:51:40] droptone: Is this some joke about not using rvm?
[19:51:46] Radar: very funny oen
[19:51:47] droptone: Awesome, ty
[19:52:06] Radar: I'd imagine you'd get that error if Ruby 2.2.4 wasn't, in fact, Ruby 2.2.4
[19:52:21] Radar: like if it was for some fucked up reason, Ruby 1..87.
[19:52:24] droptone: ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]
[19:52:38] roshanavand: has joined #RubyOnRails
[19:52:44] droptone: Although, hmm...
[19:52:45] jottr: has joined #RubyOnRails
[19:53:02] dopie: has joined #RubyOnRails
[19:53:10] hron84: One more question about strong_parameters: if I do not use #permit, there is a protection by default on the model instances if they are fetched out of web scope? E.g. from a job?
[19:53:49] hron84: So can i update these attributes freely and I can restrict the access, or it has a no-access restriction by default?
[19:53:53] droptone: Well that's an interesting point Radar, this is a centos multisite Rails dev box wheree we deploy passenger on the system install so we can have multiple independent rails sites as hosts
[19:54:00] droptone: interesting*
[19:54:10] rhizome: hron84: not sure i understand
[19:54:14] droptone: And of course the default system deployment of ruby is 1.8.7
[19:54:19] matthewd: hron84: No; if you're not passing strong parameters, it's inferred to not be user-supplied, and it thus just does what it's told
[19:54:22] Radar: hron84: no access restriction by default. Parameters are only restricted in controllers.
[19:54:23] droptone: But this normally works fine, we never have issues, been this way for a year.
[19:54:43] Radar: hron84: Unless you pass it an ActionController::Parameters list... but in a job, the params list should be deserialized as a Hash
[19:54:46] dopie: has joined #RubyOnRails
[19:54:51] Radar: droptone: humour me and destroy RVM on your system
[19:55:04] Radar: droptone: More often than not I have been right about such things being caused by RVM.
[19:55:33] droptone: Interesting, well you might very well be right, we just use this setup daily for years now and there aren't issues.
[19:55:37] droptone: I will give it a shot though, thank you.
[19:55:39] hron84: Radar: I get parameters as a hash in the controller too :-)
[19:55:53] hron84: but i see what you want to say
[19:56:01] Radar: hron84: That's an ActionController::Parameters object, which is Hash-like.
[19:56:15] hron84: oh, i see
[19:57:50] dopie: has joined #RubyOnRails
[19:57:59] kirillzh: has joined #RubyOnRails
[19:58:05] aegis3121: has joined #RubyOnRails
[19:58:10] Frem: has joined #RubyOnRails
[19:59:00] bronson: Anyone have an opinion on how to route to a print layout?
[19:59:03] stannard: has joined #RubyOnRails
[19:59:41] bronson: considering: /print/properties/12 /properties/12?print something else?
[20:00:15] Radar: bronson: /properties/12/print
[20:01:25] drbayer: has joined #RubyOnRails
[20:01:32] bronson: Radar: hm, that's what I have now. Problem is, downloading ends up with wonky filenames.
[20:02:04] bronson: Everything ends up as print.html or print.pdf, rather than the correct 12.html or 12.pdf.
[20:02:42] bronson: Does this change make sense?
[20:02:49] kpwarr: has joined #RubyOnRails
[20:02:57] Radar: controller code plz
[20:03:25] bronson: Radar: controller code?
[20:03:42] rafaelfranca: has joined #RubyOnRails
[20:03:47] bronson: Maybe router code? That's what ends up giving the filename.
[20:04:09] kpwarr: hello, I think I must be doing something really dumb here, but I have run `gem install firebase` and `bundle install` and restarted my server, but I still get an uninitialized constant error when I try to use the module that the gem exposes
[20:04:34] sandstrom: has joined #RubyOnRails
[20:04:54] rhizome: kpwarr: is that all you're supposed to have to do?
[20:05:40] Wingar: has joined #RubyOnRails
[20:06:13] dsimon: kpwarr, in theory you shouldn't even need to do 'gem install firebase', the bundle should be enough
[20:07:11] blackmesa: has joined #RubyOnRails
[20:07:21] kpwarr: yea, I know
[20:07:52] DanKnox: has joined #RubyOnRails
[20:07:53] DanKnox_: has joined #RubyOnRails
[20:07:57] dsimon: can you reach the Firebase module from rails console?
[20:09:33] replay: has joined #RubyOnRails
[20:10:08] baweaver: has joined #RubyOnRails
[20:11:37] safety_cut: has joined #RubyOnRails
[20:12:46] dopie: has joined #RubyOnRails
[20:14:01] safety_cut: has joined #RubyOnRails
[20:15:05] cpruitt: has joined #RubyOnRails
[20:15:21] drbayer: has joined #RubyOnRails
[20:17:29] lolcodenewbie_: has joined #RubyOnRails
[20:19:51] eldariof: has joined #RubyOnRails
[20:20:31] eddie2pc: has joined #RubyOnRails
[20:20:39] lolcodenewbie: has joined #RubyOnRails
[20:21:17] arthropododo: has joined #RubyOnRails
[20:23:57] lolcodenewbie: Is it possible to update the number of rows in a table based on user input?
[20:24:42] dkam__: has joined #RubyOnRails
[20:26:00] bbrowning: has joined #RubyOnRails
[20:26:11] stannard: has joined #RubyOnRails
[20:26:12] flappynerd: has joined #RubyOnRails
[20:26:38] Jasaka: has joined #RubyOnRails
[20:27:18] zackzorman: has joined #RubyOnRails
[20:27:32] bronson: lolcodenewbie: sure. Model.where(user_input).destroy
[20:27:40] mag42c: has left #RubyOnRails: ()
[20:28:29] dsimon: lolcodenewbie, what?
[20:30:15] Technodrome: has joined #RubyOnRails
[20:31:13] rubyonrailed: has joined #RubyOnRails
[20:31:35] DanKnox: has joined #RubyOnRails
[20:32:42] bronson: Radar: I'm leaning toward this: /properties/print/12-Name.html /properties/print/12-Name.pdf
[20:33:18] bronson: does that pass the smell test? Preserves a human-readable and unique filename.
[20:35:18] stannard: has joined #RubyOnRails
[20:36:40] yfeldblum: has joined #RubyOnRails
[20:37:00] triptec: has joined #RubyOnRails
[20:37:42] PedramT: has joined #RubyOnRails
[20:38:33] jottr: has joined #RubyOnRails
[20:39:19] nfk|laptop: has joined #RubyOnRails
[20:40:32] godzillaenlacasa: is it possible to pass a parameter to a delete action without it being in the URL? I don't like that... seems like a security hazard
[20:41:01] godzillaenlacasa: ... i had to make a custom route though since it's not a normal CRUD action
[20:41:38] benlieb: has joined #RubyOnRails
[20:43:25] slash_nick: godzillaenlacasa: glad you got it figured out... but what about that do you see as a hazard?
[20:43:36] yereby_: has joined #RubyOnRails
[20:43:49] godzillaenlacasa: passing the parameter in the URL
[20:44:21] godzillaenlacasa: myserver.com/delete_data?id=49
[20:44:55] godzillaenlacasa: if i change the id to one that isn't one I should be able to edit, then I could delete the data for someone else...?
[20:44:56] yereby_: has joined #RubyOnRails
[20:45:53] tbuehlmann: godzillaenlacasa, you would only allow allowed users to destroy the record
[20:46:03] slash_nick: godzillaenlacasa: well, if it's possible, then the problem isn't what you think it is
[20:46:09] godzillaenlacasa: guess i could create a helper method to check if they're allowed to do so
[20:46:28] flashpoint9: has joined #RubyOnRails
[20:46:56] slash_nick: godzillaenlacasa: if i can only delete my post, it'd be something like this in the controller, Post.where(user_id: current_user.id, id: params[:id]).first.destroy
[20:47:05] nogic: has joined #RubyOnRails
[20:47:13] slash_nick: Post.where(user_id: current_user.id, id: params[:id]).first!.destroy
[20:47:40] slash_nick: godzillaenlacasa: you'll absolutely want to wrap your head around that pattern...
[20:47:44] godzillaenlacasa: yea... makes sense
[20:47:51] rhizome: godzillaenlacasa: are you using a GET for that?
[20:48:09] rhizome: myserver.com/delete_data?id=49
[20:48:22] godzillaenlacasa: @rhizome it's a delete method
[20:48:37] slash_nick: godzillaenlacasa: there's all sorts of evil people who will try every id from 1 through eleventy billion... and if them guessing the right id is the only requirement, well...
[20:49:02] rhizome: insecure without backend checks
[20:50:03] DanKnox: has joined #RubyOnRails
[20:50:04] DanKnox_: has joined #RubyOnRails
[20:50:04] sankaber: has joined #RubyOnRails
[20:50:37] Radar: bronson: that's fine
[20:51:02] snowy: has joined #RubyOnRails
[20:51:38] netzfisch: has joined #RubyOnRails
[20:53:54] Guest25605: has joined #RubyOnRails
[20:55:22] _djbkd: has joined #RubyOnRails
[20:57:16] Coldblackice: has joined #RubyOnRails
[20:58:46] triptec: has joined #RubyOnRails
[20:58:59] dkam__: has joined #RubyOnRails
[20:59:05] JakFrist: has joined #RubyOnRails
[21:01:06] flappynerd: is cancan still a reasonably good choice for roles/acl type stuff?
[21:01:11] flappynerd: or is there something better now?
[21:01:40] shanemcd: has joined #RubyOnRails
[21:01:46] rubyonrails107: has joined #RubyOnRails
[21:02:05] FooMunki: has joined #RubyOnRails
[21:03:37] baweaver: has joined #RubyOnRails
[21:03:50] DoubleMalt: has joined #RubyOnRails
[21:05:06] mdw: has joined #RubyOnRails
[21:07:36] Cohedrin: has joined #RubyOnRails
[21:07:44] stannard: has joined #RubyOnRails
[21:07:55] htmldrum: has joined #RubyOnRails
[21:08:00] Radar: flappynerd: I prefer Pundit
[21:08:14] Radar: flappynerd: As demonstrated in my book Rails 4 in Action, in Chapter 8.
[21:08:24] Radar: flappynerd: !r4ia
[21:08:24] helpa: flappynerd: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[21:13:46] poweratom__: has joined #RubyOnRails
[21:16:35] mnms_: has joined #RubyOnRails
[21:18:48] Cache_Money: has joined #RubyOnRails
[21:19:02] shanemcd: has joined #RubyOnRails
[21:20:12] PedramT_: has joined #RubyOnRails
[21:20:19] triptec: has joined #RubyOnRails
[21:21:04] Cache_Money: I'm using a custom SQL query to join two different models. Is it possible to pass in values from a URL param into a WHERE clause in the custom SQL query?
[21:21:31] thelacce: has joined #RubyOnRails
[21:22:14] slash_nick: Cache_Money: absolutely, can you share the code you have? easier just to point out what you can modify than rewrite it for you (or guess at what you're doing)
[21:22:29] slash_nick: Cache_Money: !gist
[21:22:29] helpa: Cache_Money: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[21:22:46] Cache_Money: slash_nick: yeah https://gist.github.com/anonymous/4ba87e6ba70fec68ae00
[21:23:51] slash_nick: Cache_Money: you have find_by_sql(string)... what you want is find_by_sql([string, your_var])... but make sure to put a "?" placeholder in your string where you want the variable to go
[21:24:08] Cache_Money: slash_nick: gotcha!
[21:24:30] slash_nick: like this http://guides.rubyonrails.org/active_record_querying.html#array-conditions just in case
[21:24:48] slash_nick: Cache_Money: no problem
[21:25:23] Cache_Money: I see that now in the documentation: http://api.rubyonrails.org/classes/ActiveRecord/Querying.html#method-i-find_by_sql
[21:25:24] Cache_Money: thanks again!
[21:25:59] sinkensabe: has joined #RubyOnRails
[21:26:00] FaresKAlaboud: has joined #RubyOnRails
[21:28:06] roshanavand: has joined #RubyOnRails
[21:28:24] chipotle: has joined #RubyOnRails
[21:31:40] PedramT: has joined #RubyOnRails
[21:32:28] triptec: has joined #RubyOnRails
[21:33:10] rubyonrailed: has joined #RubyOnRails
[21:33:53] PedramT_: has joined #RubyOnRails
[21:34:34] blackmesa: has joined #RubyOnRails
[21:34:49] PedramT__: has joined #RubyOnRails
[21:35:03] Terens: Is there a way to validate something conditionally
[21:35:14] Terens: with the condition the object not being persisted?
[21:37:30] alevy: has joined #RubyOnRails
[21:40:12] marr: has joined #RubyOnRails
[21:41:34] roshanavand: has joined #RubyOnRails
[21:42:11] drbayer: has joined #RubyOnRails
[21:42:57] tbuehlmann: Terens, yes, like this: `validates :attribute, presence: true, on: :create`
[21:43:04] PedramT: has joined #RubyOnRails
[21:43:58] rakm: has joined #RubyOnRails
[21:44:11] tbuehlmann: if that's not what you're after, there's also an explicit :if, see http://api.rubyonrails.org/classes/ActiveModel/Validations/ClassMethods.html#method-i-validates
[21:44:23] claytonzaugg: has joined #RubyOnRails
[21:45:26] trinaldi: has joined #RubyOnRails
[21:46:28] Radar: Terens: Do you have an example of what it is you're trying to do exactly?
[21:48:35] mustmodify: has joined #RubyOnRails
[21:48:48] mustmodify: My domain name is appearing twice in production... help!!!
[21:48:51] mustmodify: what could cause that?
[21:50:34] Scient: there goes github...
[21:50:45] PedramT: has joined #RubyOnRails
[21:50:45] Scient: someone broksted it
[21:51:18] Radar: mustmodify: where
[21:51:38] bronson: crud, yep. more evidence that centralizing everything on gitub ain't so great.
[21:51:52] Radar: I am tired of that argument getting wheeled out everytime
[21:52:10] Radar: If you're going to wheel it out, perhaps show me how I can operate just as well without GitHub and then maybe I'll listen to you?
[21:52:12] flappynerd: it's less centralizing, it's more relying on service providers other than your own in house setup
[21:52:27] DanKnox: has joined #RubyOnRails
[21:52:28] DanKnox_: has joined #RubyOnRails
[21:52:36] bronson: Radar: nobody suggested getting rid of github (?)
[21:52:36] mustmodify: I have a rails 3.2 app. blah_blah_url( ... ) is adding the domain twice.
[21:52:37] Radar: I don't know of anything that I can self-host (that isn't GitLab) that is *as good* as GitHub and effectively mirrors what GH does.
[21:52:39] sinkensabe: has joined #RubyOnRails
[21:52:41] flappynerd: but really I don't think I've ever seen a github outage more than a few hours in the past 5 years
[21:52:50] Radar: bronson: _You_ are suggesting that GitHub's centralised model isn't that great.
[21:53:02] Radar: mustmodify: can you reproduce locally?
[21:53:04] bronson: and it isn't. just like SVN's centralized model isn't great.
[21:53:08] Radar: mustmodify: config/environments/production.rb please.
[21:53:09] bronson: doesn't mean we just delete SVN.
[21:53:39] mustmodify: In fact, if I were a betting man, I would say it wasn't like this in production before.
[21:53:45] mustmodify: Like, when I deployed it.
[21:54:03] mustmodify: and rolling back isn't helping... which is ... weird.
[21:54:10] mustmodify: So actually I have to figure that out first.
[21:54:42] flappynerd: also, github has so many big clients by now, and a team of engineers that will almost certainly bring the system back up faster than you will if you try to do it yourself
[21:54:44] Radar: mustmodify: I can't help with imaginary things. I need to see them happening.
[21:54:57] fsteim: has joined #RubyOnRails
[21:55:09] aegis3121: has joined #RubyOnRails
[21:55:12] bronson: Radar: maybe _you_ are reading too much into what others say?
[21:55:15] matthewd: mustmodify: Does it happen if you call the helper from rails c?
[21:55:21] flappynerd: and hey, it's a nice excuse to go take a walk or get a coffee or something when github goes down :P
[21:55:23] tvw: has joined #RubyOnRails
[21:55:27] flappynerd: reminds me of XKCD "compiling"
[21:55:28] Radar: bronson: Absolutely.
[21:55:38] bronson: oh, ok then. :)
[21:55:40] Radar: bronson: My point is that your argument is weak.
[21:55:47] Radar: "more evidence that centralizing everything on gitub ain't so great."
[21:55:50] Radar: It's the best thing we habe.
[21:55:53] mustmodify: It's either a configuration issue or ...
[21:55:59] mustmodify: that's got to be it, right?
[21:56:09] mustmodify: It must be a config issue, otherwise it would also be happening in de
[21:56:10] Radar: [08:53:08] <Radar> mustmodify: config/environments/production.rb please.
[21:56:15] tfitts: has joined #RubyOnRails
[21:56:24] mustmodify: Ah, sorry. A bit frantic right now.
[21:56:28] Technodrome: has joined #RubyOnRails
[21:56:56] bronson: Agreed there too, it's weak. Just complaining that all my work grinds to a halt when GH burps.
[21:56:59] bronson: One day we'll have a fix.
[21:57:58] bronson: (well, *most* of my work... all collaboration grinds to a halt)
[21:58:31] PedramT_: has joined #RubyOnRails
[21:58:43] eddie2pc: has joined #RubyOnRails
[21:58:45] triptec: has joined #RubyOnRails
[21:58:52] flappynerd: bronson, so go get some fresh air
[21:58:54] mustmodify: Radar: Well, thanks for your help but apparently the issue has vanished.
[21:59:02] Radar: mustmodify: my favourite
[21:59:03] flappynerd: knowing how most programmers are I bet we could all use it
[21:59:16] flappynerd: seriously, what's the longest github has been fully down in the past few years? like 2 hours?
[21:59:34] mustmodify: which makes me worried. I really like the kinds of problems for which I actually know the resolution, so I can be pretty sure it won't happen again.
[21:59:35] flappynerd: look at it like an extended paid break time
[21:59:38] mustmodify: but that's life.
[21:59:38] bronson: flappynerd: so you're pro-github-outages? :)
[21:59:44] dkam__: has joined #RubyOnRails
[21:59:53] flappynerd: no I'm just not "anti github because it goes down for 2 hours twice per year"
[21:59:59] matthias_: has joined #RubyOnRails
[22:00:15] rhizome: ACTION is pro-running-your-own
[22:00:30] bronson: it was down for half a day just a month or two ago, right?
[22:00:36] johnflux: has joined #RubyOnRails
[22:00:36] rhizome: are you a paying customer?
[22:00:49] poweratom__: has joined #RubyOnRails
[22:00:55] flappynerd: I still maintain my general outlook
[22:01:14] nettoweb: has joined #RubyOnRails
[22:01:26] poweratom___: has joined #RubyOnRails
[22:02:40] johnflux: has joined #RubyOnRails
[22:04:09] dsimon: bronson, at least it's git and not cvs/subversion
[22:04:13] Pazician: has joined #RubyOnRails
[22:04:36] dsimon: even with GH down you can still make commits, clean up your code, rebase over a local network to your buddy's machine with an SSH tunnel, etc.
[22:04:37] bronson: haha... I remember being blown away when I first used svn. "This is amazing!!!"
[22:04:49] dsimon: bronson, heh, yeah. "Oh my god, I can rename files!"
[22:05:26] nettoweb: has joined #RubyOnRails
[22:05:54] mustmodify: dsimon: I remember when I first used teamforge or whatever-it-was-called. I was like, "OMG you can permanently delete files from the repo by clicking on 'Delete'?" #unfortunate
[22:06:33] Technodrome: has joined #RubyOnRails
[22:08:09] PedramT: has joined #RubyOnRails
[22:10:22] sinkensabe: has joined #RubyOnRails
[22:12:08] arBmind: has joined #RubyOnRails
[22:12:09] Spami: has joined #RubyOnRails
[22:12:41] Bloodberet: has joined #RubyOnRails
[22:12:56] _djbkd: has joined #RubyOnRails
[22:13:05] PedramT_: has joined #RubyOnRails
[22:14:42] dkam__: has joined #RubyOnRails
[22:18:19] jottr: has joined #RubyOnRails
[22:19:20] PedramT: has joined #RubyOnRails
[22:19:46] graft: has joined #RubyOnRails
[22:19:55] dkam__: has joined #RubyOnRails
[22:20:04] sinkensabe: has joined #RubyOnRails
[22:20:18] triptec: has joined #RubyOnRails
[22:20:27] graft: hiya people - anyone know a decent way to get asset paths from javascript?
[22:20:45] graft: i know you can get url helpers for routes with js-routes, which is great
[22:20:56] poweratom____: has joined #RubyOnRails
[22:21:07] graft: but that doesn't help me with, say, an image in the asset pipeline
[22:21:21] DoubleMalt: has joined #RubyOnRails
[22:21:56] bronson: I've dropped asset urls onto relevant elements using data attributes.
[22:22:06] bronson: I don't know of a js-routes type solution.
[22:22:14] jbermudes: Does anyone else wish db migration filenames used underscores or hyphens to separate out the parts of the date? They're always so hard to read on the command line
[22:22:24] poweratom______: has joined #RubyOnRails
[22:22:31] Radar: graft: Best way that I've figured out how to do that is to pass it to my JS functions from Rails.
[22:22:39] bronson: Heck, I wrote js-routes out of our app a few months ago because it was causing more issues than it solved.
[22:22:44] Radar: jbermudes: no, they're perfectly easy to read.
[22:22:55] blackmesa: has joined #RubyOnRails
[22:23:23] bronson: It doesn't understand all routes, so you need to manually override the bits it gets wrong, and that gets real ugly.
[22:23:40] jbermudes: Radar: My eyes are like daring back and forth trying to count exactly how many successive digits in a row in something like '20121211153137'
[22:23:53] jbermudes: Maybe it's just my terminal font
[22:24:05] Radar: jbermudes: that migration was created at 15:31:37 on the 11th of December, 2012.
[22:24:24] Radar: jbermudes: (I've been doing Rails for 10 years. It might be that I have more practice at it than you)
[22:24:51] Radar: Do you know why migrations have timestamps and are not sequentially numbered?
[22:25:42] flappynerd: Radar, I have a guess, but I'm not sure, why?
[22:25:52] Radar: flappynerd: What's your guess?
[22:25:55] bbrowning: has joined #RubyOnRails
[22:25:57] jbermudes: Something about the ordering of migrations being run?
[22:25:57] flappynerd: makes it easier to reorder if you need to?
[22:26:01] bronson: I admit 20121211_153137 would be easier to read. Would have been nice.
[22:26:09] Radar: bronson: Me too ;)
[22:26:17] bronson: picture multiple devs working on the same project...
[22:26:21] Radar: bronson: ^
[22:26:22] shanemcd: has joined #RubyOnRails
[22:26:24] bronson: each one having generated a migration.
[22:26:29] Radar: Whoops, Didn't mean to prefix that with your name
[22:26:43] Radar: Yeah, two devs create a 6_<name>.rb migration. Which one is the true 6? :)
[22:26:44] flappynerd: sure, less chance of naming conflict
[22:27:01] flappynerd: (virtually no chance)
[22:27:02] xploshioon: has joined #RubyOnRails
[22:27:07] jbermudes: I wonder if anyone on a team ever created migrations at the exact same second
[22:27:20] Radar: Next up on Rails horror stories: the Rails version where a URL was /posts/2;edit
[22:27:31] bronson: jbermudes: that sounds like a scary project!
[22:27:38] cnk: jbermudes: Only in an automated fashion
[22:27:41] bronson: "You have 39138 migrations pending"
[22:27:52] cnk: there was discussion of that on the Bikeshed podcast
[22:27:55] crdpink2: has joined #RubyOnRails
[22:27:57] cnk: but it was a very edge case
[22:28:07] bronson: cnk: really? how recent?
[22:28:18] cnk: since Dec
[22:28:26] bronson: Just started listening a month or two ago, excellent podcast.
[22:28:35] bronson: Huh, I should have heard it. Not recalling.
[22:29:31] cnk: I had been kind of positive about Thoughtbot before that but since starting to listten to Bikeshed the have definitely gone up in my estimation
[22:29:59] cnk: I never really liked the Giant Robots podcast but BIkeshed is two tumbs up
[22:30:41] bronson: I tried their upcase thingy and wasn't real impressed. bikeshed redeems it and then some.
[22:31:09] bronson: Although now that Sean is at Shopify, not sure how Thoughtbotty it will remain.
[22:34:12] rubyonrailed: has joined #RubyOnRails
[22:34:21] cnk: bronson: If it isn't since Dec, then it might have been in http://bikeshed.fm/43
[22:34:48] bronson: haven't heard that one, I'll queue it up
[22:36:54] Maletor: has joined #RubyOnRails
[22:37:03] shanemcd: has joined #RubyOnRails
[22:37:32] pyemkey: Hello, what is best practice to validate params sent to api endpoint?
[22:37:50] Maletor: Seems like I've hit a very strange bug on Rails 4.2. The microseconds repeat. Any ideas what it could be? https://gist.github.com/maletor/20bf57823ffe4bfb7db0
[22:38:17] bronson: pyemkey: I just use strong params like everywhere else.
[22:38:34] pyemkey: even in sinatra?
[22:38:56] bronson: ACTION checks the channel name
[22:40:05] bronson: no, not in sinatra. I've find rails-api to be pretty great so far.
[22:40:23] pyemkey: thanks for giving good advice about strong parameters :)
[22:44:10] railsForDaiz: has joined #RubyOnRails
[22:44:20] renegadeandy: has joined #RubyOnRails
[22:45:12] triptec: has joined #RubyOnRails
[22:45:23] xploshioon: hi guys, i am having a problem saving in database with nested attributes, here is the gist
[22:45:25] xploshioon: https://gist.github.com/xploshioOn/50022fd19880511e4d35ç
[22:45:28] xploshioon: https://gist.github.com/xploshioOn/50022fd19880511e4d35
[22:45:32] pwnd_nsfw: maletor, how are you getting that...
[22:45:39] renegadeandy: Hey guys. If i have a big model, ‘event’ and I want a 5 page step by step set of steps on our site for the user to build one of these objects….how best is it to make this in the controller. Should I have a ‘alter_stage_1’ which handles both a get, patch, create and update? and likewise through to alter_stage_5, or is there a better way?
[22:45:50] xploshioon: i am getting this "ActiveRecord::AssociationTypeMismatch in CompaniesController#create"
[22:45:53] Maletor: pwnd_nsfw: it's right there in the gist. what do you mean?
[22:46:30] renegadeandy: i.e can you have a get / patch and update all map to one controller method
[22:46:39] pwnd_nsfw: Considering I see no error, or anything describing ms repeat
[22:46:47] bronson: renegadeandy: like a wizard interface? You've seen https://www.ruby-toolbox.com/categories/rails_wizards ?
[22:46:50] bronson: (haven't done it myself)
[22:47:08] Maletor: check out the two dots
[22:47:10] Maletor: pwnd_nsfw: 2016-02-20 22:36:03.385389.385389
[22:47:12] Maletor: notice anything wrong there?
[22:47:39] xploshioon: anyone that knows that is the error in the gist and why i am getting that error?
[22:48:22] Maletor: xploshioon: that errors means you are passing something AR isn't expecting. like maybe a string instead of a class
[22:49:08] mustmodify: has left #RubyOnRails: ()
[22:50:39] pwnd_nsfw: maletor, when I do the same code in IRB, it doesn't return ms like that.
[22:50:54] Maletor: i'm working on a reproduction step
[22:51:28] xploshioon: @maletor i updated the gist
[22:51:29] xploshioon: https://gist.github.com/xploshioOn/50022fd19880511e4d35
[22:51:37] xploshioon: included the params
[22:51:52] Maletor: xploshioon: can't read it -- too messy
[22:52:09] pwnd_nsfw: 2 spaces, not 1 tab
[22:52:20] renegadeandy: bronson: that looks perfect! Thank you!
[22:52:48] rakm: has joined #RubyOnRails
[22:53:09] pwnd_nsfw: maletor, that happens all of the time? to_sql converts the timestamp, but it works ok for me. What version Ruby/Rails?
[22:53:31] pwnd_nsfw: Ruby: 2.2.4, Rails: 4.2.4 for me.
[22:53:53] intrigueD: has joined #RubyOnRails
[22:54:52] Maletor: i wonder if it's the mysql2 adapter
[22:55:36] matthewd: maletor: https://github.com/rails/rails/blob/master/guides/bug_report_templates/active_record_gem.rb
[22:55:43] Rodya_: has joined #RubyOnRails
[22:56:08] Maletor: matthewd: i just created one of those
[22:56:10] Maletor: outputs correct timestamp
[22:56:14] pwnd_nsfw: Would you look at that
[22:56:24] xploshioon: @maletor updated https://gist.github.com/xploshioOn/50022fd19880511e4d35
[22:56:54] dkam__: has joined #RubyOnRails
[22:57:35] DanKnox: has joined #RubyOnRails
[22:57:36] DanKnox_: has joined #RubyOnRails
[22:58:18] Maletor: xploshioon: change the params {user:}
[22:58:19] Maletor: to { user_attributes: ... }
[22:59:24] Maletor: xploshioon: you'll need to do the same for the permitted params
[22:59:45] triptec: has joined #RubyOnRails
[23:00:02] xploshioon: ok, that works, the action don't give me and error
[23:00:07] xploshioon: but the user isn't created
[23:00:47] Maletor: xploshioon: you probably want :update_only set to true for acceptsnestedattributesfor but that has nothing to do with user not being created
[23:00:57] Maletor: fraid i can't help you there
[23:03:21] dopamean_: has joined #RubyOnRails
[23:03:25] baweaver: has joined #RubyOnRails
[23:04:32] xploshioon: in the log it says "Unpermitted parameter: user"
[23:04:52] GriffinHeart: has joined #RubyOnRails
[23:06:33] StaticVoid: I'm trying to use chartist in my rails app, but I am havong trouble with the install.
[23:06:54] StaticVoid: According to the docs I need to link to the chartist stylesheet
[23:07:12] StaticVoid: but rails can't find the css file
[23:08:04] StaticVoid: how do I configure it so it can resolve a link like : <link rel="stylesheet" href="app/assets/stylesheets/chartist.min.css"> ?
[23:10:07] Maletor: xploshioon: right i said to update user to user_attribute
[23:10:10] Maletor: matthewd: so, i don't think this is AR
[23:10:14] Maletor: it's some weird combination of ActiveSupport and AR
[23:10:23] xploshioon: @StaticVoid <%= stylesheet_link_tag "chartist.min" %>
[23:10:25] Maletor: so I can't easily reproduce with that template
[23:10:35] FernandoBasso: has joined #RubyOnRails
[23:10:37] matthewd: AS is a dependency of AR
[23:11:11] matthewd: I think it's more likely some other gem interfering
[23:11:26] xploshioon: how can I create both, company and user in the same .save? @maletor
[23:11:43] roshanavand: has joined #RubyOnRails
[23:12:03] triptec: has joined #RubyOnRails
[23:12:07] dopamean_: has joined #RubyOnRails
[23:12:33] ur5us: has joined #RubyOnRails
[23:12:41] xploshioon: the permit with user_attributes pass the form like ok, save the company but the user isn't saved
[23:12:58] xploshioon: it says in the log unpermitted param [:user]
[23:13:15] xploshioon: unpermitted param: user*
[23:13:33] jottr: has joined #RubyOnRails
[23:14:37] Maletor: that's because you need to change the params your sending to be user_attributes.
[23:14:43] Maletor: pretty sure i said that already
[23:15:59] snowy: has joined #RubyOnRails
[23:16:17] drbayer: has joined #RubyOnRails
[23:24:54] lilvim: has joined #RubyOnRails
[23:27:18] quazimodo: has joined #RubyOnRails
[23:28:55] Rodya_: has joined #RubyOnRails
[23:30:19] seaworthy: has joined #RubyOnRails
[23:30:23] Maletor: matthewd: yes
[23:30:27] Maletor: matthewd: a team member overrode Time::DATE_FORMATS { :db }
[23:30:29] Maletor: what is the prognosis?
[23:31:26] xploshioon: @maletor thanks, that works perfectly
[23:31:29] xploshioon: have a good night
[23:32:25] baweaver: has joined #RubyOnRails
[23:33:17] mikeiniowa: has joined #RubyOnRails
[23:33:37] mdw: has joined #RubyOnRails
[23:34:24] mdw7: has joined #RubyOnRails
[23:35:11] rubyonrailed: has joined #RubyOnRails
[23:35:53] sankaber: has joined #RubyOnRails
[23:36:20] hellschreiber: has joined #RubyOnRails
[23:36:55] _Tariq_: has joined #RubyOnRails
[23:37:08] n1lo: has joined #RubyOnRails
[23:38:09] mary5030: has joined #RubyOnRails
[23:41:24] benlieb: has joined #RubyOnRails
[23:42:12] roshanavand: has joined #RubyOnRails
[23:44:26] waltz_: has joined #RubyOnRails
[23:44:36] mices: has joined #RubyOnRails
[23:44:41] Ropeney: has joined #RubyOnRails
[23:45:18] mices: has joined #RubyOnRails
[23:45:20] mices: i copied an app to my laptop should i run bundle update or bundle install first?
[23:45:38] pwnd_nsfw: you can't be serious lol
[23:46:37] Rodya_: has joined #RubyOnRails
[23:46:44] flappynerd: who can't be serious?
[23:46:54] flappynerd: mices, typically you never want to run bundle update
[23:46:55] mices: i thought update my install deps first or something like that
[23:46:58] flappynerd: mices, only bundle install
[23:47:10] flappynerd: not everyone has been programming for years
[23:47:21] flappynerd: and even if they have, if you've never used ruby or bundler, you might have some questions
[23:47:35] mices: if i have to install a gem as root or with sudo is something wrong or that's ok as long as i'm not running bundle as root
[23:47:56] mices: i've been far from developing since buying this laptop early this month
[23:47:56] flappynerd: mices, only sudo install gems if you know you need them system wide
[23:48:01] flappynerd: mices, mostly you don't
[23:48:19] flappynerd: mices, for your practical purpose: A) never sudo gem install and B) never bundle update
[23:48:24] mices: so if i run gem install and i get a permissions error what should i look for
[23:48:36] flappynerd: mices, if you discover a reason you need one of those, be sure you know the reason first
[23:48:57] rhizome: i use bundle update [gemname] all the time
[23:48:58] flappynerd: mices, I'm just saying, for your purposes, and what seems like obviously a ruby noob, never do those things
[23:48:59] mices: i'll check with you guys before running bundle update
[23:49:18] flappynerd: it's not the 100% truth, but as far as you need to know, only use bundle install
[23:49:26] Rodya_: has joined #RubyOnRails
[23:49:30] flappynerd: mices, also, use rvm
[23:49:30] pwnd_nsfw: flappynerd, you must be new here lol
[23:49:31] rhizome: good advice
[23:49:36] flappynerd: then you won't need to sudo install
[23:49:38] mices: yea i just installed rvm
[23:50:20] mices: and ran `rvm requirements`
[23:50:28] mices: and then installed 2.2.1
[23:50:38] mices: haven't tried bundling since
[23:50:56] mices: i lost 2 weeks fooling around with this laptop i bought (my first laptop)
[23:51:18] eddie2pc: has joined #RubyOnRails
[23:51:30] flappynerd: I mean, I will usually lose maybe a full day if I have to set up a system from scratch
[23:51:37] flappynerd: but really I can usually be up and coding again within a few hours
[23:51:52] mices: i didn't realize it had a loose display cable in the hinge and was struggling with drivers until after two weeks i touched the hinge while it was on and noticed that the display changed when i did that
[23:52:15] flappynerd: oh, "fooling with" is a less appropriate term than "ended up with faulty hardware"
[23:52:41] Scriptonaut: has joined #RubyOnRails
[23:52:41] mices: i lost two weeks struggling with this thing, i'm delirious
[23:52:59] mices: well i learned something about laptops
[23:53:03] Scriptonaut: does anyone know if there is a way to break up an activerecord collection into batches of 4 (or any number)?
[23:53:06] flappynerd: meh, you lost two weeks because of either bad QA or an unlucky experience with a good QA process
[23:53:17] flappynerd: even the best QA providers will still have a small percentage failure rate
[23:53:26] flappynerd: including apple for example, hence the reason for things like apple care
[23:53:44] drbayer: has joined #RubyOnRails
[23:53:52] Scriptonaut: I want to loop over active record objects, but then after 4 I need to know
[23:54:05] flappynerd: Scriptonaut, each_with_index maybe?
[23:54:15] Scriptonaut: ah, that would work
[23:54:18] Scriptonaut: flappynerd: *
[23:58:55] jfelchner: has joined #RubyOnRails
[23:59:01] sarink: has joined #RubyOnRails