Closed foxnewsnetwork closed 12 years ago
what information is being POSTed to the users_path? shouldn't that just be a GET?
devise controllers (and mine as well) take POST to /users/:id handle the create action through that route. GET to /users results in index being rendered.
It should also be noted that devise, upon receiving bad POST data to /users directly calls a "render users/new" instead of doing a redirect_to :back .
Rejoice for we have solved this most pressing issue. Who would've thought a mere discrepancy between singular and plural would cause so much headaches!
doing a rake routes command reveals the following conflict:
user_registration_path ===> /users/:id , POST users_path ===> /users/:id , POST
This routing conflict is the cause of many headaches having to do with user registration and general UX