search for: render_js

Displaying 1 result from an estimated 1 matches for "render_js".

Did you mean: render_as
2008 Jan 07
2
rendering js
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