NoMethodError in Product#objects

Showing /var/www/admin/www/bridgeford.ru/current/app/views/product/object.html.haml where line #496 raised:

undefined method `>' for nil:NilClass

Extracted source (around line #496):

493
494
495
496
497
498
499
          
.lot Лот: #{item.offer_id}
.space #{item.space} м<sup>2</sup>
- if item.offer_type == "Арендный бизнес"
- if item.monthly_lease > 0
- okup = item.price / item.monthly_lease
- else
- okup = 0

Rails.root: /var/www/admin/www/bridgeford.ru/current

Application Trace | Framework Trace | Full Trace
app/views/product/object.html.haml:496:in `block (2 levels) in _app_views_product_object_html_haml__2446663201793827176_47018951469080'
app/views/product/object.html.haml:471:in `block in _app_views_product_object_html_haml__2446663201793827176_47018951469080'
app/views/product/object.html.haml:2:in `_app_views_product_object_html_haml__2446663201793827176_47018951469080'
app/controllers/product_controller.rb:140:in `objects'

Request

Parameters:

{"url"=>"arendnyj-biznes-moskva-ulitsa-Sergiya-Radonezhskogo-27s1-439"}

Response

Headers:

None