小弟初接触 Rails,昨天一整天都在折腾 Ruby China 的部署……环境 Nginx + Puma,已按照官方 Wiki Ubuntu 14.04 上使用 Nginx Passenger 部署 Ruby on Rails 步骤完成。但在帖子页面还是出现了报错:
Showing /blablabla/wordpress-log/app/views/topics/_related_topics.html.erb where line #2 raised:
[404] {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","index":"topics","resource.type":"index_or_alias","resource.id":"topics"}],"type":"index_not_found_exception","reason":"no such index","index":"topics","resource.type":"index_or_alias","resource.id":"topics"},"status":404}
Extracted source (around line #97):
===
size: size
}
self.class.__elasticsearch__.search(opts).records.to_a
end
def self.fields_for_list
===
Trace of template inclusion: app/views/topics/show.html.erb
请问问题出在哪里?恳求各位大大指教!