Sha256: 536ff54112f4127355deb1583ed3ebe45745702dbc3c8151201671310194e025
Contents?: true
Size: 676 Bytes
Versions: 2
Compression:
Stored size: 676 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 root 'welcome#index' devise_for :users, class_name: 'Mtdevise::User', module: :devise get '/sign_up', :to => 'accounts#new', :as => :sign_up resources :accounts, only: [:create, :index, :new] end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mtdevise-1.5.2 | config/routes.rb |
mtdevise-1.5.0 | config/routes.rb |