Popup window from controller

Can a simple popup window with error message be opened from rails
controller.

I know this could be done differently but sometimes “hammering a head”
makes a difference.

by
TheR