Topic: Dynamic Javascript Files?

I have a javascript file that I'd like to have populated with some dynamic content via a Rails call.

I know I could create a  javascript controller and go that route, is there a more "Rails Way" of doing this?

Re: Dynamic Javascript Files?

funny you posts this now. Because honestly, i was thinking about the same thing about 2 hours ago when i read a turorial on using ExtJS Grid with RubyonRails , cos i thought "i will have to server it through rails if i want to change the url of the DataReader depending on some conditions".

Would also be interested in any ideas you guys have ...