Displaying 2 results from an estimated 2 matches for "registration_date".
2006 May 03
6
sql server, date and time
Hey there all,
Is there some way to tell rails or sql server to ignore the time in a
datetime field when doing a comparison?
For example, if I do something like
select * from users where registration_date = ?, @date
where @date might equal some user input like ''03/14/2006''
The result is nothing returned, because in my tables the datetime
field looks like this:
3/14/2006 4:04:00 PM
I would like to tell rails or sql server to ignore the time, so that
these rows will be returned a...
2007 Jul 10
2
Multiple calls to a class method
...nding on the contents of the form (one section of the form
is rendered conditionally). So I had two specs for the case where
the second form section is included:
it "..." do
Date.should_receive(:extract_from_rails_hash).
with(REQUEST_ARGS_WITH_FINANCE_AGREEMENT
[:vehicle], :registration_date).
and_return(Date.new(2006, 12, 1))
# ...
end
it "..." do
Date.should_receive(:extract_from_rails_hash).
with(REQUEST_ARGS_WITH_FINANCE_AGREEMENT
[:finance_agreement], :start_date).
and_return(Date.new(2006, 12, 4))
# ...
end
In each of these specs I only care a...