# Routes

**URL:** <https://www.ruby-forum.com/t/routes/142895>\
**Category:** Rails\
**Created:** [July 12, 2008, 11:12pm UTC](https://www.ruby-forum.com/t/routes/142895 "2008-07-12T23:12:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8edcca/32.png) [@thor](https://www.ruby-forum.com/u/thor)\
**Post date:** [July 12, 2008, 11:12pm UTC](https://www.ruby-forum.com/t/routes/142895/1 "2008-07-12T23:12:51Z")

</div>

I have an action:

myapp/new

to create a new record in the db. the form calls the create action  
which, if validation fails, returns the user to

myapp/create

is there a way to route the user back to myapp/new so they don’t see the  
create action?

Also, is there a default route to use for errors? I want to route  
(eventually) all errors to an error page.

Thanks!
