« Back to channel list

#RubyOnRails - 20 September 2018

« Back 1 day
[00:16:59] weaksauce: has joined #RubyOnRails
[00:21:10] davidh38: has joined #RubyOnRails
[00:21:51] jottr: has joined #RubyOnRails
[00:26:42] gthank: has joined #RubyOnRails
[00:31:22] jottr: has joined #RubyOnRails
[00:34:11] faitswulff: has joined #RubyOnRails
[00:34:41] wethu: has joined #RubyOnRails
[00:43:05] LiftLeft2: has joined #RubyOnRails
[00:47:23] psychoslave: has joined #RubyOnRails
[00:49:22] za1b1tsu: has joined #RubyOnRails
[00:51:07] Radar: has joined #RubyOnRails
[00:51:22] Radar: !botsnack
[00:51:22] helpa: Nom nom. Thanks, Radar!
[01:03:42] HappyHotDog: has joined #RubyOnRails
[01:05:59] sung: has joined #RubyOnRails
[01:08:48] sevenseacat: has joined #RubyOnRails
[01:08:58] SanguineAnomaly: has joined #RubyOnRails
[01:24:28] faitswulff: has joined #RubyOnRails
[01:30:39] darkhanb_: has joined #RubyOnRails
[01:50:57] SanguineAnomaly: has joined #RubyOnRails
[02:32:11] jottr: has joined #RubyOnRails
[02:37:26] za1b1tsu: has joined #RubyOnRails
[02:47:26] quazimodo: has joined #RubyOnRails
[03:11:23] braincrash: has joined #RubyOnRails
[03:12:50] sarmiena_: has joined #RubyOnRails
[03:18:55] rrichardsr3: has joined #RubyOnRails
[03:22:54] davidh38: has joined #RubyOnRails
[03:28:26] lxsameer: has joined #RubyOnRails
[03:52:01] dbugger_: has joined #RubyOnRails
[03:59:53] sarmiena_: has joined #RubyOnRails
[04:14:59] p3a: has joined #RubyOnRails
[04:17:27] baweaver: random rant is random?
[04:22:52] havenwood: srand 133866; rand 1..1_000_000
[04:25:16] za1b1tsu: has joined #RubyOnRails
[04:33:04] jottr: has joined #RubyOnRails
[04:50:24] quazimodo: has joined #RubyOnRails
[04:53:57] duderonomy: has joined #RubyOnRails
[04:55:22] reber: has joined #RubyOnRails
[04:55:42] reber__: has joined #RubyOnRails
[04:56:23] reber: has joined #RubyOnRails
[05:02:10] Technodrome: has joined #RubyOnRails
[05:03:39] DTZUZO_: has joined #RubyOnRails
[05:04:33] nickjj_: has joined #RubyOnRails
[05:15:55] havenwood: has joined #RubyOnRails
[05:24:29] davidh38: has joined #RubyOnRails
[05:33:29] srinidhi: has joined #RubyOnRails
[06:12:51] snickers: has joined #RubyOnRails
[06:13:00] sandstrom: has joined #RubyOnRails
[06:14:37] tdy: has joined #RubyOnRails
[06:18:15] mojtaba: has joined #RubyOnRails
[06:33:52] jottr: has joined #RubyOnRails
[06:41:52] tdy: has joined #RubyOnRails
[06:42:55] alaing: has joined #RubyOnRails
[06:43:22] alaing: i have a rails 5.0 and it s not minifying my assets.
[06:43:38] alaing: I'm using uglify for js
[06:45:23] alaing: doh, i think i've worked it out....thank you
[06:46:04] alaing: in my dockerfile i wasn't telling assets:precompile to run in production mode
[06:46:48] fragamus: has joined #RubyOnRails
[06:48:25] MoritaShinobu: has joined #RubyOnRails
[06:50:00] psychoslave: has joined #RubyOnRails
[06:54:00] za1b1tsu: has joined #RubyOnRails
[07:08:16] ss942: has joined #RubyOnRails
[07:10:52] ss942: I have application, and it's plugin. I want to serve data from plugin in application view (via controller ofc) How do I do it?
[07:11:35] LiftLeft: has joined #RubyOnRails
[07:13:02] LiftLeft: has joined #RubyOnRails
[07:15:15] sandstrom: has joined #RubyOnRails
[07:17:24] mojtaba: has joined #RubyOnRails
[07:18:32] lunarfyre7: has joined #RubyOnRails
[07:34:33] DoubleMalt: has joined #RubyOnRails
[07:40:12] mpodien: has joined #RubyOnRails
[07:42:28] mpodien: Not using ROR but I thought since you popularized MVC you can answer me this: May a controller depend on multiple models or is it always 1 controller 1 model?
[07:43:33] sevenseacat: a controller doesnt 'depend' on models
[07:43:45] sevenseacat: a controller provides web access points
[07:44:25] mpodien: so one controller may provide web access points to multiple models?
[07:45:11] jottr: has joined #RubyOnRails
[07:46:03] sevenseacat: in practice you probably wouldn't, but there's nothing stopping you
[07:47:43] sevenseacat: rails follows a convention called resourceful routing, which tries to define a set of actions per controller
[07:48:44] mpodien: is there a name for what then manages interactions between.. i guess.. models? for when an action for model x ought be followed by an action for model y?
[07:50:32] sevenseacat: an action is a single web request - they don't follow each other
[07:52:57] Technodrome: has joined #RubyOnRails
[07:53:27] sandstrom: has joined #RubyOnRails
[07:55:25] mpodien: forgive my ignorance: lets say i have a web store. when i load the front page i will need a selection of products and i will need my user data. so i'll have to request data from two models. no? and it's a single request?
[07:55:57] sevenseacat: yep, single request to the homepage
[07:56:03] za1b1tsu: has joined #RubyOnRails
[07:56:22] mpodien: and to a single controller?
[07:56:47] mpodien: which provides access to multiple models?
[07:57:05] sevenseacat: it provides access to everything
[07:57:42] mpodien: so then don't you in practice constantly provide web access points to multiple models?
[07:57:50] mpodien: trying to wrap my head around this
[07:59:39] sevenseacat: controller actions map 1-1 to URLs, eg. /products/my-cool-keyboard
[07:59:41] samscam7: has joined #RubyOnRails
[08:00:08] samscam7: baweaver i figured my shit out
[08:00:27] sevenseacat: when you access that URL you're probably going to want a lot of data, like the current user to show in the top navigation, details of the current cart, product details, maybe stock details
[08:00:39] sevenseacat: related products, product types, etc.
[08:16:57] jackhum: has joined #RubyOnRails
[08:20:19] _za1b1tsu_: has joined #RubyOnRails
[08:25:08] lxsameer: has joined #RubyOnRails
[08:33:57] jottr: has joined #RubyOnRails
[08:34:08] lxsameer: has joined #RubyOnRails
[08:48:20] uksio: has joined #RubyOnRails
[08:49:32] jackhum: has joined #RubyOnRails
[08:52:39] dbugger_: has joined #RubyOnRails
[08:56:50] tdy: has joined #RubyOnRails
[08:59:11] Technodrome: has joined #RubyOnRails
[09:09:07] ShekharReddy: has joined #RubyOnRails
[09:09:21] helpa: has joined #RubyOnRails
[09:10:43] Avon: has joined #RubyOnRails
[09:24:54] Radar: has joined #RubyOnRails
[09:31:03] ss942: how do I generate controller for plugin instead of main app?
[09:31:37] ss942: would just cd to plugin folder work?
[09:39:35] fl0v0: has joined #RubyOnRails
[09:40:44] fl0v0: has left #RubyOnRails: ("PING 1537436444")
[09:41:49] Ergo: has joined #RubyOnRails
[10:00:56] nemesit: has joined #RubyOnRails
[10:07:38] ndr0s: has left #RubyOnRails: ("WeeChat 1.6")
[10:14:53] FernandoBasso: has joined #RubyOnRails
[10:25:15] apparition: has joined #RubyOnRails
[10:28:54] davidh38: has joined #RubyOnRails