you need include jquery-ujs.
but first you need to install jquery-rails
$gem install jquery-rails
and if you use rails 3.1.x, you should include "javascript_include_tag 'application'" in your view.
if you use rails 3.0.x. you should include 'javascript_include_tag :defaults'
hope this is helpful for you.