# Break out of a controller

**URL:** <https://www.ruby-forum.com/t/break-out-of-a-controller/69189>\
**Category:** Rails\
**Created:** [September 19, 2006, 6:42am UTC](https://www.ruby-forum.com/t/break-out-of-a-controller/69189 "2006-09-19T06:42:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dion\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/839c29/32.png) [@Dion\_H](https://www.ruby-forum.com/u/Dion_H)\
**Post date:** [September 19, 2006, 6:42am UTC](https://www.ruby-forum.com/t/break-out-of-a-controller/69189/1 "2006-09-19T06:42:01Z")

</div>

Is there a nice way to break out of the execution of a controller if you  
find a nil object?

–

[www.blogsaic.com](http://www.blogsaic.com)  
search, post, blog

---

<div class="post-metadata">

**Author:** ![Dion\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/839c29/32.png) [@Dion\_H](https://www.ruby-forum.com/u/Dion_H)\
**Post date:** [September 19, 2006, 4:09pm UTC](https://www.ruby-forum.com/t/break-out-of-a-controller/69189/2 "2006-09-19T16:09:03Z")

</div>

On 9/19/06, Dion H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there a nice way to break out of the execution of a controller if you  
> find a nil object?

What do you want the behavior to be in this case?

–  
The best way to implement code quickly is to implement less of it.  
([http://www.xprogramming.com/Practices/PracNotNeed.html](http://www.xprogramming.com/Practices/PracNotNeed.html)) – Ron  
Jeffries
