乾杯!私のレールプロジェクトには、次のようなリモートアクションがあります。
def foo
respond_to do |format|
format.js {}
end
end
視界のどこか:
= link_to "foo", foo_path, remote: true
私の foo.js.erb ファイルで:
$('#bar').html("<%= j render(partial: 'bar') %>");
私の _bar.html.haml パーシャルでは:
hello, i am bar
すべて問題なく動作していますがMissing template
、このルートでページを更新するとエラーが返されます。どうしたの?