【发布时间】:2013-02-08 12:22:29
【问题描述】:
我的一个页面一直出现这个错误:
ActionView::Template::Error (undefined method `+' for nil:NilClass):
15: <div class="look_list">
16: <% collection.each do |look| %>
17: <div class="look_book" id="<%= look.content_id %>">
18: <% thumbnail_image = (look.processing? ? "/assets/processing_placeholder.gif" : (look.image.url(:thumb) + "?#{look.updated_at.to_i}")) %>
19: <%= image_tag thumbnail_image || "/assets/processing_placeholder.gif",:class=> "look_image", :size => "118x118" %>
20: <script type="text/javascript">
21:
app/views/looks/index.html.erb:18:in `block in _app_views_looks_index_html_erb__3409922204803071014_68666020'
app/views/looks/index.html.erb:16:in `_app_views_looks_index_html_erb__3409922204803071014_68666020'
一些背景,我的网站在 2 天前遇到了 502 bad gateway。我们设法重新启动了站点。但是,它导致了与 mongodb 的一些连接问题。这在我们重新启动数据库后得到了解决。但是,这一页不断出现上述错误。这是以前从未发生过的。有谁可以帮忙?
【问题讨论】:
标签: ruby-on-rails ruby