1

I'm getting this error in my application.

cannot load such file -- rails_service_helpers/base_meta_resource_controller

I'm using puma to run the application. I require this service in my code. I use :

require 'rails_service_helpers/base_meta_resource_controller'

Can anyone point me in the right direction to resolve this?

NM Pennypacker
  • 6,704
  • 11
  • 36
  • 38
a.dev
  • 13
  • 3

1 Answers1

0

Have you tried moving your whole rails_service_helpers directory somewhere inside of app to make sure it auto-loads.

If I were you I'd move base_meta_resource_controller.rb into app/controllers and call it a day.

If you can't do that, make sure your directory is configured to auto-load. This answer has several ways of accomplishing that: Rails 5: Load lib files in production

NM Pennypacker
  • 6,704
  • 11
  • 36
  • 38