Skip to content

Instantly share code, notes, and snippets.

@zamith
Created June 7, 2012 21:30
Show Gist options
  • Save zamith/2891652 to your computer and use it in GitHub Desktop.
Save zamith/2891652 to your computer and use it in GitHub Desktop.
Engine
Rails.application.routes.draw do
mount Citygate::Engine => "/play"
end
Citygate::Engine.routes.draw do
root :to => "home#index"
match "/user/profile" => "users#show", :as => "profile"
match '/confirm/:confirmation_token', :to => "devise/confirmations#show", :as => "user_confirm", :only_path => false
devise_for :users,
:controllers => {
:omniauth_callbacks => "citygate/users/omniauth_callbacks"
},
:class_name => "Citygate::User",
:module => :devise
devise_scope :user do
match '/users/auth/:provider' => 'users/omniauth_callbacks#passthru'
end
namespace "admin", constraints: { format: /(json|html| )/ } do
resources :users
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment