Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ActionController::Routing::Routes.draw do |map|
- map.connect :controller=> 'forum', :action => 'index'
- map.resources :users
- map.resources :session, :controller => "session"
- map.connect 'login', :controller => 'session', :action => 'new'
- map.connect 'signup', :controller => 'users', :action => 'new'
- map.connect 'logout', :controller => 'session', :action => 'destroy'
- map.resources :forum
- map.namespace(:admin) do |admin|
- admin.resources :forums
- end
- map.connect ':controller/:action/:id'
- map.connect ':controller/:action/:id.:format'
- end
Add Comment
Please, Sign In to add comment