MBO/attrtastic — Issue #14: Rails 3.1 , mongoid 2.3.1, float-field, -> wrong argument type nil (expected Fixnum)
Author: banditj
Created: 2011-10-11 22:37:27+00:00
State: open

class Post
include Mongoid::Document
include Mongoid::Timestamps

field :name, :type => String
field :age, :type => Integer
field :cool, :type => Float

end

results in

Showing /home/sallas/Aptana Studio 3 Workspace/viterma/app/views/posts/show.html.haml where line #13 raised:

wrong argument type nil (expected Fixnum)
Extracted source (around line #13):

10: =p.attributes do
11: = p.attribute :name
12: = p.attribute :age
13: = p.attribute :cool
14: