RailsCasts Pro episodes are now free!

Learn more or hide this

Sean O's Profile

GitHub User: seanosaur

Site: http://seanosaur.com

Comments by Sean O

Avatar

I'm brand new to Rails and am having an issue with my routing once I fill out the Sign up form and click Save User.

I'm getting a Routing Error that reads "No route matches [POST] "/signup" "

rake routes returns this:

ruby
      Prefix Verb   URI Pattern                  Controller#Action
      logout GET    /logout(.:format)            sessions#destroy
       login GET    /login(.:format)             sessions#new
      signup GET    /signup(.:format)            users#new
       users GET    /users(.:format)             users#index
             POST   /users(.:format)             users#create
    new_user GET    /users/new(.:format)         users#new
   edit_user GET    /users/:id/edit(.:format)    users#edit
        user GET    /users/:id(.:format)         users#show
             PATCH  /users/:id(.:format)         users#update
             PUT    /users/:id(.:format)         users#update
             DELETE /users/:id(.:format)         users#destroy
    sessions GET    /sessions(.:format)          sessions#index
             POST   /sessions(.:format)          sessions#create
 new_session GET    /sessions/new(.:format)      sessions#new
edit_session GET    /sessions/:id/edit(.:format) sessions#edit
     session GET    /sessions/:id(.:format)      sessions#show
             PATCH  /sessions/:id(.:format)      sessions#update
             PUT    /sessions/:id(.:format)      sessions#update
             DELETE /sessions/:id(.:format)      sessions#destroy
      secret GET    /secret(.:format)            home#secret
  home_index GET    /home/index(.:format)        home#index
    home_new GET    /home/new(.:format)          home#new
        root GET    /                            home#index

What am I missing?