JQuery を Rails 3 に統合しようとしています。rails.js ファイルをhttp://github.com/rails/jquery-ujsからダウンロードし、アプリに含めました。JQueryも含めました。
しかし、次のように単純な page.replace を実行しようとすると:
render :update do |page|
page.replace_html "my_div", :partial => "my_partial", :locals => {:mylocal => mylocal}
end
実行中の JavaScript から次のエラーがスローされます。
RJS error:
TypeError: Element.update is not a function
Element.update("my_div", "mypartialdata");
何か案は?