2011-03-25 1 views
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 

답변

0

이런 쉬 ..., 미안 해요 - 여기에 잘못 무엇 :

<%= javascript_include_tag :defaults %> 

... 아니었다

<head></head> 

태그.

희망은 다음 n00b ;-)에 도움이 될 것입니다.

관련 문제