-
Notifications
You must be signed in to change notification settings - Fork 149
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
Question: How to integrate within an existing application? #26
Comments
I don't think you went the right way. From my point of view, you should setup a dashing-rails dashboard (sample by default is fine) and then simply use dashing-hotness widget to display your server status. You would go to a route like http://localhost:3000/dashing/dashboards in your rails 4 application (running puma for example). Does this could work for you ? Please have a look at dashing-rails-demo application. |
In your dashing-rails-demo, how would you use dashing within the application.html.erb? I could route to a full dashing, but it would be the same as opening a new windows with it, since a full application already exists (common look and feel, menus, session stored variables...). |
This is the file responsible for rendering the dashing widgets and loading the JS. I did not try to override this layout but you could give it a try by creating this file yourself and add your custom css / html. |
I will try it, but yesterday was giving me errors accessing session variables from that file... maybe because it's inside the "module Dashing" and the rest of the application no. Thank you very much! |
It doesn't work. I can modify the dashboard.html.erb with my code, but It errors when using routes to my existing controllers. It seems to expect them being defined in the Dashing:: namespace. Example
Any ideas? |
Try:
More details here |
I got it working, thanks!!! I need to fix some plugins: typeahead, tooltip... also some css. And allow to add widgets to the user... |
I'm glad to hear that :) |
Hi,
I cannot seem to get this done, Could you guide me?
I have an existing rails 4 application and I would like to put dashing inside it, but integrating the look and feel.
It would reuse the existing application layout for that:
I have a route like this (controller: graphics, action: server)
/graphics/:id/server
And would like to use dashing to show the server status
It's that possible?
Thank you very much
The text was updated successfully, but these errors were encountered: