ActionView::TemplateError (undefined method `ended?' for #) on line #38 of app/views/radio107_list/index.html.erb: 35:

36:
37: <%= link_to(image_tag((radio107.tuangou.goods_image.nil? || radio107.tuangou.goods_image.eql?("")) ? "/img/tuangou/back_group/previou#{radio107.tuangou_id}.jpg" : radio107.tuangou.goods_image), {:controller => "tuangou_list", :action => "previou", :id => radio107.tuangou_id, :target => "_blank"}) %> 38: <%if !radio107.tuangou.ended? %> 39:
<%= link_to(image_tag("/img/radio107/group_buy_now.gif", :width=>"161", :height=>"45", :border=>"0"), {:controller => "t_cart", :action=> "add_checkout", :id => radio107.tuangou.discount_id, :target => "_blank"}) %> 40:
41: <% else %> app/views/radio107_list/index.html.erb:38 app/views/radio107_list/index.html.erb:21:in `each' app/views/radio107_list/index.html.erb:21:in `each_with_index' app/views/radio107_list/index.html.erb:21 app/controllers/radio107_list_controller.rb:8:in `index' app/controllers/application_controller.rb:71:in `access_log' app/controllers/application_controller.rb:34:in `exception_catch' public/dispatch.fcgi:23