Sha256: 75333289ee8c8c11739ab052d5c13c27d800506eca017be024ac5d5feac6e7ca

Contents?: true

Size: 725 Bytes

Versions: 18

Compression:

Stored size: 725 Bytes

Contents

require 'mtdevise/constraints/subdomain_required'

Mtdevise::Engine.routes.draw do

	# Backend User Routes
	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

	# FrontEnd User Routes
	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

18 entries across 18 versions & 1 rubygems

Version Path
mtdevise-3.10.1 config/routes.rb
mtdevise-3.10.0 config/routes.rb
mtdevise-3.9.1 config/routes.rb
mtdevise-3.9.0 config/routes.rb
mtdevise-3.8.4 config/routes.rb
mtdevise-3.8.3 config/routes.rb
mtdevise-3.8.2 config/routes.rb
mtdevise-3.8.1 config/routes.rb
mtdevise-3.8.0 config/routes.rb
mtdevise-3.7.0 config/routes.rb
mtdevise-3.6.2 config/routes.rb
mtdevise-3.6.1 config/routes.rb
mtdevise-3.6.0 config/routes.rb
mtdevise-3.5.11 config/routes.rb
mtdevise-3.5.10 config/routes.rb
mtdevise-3.5.9 config/routes.rb
mtdevise-3.5.8 config/routes.rb
mtdevise-3.5.7 config/routes.rb