Is this possible

Is it possible with ROR to dynamically create a javascript file which
will
overwrite the existing file in the ‘javascripts’ directory after a
database
is updated?

Anybody know how?

Jim


Express yourself instantly with MSN Messenger! Download today - it’s
FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

On Wednesday, August 09, 2006, at 11:34 AM, Jim W. wrote:

Jim


Express yourself instantly with MSN Messenger! Download today - it’s FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

I suppose you could make your JS files be interpreted like template
files (.rhtml) are and then cache them. You would probably need to mess
with the web server settings to do this.

It might make more sense to embed the section of code that actually
changes into a regular rhtml template and render that into your view
when needed. That could be cached as well.

I am sort of curious about why you want to do this.

_Kevin
www.sciwerks.com