Displaying 2 results from an estimated 2 matches for "method_".
Did you mean:
method
2006 Jan 07
1
datetime returned as string, sometimes....
..., rails 1.0, and I have a strange problem on a
datetime field (timestamp without time zone in postgresql).
As shown below, the field "value" sometimes returns a string, and
sometimes a Time instance, depending of where the value is used....:
* breakpoint session _from inside an instance method_ of the object:
value
=> "1996-05-01 00:00:00"
value.class
=> String
However, as you can see, the value field is of type datetime:
Detail.columns[3]
=> #<ActiveRecord::ConnectionAdapters::Column:0xb7489378 @limit=nil,
@text=false, @null=true, @primary=false, @default=nil,
@...
2008 Oct 10
16
rspec - undefined method `describe'' for main:Object
When i run a spec file i am getting the following error
D:\Diwakar\spec_diwa\spec\controllers>spec sandbox_controller_spec.rb
c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.5.15/lib/spec/api/sugar.rb:17:in
`method_
missing'': undefined method `describe'' for main:Object (NoMethodError)
from ./sandbox_controller_spec.rb:7
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:28:in `ge
m_original_require''
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/cust...