红宝石为什么没有条件存在?在Heroku上工作?

时间:2013-09-23 20:34:03

标签: ruby-on-rails ruby heroku

我想在我正在构建的当前rails应用程序中选择输入作者可选项。截至目前,当有人向活动管理员输入信息时没有添加作者,它在本地工作正常,但一旦它在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}):

0 个答案:

没有答案