daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ActionController::Routing::Routes.draw do |map|
  2.   map.resources :accounts
  3.  
  4.   map.namespace :account, :path_prefix => '', :conditions { :subdomain => true } do |account|
  5.      account.resource :session
  6.      account.resources :users, :controller => "users"
  7.      account.logout '/logout', :controller => 'sessions', :action => 'destroy'
  8.      account.login '/login', :controller => 'sessions', :action => 'new'
  9.      account.register '/register', :controller => 'users', :action => 'create'
  10.      account.signup '/signup', :controller => 'users', :action => 'new'
  11.      account.resources :users
  12.   end
  13.   map.root :controller => "Welcome"
  14. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top