dkim18
asked on
private method `min' called for #<Date: 4899253/2,0,2299161> error
Hi,
I am rewriting PL/SQL appliation to rails and when I clicked 'edit' link(after performing 'generate ...' command) I am having the following error.
19: <p><label for="attending_ip_dob">Dob </label><b r/>
20: <%= datetime_select 'attending_ip', 'dob' %></p>
c:/ruby/lib/ruby/gems/1.8/ gems/actio npack-1.13 .3/lib/act ion_view/h elpers/dat e_helper.r b:191:in `select_minute'
c:/ruby/lib/ruby/gems/1.8/ gems/actio npack-1.13 .3/lib/act ion_view/h elpers/dat e_helper.r b:390:in `send'
c:/ruby/lib/ruby/gems/1.8/ gems/actio npack-1.13 .3/lib/act ion_view/h elpers/dat e_helper.r b:390:in `date_or_time_select'
c:/ruby/lib/ruby/gems/1.8/ gems/actio npack-1.13 .3/lib/act ion_view/h elpers/dat e_helper.r b:385:in `each'
c:/ruby/lib/ruby/gems/1.8/ gems/actio npack-1.13 .3/lib/act ion_view/h elpers/dat e_helper.r b:385:in `date_or_time_select'
c:/ruby/lib/ruby/gems/1.8/ gems/actio npack-1.13 .3/lib/act ion_view/h elpers/dat e_helper.r b:356:in `to_datetime_select_tag_wi thout_erro r_wrapping '
c:/ruby/lib/ruby/gems/1.8/ gems/actio npack-1.13 .3/lib/act ion_view/h elpers/act ive_record _helper.rb :209:in `to_datetime_select_tag'
c:/ruby/lib/ruby/gems/1.8/ gems/actio npack-1.13 .3/lib/act ion_view/h elpers/dat e_helper.r b:132:in `datetime_select'
#{RAILS_ROOT}/app/views/at tending_ip s/_form.rh tml:20:in `_run_rhtml_47app47views47 attending_ ips47_form 46rhtml'
#{RAILS_ROOT}/app/views/at tending_ip s/edit.rht ml:4:in `_run_rhtml_47app47views47 attending_ ips47edit4 6rhtml'
#{RAILS_ROOT}/app/views/at tending_ip s/edit.rht ml:3:in `_run_rhtml_47app47views47 attending_ ips47edit4 6rhtml'
-e:4:in `load'
-e:4
It looks like to me that this is because of the input format (dd/dd/yyyy) that used to take for old app. For example, in the table:
DOB: 1994-10-01 00:00:00.0
However, other auto generated field such as 'LAST_MODIFIED_BY'(type is date) column is working fine.
LAST_MODIFIED_BY: 2007-10-15 18:43:05.0
how can I solve this problem? Is there something other than 'datetime_select'?
thanks in advance
I am rewriting PL/SQL appliation to rails and when I clicked 'edit' link(after performing 'generate ...' command) I am having the following error.
19: <p><label for="attending_ip_dob">Dob
20: <%= datetime_select 'attending_ip', 'dob' %></p>
c:/ruby/lib/ruby/gems/1.8/
c:/ruby/lib/ruby/gems/1.8/
c:/ruby/lib/ruby/gems/1.8/
c:/ruby/lib/ruby/gems/1.8/
c:/ruby/lib/ruby/gems/1.8/
c:/ruby/lib/ruby/gems/1.8/
c:/ruby/lib/ruby/gems/1.8/
c:/ruby/lib/ruby/gems/1.8/
#{RAILS_ROOT}/app/views/at
#{RAILS_ROOT}/app/views/at
#{RAILS_ROOT}/app/views/at
-e:4:in `load'
-e:4
It looks like to me that this is because of the input format (dd/dd/yyyy) that used to take for old app. For example, in the table:
DOB: 1994-10-01 00:00:00.0
However, other auto generated field such as 'LAST_MODIFIED_BY'(type is date) column is working fine.
LAST_MODIFIED_BY: 2007-10-15 18:43:05.0
how can I solve this problem? Is there something other than 'datetime_select'?
thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.