I'm coming from a long period of CakePHP development. One of the more useful features of that framework was the ability to add any inline javascript in a view, with dynamic php codeblock-generated output (variables, framework generated URLs, etc), to a javascript buffer, and then have CakePHP render it inside an inline script tag just before the </body>, or, my preferred solution, have CakePHP automatically condense the buffer and output it to a uniquely- named .js file on the filesystem. This file could then obviously be cached by the browser, and was recreated whenever the structure of the view/javascript changed.
Is there a similar feature in Rails, or a Gem that offers this functionality? Otherwise, what would be the best practice in Rails for unavoidable inline javascript output? Many thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

