rendering js

Thomas Pomfret
2008-01-07T17:28:57Z

Hi all,
Just been working on a new app and I''ve hit a problem.
I am trying to render some js back to the page and have tried the following:

render_js
render :js => true
render :js => "alert(''test'');"

And I always seem to get my js returned as text.

I have also added in:
provides :js

I''m sure this is very simple but any pointers would be most welcome!

Thanks
Thomas