#456 ✓invalid
jevan (at aliveness)

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...

  1. Run Agility and have at least one user (e.g. user "admin" with ID=1)
  2. Goto the New Project form: http://127.0.0.1:3000/users/1-admin/projects/new
  3. Try and create a project with a blank Name
  4. 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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages