Smashing / smashing

The exceptionally handsome dashboard framework in Ruby and Coffeescript.
https://smashing.github.io/
MIT License
3.24k stars 323 forks source link

Change the default dashboard #116

Closed KuenzelIT closed 6 years ago

KuenzelIT commented 6 years ago

Hi,

I feel quite dumb asking this, but why does my default dashboard not change?

I configured it as the documentation says using the default_dashboard configuration:

require 'dashing'

configure do
  set :auth_token, 'YOUR_AUTH_TOKEN'
  set :default_dashboard, 'home'

  # See http://www.sinatrarb.com/intro.html > Available Template Languages on
  # how to add additional template languages.
  set :template_languages, %i[html erb]

  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

run Sinatra::Application

After using smashing start again, I still see the sample.erb dashboard. My home dashboard is in correctly in place.

Does anyone have an idea?

kinow commented 6 years ago

Hi @KuenzelIT ,

Just tested doing a smashing new test, then changing the config.ru line, copied and modified sample.erb and saved as home.erb. It worked as expected.

Closing as cannot reproduce, but if you need further help, hop in https://gitter.im/Smashing/Lobby, as in the CONTRIBUTING.md file (there's more info there too).

My env is a Ubuntu 16.04 LTS, with ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu].

Hope that helps. Bruno

KuenzelIT commented 6 years ago

Hello again,

I tried it again after an hour and the dashboard suddenly looked different. Maybe there was some caching involved (eventually in my browser)?

I'm gonna visit the gitter in case this happens again.

Thanks!