It might be because you, like me, have put the following in application.rb:
before_filter :set_content_type def set_content_type @headers["Content-Type"] = "text/html; charset=utf-8" end
Change that to:
before_filter :set_content_type def set_content_type if request.xhr? @headers["Content-Type"] = "text/javascript; charset=utf-8" else @headers["Content-Type"] = "text/html; charset=utf-8" end end
And your RJS magic will start to work!