Sha256: 0700dd8e479e241eb27cb4bc40b6b1c4cec24b23b5beaaf236116ee2274e4d97

Contents?: true

Size: 837 Bytes

Versions: 3

Compression:

Stored size: 837 Bytes

Contents

ActionController::Routing::Routes.draw do |map|

  map.namespace :admin, :path_prefix => '', :conditions => { :subdomain => 'admin' } do |admin|
    admin.root :controller => 'home'
    admin.logout 'logout', :controller => 'user_sessions', :action => :destroy
    admin.login 'login', :controller => 'user_sessions', :action => :new
    admin.resources 'users'
    admin.resources 'user_sessions' 
  end
  
  map.root :controller => 'home'
  
  map.signup  'signup', :controller => 'users', :action => 'new'
  map.logout  'logout', :controller => 'user_sessions', :action => 'destroy'
  map.login   'login', :controller => 'user_sessions', :action => 'new'
  
  map.resource :account,  :controller => :users
  
  map.resources :user_sessions

  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
handy-generators-0.0.2 rails_generators/handy_setup/templates/routes.rb
handy-generators-0.0.1 rails_generators/handy_setup/templates/routes.rb
handy-generators-0.0.0 rails_generators/handy_setup/templates/routes.rb