« Back to channel list

#RubyOnRails - 29 March 2019

« Back 1 day Forward 1 day »
[00:10:11] podman: has joined #RubyOnRails
[00:11:25] podman: Hi all. I'm running into some problems connecting to a standalone selenium server in docker using selenium/standalone-chrome with capybara and rspec. anyone have any experience getting this type of setup working?
[00:11:38] orbyt_: has joined #RubyOnRails
[00:47:06] sevenseacat: has joined #RubyOnRails
[02:05:35] octos: has joined #RubyOnRails
[02:21:24] pd09041999: has joined #RubyOnRails
[02:27:32] s00pcan: has joined #RubyOnRails
[02:27:51] mangold: has joined #RubyOnRails
[02:30:02] kvda: has joined #RubyOnRails
[02:51:24] s00pcan: has joined #RubyOnRails
[03:02:42] gambl0re: has joined #RubyOnRails
[03:12:28] rascencio: has joined #RubyOnRails
[03:14:04] tdy1: has joined #RubyOnRails
[03:20:21] MrCrackPotBuilde: has joined #RubyOnRails
[03:55:15] kapil____: has joined #RubyOnRails
[04:02:51] noodle: has joined #RubyOnRails
[04:08:52] kvda: has joined #RubyOnRails
[04:11:35] braincrash: has joined #RubyOnRails
[04:34:05] gb_away: has joined #RubyOnRails
[05:10:28] dustinm`: has joined #RubyOnRails
[05:42:50] sidx64: has joined #RubyOnRails
[05:54:27] v01d4lph4: has joined #RubyOnRails
[05:58:21] uksio: has joined #RubyOnRails
[06:05:40] duderonomy: has joined #RubyOnRails
[06:15:54] tdy1: has joined #RubyOnRails
[06:16:42] MrCrackPotBuilde: has joined #RubyOnRails
[06:22:06] kapil____: has joined #RubyOnRails
[06:27:48] conta: has joined #RubyOnRails
[06:35:43] srinidhi: has joined #RubyOnRails
[07:14:32] sidx64: has joined #RubyOnRails
[07:51:20] Dbugger: has joined #RubyOnRails
[07:59:03] Dbugger: has joined #RubyOnRails
[08:09:08] reactormonk: has joined #RubyOnRails
[08:09:57] ikbenhet: has joined #RubyOnRails
[08:22:19] lxsameer: has joined #RubyOnRails
[08:23:05] agent_white: has joined #RubyOnRails
[08:25:44] sidx64: has joined #RubyOnRails
[08:28:58] sidx64: has joined #RubyOnRails
[08:29:46] dustinm`: has joined #RubyOnRails
[08:30:59] mangold: has joined #RubyOnRails
[08:35:35] hightower2: has joined #RubyOnRails
[08:53:19] ikbenhet: has joined #RubyOnRails
[09:01:58] adac: has joined #RubyOnRails
[09:17:33] tdy1: has joined #RubyOnRails
[09:21:40] cgfbee: has joined #RubyOnRails
[09:24:22] tdy1: has joined #RubyOnRails
[09:38:37] Ergo: has joined #RubyOnRails
[09:49:52] gkos: has joined #RubyOnRails
[09:50:41] MrCrackPotBuilde: has joined #RubyOnRails
[09:54:05] srinidhi: has joined #RubyOnRails
[09:54:44] reactormonk: has joined #RubyOnRails
[09:56:14] tjbp: has joined #RubyOnRails
[10:55:13] ariedler: has joined #RubyOnRails
[10:58:03] lankanmon: has joined #RubyOnRails
[11:05:29] apparition: has joined #RubyOnRails
[11:14:45] Terens: has joined #RubyOnRails
[11:15:25] Terens: I have a model that can be liked. Should I create another controller for likes?
[11:22:18] snk: folks here might have other opinions, but what i might do, is add a 'like' action to the controller that you have for your model already (if there is one)
[11:22:46] snk: and then wire up a route, so that likes can be made by hitting a url like /model/like
[11:25:02] hammer065: has joined #RubyOnRails
[11:31:16] conta: has joined #RubyOnRails
[11:53:24] srinidhi: has joined #RubyOnRails
[12:06:36] pd09041999: has joined #RubyOnRails
[12:07:41] MrCrackPotBuilde: has joined #RubyOnRails
[12:35:24] gkos: has joined #RubyOnRails
[12:43:52] Terens: I see but I want to make it REST
[12:45:42] Terens: is this valid PUT model/vote { params: { type: 'dislike'} } DELETE model/vote ? single nested resource?
[12:50:08] v01d4lph4: has joined #RubyOnRails
[12:56:23] gkos: has joined #RubyOnRails
[12:57:45] v01d4lph4: has joined #RubyOnRails
[12:59:11] v01d4lph4: has joined #RubyOnRails
[13:01:54] gkos: has joined #RubyOnRails
[13:11:42] Xiti: has joined #RubyOnRails
[13:11:56] pd09041999: has joined #RubyOnRails
[13:15:32] rascencio: has joined #RubyOnRails
[13:33:23] gambl0re: has joined #RubyOnRails
[13:43:34] jottr_: has joined #RubyOnRails
[13:54:56] mangold: has joined #RubyOnRails
[13:55:04] Terens: if you have to store incoming web hooks for teams (title, hook_url) would naming table teams_incoming_webhoobs be ok or bad name?
[14:02:05] hammer065: has joined #RubyOnRails
[14:21:32] dionysus69: has joined #RubyOnRails
[14:30:43] rascencio: has joined #RubyOnRails
[14:37:41] helpa: has joined #RubyOnRails
[14:38:53] pd09041999: has joined #RubyOnRails
[14:43:34] pd09041999: has joined #RubyOnRails
[15:09:52] tdy1: has joined #RubyOnRails
[15:22:56] pd09041999: has joined #RubyOnRails
[15:25:31] reactormonk: has joined #RubyOnRails
[15:26:03] pd09041999: has joined #RubyOnRails
[15:41:01] ams__: has joined #RubyOnRails
[15:46:37] pd09041999: has joined #RubyOnRails
[15:46:46] gambl0re: has joined #RubyOnRails
[15:51:26] hammer065: has joined #RubyOnRails
[15:51:38] Terens: Hello would you have a folder eg configurations/something.rb configurations/integration_a.rb ..... or within a namespace eg: integration_a/configuration , feature/configuration ?
[15:56:48] orbyt_: has joined #RubyOnRails
[16:01:39] orbyt_: has joined #RubyOnRails
[16:18:57] crankharder: has joined #RubyOnRails
[16:41:56] crankharder: has joined #RubyOnRails
[16:52:51] pd09041999: has joined #RubyOnRails
[16:53:20] gambl0re: has joined #RubyOnRails
[16:55:07] pd09041999: has joined #RubyOnRails
[16:56:52] pd09041999: has joined #RubyOnRails
[16:58:33] pd09041999: has joined #RubyOnRails
[17:13:05] andywww: has joined #RubyOnRails
[17:14:48] andywww: i’m using action cable to push a message in which the partial rendered uses a active storage variant which keeps defaulting to example.org/<variant path>
[17:15:19] andywww: i’ve changed everything in ApplicationController.renderer.defaults to read correctly
[17:15:30] andywww: i just can’t seem to find where the defaults are being set
[17:15:41] andywww: anyone had this problem?
[17:17:46] orbyt_: has joined #RubyOnRails
[17:23:49] pd09041999: has joined #RubyOnRails
[17:26:01] rudyonkales: has joined #RubyOnRails
[17:27:39] rudyonkales: Hey there. I'm kind of burned out from trying to develop a SPA in React/Node and starting to realize that I may not need it. Can someone give me a pep talk? Is there any reason to consider not using Rails in 2019? I'm revisiting and it looks like there have been some great improvements over the last few years like turbolinks
[17:45:37] Terens: has joined #RubyOnRails
[17:45:48] snk: rudyonkales: there was someone on HN yesterday lamenting about how much they miss Rails: https://chanind.github.io/rails/2019/03/28/why-i-miss-rails.html
[17:45:55] snk: might be what you're looking for
[17:46:32] snk: i personally find rails enables me to write maintainable applications, with minimal fuss
[17:47:05] snk: i can get stuff done, and focus on my app rather than the framework. i don't know of much out there that does this as well as rails
[17:48:37] reactormonk: has joined #RubyOnRails
[17:50:14] rudyonkales: snk: thanks, that's some nice inspiration
[17:50:55] uks: has joined #RubyOnRails
[17:54:52] Terens: We store configuration as separate records. eg: title, descritpion, key, value,. The problem is that configuration cannot be saved as a whole. Some configuration pages have active / username password and complex configurations. I suggested to store them as jsonb and have validations on model. Why is this a bad idea? Other two devs said that we can solve this by adding ancestry at configuration and do this way validations.
[17:55:40] Terens: they do some evals on configuration
[18:02:11] pLaTo0n: has joined #RubyOnRails
[18:20:36] mlt-: Can someone enlighten me how this https://snag.gy/stZQbB.jpg is even possible? I assign a variable and right after same expression yields different result
[18:28:09] nicnic22: has joined #RubyOnRails
[18:29:50] nicnic222: has left #RubyOnRails: ()
[18:30:02] nicnic222: has joined #RubyOnRails
[18:30:39] nicnic222: I have a file called app/events/task/recalculate.rb
[18:30:55] nicnic222: From app/config/intializers/events.rb
[18:31:26] nicnic222: I'm trying to reference Events::Task::Recalculate
[18:31:43] nicnic222: However, rails is complaining about uninitialized constant Events
[18:42:01] reber: has joined #RubyOnRails
[18:46:08] mlt-: nicnic222: perhaps you should require that file
[18:47:17] mlt-: nicnic222: maybe autoload https://guides.rubyonrails.org/autoloading_and_reloading_constants.html#autoload-paths-and-eager-load-paths
[18:55:34] Dbugger: has joined #RubyOnRails
[19:07:43] andywww: has joined #RubyOnRails
[19:07:43] andywww: has left #RubyOnRails: ()
[19:30:23] defsdoor_: has joined #RubyOnRails
[19:34:23] fugee: has joined #RubyOnRails
[19:35:49] duderonomy: has joined #RubyOnRails
[19:38:00] fugee: i came across an app that has no root setting in config/routes.rb and renders _header.html.erb but there's no render statement in application.html.erb for _header.html.erb I'm trying to figure out how <%= yield %> works with no root path in routes.rb and how _header.html.erb gets rendered
[19:40:28] [Butch]: has joined #RubyOnRails
[19:42:47] bambanx: has joined #RubyOnRails
[19:53:17] nicnic22: has joined #RubyOnRails
[19:53:50] nicnic22: mlt-: rails first runs the initializers and *then* runs the eager loading
[19:55:23] funnel: has joined #RubyOnRails
[19:58:02] mlt-: nicnic22: maybe config.load_paths ?
[20:00:36] rascencio: has joined #RubyOnRails
[20:13:29] orbyt_: has joined #RubyOnRails
[20:22:59] dviola: has joined #RubyOnRails
[20:46:39] Fernando-Basso: has joined #RubyOnRails
[21:05:46] rascencio: has joined #RubyOnRails
[21:10:57] orbyt_: has joined #RubyOnRails
[21:27:08] _aeris_: has joined #RubyOnRails
[21:39:49] orbyt_: has joined #RubyOnRails
[21:58:32] gambl0re: has joined #RubyOnRails
[22:43:39] GodFather: has joined #RubyOnRails
[22:50:30] mcr: has joined #RubyOnRails
[23:15:03] lato: has joined #RubyOnRails
[23:18:39] IGnorAND: I'm watching Sandi Metz talks and she tells us to make smaller classes. Would you just put all those classes in app/models in RoR resulting in a lot of classes or do you make folders to group classes together?
[23:51:11] havenwood: IGnorAND: Phoenix's "Contexts" with multiple "Schemas" is a nice pattern. You can approximate it, with less enforcement, in Rails.
[23:51:56] havenwood: IGnorAND: You can use namespaces, which Rails supports well.
[23:54:39] IGnorAND: havenwood: do you mean https://hexdocs.pm/phoenix/contexts.html?
[23:54:57] havenwood: IGnorAND: yes
[23:55:09] IGnorAND: havenwood: I'll go read it. thanks
[23:55:30] havenwood: IGnorAND: there's unfortunately little resources that I know of about the pattern
[23:56:05] havenwood: IGnorAND: i haven't seen this talk, but looks promising: https://youtu.be/tdUtgtlJsEE
[23:58:27] IGnorAND: havenwood: thanks. I'm inspired by the talks of sandi metz. I just started with talks of Katrina Owen. I like those too. I wish there were talks similar to thise, but didn't discuss poro's but more rails related examples
[23:59:38] orbyt_: has joined #RubyOnRails