Ruby on Rails Friday, July 22, 2016

I am completely new to Rails and have started working through the online version of Ruby on Rails Tutorial (Rails 5).   I am currently baffled and
hope someone may be able to suggest something to help

At the end of Chapter 7 I had the "Create My Account" button working both with valid and invalid input data.

This no longer works in Chapter 8. Giving the message: "ROUTING ERROR  No route matches [POST] "/signup"".

Routes listed on the Error Page include "POST  /login(.:format) sessions#create"  I assume this POST stems from "resources :users" in routes.rb but I cannot fathom
why it has ceased to work in the new Chapter. 

If I add "post '/signup'",  to: "users#create" into routes.rb it is back to working   fine.

Thank you in anticipation.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/98cd85d4-da38-437b-a5ef-0dde8017ee56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment