foxnewsnetwork / rubyopenvn

Ruby-based implementation of FFOpenVN as ported over from nodejs
1 stars 0 forks source link

duplicate path routing problems #2

Closed foxnewsnetwork closed 12 years ago

foxnewsnetwork commented 12 years ago

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

hanjing5 commented 12 years ago

what information is being POSTed to the users_path? shouldn't that just be a GET?

foxnewsnetwork commented 12 years ago

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 .

foxnewsnetwork commented 12 years ago

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!