Closed charneykaye closed 6 years ago
Answer was simply that I had failed to add root :to => 'home#index'
to my routes.
Fixed config/routes.rb:
require "resque_web"
Rails.application.routes.draw do
root :to => 'home#index'
get '/', to: 'home#index', as: :home
mount ResqueWeb::Engine => "/resque", :as => 'resque_web'
end
Created a new Rails 5.0.6 app, added this engine. The line in question is supposed to "just work" insofar as a Rails engine ought to be able to use
main_app.root_path
to refer to the app home.But here it "just doesn't work"
config/routes.rb:
config/resque.yml
config/initializers/resque.rb