Rails 3: Ajax-обновление представления с частичным
что я делаю не так со следующим запросом Ajax ...?
Ссылка / звонок:<%= link_to 'Business Analysis', it_business_analysis_path, :remote => true %>
Маршрут:match 'it/business_analysis' => 'informationtechnology#business_analysis', :as => :it_business_analysis
Контроллер:class InformationtechnologyController < ApplicationController
def business_analysis
render :update do |page|
page.replace_html 'page_content', :partial => 'business_analysis'
end
end
end
Вид:<div id="page_content">
</div>
Частичное называется:_business_analysis.html.erb
Ошибка:Action Controller: Exception caught
<h1>Template is missing</h1>
<p>Missing template informationtechnology/update, application/update with {:formats=>[:js, "application/ecmascript", "application/x-ecmascript", :html, :text, :js, :css, :ics, :csv, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json], :handlers=>[:builder, :coffee, :erb], :locale=>[:en, :en]}. Searched in: * "/home/<user_name>/Websites/<project_name>/app/views"
Кажется, Rails ищет представление под названием «обновление» - почему и как мне это исправить?
Большое спасибо! Том