#RubyOnRails - 11 September 2018
« Back 1 day Forward 1 day »
[12:48:10] herbst: Somehow when i run "rake test" it loads my fixtures into my development database, removing everything that i have fixtures for (but keeping stuff i dont have some). Any ideas what i am doing wrong?
[12:50:29] herbst: Any ideas how i not have to type 'RAILS_ENV=test rake test' and set that as option somewhere?
[12:57:38] herbst: actually you are right, that wont make my bash state much more awkward than it is already :) ty
[21:22:10] arashb: Im using activestorage to store attachments to S3. Is there any way to use it without using signed/expiring URLs? I'd like to generate a link to the object URL on S3 directly without needing to use expiry. I've made my bucket public.
[23:46:48] NeoHamled: Hello, I'm trying to mimic the controller <--> application controller setup that Rails has by default, but with a set of controllers in a nested module: https://gist.github.com/Hamled/94d1c3b05c89d88a1ccb68540d38f98b
[23:47:23] NeoHamled: However, the ApplicationController that I've created inside of the Admin module is never loaded by Rails, even though another controller (which is loaded) subclasses it
[23:49:15] NeoHamled: And in particular, this appears to _only_ be happening in the test environment. When I run rails server and interact with it manually, the Admin::ApplicationController class is loaded and the HTTP basic auth line in there actually runs. But not when I run my tests.