daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Rendering template within layouts/orgui
  2. Rendering product/detail
  3.  
  4. ActionView::TemplateError (undefined method `updated_at' for nil:NilClass) on line #5 of app/views/product/detail.html.erb:
  5. 2: @meta_tags ||= {}
  6. 3: @meta_tags[:title] = "#{@product.name}, disponível em #{@product.stores.count} loja#{"s" unless @product.stores.count == 1}."
  7. 4: @meta_tags[:description] = truncate((@product.descriptions.first.squish unless @product.raw_descriptions.nil? or @product.raw_descriptions.first.nil?) || "", :length => 320, :omission => '…') + ". #{@product.name}"
  8. 5: @meta_tags[:abstract] = "Compre por #{number_to_currency @product.min_price} e receba até #{number_to_currency @product.max_bonus} de volta! Atualizado em #{@product.stocks.first.updated_at.strftime '%d/%m/%y às %H:%M:%S'}."
  9. 6: @meta_tags[:keywords] = @product.categories.collect &:name
  10. 7:
  11. 8: @lojas = "#{@product.stores.count} LOJA#{'S'unless @product.stores.count == 1}"
  12.  
  13.     app/views/product/detail.html.erb:5
  14.     app/controllers/product_controller.rb:141:in `detail'
  15.     app/controllers/application_controller.rb:13:in `filter'
  16.     app/controllers/application_controller.rb:13:in `filter'
  17.     app/controllers/application_controller.rb:54:in `filter'
  18.     app/controllers/application_controller.rb:86:in `filter'
  19.     app/controllers/application_controller.rb:13:in `filter'
  20.     app/controllers/application_controller.rb:13:in `filter'
  21.     passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in `process_request'
  22.     passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop'
  23.     passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler'
  24.     passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'
  25.     passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork'
  26.     passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application'
  27.     passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__'
  28.     passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop'
  29.     passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously'
  30.     passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in `start'
  31.     passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
  32.     passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application'
  33.     passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
  34.     passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
  35.     passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
  36.     passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  37.     passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application'
  38.     passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application'
  39.     passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application'
  40.     passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__'
  41.     passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop'
  42.     passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top