rails 3 render update mce

Migrating our app to rails 3 with a render :update with mce. It
throws the JS try error to the screen. If I put the mce command into
firebug it works fine. suggestions?

render :update do |page|
      page << "tinyMCE.execCommand('mceInsertContent',false,'moooo');"
    end