Create action redirects to wrong URL after validation failures
Reported by jevan (at aliveness) | July 3rd, 2009 @ 01:00 AM
Originally described in this Hobo users post
But it really seems like a bug.
Basically when posting to a create action where there are validation errors, the page contents are rendered from the "New" page (with the validation error messages added), but the URL changes to the index page (ie: http://mysite/model/).
You can see this behavior in the Agility application by doing the following...
- Run Agility and have at least one user (e.g. user "admin" with
ID=1)
- Goto the New Project form: http://127.0.0.1:3000/users/1-admin/projects/new
- Try and create a project with a blank Name
- You will be redirected to a page with the New Project form with
the
validation error messages/highlighting, but the URL in the address bar
is http://127.0.0.1:3000/users/1-admin/projects (note: no "/new" at
the end)
Comments and changes to this ticket
-
Tom Locke October 24th, 2009 @ 06:06 PM
- State changed from new to invalid
This is how Rails works
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »