Sha256: b31941460083559c8c3ebfca6827dbb6f0dde06fa3b414e8cd91d51aad8d8c82
Contents?: true
Size: 677 Bytes
Versions: 5
Compression:
Stored size: 677 Bytes
Contents
require 'mtdevise/constraints/subdomain_required' Mtdevise::Engine.routes.draw do constraints(Mtdevise::Constraints::SubdomainRequired) do scope :module => "account" do root :to => "dashboard#index", :as => :account_root # get "/sign_in", :to => "sessions#new" # post "/sign_in", :to => "sessions#create", :as => :sessions get "/sign_up", :to => "users#new", :as => :user_sign_up post "/sign_up", :to => "users#create", :as => :do_user_sign_up end end devise_for :users, class_name: 'Mtdevise::User', module: :devise get '/sign_up', :to => 'accounts#new', :as => :sign_up resources :accounts, only: [:create, :index, :new] root 'welcome#index' end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
mtdevise-2.5.7 | config/routes.rb |
mtdevise-2.5.5 | config/routes.rb |
mtdevise-2.5.2 | config/routes.rb |
mtdevise-2.5.0 | config/routes.rb |
mtdevise-2.0.5 | config/routes.rb |