« Back to channel list

#RubyOnRails - 29 October 2018

« Back 1 day Forward 1 day »
[12:50:01] helpa: has joined #RubyOnRails
[12:50:24] helpa: has joined #RubyOnRails
[12:52:52] helpa: has joined #RubyOnRails
[12:56:35] Saukk: has joined #RubyOnRails
[13:00:35] gheegh: has joined #RubyOnRails
[13:06:13] cabotto: has joined #RubyOnRails
[13:15:58] GodFather: has joined #RubyOnRails
[13:26:24] nzst: has joined #RubyOnRails
[13:49:59] apeiros_: has joined #RubyOnRails
[13:58:46] ahartley: has joined #RubyOnRails
[14:01:11] roshanavand: has joined #RubyOnRails
[14:05:29] snowy: has joined #RubyOnRails
[14:22:41] donnie: has joined #RubyOnRails
[14:39:17] lomex: has joined #RubyOnRails
[14:40:23] reber: has joined #RubyOnRails
[15:00:39] kapil____: has joined #RubyOnRails
[15:06:04] orbyt_: has joined #RubyOnRails
[15:07:31] tdy3: has joined #RubyOnRails
[15:11:00] ahartley: has joined #RubyOnRails
[15:13:35] Inside: has joined #RubyOnRails
[15:18:11] jsc: has joined #RubyOnRails
[15:21:04] Zarathu: has joined #RubyOnRails
[15:21:22] Zarathu: has left #RubyOnRails: ()
[15:53:44] apeiros: has joined #RubyOnRails
[16:08:17] jackrandom: has joined #RubyOnRails
[16:11:45] sgt_disco: has joined #RubyOnRails
[16:14:21] eckhardt: has joined #RubyOnRails
[16:16:25] darkhanb: has joined #RubyOnRails
[16:16:47] Guest979: has joined #RubyOnRails
[16:24:55] sgt_disco: Hey everybody, I have hopefully a simple question.
[16:24:56] sgt_disco: If I have table A and table B, which is a M.N relationship that is joined on table J (my junction table)
[16:24:57] sgt_disco: But for each of the id's in J, I need another column to denote qtys(single integer value) for each of those relationships.
[16:24:57] sgt_disco: How should I do this, should I add a column to table J to save this 1 value I need, or should I be making a new table to hold that value and then link it to the J table?
[16:26:09] sgt_disco: I am integrating this in a Rails app, although I don't think that detail is important, but stating it just in case
[16:30:40] zming____: has joined #RubyOnRails
[16:34:19] srinidhi: has joined #RubyOnRails
[16:35:43] sgt_disco: woah wrong channel, sorry people
[16:39:24] jlebrech: has joined #RubyOnRails
[16:39:55] jlebrech: is there a way to store error numbers in i18n?
[16:41:02] orbyt_: has joined #RubyOnRails
[16:43:14] [Butch]: has joined #RubyOnRails
[16:46:14] wojnar: has joined #RubyOnRails
[16:47:18] zming____: has left #RubyOnRails: ()
[16:48:38] nopolitica: has joined #RubyOnRails
[16:50:47] havenwood: jlebrech: You mean i18n for the custom error page content?
[16:50:59] havenwood: jlebrech: Or something else?
[16:51:13] jlebrech: is it possible to store a number in there too aswell as a key?
[16:51:26] jlebrech: yeah for error number to words translation
[16:52:01] conta: has joined #RubyOnRails
[16:52:36] havenwood: jlebrech: Sure, you can use i18n for whatever you'd like. You could look at the conventions adopted by gems that do Raills i18n with custom error code pages, such as exception_handler: https://github.com/richpeck/exception_handler
[16:53:24] havenwood: But there's not much to it, afaik.
[16:53:44] jlebrech: yeah i just need to map a number to an i18n key
[16:53:47] havenwood: jlebrech: https://github.com/richpeck/exception_handler/blob/04fffc9c86f67d39e0e13a96a891c02ce6d7b884/app/models/exception_handler/exception.rb#L123-L125
[16:53:51] jlebrech: i'm doing this with my own code atm
[16:54:21] jlebrech: mapping a 3rd error code into english
[16:56:27] jlebrech: elsewhere in my code i map them like this:
[16:56:34] jlebrech: ERROR_CODES = []
[16:56:52] jlebrech: then ERRORS_CODE[62] = "CODE_62"
[16:57:05] jlebrech: it's just ugly and it's in different places
[16:58:46] whysthatso: has joined #RubyOnRails
[17:00:47] mikecmpbll: has joined #RubyOnRails
[17:12:48] maryo: has joined #RubyOnRails
[17:22:59] JusticeFries: has joined #RubyOnRails
[17:23:44] gregf_: has joined #RubyOnRails
[17:23:59] za1b1tsu: has joined #RubyOnRails
[17:27:59] reber__: has joined #RubyOnRails
[17:31:59] salasrod: has joined #RubyOnRails
[17:34:00] snowy: has joined #RubyOnRails
[17:36:20] orbyt_: has joined #RubyOnRails
[17:49:10] SteenJobs: has joined #RubyOnRails
[18:08:14] ahartley_: has joined #RubyOnRails
[18:08:43] ahartley: has joined #RubyOnRails
[18:09:26] whysthatso: has joined #RubyOnRails
[18:12:34] orbyt_: has joined #RubyOnRails
[18:26:46] orbyt_: has joined #RubyOnRails
[18:28:07] nopolitica: has joined #RubyOnRails
[18:28:57] ahartley: has joined #RubyOnRails
[18:29:11] defsdoor: has joined #RubyOnRails
[18:30:47] ahartley_: has joined #RubyOnRails
[18:32:28] ahartley: has joined #RubyOnRails
[18:35:47] ahartley: has joined #RubyOnRails
[18:37:43] srinidhi: has joined #RubyOnRails
[18:47:39] mikecmpbll: has joined #RubyOnRails
[18:58:43] kapil____: has joined #RubyOnRails
[19:06:09] chouhoulis: has joined #RubyOnRails
[19:12:10] za1b1tsu: has joined #RubyOnRails
[19:19:23] umpc: has joined #RubyOnRails
[19:33:37] mochiyoda: has joined #RubyOnRails
[19:34:36] conta: has joined #RubyOnRails
[19:34:38] orbyt_: has joined #RubyOnRails
[19:45:09] tdy: has joined #RubyOnRails
[19:45:42] weaksauce: has joined #RubyOnRails
[19:53:24] wojnar: has joined #RubyOnRails
[19:56:26] desperek: has joined #RubyOnRails
[20:06:13] CGibsonmm: has joined #RubyOnRails
[20:06:29] CGibsonmm: How do you stop aws links from expiring?
[20:06:49] CGibsonmm: I am trying to get photo upload but my links always expire
[20:10:56] maryo_: has joined #RubyOnRails
[20:11:30] cxl: Is this kind of side effect good practice in Ruby/Rails? I'm surprised to see it in the rails tutorial: https://bitbucket.org/railstutorial/sample_app_4th_ed/src/6f522278a8e2f0c65738bb10ac09a265a727be42/app/helpers/sessions_helper.rb#lines-22
[20:11:51] cxl: s/good/accepted
[20:20:34] Inside: cxl: Huh that's interesting
[20:20:40] Inside: thta's not the official tutorial thoug
[20:21:12] Inside: https://www.railstutorial.org/book/basic_login#sec-sessions_controller
[20:21:20] Inside: Look at section 8.16 - the code in the latest version is different
[20:24:34] eckhardt: has joined #RubyOnRails
[20:27:40] za1b1tsu: has joined #RubyOnRails
[20:30:51] roshanavand: has joined #RubyOnRails
[20:43:16] sandstrom: has joined #RubyOnRails
[20:44:59] orbyt_: has joined #RubyOnRails
[20:46:46] orbyt_: has joined #RubyOnRails
[20:48:35] arathald: has joined #RubyOnRails
[20:54:03] mochiyoda: has joined #RubyOnRails
[20:54:16] za1b1tsu: has joined #RubyOnRails
[21:00:02] ur5us: has joined #RubyOnRails
[21:02:44] glasz: has joined #RubyOnRails
[21:06:20] glasz: hello siblings. is there a way to prevent sprockets from including underscored files like `_foo.scss` so that only @import "foo" can load them?
[21:08:43] Inside: https://github.com/rails/sprockets#stub
[21:09:32] glasz: Inside: will `stub "_*"` work? does not read like it.
[21:12:25] glasz: basically, i want non of my sass partials to be loaded by sprockets. wonder why that's not a convention.
[21:13:07] Inside: Are you doing require_tree or something?
[21:13:12] Inside: I explicity require every asset I need
[21:13:30] glasz: yes. and i would like to continue to do so.
[21:26:57] SteenJobs: has joined #RubyOnRails
[21:34:06] cxl: Inside: It's still in the latest version: https://www.railstutorial.org/book/advanced_login#code-persistent_current_user
[21:35:28] orbyt_: has joined #RubyOnRails
[21:39:33] whysthatso_: has joined #RubyOnRails
[21:42:54] apeiros: has joined #RubyOnRails
[21:52:40] Inside: that's super ugly
[22:00:35] snowy: has joined #RubyOnRails
[22:03:11] eckhardt: has joined #RubyOnRails
[22:10:21] GodFather: has joined #RubyOnRails
[22:13:05] beholders_eye: has joined #RubyOnRails
[22:13:23] s2013: has joined #RubyOnRails
[22:16:43] kapil____: has joined #RubyOnRails
[22:18:22] za1b1tsu: has joined #RubyOnRails
[22:19:06] Inside: has joined #RubyOnRails
[22:32:49] samort7: has joined #RubyOnRails
[22:34:32] mjacob: what's the easiest way to have a dynamic segment in a route that consumes everything (dots, slashes, etc.)?
[22:36:59] mjacob: well, it should also be allowed to contain hashes etc., which of course need to be escaped when creating the url
[22:37:59] orbyt_: has joined #RubyOnRails
[22:40:44] nexraf1: has joined #RubyOnRails
[22:48:41] apeiros: has joined #RubyOnRails
[23:06:21] mikecmpbll: has joined #RubyOnRails
[23:18:06] JusticeFries: has joined #RubyOnRails
[23:23:19] eckhardt: has joined #RubyOnRails
[23:24:07] beholders_eye: has joined #RubyOnRails
[23:25:51] apeiros: has joined #RubyOnRails
[23:31:46] eckhardt: has joined #RubyOnRails
[23:32:26] hd1: has joined #RubyOnRails
[23:36:08] tdy: has joined #RubyOnRails
[23:46:56] eckhardt: has joined #RubyOnRails
[23:47:15] beholders_eye: has joined #RubyOnRails
[23:53:48] Dimik: has joined #RubyOnRails
[23:56:10] blackmesa: has joined #RubyOnRails