socialpandas / sidekiq_monitor

Advanced monitoring for Sidekiq
MIT License
230 stars 35 forks source link

Bad asset linking when Sidekiq::Monitor::Engine is mounted at: '/sidekiq1' #30

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi,

I want to run the sidekiq_monitor web interface and the Sidekiq web interface simultaneously. I want the Sidekiq web interface to be mounted at '/sidekiq', and the sidekiq_monitor web interface to be mounted at '/sidekiq_monitor'.

However, when I changed the path for Sidekiq::Monitor::Engine, I get the following errors in my browser:

Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/sidekiq/api/jobs/clean Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/sidekiq/api/jobs/statuses

This is because the stylesheet_link_tag in the template is hardcoded to "sidekiq/monitor/application".

I would appreciate it if you could please fix this so it can be dynamic. Thanks.

ghost commented 10 years ago

@socialpandas: I've submitted a pull request that resolves this issue: https://github.com/socialpandas/sidekiq_monitor/pull/31