Skip to content

Instantly share code, notes, and snippets.

@ch1ago
Last active February 7, 2016 19:09
Show Gist options
  • Save ch1ago/3b41235674ff8dc95fa6 to your computer and use it in GitHub Desktop.
Save ch1ago/3b41235674ff8dc95fa6 to your computer and use it in GitHub Desktop.
Rails.application.routes.draw do
# not_authenticated do
# get 'some/route'
# end
#
# authenticated do
# get 'some/route'
#
# current_user -> (u) { u.webmaster? } do
# mount Sidekiq::Web => '/sidekiq'
# mount RailsAdmin::Engine => '/webmaster'
# end
#
# current_user -> (u) { u.onboarding? } do
# get 'some/route'
# end
#
# current_user -> (u) { u.user? } do
# get 'some/route'
# end
# end
root to: 'root#index'
mount Hello::Engine => '/hello'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment