我有控制器
def upload_file
@invoice = Invoice.create(:invoice=> user_params["invoices_attributes"].first["invoice"],:temp_id=>session[:temp_id])
respond_to do |format|
format.js
end
end
并查看
upload_file.js.erb
$('#deposite_rows').html("<%= escape_javascript(render partial: 'deposite') %>");
_deposite.html.erb
这是测试视图
但这并没有在视野中显示,但是当我看到firefug的回应时我得到了$('#deposite_rows').html("This is test view")
为什么我在rails4