Displaying 1 result from an estimated 1 matches for "allow_nan".
Did you mean:
allow_any
2011 Oct 06
5
Simple ActiveRecord serialise problem
When I create a table with the following SQL:
# create table foos (id SERIAL, content VARCHAR(255));
And define a class as follows:
class Foo < ActiveRecord::Base
serialize :content, JSON
end
Creating a new instance of the class gives an error:
> f = Foo.new
NoMethodError: undefined method `read'' for nil:NilClass
from