rails form_for 提交 如何response到 rjs中?

页面提交用 form_for 正常情况下response种应该转到view下的 format.html
请问有什么办法可以用form_for不用remote_form_for提交转到view下的 format.js rjs中呢?

def product
# skip product.rhtml or product.rxml if either exists
render :action => "product.rjs"
end

or

def product
respond_to do |format|
format.html # all html requests
format.js # all ajax requests
format.xml # all XML requests
end
end

是什么样的需求需要这样实现?

其实rjs现在应该是js.erb
你就只留这个JS.erb存在 他就会自动使用这个了