Created
June 1, 2012 03:44
-
-
Save gealgaro/2848554 to your computer and use it in GitHub Desktop.
Routes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
German-Garcias-MacBook-Pro:group-collect germangarcia$ rake routes | |
agency_sign_up GET /agency/sign_up(.:format) agency/registrations#new | |
agency_registration POST /agency/registration(.:format) agency/registrations#create | |
new_agency_registration GET /agency/registration/new(.:format) agency/registrations#new | |
agency_root / agency/site#home | |
new_session GET /sign_in(.:format) agency/sessions#new | |
session POST /sign_in(.:format) agency/sessions#create | |
destroy_session /sign_out(.:format) agency/sessions#destroy | |
agency_sign_in / agency/sessions#new | |
root / site#home | |
Console output... | |
Started POST "/users" for 127.0.0.1 at 2012-05-31 22:41:08 -0500 | |
ActionController::RoutingError (No route matches [POST] "/users"): | |
actionpack (3.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' | |
actionpack (3.2.3) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' | |
railties (3.2.3) lib/rails/rack/logger.rb:26:in `call_app' | |
railties (3.2.3) lib/rails/rack/logger.rb:16:in `call' | |
actionpack (3.2.3) lib/action_dispatch/middleware/request_id.rb:22:in `call' | |
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call' | |
rack (1.4.1) lib/rack/runtime.rb:17:in `call' | |
activesupport (3.2.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call' | |
rack (1.4.1) lib/rack/lock.rb:15:in `call' | |
actionpack (3.2.3) lib/action_dispatch/middleware/static.rb:62:in `call' | |
railties (3.2.3) lib/rails/engine.rb:479:in `call' | |
railties (3.2.3) lib/rails/application.rb:220:in `call' | |
rack (1.4.1) lib/rack/content_length.rb:14:in `call' | |
railties (3.2.3) lib/rails/rack/log_tailer.rb:14:in `call' | |
rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service' | |
/Users/germangarcia/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service' | |
/Users/germangarcia/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run' | |
/Users/germangarcia/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread' | |
Rendered /Users/germangarcia/.rvm/gems/ruby-1.9.3-p194@gcollect/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GroupCollect::Application.routes.draw do | |
# devise_for :users | |
namespace :agency do | |
devise_scope :user do | |
get "sign_up", :to => "registrations#new" | |
resource :registration, :only => [:new, :create] #do # , :edit, :update, :destroy] do | |
# get :cancel | |
# end | |
end | |
end | |
constraints(Subdomain) do | |
authenticated :user do | |
match '/' => 'agency/site#home', :as => :agency_root | |
end | |
devise_scope :user do | |
resource :session, :only => [], :controller => 'agency/sessions', :path => "" do | |
get :new, :path => "sign_in", :as => "new" | |
post :create, :path => "sign_in" | |
match :destroy, :path => "sign_out", :as => "destroy" | |
end | |
match '/' => 'agency/sessions#new', :as => :agency_sign_in | |
end | |
end | |
root :to => "site#home" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment