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

working with Dashing #7

Open
ya110 opened this issue Dec 4, 2014 · 4 comments
Open

working with Dashing #7

ya110 opened this issue Dec 4, 2014 · 4 comments

Comments

@ya110
Copy link

ya110 commented Dec 4, 2014

Hi
I have modified the config.ru as specified, but when i try to navigate to _cycle i get That Dashboard doesn't exist.

@vrish88
Copy link
Owner

vrish88 commented Dec 4, 2014

What does your config.ru look like?

@ya110
Copy link
Author

ya110 commented Dec 4, 2014

require 'sinatra/cyclist'
require 'dashing'

configure do
set :auth_token, 'YOUR_AUTH_TOKEN'

helpers do
def protected!
# Put any authentication code you want in here.
# This method is run before accessing any resource.
end
end
end

map Sinatra::Application.assets_prefix do
run Sinatra::Application.sprockets
end

set :routes_to_cycle_through, [:index, :summary]

run Sinatra::Application

@wolfspyre
Copy link

Is there a followup to this? Having the same issue.

@painbank
Copy link

I'm using the dashing-contrib gem, which uses Sinatra to handle the cycling. This works fine for me, however, it doesn't provide the function of accessing the _cycle dashboard through:

/_cycle?duration=10

when I say it works fine, I have to do it the way it is called out at:
Dashing-Contrib

and leverages Switcher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants