我正在合作rails 3.1.0
,这是我的第一个应用程序3.1.0
我有一个remote
链接:
link_to "my link",{:controller=>"my_controller",:action=>"my_action"},:remote=>true
在my_controller
我有
def my_action
@data = Data.all
render :update do |page|
page.replace_html "show_data",:partial=>"data_partial"
end
end
但是在日志中我得到一个错误
ActionView::MissingTemplate (Missing template my_controller/update...
我正在查看这篇文章
http://wowkhmer.com/2011/09/19/unobtrusive-ajax-with-rails-31/
我真的需要使用 acoffee script
或 ajs.jrs
来做这件事吗?