# How to cancel rendering in Rails

**URL:** <https://www.ruby-forum.com/t/how-to-cancel-rendering-in-rails/105977>\
**Category:** Rails\
**Created:** [June 5, 2007, 7:12am UTC](https://www.ruby-forum.com/t/how-to-cancel-rendering-in-rails/105977 "2007-06-05T07:12:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chamnap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/779978/32.png) [@chamnap](https://www.ruby-forum.com/u/chamnap)\
**Post date:** [June 5, 2007, 7:12am UTC](https://www.ruby-forum.com/t/how-to-cancel-rendering-in-rails/105977/1 "2007-06-05T07:12:32Z")

</div>

Hello

I develop a small search application in Ruby on Rails. I wonder how to  
cancel the rendering the view of that action method when the result is  
found. I want to display only one alert box and keeps the existing  
results untouched. Does anyone know to do this?

Thanks  
Chamnap
