« Back to channel list

#RubyOnRails - 19 October 2018

« Back 1 day Forward 1 day »
[00:02:10] quazimodo: yeah appraisal was something that I was talking about
[00:02:29] quazimodo: switches out your gems and you can implement your own rails 'bits' & simply ask what version you're at to do version specific stuff
[00:09:36] tdy: has joined #RubyOnRails
[00:12:17] ur5us: has joined #RubyOnRails
[00:17:36] IanMalcolm: has joined #RubyOnRails
[00:23:43] lexileo: has joined #RubyOnRails
[00:29:01] glasz: has joined #RubyOnRails
[00:35:39] ivanskie: has joined #RubyOnRails
[00:39:11] mlt-: Now I can't figure out why RSpec/capybara/selenium won't find assets if I altered config.assets.prefix . If I start dummy app with either dev or test environment, I can access everything just fine with assets path I want, but running tests fails :(
[00:47:07] ivanskie: has joined #RubyOnRails
[00:48:05] lexileo: has joined #RubyOnRails
[00:59:13] kurko_: has joined #RubyOnRails
[00:59:14] beholders_eye: has joined #RubyOnRails
[01:10:09] lxsameer: has joined #RubyOnRails
[01:16:09] sevenseacat: has joined #RubyOnRails
[01:45:13] cagomez: has joined #RubyOnRails
[02:26:51] ivanskie: has joined #RubyOnRails
[02:29:10] strp0s: has joined #RubyOnRails
[02:29:49] strp0s: hello, I'm having issue getting my rails app migrated from passenger standalone to nginx+passenger. I'm receiving a 500 error with nginx, but can run the app with WEBrick. Anyone able to help?
[02:35:42] michael_mbp: has joined #RubyOnRails
[02:37:49] strp0s: Here's a gist with all the details: https://gist.github.com/thomasjost/85ae873b0380fdb6f1bf474da1ec41f9
[02:38:19] za1b1tsu_: has joined #RubyOnRails
[03:09:04] braincrash: has joined #RubyOnRails
[03:54:24] fragamus: has joined #RubyOnRails
[03:56:17] kurko_: has joined #RubyOnRails
[03:56:22] orbyt_: has joined #RubyOnRails
[03:56:58] kurko_: has joined #RubyOnRails
[03:57:42] kurko_: has joined #RubyOnRails
[03:58:31] kurko_: has joined #RubyOnRails
[03:59:11] kurko_: has joined #RubyOnRails
[04:01:22] ivanskie: has joined #RubyOnRails
[04:03:59] mangold: has joined #RubyOnRails
[04:06:10] cagomez: has joined #RubyOnRails
[04:26:31] kapil____: has joined #RubyOnRails
[04:28:21] dviola: has joined #RubyOnRails
[04:29:37] MoritaShinobu: has joined #RubyOnRails
[04:42:26] LiftLeft: has joined #RubyOnRails
[04:54:30] lxsameer: has joined #RubyOnRails
[04:58:13] beholders_eye: has joined #RubyOnRails
[05:32:51] reber: has joined #RubyOnRails
[05:44:05] sandstrom: has joined #RubyOnRails
[05:45:41] apeiros: has joined #RubyOnRails
[05:48:21] Vashy: has left #RubyOnRails: ("Leaving")
[06:07:04] LiftLeft: has joined #RubyOnRails
[06:12:08] armyriad: has joined #RubyOnRails
[06:19:04] mauro1254: has joined #RubyOnRails
[07:15:56] mangold: has joined #RubyOnRails
[07:32:04] sandstrom: has joined #RubyOnRails
[07:41:48] tkonto: has joined #RubyOnRails
[07:56:09] GodFather: has joined #RubyOnRails
[08:00:10] kurko_: has joined #RubyOnRails
[08:00:55] kurko_: has joined #RubyOnRails
[08:01:43] kurko_: has joined #RubyOnRails
[08:02:32] kurko_: has joined #RubyOnRails
[08:03:15] kurko_: has joined #RubyOnRails
[08:03:57] kurko_: has joined #RubyOnRails
[08:07:06] mikecmpbll: has joined #RubyOnRails
[08:15:32] kapil____: has joined #RubyOnRails
[08:15:36] lxsameer: has joined #RubyOnRails
[08:25:13] sandstrom: has joined #RubyOnRails
[08:29:35] cesario: has joined #RubyOnRails
[08:33:57] mikecmpb_: has joined #RubyOnRails
[08:55:00] hammer065: has joined #RubyOnRails
[09:04:13] Jervis_: has joined #RubyOnRails
[09:06:07] Arkentias: has joined #RubyOnRails
[09:09:46] Arkentias: Hello! I have a very basic question. All my Users belong to a Client. The email is unique per client. I want to retrieve all the Clients that have a user with an email address X. Do I just do User.where(email: x).joins(:client).select('clients.*') or something in that idea? (or use pluck I guess)
[09:09:50] DaniG2k: has joined #RubyOnRails
[09:10:45] DaniG2k: Hello all. I'm trying to add a few lines to every setup and teardown for a number of integration tests (using ActionDispatch::IntegrationTest). I basically want to do DatabaseCleaner.start on every setup and Warden.test_reset!; DatabaseCleaner.clean on every teardown
[09:11:08] DaniG2k: I tried moneky-patching the setup and teardown methods in ActionDispatch::IntegrationTest and then calling super on those
[09:11:34] DaniG2k: but that doesn't seem to work, as I get a NoMethodError: super called outside of method
[09:12:38] DaniG2k: I'm wondering how I can use the same code for every setup and teardown without overriding the more specific setup and teardown within my integration tests
[09:20:26] DaniG2k: I've outlined my problem in a bit more detail on SO: https://stackoverflow.com/questions/52889412/how-to-write-a-base-setup-and-teardown-that-runs-before-every-actiondispatchin
[09:21:53] mikecmpbll: has joined #RubyOnRails
[09:34:49] adac: has joined #RubyOnRails
[09:35:48] adac: Hi! Does someone of you use Atom with rubocop linter? I'm wondering how to make atom the ruby binary from the current project I'm in (I'm actually using RVM)
[09:54:27] wojnar: has joined #RubyOnRails
[09:59:15] mangold: has joined #RubyOnRails
[10:10:35] Terens: has joined #RubyOnRails
[10:19:50] josefhovad: has joined #RubyOnRails
[10:22:27] mangold: has joined #RubyOnRails
[10:24:42] josefhovad: Hi. When I have /pages/index.html.erb with e.g.: <%= t('.edit') %> … is there some way how to find translation 'en.pages.index.edit' … and if not found, try to find 'en.pages.edit', if not found try to find 'en.edit' ?
[10:31:55] lexileo: has joined #RubyOnRails
[10:38:12] mangold: has joined #RubyOnRails
[10:39:14] mangold: has joined #RubyOnRails
[10:39:34] whysthatso: has joined #RubyOnRails
[10:46:33] Ergo: has joined #RubyOnRails
[10:56:02] quazimodo: has joined #RubyOnRails
[10:56:48] lankanmon: has joined #RubyOnRails
[11:13:18] DTZUZO_: has joined #RubyOnRails
[11:17:26] za1b1tsu_: has joined #RubyOnRails
[11:23:08] tuor: has joined #RubyOnRails
[12:01:17] reber: has joined #RubyOnRails
[12:04:48] kurko_: has joined #RubyOnRails
[12:07:39] whysthatso: has joined #RubyOnRails
[12:11:51] whysthatso: has joined #RubyOnRails
[12:36:19] gambl0re: has joined #RubyOnRails
[12:46:22] IanMalcolm: has joined #RubyOnRails
[13:00:08] Saukk: has joined #RubyOnRails
[13:02:36] gt2019: has joined #RubyOnRails
[13:05:16] ss942: has joined #RubyOnRails
[13:08:12] ss942: How do I generate link with link_to that have parametrs with []?
[13:08:12] ss942: exactyly what I need to have in my href is /projects/1/issues/new?issue[custom_field_values][48]=1
[13:08:12] ss942: :issue[custom_field_values][48] => 1
[13:08:12] ss942: doesn't make any sense, because it looks for [custom_field_value][48] in :issues taking it as an array
[13:11:23] gt2019: Hi, i am using rails (4.2.5); I am facing an issue with timeout queries. I have modified the database.yml file multiples time and this error appear again: "ActiveRecord::ConnectionTimeoutError: could not obtain a database connection within 5.000 seconds (waited 5.000 seconds)". My database file: https://gist.github.com/LuisErnestoZamb/43804ca1c1ebc3d05bf32c55e55b8671 ; Even if I change this to 10 on checkout_timeout the error persist an
[13:11:23] gt2019: d in my case by increasing this value too much can block sidekiq jobs. Regards,
[13:13:02] FreshCache: hey guys have you ever used passenger to deploy an app?
[13:14:54] mangold: has joined #RubyOnRails
[13:21:38] apeiros: has joined #RubyOnRails
[13:22:14] apeiros__: has joined #RubyOnRails
[13:23:15] za1b1tsu_: has joined #RubyOnRails
[13:56:44] IanMalcolm: has joined #RubyOnRails
[14:05:40] sidx64: has joined #RubyOnRails
[14:32:56] Saukk: has joined #RubyOnRails
[14:34:39] fragamus: has joined #RubyOnRails
[14:45:21] ivanskie: has joined #RubyOnRails
[14:52:45] orbyt_: has joined #RubyOnRails
[14:55:40] veloutin: has joined #RubyOnRails
[14:55:49] za1b1tsu: has joined #RubyOnRails
[15:02:39] morfin60: has joined #RubyOnRails
[15:04:41] morfin60: i am using gem which sets callback inside of concern but i need to change behavior of this gem a bit(basically i want to generate slug only when it's empty in request). Any idea how can i do this?
[15:07:03] chouhoulis: has joined #RubyOnRails
[15:13:26] whysthatso: has joined #RubyOnRails
[15:22:20] ss942: Strange... I use <%= select_tag(select_id, options_for_select(options_for_project_select, selected: wkcustomfield.projects_id )) %>
[15:22:20] ss942: It renders <option selected="selected" value="1">Serwis</option> in my html, but still this option is not displayed as selected in my browser...
[15:23:20] Dbugger: has joined #RubyOnRails
[15:25:56] ss942: It still display last value I selected, even if I reload page, and even if first one have option selected="selected"
[15:26:02] ss942: what the hell
[15:31:43] za1b1tsu: has joined #RubyOnRails
[15:36:35] SteenJobs: has joined #RubyOnRails
[15:42:10] fragamus: has joined #RubyOnRails
[15:42:25] gt2019: this is an irc for only questions and not responses... hahahha
[15:48:55] sonOfRa: has joined #RubyOnRails
[15:50:23] za1b1tsu: has joined #RubyOnRails
[15:52:00] orbyt_: morfin60 Clone the gem and modify as needed according to the license
[15:52:45] morfin60: i realised i don't need autogeneration)
[15:54:44] ivanskie: has joined #RubyOnRails
[16:00:54] ebl: has joined #RubyOnRails
[16:04:40] beowuff: has joined #RubyOnRails
[16:04:54] IanMalcolm: has joined #RubyOnRails
[16:09:41] mangold: has joined #RubyOnRails
[16:17:14] tdy: has joined #RubyOnRails
[16:27:57] IanMalcolm: has joined #RubyOnRails
[16:31:28] apeiros_: has joined #RubyOnRails
[16:43:45] sameerynho: has joined #RubyOnRails
[17:05:09] ss942: I need url for where I'm but not full path
[17:05:09] ss942: I mean I want to get "/wktime/index" instead "https://www.redmine.mydomain.com/wktime/index"
[17:05:21] IanMalcolm: has joined #RubyOnRails
[17:08:08] planigan: has joined #RubyOnRails
[17:11:01] Inside: has joined #RubyOnRails
[17:21:31] IanMalcolm: has joined #RubyOnRails
[17:34:03] ss942: https://www.rubydoc.info/github/edavis10/redmine/DocumentsController
[17:34:30] ss942: this ignore my ?back_url=/wktime/index
[17:50:04] ss942: has left #RubyOnRails: ()
[17:51:31] segy: has joined #RubyOnRails
[17:52:17] knight33: has joined #RubyOnRails
[17:53:33] schneider: has joined #RubyOnRails
[18:02:05] lankanmon: has joined #RubyOnRails
[18:05:58] kapil____: has joined #RubyOnRails
[18:26:38] wojnar: has joined #RubyOnRails
[18:28:51] anoob: has joined #RubyOnRails
[18:29:41] anoob: Is it possible to read an ENV var within a .env file: `DATABASE_URL=postgres://username:passwd@localhost:5432/db_name<%= ENV['TEST_ENV_NUMBER'] %>` ?
[18:32:03] mikecmpbll: has joined #RubyOnRails
[18:39:30] snickers: has joined #RubyOnRails
[18:42:29] Inside: Having a derp moment: I have a model I use for describing a form and it derives from ApplicationRecord. There is, however, no database table behind that model.
[18:43:24] Inside: In one project (Rails 4.1.2) I'm able to just use that model - the only thing I can't do is call save. In a new rails 5 project rails complains about no such table whenever I did TableLessModel.new()
[18:43:55] Inside: Did something change between R4/R5?
[18:44:44] beholders_eye: has joined #RubyOnRails
[18:51:17] onkelhotte: has joined #RubyOnRails
[18:54:35] tdy: has joined #RubyOnRails
[19:10:41] tdy: has joined #RubyOnRails
[19:16:14] segy: has joined #RubyOnRails
[19:27:54] segy: has joined #RubyOnRails
[19:36:29] apeiros: has joined #RubyOnRails
[19:41:34] apeiros_: has joined #RubyOnRails
[19:42:32] fragamus: has joined #RubyOnRails
[20:01:44] eckhardt: has joined #RubyOnRails
[20:03:02] hd1: has joined #RubyOnRails
[20:20:43] ivanskie: has joined #RubyOnRails
[20:27:31] kurko_: has joined #RubyOnRails
[20:28:06] kurko_: has joined #RubyOnRails
[20:29:10] kurko_: has joined #RubyOnRails
[20:29:40] kurko_: has joined #RubyOnRails
[20:31:27] kurko_: has joined #RubyOnRails
[20:32:02] kurko_: has joined #RubyOnRails
[20:33:02] kurko_: has joined #RubyOnRails
[20:33:27] kurko_: has joined #RubyOnRails
[20:34:30] kurko_: has joined #RubyOnRails
[20:35:11] kurko_: has joined #RubyOnRails
[20:36:05] kurko_: has joined #RubyOnRails
[20:36:29] kurko_: has joined #RubyOnRails
[20:37:17] kurko_: has joined #RubyOnRails
[20:45:23] sandstrom: has joined #RubyOnRails
[21:00:28] fragamus: has joined #RubyOnRails
[21:14:28] DTZUZO_: has joined #RubyOnRails
[21:23:42] ellcs: has joined #RubyOnRails
[21:25:49] SteenJobs: has joined #RubyOnRails
[21:41:54] choke: has joined #RubyOnRails
[22:06:45] choke: has joined #RubyOnRails
[22:19:54] choke: has joined #RubyOnRails
[22:57:42] DTZUZO_: has joined #RubyOnRails
[22:59:47] choke: has joined #RubyOnRails
[23:21:14] fragamus: has joined #RubyOnRails