« Back to channel list

#RubyOnRails - 07 January 2018

« Back 1 day Forward 1 day »
[00:01:19] mtkd: has joined #RubyOnRails
[00:06:26] hahuang65: has joined #RubyOnRails
[00:11:27] Mweshi: has joined #RubyOnRails
[00:15:54] dmcc: has joined #RubyOnRails
[00:19:53] Sylario: has joined #RubyOnRails
[00:20:05] Lloyd: has joined #RubyOnRails
[00:20:12] cschneid_: has joined #RubyOnRails
[00:24:45] kapil___: has joined #RubyOnRails
[00:26:18] bitch: has joined #RubyOnRails
[00:28:44] cschneid_: has joined #RubyOnRails
[00:40:04] workmad3: has joined #RubyOnRails
[00:44:07] bronson: has joined #RubyOnRails
[00:45:56] cschneid_: has joined #RubyOnRails
[00:47:36] workmad3: has joined #RubyOnRails
[00:49:16] apparition: has joined #RubyOnRails
[00:49:22] one_zero: has joined #RubyOnRails
[00:51:16] KeyJoo: has joined #RubyOnRails
[00:51:25] ResidentBiscuit: has joined #RubyOnRails
[01:01:08] funnel: has joined #RubyOnRails
[01:02:33] cschneid_: has joined #RubyOnRails
[01:04:46] alfiemax: has joined #RubyOnRails
[01:20:12] zwliew: has joined #RubyOnRails
[01:37:54] ur5us: has joined #RubyOnRails
[01:45:32] bronson: has joined #RubyOnRails
[01:54:19] alfiemax: has joined #RubyOnRails
[01:59:54] arathald: has joined #RubyOnRails
[02:16:31] tpendragon: has joined #RubyOnRails
[02:17:51] ephemer0l: has joined #RubyOnRails
[02:27:42] apparition: has joined #RubyOnRails
[02:30:04] hahuang65: has joined #RubyOnRails
[02:37:58] rfoust: has joined #RubyOnRails
[02:43:45] srruby: has joined #RubyOnRails
[02:44:59] srruby: Anyone using docker for production rails apps? Any thoughts on passenger docker as a base image?
[02:46:06] bronson: has joined #RubyOnRails
[02:54:25] justrying: has joined #RubyOnRails
[03:05:57] nickjj_: has joined #RubyOnRails
[03:10:05] one_zero: has joined #RubyOnRails
[03:18:35] nso95: has joined #RubyOnRails
[03:21:15] nso95: has joined #RubyOnRails
[03:28:42] Cache_Money: has joined #RubyOnRails
[03:37:10] alfiemax: has joined #RubyOnRails
[03:46:56] bronson: has joined #RubyOnRails
[03:53:40] orbyt_: has joined #RubyOnRails
[03:54:42] luskjh: has joined #RubyOnRails
[04:09:37] mtkd: has joined #RubyOnRails
[04:46:04] kapil___: has joined #RubyOnRails
[04:48:00] bronson: has joined #RubyOnRails
[04:59:18] alfiemax: has joined #RubyOnRails
[05:09:04] armyriad: has joined #RubyOnRails
[05:26:44] Dimik: has joined #RubyOnRails
[05:48:39] bronson: has joined #RubyOnRails
[05:57:53] alfiemax: has joined #RubyOnRails
[06:21:15] darkhanb: has joined #RubyOnRails
[06:29:38] Cache_Money: has joined #RubyOnRails
[06:34:06] cschneid_: has joined #RubyOnRails
[06:38:21] hahuang65: has joined #RubyOnRails
[06:49:23] bronson: has joined #RubyOnRails
[07:01:42] alfiemax: has joined #RubyOnRails
[07:02:04] darkhanb: has joined #RubyOnRails
[07:08:47] KeyJoo: has joined #RubyOnRails
[07:11:15] workmad3: has joined #RubyOnRails
[07:11:55] za1b1tsu: has joined #RubyOnRails
[07:12:12] za1b1tsu: Hello, if anyone is using rubocop is there anyway I can configure guard rubocop to run when a certain file is modified?
[07:20:21] cschneid_: has joined #RubyOnRails
[07:37:31] apparition: has joined #RubyOnRails
[07:40:24] mtkd: has joined #RubyOnRails
[07:47:22] dionysus69: has joined #RubyOnRails
[07:50:30] bronson: has joined #RubyOnRails
[07:53:39] ur5us: has joined #RubyOnRails
[08:35:32] cschneid_: has joined #RubyOnRails
[08:36:31] Saukk: has joined #RubyOnRails
[08:39:00] za1b1tsu: Anyone managed to get the growl notification to work on windows with guard?
[08:39:32] hahuang65: has joined #RubyOnRails
[08:45:13] uks: has joined #RubyOnRails
[08:47:18] l_tonz: has joined #RubyOnRails
[08:51:19] bronson: has joined #RubyOnRails
[08:55:25] marr: has joined #RubyOnRails
[08:55:34] l_tonz: has joined #RubyOnRails
[08:56:15] darkhanb: has joined #RubyOnRails
[09:06:36] moei: has joined #RubyOnRails
[09:07:55] pLaTo0n: has joined #RubyOnRails
[09:16:40] KeyJoo: has joined #RubyOnRails
[09:52:19] bronson: has joined #RubyOnRails
[10:04:14] pavelz: hi i have a q, on front page I want to serve json along side html, i have respond_to but when I send content-type as application/json it does not respond with json
[10:12:28] pavelz: nm solved
[10:18:32] rrichardsr3: has joined #RubyOnRails
[10:20:01] cschneid_: has joined #RubyOnRails
[10:36:58] l_tonz: has joined #RubyOnRails
[10:40:16] kapil___: has joined #RubyOnRails
[10:40:36] hahuang65: has joined #RubyOnRails
[10:43:17] kapil___: I have Departments Model. Product goes in seperate department until it finalize. I also Have Various states on Product model by statesman gem. what should i use Department Model or Product States to save where the product is and (its history)?
[10:52:28] iamarun: has joined #RubyOnRails
[10:52:59] bronson: has joined #RubyOnRails
[10:55:45] cschneid_: has joined #RubyOnRails
[11:01:14] workmad3: has joined #RubyOnRails
[11:05:03] sameerynho: has joined #RubyOnRails
[11:06:47] Ellusionist: has joined #RubyOnRails
[11:17:34] l_tonz: has joined #RubyOnRails
[11:18:32] zautomata: has joined #RubyOnRails
[11:23:04] mikecmpbll: has joined #RubyOnRails
[11:29:42] quazimodo: has joined #RubyOnRails
[11:31:28] za1b1tsu: Can someone help me with rubocop I can't exclude files properly?
[11:53:46] bronson: has joined #RubyOnRails
[12:00:46] l_tonz: has joined #RubyOnRails
[12:07:56] cschneid_: has joined #RubyOnRails
[12:21:23] kdelante14: has joined #RubyOnRails
[12:23:38] quazimodo: has joined #RubyOnRails
[12:25:56] conta: has joined #RubyOnRails
[12:27:10] KeyJoo: has joined #RubyOnRails
[12:41:25] alfiemax: has joined #RubyOnRails
[12:42:00] hahuang65: has joined #RubyOnRails
[12:42:23] apparition: has joined #RubyOnRails
[12:43:09] cschneid_: has joined #RubyOnRails
[12:54:35] bronson: has joined #RubyOnRails
[12:59:02] l_tonz: has joined #RubyOnRails
[13:02:13] workmad3: has joined #RubyOnRails
[13:05:50] garyserj: has joined #RubyOnRails
[13:07:17] garyserj: using rails.. I find that when in my application_controller.rb file I put render plain: "hello world!" then it works.. But if I replace that with render text: "hello world!", content_type: 'text/plain' Then I get an error "Missing template application/hello". Any idea why?
[13:09:09] NoGodDamnIdea: has joined #RubyOnRails
[13:12:54] iamarun: has joined #RubyOnRails
[13:16:58] jottr: has joined #RubyOnRails
[13:22:07] mikecmpbll: has joined #RubyOnRails
[13:25:49] mikecmpb_: has joined #RubyOnRails
[13:26:32] workmad3: has joined #RubyOnRails
[13:30:52] uks: has joined #RubyOnRails
[13:45:44] mikecmpb_: has joined #RubyOnRails
[13:49:01] mtkd: has joined #RubyOnRails
[13:49:18] desperek: has joined #RubyOnRails
[13:50:03] cschneid_: has joined #RubyOnRails
[13:55:05] jammanbo: has joined #RubyOnRails
[13:56:20] bronson: has joined #RubyOnRails
[13:56:41] arBmind: has joined #RubyOnRails
[13:56:52] jammanbo: With i18n, is there an idiomatic way to pass a :count (to choose between one: and other: options) and display that count with formatting? "%{count} things" => "1,234 things" rather than "1234 things".
[13:57:19] jammanbo: Do you just have to pass in a count and a formatted_count variable?
[14:02:19] mikecmpbll: has joined #RubyOnRails
[14:07:31] l_tonz: has joined #RubyOnRails
[14:11:37] mikecmpb_: has joined #RubyOnRails
[14:22:50] quazimodo: has joined #RubyOnRails
[14:38:45] zwliew: has joined #RubyOnRails
[14:46:21] hammer065: has joined #RubyOnRails
[14:57:00] bronson: has joined #RubyOnRails
[14:59:17] l_tonz: has joined #RubyOnRails
[14:59:44] cschneid_: has joined #RubyOnRails
[15:12:16] DTZUZO: has joined #RubyOnRails
[15:13:14] rfoust: has joined #RubyOnRails
[15:13:25] dviola: has joined #RubyOnRails
[15:15:28] _aeris_: has joined #RubyOnRails
[15:18:21] workmad3: has joined #RubyOnRails
[15:21:02] _aeris_: has joined #RubyOnRails
[15:22:54] defsdoor: has joined #RubyOnRails
[15:28:26] ResidentBiscuit: has joined #RubyOnRails
[15:29:02] Cache_Money: has joined #RubyOnRails
[15:37:50] NoGodDamnIdea: has joined #RubyOnRails
[15:53:43] mtkd: has joined #RubyOnRails
[15:57:44] bronson: has joined #RubyOnRails
[16:03:37] l_tonz: has joined #RubyOnRails
[16:03:50] alfiemax: has joined #RubyOnRails
[16:20:46] idefine: has joined #RubyOnRails
[16:24:56] cschneid_: has joined #RubyOnRails
[16:27:17] truenito: has joined #RubyOnRails
[16:30:38] mikecmpbll: has joined #RubyOnRails
[16:31:45] idefine: has joined #RubyOnRails
[16:41:18] NoGodDamnIdea: has joined #RubyOnRails
[16:42:14] uksio: has joined #RubyOnRails
[16:43:37] hahuang65: has joined #RubyOnRails
[16:46:23] _aeris_: has joined #RubyOnRails
[16:58:03] marr: has joined #RubyOnRails
[16:58:38] bronson: has joined #RubyOnRails
[17:03:57] l_tonz: has joined #RubyOnRails
[17:09:01] DTZUZO: has joined #RubyOnRails
[17:10:07] cschneid_: has joined #RubyOnRails
[17:11:11] Saukk: has joined #RubyOnRails
[17:19:28] workmad3: has joined #RubyOnRails
[17:21:59] dionysus69: has joined #RubyOnRails
[17:25:08] mikecmpb_: has joined #RubyOnRails
[17:26:19] Dimik: has joined #RubyOnRails
[17:29:55] mikecmpbll: has joined #RubyOnRails
[17:34:10] orbyt_: has joined #RubyOnRails
[17:43:47] idefine: has joined #RubyOnRails
[17:47:21] _aeris_: has joined #RubyOnRails
[17:55:28] srinidhi: has joined #RubyOnRails
[17:59:00] mtkd: has joined #RubyOnRails
[17:59:26] bronson: has joined #RubyOnRails
[18:19:45] idefine: has joined #RubyOnRails
[18:26:53] desperek: has joined #RubyOnRails
[18:40:30] ResidentBiscuit: has joined #RubyOnRails
[18:44:25] hahuang65: has joined #RubyOnRails
[18:45:27] conta: has joined #RubyOnRails
[18:50:08] ResidentBiscuit: has joined #RubyOnRails
[18:55:13] cschneid_: has joined #RubyOnRails
[19:00:15] bronson: has joined #RubyOnRails
[19:04:15] _ritchie_: has joined #RubyOnRails
[19:08:51] kapil___: has joined #RubyOnRails
[19:09:52] kapil___: sorry i asking again:
[19:09:52] kapil___: I have Departments Model. Product goes in seperate department until it finalize.
[19:09:52] kapil___: I also Have Various states on Product model by statesman gem.
[19:09:52] kapil___: what should i use Department Model or Product States to save where the product is and (its history)?
[19:14:19] jottr: has joined #RubyOnRails
[19:19:54] workmad3: has joined #RubyOnRails
[19:21:02] l_tonz: has joined #RubyOnRails
[19:38:35] cschneid_: has joined #RubyOnRails
[19:51:18] hahuang65: has joined #RubyOnRails
[20:03:07] armyriad: has joined #RubyOnRails
[20:06:18] amperry: kapil___: my best guess would be to model the Department as 'has_many :products', and Product 'belongs_to :department', although there may be something more complicated going on that I'm not understanding.
[20:07:21] gambl0re: has joined #RubyOnRails
[20:07:51] ur5us: has joined #RubyOnRails
[20:11:11] kapil___: amperry: i already done it.
[20:12:14] kapil___: departments are like states where product can transition.
[20:13:49] kapil___: product has many state transitions.
[20:15:44] kapil___: if u help i show you models
[20:17:30] cschneid_: has joined #RubyOnRails
[20:18:15] l_tonz: has joined #RubyOnRails
[20:18:55] amperry: maybe, but I'm trying to get it clear in my head. When you say "where the product is", do you mean, what Department it belongs to?
[20:19:52] kapil___: I have Products, its belongs to Department.
[20:20:35] amperry: how is Department different from State? In other words, what is an example of a Department, and what is an example of a State?
[20:22:06] amperry: then (unless I'm really misunderstanding the question) the association on Product, that it 'belongs_to :department', is really all you need.
[20:22:39] kapil___: I don't know where to add states. I added it to product model. so product has many state transitions.
[20:23:47] kapil___: I want benifits of states. like it only allows to transition from one state to other state.
[20:26:37] amperry: Okay. I'm looking at the Statesman gem for the first time now, so my advice might not be the best, I'm afraid. But I do see this, and it raises questions in my mind, too:
[20:26:57] amperry: State behaviour is defined in a separate, "state machine" class, rather than added directly onto a model. State machines are then instantiated with the model to which they should apply.
[20:28:01] amperry: I don't know anything more than that, unfortunately.
[20:28:36] kapil___: yes. so i am confusing too how to use it with Product and departments?
[20:30:05] planigan_: has joined #RubyOnRails
[20:30:15] kapil___: if i am not able to do it i have to remove statesman gem then
[20:31:11] amperry: you don't have to, but it will probably be cleaner to do so. Removing and replacing gems is a pretty painless process, though.
[20:32:20] kapil___: yes i have taken very time integrating this and finally this problem arise
[20:33:37] matthewd_: has joined #RubyOnRails
[20:36:22] fryguy: has joined #RubyOnRails
[20:40:30] Psy-Q: has joined #RubyOnRails
[20:42:54] spectra: has joined #RubyOnRails
[20:45:48] hammer065: has joined #RubyOnRails
[20:49:10] quiller: has joined #RubyOnRails
[20:51:18] cschneid_: has joined #RubyOnRails
[20:59:21] hfp_work: has joined #RubyOnRails
[21:01:28] bronson: has joined #RubyOnRails
[21:06:43] amperry: anyone know how to troubleshoot/fix an ActionController::InvalidAuthenticityToken eror? Gist: https://gist.github.com/amp108/7ff45ab5e5cf38c0889ca6ec13fbc33e
[21:07:16] HashNuke: has joined #RubyOnRails
[21:07:16] auv: has joined #RubyOnRails
[21:07:16] fearoffish: has joined #RubyOnRails
[21:07:16] justinweiss: has joined #RubyOnRails
[21:07:16] dmnd: has joined #RubyOnRails
[21:07:16] tycoon177: has joined #RubyOnRails
[21:08:34] auv: has joined #RubyOnRails
[21:08:39] HashNuke: has joined #RubyOnRails
[21:13:00] cgfbee: has joined #RubyOnRails
[21:13:34] Psy-Q: has joined #RubyOnRails
[21:18:43] Puffball: has joined #RubyOnRails
[21:20:44] workmad3: has joined #RubyOnRails
[21:24:30] _ritchie_: has joined #RubyOnRails
[21:28:00] fcser__: has joined #RubyOnRails
[21:37:18] Radar: amperry: https://gist.github.com/amp108/7ff45ab5e5cf38c0889ca6ec13fbc33e#file-pages_controller-rb-L2
[21:37:46] Radar: This does not take effect in PasswordsController because PasswordsController does not inherit from PagesController... Perhaps try moving the protect_from_forgery line into PasswordsController instead?
[21:39:06] Radar: amperry: how do you make this issue happen in your application? Maybe there is a clue in that.
[21:43:44] mtkd: has joined #RubyOnRails
[21:44:45] Radar: amperry: are you still alive?
[21:49:32] Radar: RIP amperry
[21:50:07] ResidentBiscuit: has joined #RubyOnRails
[21:55:39] cschneid_: has joined #RubyOnRails
[21:57:01] amperry: Radar: yes
[21:57:04] amperry: sorry, afk for a bit
[21:57:50] amperry: the only thing is, I don't know why this would show up in production and not in dev.
[22:02:19] bronson: has joined #RubyOnRails
[22:02:46] l_tonz: has joined #RubyOnRails
[22:03:30] amperry: Radar: how would I check to see how I make this happen in my application? (Adding the line to PasswordsController didn't affect anything on production.)
[22:09:20] quazimodo: has joined #RubyOnRails
[22:12:19] NoGodDamnIdea: has joined #RubyOnRails
[22:22:34] zwliew: has joined #RubyOnRails
[22:25:07] Cache_Money: has joined #RubyOnRails
[22:28:01] darkhanb: has joined #RubyOnRails
[22:34:07] quazimodo: has joined #RubyOnRails
[22:35:46] ephemer0l: has joined #RubyOnRails
[22:37:30] orbyt_: has joined #RubyOnRails
[22:51:25] weaksauce: has joined #RubyOnRails
[22:54:03] hfp_work: has joined #RubyOnRails
[22:54:25] noocx: has joined #RubyOnRails
[22:59:20] wethu: has joined #RubyOnRails
[23:02:16] l_tonz: has joined #RubyOnRails
[23:03:12] bronson: has joined #RubyOnRails
[23:03:47] noocx: I try to develop an openproject plugin, in development env I get this error: ActionController::RoutingError (No route matches [GET] "/assets/bundle.js.map"): have you got any idea what should cause it? Tell me if this message isn't enough. It's rails 5.0.6
[23:07:06] hfp_work: has joined #RubyOnRails
[23:10:42] hfp__work: has joined #RubyOnRails
[23:17:48] amperry: Radar: (and anyone who is interested): the problem was a setup in nginx, nothing to do with my code. (I did not set out to be the web admin for this project, dammit.)
[23:19:03] amperry: https://gitlab.com/gitlab-org/gitlab-ce/issues/15009, for those who might be interested. Federico Moretti's solution worked for me.
[23:20:19] hahuang65: has joined #RubyOnRails
[23:21:03] l_tonz: has joined #RubyOnRails
[23:25:16] alfiemax_: has joined #RubyOnRails
[23:25:44] dionysus69: has joined #RubyOnRails
[23:28:45] hfp_work: has joined #RubyOnRails
[23:29:34] ResidentBiscuit: has joined #RubyOnRails
[23:34:58] amperry: anyone here good with both rails and nginx?
[23:37:29] amperry: Now that I can login (after changing my nginx.conf), I can't log out.
[23:38:54] erts: has joined #RubyOnRails
[23:38:59] quazimodo: has joined #RubyOnRails
[23:39:08] _aeris_: has joined #RubyOnRails
[23:39:31] Puffball: has joined #RubyOnRails
[23:48:47] hfp_work: has joined #RubyOnRails
[23:57:17] hfp_work: has joined #RubyOnRails