I've just added a contact form to my Rails application so that site visitors can send me a message. The application has a `Message` resource and I've defined this custom route to make the URL nicer and more obvious:

```
map.contact '/contact', :controller => 'messages', :action => 'new'

```

How can I keep the URL as `/contact` when the model fails validation? At the moment the URL changes to `/messages` upon validation failure.

This is the `create` method in my `messages_controller`:

```
def create
  @message = Message.new(params[:message])

  if @message.save
    flash[:notice] = 'Thanks for your message etc...'
    redirect_to contact_path
  else
    render 'new', :layout => 'contact'
  end
end

```

Thanks in advance.