# Validation error, controller and path

**URL:** <https://www.ruby-forum.com/t/validation-error-controller-and-path/156841>\
**Category:** Rails\
**Created:** [January 3, 2009, 11:31pm UTC](https://www.ruby-forum.com/t/validation-error-controller-and-path/156841 "2009-01-03T23:31:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [January 3, 2009, 11:31pm UTC](https://www.ruby-forum.com/t/validation-error-controller-and-path/156841/1 "2009-01-03T23:31:44Z")

</div>

I have a controller and model called user. Then I have a controller  
called signup and there I have a form for adding a user which is going  
to an action in user. How do I make sure that I get back to that same  
controller/view when there is a validation error?

Either that or having the form in the controller and view user but make  
sure that the path is /signup and not /users/signup. How do I do that?
