Forum: Ruby on Rails Layouts for rjs templates?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
328f0bb678423fcea01ebe3b0edc74e6?d=identicon&s=25 Ben Johnson (benjohnson)
on 2007-02-17 19:14
I was wondering if you could create a layout for rjs templates as you
would for rhtml templates?

Let's say every time an rhs template was rendered I wanted a jvascript
pop up to say "hi!"

Can you make a file called application.rjs in your layouts directory and
do something like:

page.alert 'hey'

If I can't how else could I accomplish this functionality?
This topic is locked and can not be replied to.