0
다음 코드를 사용하여 부분을 다시 렌더링하는 대신 try/catch 블록이 표시되는 이유는 무엇입니까?Ajax는 부분 렌더링을 다시 시도하는 대신 try/catch 코드를 반환합니다. 이유는 무엇입니까?
보기 :
<% form_remote_tag :url => { :controller => 'my_controller', :action => 'new_thing' } -%>
[...whatever form code...]
<%= submit_tag 'Continue' %>
<% end -%>
CONTROLLER :
def new_thing
[...whatever controller code...]
render :update do |page|
page.replace_html "new", :partial => "new_thing"
end
end