Rob,
I''ll try to take a look at this and see if I can figure out what the
problem might be with the adapter. All the date related unit tests pass,
so I''m surprised this is happening. I''ll keep you posted.
--
DeLynn Berry
delynnb-+9FQAZFMD0vCste6SmUHRhL4W9x8LtSr@public.gmane.org
-----Original Message-----
From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On
Behalf Of Rob Thornton
Sent: Thursday, March 24, 2005 2:14 PM
To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Subject: [Rails] ActiveRecord problem with SQL Server
Greetings,
I am having some trouble using Rails with SQL Server.
Using the info from
http://thread.gmane.org/gmane.comp.lang.ruby.rails/5323
I was able to get my sample application up (I''m
working from Curt Hibbs article at O''Reilly).
However, when I try to edit an entry that has a date
where the hours and minutes were set to zero, it
barfs. If they''re not zero, then it seems fine. It
creates the entry fine, and displays it (though in a
short format: YYYY-MM-DD rather than a longer Mon Jun
22... ). However, if you click edit you get the
following error:
NoMethodError in Recipe#edit
Showing
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/action_controller/te
mplates/scaffolds/edit.rhtml
where line #4 raised private method `hour'' called for
#<Date: 4904889/2,0,2299161>
1: <h1>Editing <%= @scaffold_singular_name %></h1>
2:
3: <%= error_messages_for(@scaffold_singular_name) %>
4: <%= form(@scaffold_singular_name, :action =>
"update" + @scaffold_suffix) %>
5:
6: <%= link_to "Show", :action =>
"show#{@scaffold_suffix}", :id =>
instance_variable_get("@#{@scaffold_singular_name}").id
%> |
7: <%= link_to "Back", :action =>
"list#{@scaffold_suffix}" %>
Is this something I should create a ticket for
somewhere?
Best regards,
Rob
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails