I have a \'new\' form that gets validated in a post model. When the validator kicks in, it renders incorrectly.
The new post page path is at \'/posts/new\'
On va
This is the correct behavior from rails.
In the create action it simply renders the "new" view file. As such the url will be /posts but the view will correctly display the form. There is nothing wrong with this behavior; and in general rails convention is good form. Also the built in rails errors work if you just render new; however if you redirect they won't display.
If you really feel like you want to go back to that url you need to use:
redirect_to
instead of render.