Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widgets raise errors when setting Dashing.engine_path to application root #43

Open
adimasuhid opened this issue May 15, 2014 · 4 comments
Labels
Milestone

Comments

@adimasuhid
Copy link

Changed engine_path to '/' and the widgets disappeared and raised errors on their requests. Apparently they are still requesting '/dashing/widgets' instead of '/widgets'. Tried with 2.3.1 and it still failed.

@gottfrois
Copy link
Owner

@adimasuhid
Copy link
Author

This looks like filepath configurations. Will this change the route that are being requested by the widgets?

@gottfrois
Copy link
Owner

widgets path and routes path are different. Look here https://github.com/gottfrois/dashing-rails/blob/master/app/controllers/dashing/widgets_controller.rb I have not tried what you are trying to do. Will do

@gottfrois
Copy link
Owner

Looked at your issue, it's because the path are hard coded in the JS files:

Batman.config.pathToHTML = "/dashing/widgets/"

source = new EventSource('/dashing/events')

I've tried to use Dashing.config.engine_path here but for some reason it's always taking the default engine_path which is /dashing.

@gottfrois gottfrois added this to the v2.5.0 milestone Dec 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants