I'm writing an app that requires me to define a Ruby class outside of the controller, and then instantiate it within a controller.
I put it in lib/my_file.rb
and also initializers/client/my_file.rb
and got the same result:
Sprockets::FileNotFound at /
couldn't find file 'client/my_file' with type 'application/javascript'