Ruby on rails 为什么不是';你不在场吗?在Heroku工作?

Ruby on rails 为什么不是';你不在场吗?在Heroku工作?,ruby-on-rails,ruby,heroku,Ruby On Rails,Ruby,Heroku,我想在我正在构建的当前rails应用程序中选择输入作者。到目前为止,当有人在active admin中输入信息时没有添加作者,它在本地工作正常,但一旦在Heroku上,它就会显示“出了问题” 这就是我的观点。。。有什么想法/建议/有人知道它为什么这样做吗 <% if content.author.present? %> <p class="author"><%= content.author.name %></p> <% en

我想在我正在构建的当前rails应用程序中选择输入作者。到目前为止,当有人在active admin中输入信息时没有添加作者,它在本地工作正常,但一旦在Heroku上,它就会显示“出了问题”

这就是我的观点。。。有什么想法/建议/有人知道它为什么这样做吗

  <% if content.author.present? %>
    <p class="author"><%= content.author.name %></p>
  <% end %>

Heroku日志:

2013-09-23T21:23:46.720455+00:00 app[web.1]: o follow a gluten-free diet.\r\n</field></doc></add>", :headers=>{"Content-Type"=>"text/xml"}, :method=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", :path=>"update", :uri=>#<URI::HTTP:0x00000006c9e978 URL:http://localhost:8983/solr/update?wt=ruby>, :open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil, :retry_after_limit=>nil}
2013-09-23T21:23:46.751031+00:00 heroku[router]: at=info method=POST path=/admin/contents/16 host=glutenfree-dev.herokuapp.com fwd="173.14.15.194" dyno=web.1 connect=2ms service=204ms status=500 bytes=643
2013-09-23T21:23:46.742377+00:00 app[web.1]: 
2013-09-23T21:23:46.742377+00:00 app[web.1]: Errno::ECONNREFUSED (Connection refused - {:data=>"<?xml version=\"1.0\" encoding=\"UTF-8\"?><add><doc><field name=\"id\">Content 16</field><field name=\"type\">Content</field><field name=\"type\">ActiveRecord::Base</field><field name=\"class_name\">Content</field><field name=\"published_date_d\">2013-08-02T01:01:00Z</field><field name=\"published_b\">true</field><field name=\"short_description_text\"></field><field name=\"long_description_text\">Humans have been eating foods that contain gluten for thousands of years, but the amount and type of gluten in food products has greatly changed. Although the cultivation of grains for consumption evolved and spread across the globe, it was not until the processing innovations of the Industrial Revolution in the 19th century that grains became widely available and affordable. In the 1990s, the USDA created the food pyramid, further solidifying grains into the diets of Americans. \r\n\r\nResearch suggests the genetic predisposition for celiac disease and gluten intol
2013-09-23T21:23:46.742377+00:00 app[web.1]: erance is tied to the emergence of grain as a primary element in a normal diet. It has been suggested that the inability to process gluten is linked to the relatively short evolutionary period over which humans have become so exposed to it. In addition, due to modern methods of mass production, today’s grains are more glutinous than the grains of past generations. \r\n\r\nToday, people are eating more grains and, therefore, more gluten than ever. The symptoms of gluten intolerance or gluten sensitivity may vary from person to person, so diagnosing it can be difficult. However, recent developments in testing and a better understanding of these conditions have led to an increased rate of diagnosis. For example, only 3.3 per 100,000 people were diagnosed with celiac disease in the 1990s, but 20.6 per 100,000 were diagnosed in the early 2000s. That’s why an increasing number of people have found it necessary to follow a gluten-free diet.\r\n</field></doc></add>", :headers=>{"Content-Type"=>"text/xml"}, :meth
2013-09-23T21:23:46.742377+00:00 app[web.1]: od=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", :path=>"update", :uri=>#<URI::HTTP:0x00000006c9e978 URL:http://localhost:8983/solr/update?wt=ruby>, :open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil, :retry_after_limit=>nil}):
2013-09-23T21:23:46.720455+00:00应用程序[web.1]:遵循无麸质饮食。\r\n“,:headers=>{Content Type=>“text/xml”},:method=>:post,:params=>{:wt=>:ruby},:query=>“wt=ruby”,:path=>“update”,:uri=>,:open\u timeout=>nil,:read\u timeout=>nil,:retry\u=>nil,:retry\u503=>nil,:retry=>
2013-09-23T21:23:46.751031+00:00 heroku[路由器]:at=info-method=POST-path=/admin/contents/16 host=lumnfree-dev.herokuapp.com fwd=“173.14.15.194”dyno=web.1 connect=2ms服务=204ms状态=500字节=643
2013-09-23T21:23:46.742377+00:00应用程序[网站1]:
2013-09-23T21:23:46.742377+00:00应用程序[web.1]:Errno::econnreflused(连接被拒绝-{:data=>”内容16ContentActiveRecord::BaseContent2013-08-02T01:01:00Z事实上,数千年来人类一直食用含有麸质的食品,但食品中麸质的数量和类型发生了巨大变化。尽管食用谷物的种植在全球范围内不断发展和传播,但直到19世纪的工业革命,谷物变得广泛且价格合理。20世纪90年代,美国农业部建立了食品金字塔,进一步将谷物固化到美国人的饮食中。\r\n\r\n研究表明,乳糜泻和麸质的遗传易感性
2013-09-23T21:23:46.742377+00:00应用程序[网站1]:面筋与谷物作为正常饮食中的主要成分的出现有关。有人认为,无法加工面筋与人类接触面筋的相对较短的进化期有关。此外,由于现代大规模生产方法,今天的谷物比谷物更粘过去的几代人。\r\n\r\n如今,人们吃的谷物越来越多,因此面筋也越来越多。面筋不耐症或面筋敏感性的症状可能因人而异,因此诊断起来可能很困难。然而,最近在检测方面的发展以及对这些疾病的更好理解导致面筋过敏率的增加诊断。例如,在20世纪90年代,每10万人中只有3.3人被诊断出患有乳糜泻,但在21世纪初,每10万人中有20.6人被诊断出患有乳糜泻。这就是为什么越来越多的人发现有必要遵循无麸质饮食。\r\n“,:headers=>{“Content Type”=>“text/xml”},:meth
2013-09-23T21:23:46.742377+00:00应用程序[web.1]:od=>:post,:params=>{:wt=>:ruby},:query=>“wt=ruby”,:path=>“update”,:uri=>,:open\u timeout=>nil,:read\u timeout=>nil,:retry\u 503=>nil,:retry\u limit=>nil}:

您能显示
$heroku日志的输出吗?已发布。尽管看起来不正确的日志…看起来Solr配置有问题,因为它指向
http://localhost:8983/solr/update?wt=ruby
,这在Heroku上是不可能的。