Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def things_I_tried
- # didn't work
- render :js => "alert('sucks')"
- render :text => "<script>alert('blah')</script>;", :content_type => "text/javascript"
- # worked
- javascript_tag("alert('ftw')")
- end
Add Comment
Please, Sign In to add comment