« Back to channel list

#RubyOnRails - 03 January 2019

« Back 1 day Forward 1 day »
[00:17:08] Technodrome: has joined #RubyOnRails
[00:55:24] ariedler: has joined #RubyOnRails
[01:08:39] orbyt_: has joined #RubyOnRails
[01:17:12] Technodrome: has joined #RubyOnRails
[01:17:53] tdy: has joined #RubyOnRails
[01:18:46] SteenJobs: has joined #RubyOnRails
[01:34:59] tweaks: has joined #RubyOnRails
[01:35:57] orbyt_: has joined #RubyOnRails
[01:38:58] Technodrome: has joined #RubyOnRails
[01:51:29] jottr: has joined #RubyOnRails
[01:59:57] bryanculver: has joined #RubyOnRails
[02:02:13] Jervis_: has joined #RubyOnRails
[02:03:28] jottr: has joined #RubyOnRails
[02:07:15] tdy: has joined #RubyOnRails
[02:18:29] gambl0r3: has joined #RubyOnRails
[02:24:55] crankharder: has joined #RubyOnRails
[02:42:26] jottr: has joined #RubyOnRails
[02:44:03] SteenJobs: has joined #RubyOnRails
[03:06:35] Technodrome: has joined #RubyOnRails
[03:06:53] duderonomy: has joined #RubyOnRails
[03:17:37] Saukk: has joined #RubyOnRails
[03:19:57] orbyt_: has joined #RubyOnRails
[03:42:27] jottr: has joined #RubyOnRails
[03:48:38] crankhar1er: has joined #RubyOnRails
[03:51:13] orbyt_: has joined #RubyOnRails
[04:00:45] ariedler: has joined #RubyOnRails
[04:09:59] braincrash: has joined #RubyOnRails
[04:13:35] roshanavand: has joined #RubyOnRails
[04:16:27] cnsvc: has joined #RubyOnRails
[04:53:21] kapil____: has joined #RubyOnRails
[05:03:01] sirensari2: has joined #RubyOnRails
[05:23:53] uks: has joined #RubyOnRails
[05:32:34] crankhar1er: has joined #RubyOnRails
[05:50:13] jottr: has joined #RubyOnRails
[06:03:23] ur5us: has joined #RubyOnRails
[06:07:17] conta: has joined #RubyOnRails
[06:11:06] Technodrome: has joined #RubyOnRails
[06:22:50] conta: has joined #RubyOnRails
[06:37:37] gundoshi88: has joined #RubyOnRails
[06:40:01] MasterAsia: has joined #RubyOnRails
[06:52:37] srinidhi: has joined #RubyOnRails
[07:07:10] srinidhi: has joined #RubyOnRails
[07:34:47] Puffball: has joined #RubyOnRails
[07:42:39] status402: has joined #RubyOnRails
[07:51:08] jottr: has joined #RubyOnRails
[07:59:49] kapil____: has joined #RubyOnRails
[08:23:12] za1b1tsu: has joined #RubyOnRails
[08:54:10] sirensari2: has joined #RubyOnRails
[09:04:08] jottr: has joined #RubyOnRails
[09:11:40] mikecmpbll: has joined #RubyOnRails
[09:11:57] Psy-Q: has left #RubyOnRails: ("...")
[09:18:37] roshanavand: has joined #RubyOnRails
[09:43:13] jottr: has joined #RubyOnRails
[09:50:40] lxsameer: has joined #RubyOnRails
[10:09:06] cnsvc: has joined #RubyOnRails
[10:14:56] GeorgesLeYeti: has joined #RubyOnRails
[10:16:38] GeorgesLeYeti: I have a question. I have 2 web applications and both should use the same user database but each application are using different data.
[10:17:07] GeorgesLeYeti: Should I make 1 big database for the 2 applications ? Or 3 database : 1 for user and 1 for each application ?
[10:17:38] GeorgesLeYeti: I think the 2nd one is the best. But I don't know how to do this.
[10:28:44] Radar: GeorgesLeYeti: You can establish connection to a different database per model
[10:28:57] Radar: write establish_connection :other_database inside the model, as a class method call
[10:41:05] srinidhi: has joined #RubyOnRails
[10:45:16] Ergo: has joined #RubyOnRails
[10:45:25] GeorgesLeYeti: Radar, Ty a lot :D
[11:24:42] xhoy: has joined #RubyOnRails
[11:29:25] atrius: has joined #RubyOnRails
[11:41:05] catbusters: has joined #RubyOnRails
[11:49:22] jottr: has joined #RubyOnRails
[11:50:45] mutantkeyboard: has joined #RubyOnRails
[11:55:31] ariedler: has joined #RubyOnRails
[11:57:41] ariedler: has joined #RubyOnRails
[12:03:32] status402: has joined #RubyOnRails
[12:08:35] status402_: has joined #RubyOnRails
[12:12:03] Dbugger: has joined #RubyOnRails
[12:15:57] status402: has joined #RubyOnRails
[12:23:17] dmgk: has joined #RubyOnRails
[12:43:23] lxsameer: has joined #RubyOnRails
[12:43:26] jottr: has joined #RubyOnRails
[12:56:37] reber: has joined #RubyOnRails
[12:58:15] ariedler: has joined #RubyOnRails
[13:04:00] uks: has joined #RubyOnRails
[13:36:26] DTZUZO: has joined #RubyOnRails
[13:45:45] tdy: has joined #RubyOnRails
[13:53:19] tdy: has joined #RubyOnRails
[14:03:21] lexileo: has joined #RubyOnRails
[14:04:00] bitnotri: has joined #RubyOnRails
[14:06:50] status402: has joined #RubyOnRails
[14:08:40] eclm: has joined #RubyOnRails
[14:17:11] crankharder: has joined #RubyOnRails
[14:18:38] status402: has joined #RubyOnRails
[14:24:14] daveomcd: has joined #RubyOnRails
[14:43:07] GodFather: has joined #RubyOnRails
[14:44:14] SteenJobs: has joined #RubyOnRails
[14:52:13] status402: has joined #RubyOnRails
[15:00:08] maryo: has joined #RubyOnRails
[15:01:43] status402: has joined #RubyOnRails
[15:02:47] uplime: has joined #RubyOnRails
[15:07:33] srinidhi: has joined #RubyOnRails
[15:08:58] conta: has joined #RubyOnRails
[15:11:55] lexileo: has joined #RubyOnRails
[15:13:41] roshanavand1: has joined #RubyOnRails
[15:37:25] conta: has joined #RubyOnRails
[15:38:32] brendan-: has joined #RubyOnRails
[15:40:35] conta1: has joined #RubyOnRails
[15:46:03] DylanJ: has joined #RubyOnRails
[15:56:45] Ookma-Kyi: has joined #RubyOnRails
[15:59:59] tweaks: I have a 4.2.x project that needs to 301 redirect all routes with a trailing slash to the non-trailing version for SEO purposes to avoid duplicate content issues. The app is on Heroku so it looks like I’ll have to use something like https://github.com/jtrupiano/rack-rewrite, but wanted to see if anyone had other ideas before adding a middleware gem.
[16:00:21] uks: has joined #RubyOnRails
[16:00:39] Ookma-Kyi: Is Rails a good fit for my project: https://git.tuxfamily.org/aleeiousmmo/source.git/tree/
[16:01:57] tdy: has joined #RubyOnRails
[16:05:16] tbuehlmann: Ookma-Kyi: did you just posed that question and just pasted a link?
[16:05:48] Ookma-Kyi: yea i am interested in moving my text based browser mmo to rails why?
[16:06:06] Ookma-Kyi: i'm serious
[16:06:37] Ookma-Kyi: either that or django or nodejs
[16:06:42] Ookma-Kyi: trying to decide
[16:07:07] tbuehlmann: they will probably all work very well, it's up to you and what tech you know/want to learn
[16:07:35] Ookma-Kyi: the question is "is ruby on rails the best fit"
[16:08:41] Ookma-Kyi: i mean it's just a simple text mmo like KoL
[16:08:50] Ookma-Kyi: without the graphics
[16:16:39] tbuehlmann: I don't know what framework is the best fit as I only know rails very well
[16:18:05] Ookma-Kyi: i heard people are leaving PHP :(
[16:18:28] tbuehlmann: people are leaving everything that is not js :)
[16:19:54] Ookma-Kyi: so your suggesting nodejs?
[16:20:36] tbuehlmann: I don't know the exact requirements and I don't know django and nodejs enough to make a good suggestion
[16:22:14] krawchyk: has joined #RubyOnRails
[16:23:35] nickjj: Ookma-Kyi, why not stick with what you have if it works?
[16:23:59] Ookma-Kyi: cause like i said everyone is leaving PHP
[16:24:35] nickjj: is everyone leaving? laracasts is insanely popular and it's driven by a PHP framework, tons of people are using it
[16:24:36] tbuehlmann: there are by far more php developers than rails developers, I assume
[16:25:04] tbuehlmann: (comparing a language with a framework here, but you'll get what I mean)
[16:25:56] nickjj: yeah, it's a screencast based learning platform for laravel
[16:27:18] nickjj: i don't even use php or laravel but i know of the site, mainly because i've seen it come up for search results even for non-php related terms
[16:27:41] nickjj: but i once looked through it, there's a ridiculous amount of engagement from people on that site
[16:31:16] trif: has joined #RubyOnRails
[16:55:52] maryo: has joined #RubyOnRails
[16:59:25] andywww: has joined #RubyOnRails
[17:00:29] andywww: has anyone run into any problems with the passenger team version of nginx? I can’t seem to get it to work with Ubuntu 18+/Debian 9+
[17:01:37] andywww: there are only a handful of commands to run if you follow the passenger website but it seems neither are playing ball
[17:03:23] srinidhi: has joined #RubyOnRails
[17:08:08] andywww: false alarm nginx doesn’t seem to be a dependency of their lib!
[17:11:20] conta: has joined #RubyOnRails
[17:21:00] gambl0r3: has joined #RubyOnRails
[17:21:16] jgpawletko: has joined #RubyOnRails
[17:39:23] defsdoor: has joined #RubyOnRails
[17:42:14] daveomcd: has joined #RubyOnRails
[17:56:38] orbyt_: has joined #RubyOnRails
[18:05:38] krawchyk_: has joined #RubyOnRails
[18:16:37] sameerynho: has joined #RubyOnRails
[18:25:17] KeyJoo: has joined #RubyOnRails
[18:30:53] srinidhi: has joined #RubyOnRails
[18:45:11] pLaTo0n: has joined #RubyOnRails
[18:52:28] orbyt_: has joined #RubyOnRails
[18:59:54] orbyt_: What is the best way to handle routes that accept a fairly large amount or query params?
[19:00:12] orbyt_: Just a bunch of `if` statements checking for if the query param exists?
[19:14:00] tbuehlmann: orbyt_: for filtering or what's the usecase?
[19:15:11] orbyt_: I have a restful resource, for example "star", and i'd like to be able to query for example all stars in a main sequence stage and larger than the sun and at least 3 light years away
[19:15:29] orbyt_: i'm wondering if theres a better pattern than hardcoding all the possible combinations in my controller
[19:16:06] tbuehlmann: a simple start for that usecase could be a bunch of model scope that you'd just call: Star.with_foo(params[:foo])
[19:16:17] tbuehlmann: handling the presence of the argument in the scope itself
[19:18:11] orbyt_: how would that work exactly? Like I could have Star.in_main_sequence, but then what about other parts of the query?
[19:18:40] orbyt_: Not super familiar with model scopes
[19:19:40] tbuehlmann: Star.in_main_sequence(params[:whatever]).larger_than_the_sun(params[:whatever]) and so on
[19:19:51] tbuehlmann: they are chainable as a scope should always return a relation
[19:21:21] orbyt_: what is params[:whatever] in your example? Would that be a query like ?stage=main-sequence where that scope than toggles a boolean?
[19:21:42] tbuehlmann: right, that'd be the query param
[19:22:40] orbyt_: Well Star.in_main_sequence wouldn't make sense with a different stage, i.e. `?stage=red-giant`, right?
[19:23:03] orbyt_: It doesn't matter what the query is, if it's not main_sequence then that's it
[19:23:54] orbyt_: Like would I need a Star.in_red_giant_stage and then one for each stage?
[19:24:33] tbuehlmann: I don't know the exact usecase. so you can filter on stages? if so, have a ?stage=name-of-stage query param
[19:25:55] orbyt_: So are Scopes the best way to go about this?
[19:26:08] tbuehlmann: well, a simple way
[19:26:18] orbyt_: Cool, thanks
[19:27:13] tdy: has joined #RubyOnRails
[19:34:21] tdy: has joined #RubyOnRails
[20:05:52] conta: has joined #RubyOnRails
[20:10:09] sandelius: has joined #RubyOnRails
[20:19:44] gambl0r3: has joined #RubyOnRails
[20:20:04] NoGodDamnIdea: has joined #RubyOnRails
[20:26:56] tdy: has joined #RubyOnRails
[20:27:32] segy: has joined #RubyOnRails
[20:34:21] srinidhi: has joined #RubyOnRails
[20:46:42] orbyt_: has joined #RubyOnRails
[20:47:44] dmgk_: has joined #RubyOnRails
[20:48:05] gambl0r3: has joined #RubyOnRails
[20:48:59] GodFather: has joined #RubyOnRails
[20:49:05] krawchyk: has joined #RubyOnRails
[20:49:40] sandelius: has joined #RubyOnRails
[20:49:45] gambl0r3: has joined #RubyOnRails
[20:53:36] Radar: GOOD MORNING
[20:55:43] tdy: has joined #RubyOnRails
[20:59:05] Fernando-Basso: has joined #RubyOnRails
[21:04:55] sandelius: Good evening
[21:20:00] krawchyk: has joined #RubyOnRails
[21:21:30] SteenJobs: has joined #RubyOnRails
[21:28:31] SteenJobs: has joined #RubyOnRails
[21:45:57] krawchyk: has joined #RubyOnRails
[21:47:03] MasterAsia: has joined #RubyOnRails
[21:52:56] conta: has joined #RubyOnRails
[21:58:45] krawchyk: has joined #RubyOnRails
[22:18:51] reber: has joined #RubyOnRails
[22:32:19] orbyt_: has joined #RubyOnRails
[23:16:14] conta: has joined #RubyOnRails
[23:42:48] jottr: has joined #RubyOnRails