In a standard generated scaffold project, when you are on an edit page, the URL looks like;
/something/3/edit
However, when the page doesn't validate, it runs the following code:
format.html { :action => "edit" }
and the page url changes to;
/something/3
(no /edit)
Why is this is this and how to prevent it, as it looks inconsistent to me and thus confusing.
Thanks