Project

General

Profile

Gannt error and oracle

Added by João Nunes over 12 years ago

Hello, I'm in trouble in Gantt, looked at the log and the following message is displayed:

ctionView::TemplateError (can't convert Date into Float) on line #65 of app/views/gantts/show.html.erb:
62: <%
63:        g_width = (@gantt.date_to - @gantt.date_from + 1)*zoom
64:     
65: @gantt.render(:top => headers_height + 8, :zoom => zoom, :g_width => g_width, :subject_width => subject_width)
66: 
67: g_height = [(20 * (@gantt.number_of_rows + 6))+150, 206].max
68: t_height = g_height + headers_height

researched the forum and found solutions that show files. rb different from the current.

Ruby version              1.8.7 (x86_64-linux)
RubyGems version          1.4.2
Rack version              1.1.2
Rails version             2.3.11
Active Record version     2.3.11
Active Resource version   2.3.11
Action Mailer version     2.3.11
Active Support version    2.3.11
Edge Rails revision       unknown
Application root          /opt/redmine
Environment               production
Database adapter          oracle_enhanced
Database schema version   20110511000000

Thank you!