Search code examples
ruby-on-railsinitializerview-helpers

Strange Missing Helper File Error in Rails


I'm getting an unusual error in Rails...

Missing helper file helpers/underwrite.rb

app/controllers/application_controller.rb:7:in `<top (required)>'
config/initializers/quiet_assets.rb:6:in `call_with_quiet_assets'

This error occurred while loading the following files:
       underwrite

I can't find anywhere this file is being requested. If I search the entire project directory, the only reference to it is in the log files. On some pages, the error only seems to occur the first time the page is loaded.


Solution

  • Seems the helper file has been deleted at some stage.

    In the helpers folder create a new file, rename it underwrite.rb and place the following code inside it.

    module UnderwriteHelper
    end