Forum: Ruby on Rails render :alert

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C4bfcc81ac9281cb905f38e97e4d4e0b?d=identicon&s=25 Shandy Nantz (snantz)
on 2007-07-30 22:06
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
8f15d89f469605e9e07a8b5ce5d3d5d1?d=identicon&s=25 Sean Wolfe (Guest)
on 2007-07-30 23:54
(Received via mailing list)
I would just do this using RJS:

render :update { |page| page.alert "alert message" }


Sean Wolfe
master nerd of
i heart squares, inc.

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

:: Raised By an 8" Floppy Disk (tm) ::
This topic is locked and can not be replied to.