How To: Change the default dashboard - Smashing/smashing GitHub Wiki
Out of the box, the default dashboard is picked simply as the first one alphabetically.
You can override this by changing the sinatra setting :default_dashboard
. This is easily done in the config.ru in your app's directory like so:
...
configure do
set :auth_token, 'AUTH_TOKEN'
set :default_dashboard, 'my_favourite_dashboard' #<==== set default dashboard like this
helpers do
def protected!
redirect('/auth/g') unless session[:user_id]
end
...