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