# Render :alert

**URL:** <https://www.ruby-forum.com/t/render-alert/110784>\
**Category:** Rails\
**Created:** [July 30, 2007, 10:06pm UTC](https://www.ruby-forum.com/t/render-alert/110784 "2007-07-30T22:06:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [July 30, 2007, 10:06pm UTC](https://www.ruby-forum.com/t/render-alert/110784/1 "2007-07-30T22:06:56Z")

</div>

Is there a render :alert to make a popup box display from the  
controller? Or anything similiar? Just grasping at straws. I know there  
has to be a way to do this. I am trying to get a popup box to show if a  
validation check fails. Thanks,

~S

---

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [July 30, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/render-alert/110784/2 "2007-07-30T23:54:04Z")

</div>

I would just do this using RJS:

render :update { |page| page.alert “alert message” }

Sean W.  
master nerd of  
i heart squares, inc.

3711 N. Ravenswood Ave. #147 Chicago, IL 60613  
[http://www.iheartsquares.com](http://www.iheartsquares.com)

:: Raised By an 8" Floppy Disk ™ ::
