ruby on rails - ActionView::Template::Error (undefined method `+' for nil:NilClass): -
ruby on rails - ActionView::Template::Error (undefined method `+' for nil:NilClass): -
one of pages keeps hitting error:
actionview::template::error (undefined method `+' nil:nilclass): 15: <div class="look_list"> 16: <% collection.each |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'
some background, site nail 502 bad gateway 2 days ago. managed restart site. however, caused connection issue mongodb. resolved after restart db. however, 1 page maintain hitting error above. has never happened before. 1 can help?
what value of look.image.url(:thumb)
before line 18 executes? error thrown, , place seeing +
i'd check data, see if crash caused info loss somewhere, in particular, on info needed method
ruby-on-rails ruby
Comments
Post a Comment