1) Do not add these lines to application.rb: `config.eager_load_paths += %W(#{config.root}/app/views/components)` `config.autoload_paths += %W(#{config.root}/app/views/components)` They are not longer necessary (since public models are moved), and they break production. 2) The require_tree in models.rb can only execute in Opal land: ```ruby # app/models/models.rb require_tree './public' if RUBY_ENGINE == 'opal' # add the guard ```
Do not add these lines to application.rb:
config.eager_load_paths += %W(#{config.root}/app/views/components)config.autoload_paths += %W(#{config.root}/app/views/components)They are not longer necessary (since public models are moved), and they break production.