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?