« Back to channel list

#RubyOnRails - 30 October 2018

« Back 1 day Forward 1 day »
[00:06:32] za1b1tsu: has joined #RubyOnRails
[00:10:40] mr-spoon: has joined #RubyOnRails
[00:15:06] sevenseacat: has joined #RubyOnRails
[00:34:29] apeiros: has joined #RubyOnRails
[00:54:37] zming: has joined #RubyOnRails
[01:12:21] apeiros: has joined #RubyOnRails
[01:24:41] truenito: has joined #RubyOnRails
[01:25:36] orbyt_: has joined #RubyOnRails
[01:42:14] agent_white: has joined #RubyOnRails
[01:44:24] cmhobbs: has joined #RubyOnRails
[01:44:56] cmhobbs: hey folks! i'm working on moving an old rails 3.2 codebase to a different server for upgrades and i'm running into some asset pipeline problems
[01:45:05] cmhobbs: locally, in development, all the assets precompile just great
[01:45:34] cmhobbs: however, after i precompile the assets in production, i'm getting this error in my browser: Loading failed for the <script> with source “http://stage.myneatonewserver.com/assets/application/application.js”
[01:45:47] cmhobbs: that application.js exists in public/assets/application.js but not public/assets/application/application.js
[01:46:02] cmhobbs: making a symlink to the assets subdirectory doesn't seem to work (could be permissions)
[01:46:06] cmhobbs: any idea what might be going wrong?
[01:46:35] cmhobbs: the application works just peachy on heroku at the moment (migrating it off of heroku to work on upgrading it to rails 5)
[01:54:35] za1b1tsu: has joined #RubyOnRails
[02:22:27] mangold: has joined #RubyOnRails
[02:55:57] mr-spoon: has joined #RubyOnRails
[02:57:58] apeiros: has joined #RubyOnRails
[03:17:10] Saukk: has joined #RubyOnRails
[03:31:09] apeiros: has joined #RubyOnRails
[03:32:00] darkhanb: has joined #RubyOnRails
[03:36:07] brycesenz: has joined #RubyOnRails
[03:39:06] mangold: has joined #RubyOnRails
[03:42:43] za1b1tsu: has joined #RubyOnRails
[03:49:27] ariedler: has joined #RubyOnRails
[03:50:54] mhb: is it possible to select a checkbox with ActionDispatch::IntegrationTest?
[03:54:03] mhb: er, let me redact that, is it possible to click on a checkbox with ActionDispatch::IntegrationTest?
[03:54:55] sevenseacat: sounds like a feature spec thing, not an integration spec thing
[03:56:49] mangold: has joined #RubyOnRails
[04:06:14] mhb: thanks sevenseacat, I will use capybara
[04:09:03] apeiros: has joined #RubyOnRails
[04:09:46] braincrash: has joined #RubyOnRails
[04:14:30] ur5us: has joined #RubyOnRails
[04:21:24] SteenJobs: has joined #RubyOnRails
[04:40:41] apeiros: has joined #RubyOnRails
[04:46:44] MoritaShinobu: has joined #RubyOnRails
[05:14:52] ivanskie: has joined #RubyOnRails
[05:15:52] apeiros: has joined #RubyOnRails
[05:30:46] za1b1tsu: has joined #RubyOnRails
[05:33:48] mangold: has joined #RubyOnRails
[05:51:36] apeiros: has joined #RubyOnRails
[05:59:56] za1b1tsu: has joined #RubyOnRails
[06:03:33] apeiros: has joined #RubyOnRails
[06:20:53] srinidhi: has joined #RubyOnRails
[06:31:35] Dbugger: has joined #RubyOnRails
[06:40:33] conta: has joined #RubyOnRails
[06:53:35] wethu: has joined #RubyOnRails
[06:53:58] dionysus69: has joined #RubyOnRails
[06:58:38] reber: has joined #RubyOnRails
[07:00:23] Xiti`: has joined #RubyOnRails
[07:11:35] sandstrom: has joined #RubyOnRails
[07:16:48] sandstrom: has joined #RubyOnRails
[07:50:33] tuor: has joined #RubyOnRails
[07:56:04] ahartley: has joined #RubyOnRails
[08:06:20] dionysus69: I am trying to access constant defined in environment.rb inside the application but it gives constant undefined. any ideas how can I share constant in both of those locations?
[08:06:43] sevenseacat: got some code to show?
[08:08:52] dionysus69: sevenseacat: https://gist.github.com/webzorg/0889b59acfe54a3eb2a77616efc5e8dc
[08:09:09] dionysus69: uninitialized constant Bitforx::Application::DOCKERIZED (NameError)
[08:09:33] dionysus69: if I do puts :DOCKERIZED I get the same error
[08:10:17] tbuehlmann: you require the application before defining the constant
[08:10:52] tbuehlmann: and `DOCKERIZED = File.exist?("/.dockerenv") ? true : false` could just be `DOCKERIZED = File.exist?("/.dockerenv")`
[08:11:05] dionysus69: true that ^.^
[08:11:24] dionysus69: anyways, I tried defining the constant before requiring application, still the same error
[08:11:43] dionysus69: I obviously need to define constant inside the application, which is where? source code? :S
[08:12:01] sevenseacat: show us the code for that ?
[08:12:12] dionysus69: for what? :)
[08:12:47] sevenseacat: how else you tried defining the constant
[08:13:05] dionysus69: yep one second
[08:13:10] dionysus69: I will try one more way
[08:13:18] tbuehlmann: do you need the constant in your environment.rb file at all?
[08:14:24] tbuehlmann: if not, you could simply put it in a config in application.rb: config.x[:dockerized?] = File.exist?('/.dockerenv'); Rails.configuration.x.dockerized? # => true/false
[08:14:52] dionysus69: yes apparently now I finally understood the bootup sequence
[08:15:07] dionysus69: I didnt notice before that application rb was loaded in environment.rb
[08:15:57] dionysus69: thus now I just defined constant on top of application.rb file, now it is available both in environment.rb >> config.ru
[08:16:41] dionysus69: thanks for leading me to the solution ^.^
[08:18:55] srinidhi: has joined #RubyOnRails
[08:19:21] voolik: has joined #RubyOnRails
[08:28:31] dionysus69: now I can do config.logger = ActiveSupport::Logger.new(STDOUT) if DOCKERIZED, even conditional url in database.yml, exciting :D
[08:31:00] hd1: has joined #RubyOnRails
[08:33:03] cabotto: has joined #RubyOnRails
[08:33:35] ahartley_: has joined #RubyOnRails
[08:41:30] srinidhi: has joined #RubyOnRails
[08:46:11] whysthatso: has joined #RubyOnRails
[08:49:21] kapil____: has joined #RubyOnRails
[08:51:03] SteenJobs: has joined #RubyOnRails
[08:59:32] JamieD: has joined #RubyOnRails
[09:00:40] mikecmpbll: has joined #RubyOnRails
[09:02:43] Axsuul: has joined #RubyOnRails
[09:11:40] jlebrech: has joined #RubyOnRails
[09:11:46] jlebrech: havenwood: hi
[09:15:45] sandstrom: has joined #RubyOnRails
[09:19:31] marahin: has joined #RubyOnRails
[09:26:36] cabotto: has joined #RubyOnRails
[09:27:28] kite_: has joined #RubyOnRails
[09:29:08] mikecmpb_: has joined #RubyOnRails
[09:30:02] blackmesa: has joined #RubyOnRails
[09:48:01] jsc: has joined #RubyOnRails
[09:51:40] ariedler: has joined #RubyOnRails
[09:55:00] mauro1254: has joined #RubyOnRails
[09:56:20] reber__: has joined #RubyOnRails
[09:58:38] ahartley__: has joined #RubyOnRails
[10:03:49] roshanavand: has joined #RubyOnRails
[10:12:59] beholders_eye: has joined #RubyOnRails
[10:13:03] roshanavand: has joined #RubyOnRails
[10:17:56] status402: has joined #RubyOnRails
[10:27:09] hammer065: Hey, I am using FormHelper to create a form. This form has an attribute "modules" which is an array type. Now I want to generate checkboxes for all possible modules, but I dont know how to nest it properly
[10:33:40] roshanavand: has joined #RubyOnRails
[10:35:04] apparition: has joined #RubyOnRails
[10:43:09] roshanavand: has joined #RubyOnRails
[10:55:08] ariedler: has joined #RubyOnRails
[10:56:17] dionysus69: hammer065: https://teamtreehouse.com/community/nested-params-rails-4 this is for nested strong parameters
[10:59:49] apeiros: has joined #RubyOnRails
[11:00:49] lankanmon: has joined #RubyOnRails
[11:37:36] lomex: has joined #RubyOnRails
[11:41:30] blackmesa: has joined #RubyOnRails
[11:52:13] conta: has joined #RubyOnRails
[12:02:43] voolik: has joined #RubyOnRails
[12:12:05] whysthatso: has joined #RubyOnRails
[12:13:40] hammer065: has joined #RubyOnRails
[12:14:31] blackmesa: has joined #RubyOnRails
[12:19:00] lomex: has joined #RubyOnRails
[12:22:08] nzst: has joined #RubyOnRails
[12:32:41] sandstrom: has joined #RubyOnRails
[12:35:51] voolik: has joined #RubyOnRails
[12:44:39] blackmesa: has joined #RubyOnRails
[12:52:32] voolik: has joined #RubyOnRails
[12:53:33] hightower3: has joined #RubyOnRails
[12:54:04] hightower3: Hey, how do I access configuration stored in Rails.application.configure...? Do I do it via Rails.configuration.key_name ?
[13:07:32] zming: has joined #RubyOnRails
[13:10:11] hightower3: great, thanks
[13:16:50] status402: has joined #RubyOnRails
[13:17:04] JusticeFries: has joined #RubyOnRails
[13:35:07] beholders_eye: has joined #RubyOnRails
[13:36:36] ams__: has joined #RubyOnRails
[13:37:50] kapil____: has joined #RubyOnRails
[14:07:16] kurko_: has joined #RubyOnRails
[14:07:59] Inside: has joined #RubyOnRails
[14:09:50] blackmesa1: has joined #RubyOnRails
[14:09:52] JamieD: has joined #RubyOnRails
[14:13:26] jlebrech: has joined #RubyOnRails
[14:13:29] jlebrech: https://i.imgflip.com/2lb290.jpg
[14:24:01] orbyt_: has joined #RubyOnRails
[14:55:46] cmhobbs: has left #RubyOnRails: ("WeeChat 1.6")
[15:02:04] chouhoulis: has joined #RubyOnRails
[15:02:52] conta: has joined #RubyOnRails
[15:07:50] crankharder: has joined #RubyOnRails
[15:10:22] JusticeFries: has joined #RubyOnRails
[15:23:59] voolik: has joined #RubyOnRails
[15:26:57] ivanskie: has joined #RubyOnRails
[15:44:14] lomex: has joined #RubyOnRails
[15:54:33] ahartley__: has joined #RubyOnRails
[16:20:25] srinidhi: has joined #RubyOnRails
[16:21:07] za1b1tsu: has joined #RubyOnRails
[16:35:26] crankharder: has joined #RubyOnRails
[16:37:05] blackmesa1: has joined #RubyOnRails
[16:39:29] kurko_: has joined #RubyOnRails
[16:40:00] orbyt_: has joined #RubyOnRails
[16:44:08] ahartley__: has joined #RubyOnRails
[16:47:56] JusticeFries: has joined #RubyOnRails
[16:50:20] orbyt_: has joined #RubyOnRails
[16:58:07] eckhardt: has joined #RubyOnRails
[17:00:43] kurko_: has joined #RubyOnRails
[17:01:53] apeiros: has joined #RubyOnRails
[17:08:22] defsdoor: has joined #RubyOnRails
[17:17:29] GodFather: has joined #RubyOnRails
[17:18:32] apeiros: has joined #RubyOnRails
[17:19:16] maryo: has joined #RubyOnRails
[17:31:34] conta: has joined #RubyOnRails
[17:42:04] roshanavand: has joined #RubyOnRails
[17:42:57] conta: has joined #RubyOnRails
[17:43:59] orbyt_: has joined #RubyOnRails
[17:51:24] mikecmpbll: has joined #RubyOnRails
[17:58:09] srinidhi: has joined #RubyOnRails
[18:05:47] lomex: has joined #RubyOnRails
[18:05:55] maryo: has joined #RubyOnRails
[18:06:43] maryo: has joined #RubyOnRails
[18:07:45] ellcs: has joined #RubyOnRails
[18:23:26] maxvaillancourt1: has joined #RubyOnRails
[18:29:33] GodFather: has joined #RubyOnRails
[18:31:23] crankharder: has joined #RubyOnRails
[18:34:31] ahartley__: has joined #RubyOnRails
[18:39:31] eckhardt: has joined #RubyOnRails
[18:55:59] orbyt_: has joined #RubyOnRails
[18:57:20] apeiros: has joined #RubyOnRails
[18:59:49] conta: has joined #RubyOnRails
[19:01:41] maryo: has joined #RubyOnRails
[19:13:03] conta: has joined #RubyOnRails
[19:13:13] whysthatso_: has joined #RubyOnRails
[19:14:20] conta: has joined #RubyOnRails
[19:30:01] Ergo: has joined #RubyOnRails
[19:30:35] hightower3: Hey, using rspec, how do I define some global 'before' and 'after'?
[19:30:52] hightower3: I don't want to put these in every file in the 'describe' block
[19:31:51] hightower3: oh in RSpec.configure they work
[19:48:49] sandstrom: has joined #RubyOnRails
[19:55:31] andywww: has joined #RubyOnRails
[20:01:18] Puffball: has joined #RubyOnRails
[20:01:46] hightower3: I'd like to add a new method to RSpec's DSL so that it becomes available to the tests in "it" blocks. Any hints how to do that?
[20:05:27] DoubleMalt: has joined #RubyOnRails
[20:06:26] darkhanb: has joined #RubyOnRails
[20:09:14] Jervis_: has joined #RubyOnRails
[20:28:33] ahartley: has joined #RubyOnRails
[20:30:56] kapil____: has joined #RubyOnRails
[20:33:54] kurko__: has joined #RubyOnRails
[20:35:59] sandstrom: has joined #RubyOnRails
[20:43:13] andywww: has joined #RubyOnRails
[20:44:11] orbyt_: has joined #RubyOnRails
[20:56:09] DoubleMalt: has joined #RubyOnRails
[20:57:10] sgt_disco: has joined #RubyOnRails
[21:01:26] fragamus: has joined #RubyOnRails
[21:02:01] sgt_disco: has left #RubyOnRails: ()
[21:12:01] Takumo: has joined #RubyOnRails
[21:13:19] beowuff: has joined #RubyOnRails
[21:15:35] Takumo: has joined #RubyOnRails
[21:18:57] Takumo: has joined #RubyOnRails
[21:28:35] andywww: has joined #RubyOnRails
[21:30:05] TvL2386: has joined #RubyOnRails
[21:30:20] Dimik: has joined #RubyOnRails
[21:35:07] za1b1tsu: has joined #RubyOnRails
[21:40:04] apeiros__: has joined #RubyOnRails
[21:49:42] Dimik: has joined #RubyOnRails
[22:05:02] whysthatso_: has joined #RubyOnRails
[22:13:41] za1b1tsu: has joined #RubyOnRails
[22:15:12] andywww: has joined #RubyOnRails
[22:23:33] kurko__: has joined #RubyOnRails
[22:31:58] nexraf1: has joined #RubyOnRails
[22:37:08] orbyt_: has joined #RubyOnRails
[22:50:22] kurko_: has joined #RubyOnRails
[22:51:20] whysthatso: has joined #RubyOnRails
[23:00:21] sonOfRa: has joined #RubyOnRails
[23:46:31] hervie: has joined #RubyOnRails