You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2020. It is now read-only.
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:
results in
Framework-Trace:
actionpack (3.1.0) lib/action_view/helpers/number_helper.rb:281:in
round' actionpack (3.1.0) lib/action_view/helpers/number_helper.rb:281:in
number_with_precision'attrtastic (0.4.2) lib/attrtastic/semantic_attributes_builder.rb:390:in
format_attribute_value' attrtastic (0.4.2) lib/attrtastic/semantic_attributes_builder.rb:314:in
attribute'haml (3.1.3) lib/haml/helpers/action_view_mods.rb:93:in
block in capture_with_haml' haml (3.1.3) lib/haml/helpers.rb:345:in
call'haml (3.1.3) lib/haml/helpers.rb:345:in
block in capture_haml' haml (3.1.3) lib/haml/helpers.rb:569:in
with_haml_buffer'haml (3.1.3) lib/haml/helpers.rb:341:in
capture_haml' haml (3.1.3) lib/haml/helpers/xss_mods.rb:61:in
capture_haml_with_haml_xss'haml (3.1.3) lib/haml/helpers/action_view_mods.rb:93:in
capture_with_haml' attrtastic (0.4.2) lib/attrtastic/semantic_attributes_builder.rb:355:in
attributes_for'attrtastic (0.4.2) lib/attrtastic/semantic_attributes_builder.rb:196:in
attributes' haml (3.1.3) lib/haml/helpers/action_view_mods.rb:93:in
block in capture_with_haml'haml (3.1.3) lib/haml/helpers.rb:345:in
call' haml (3.1.3) lib/haml/helpers.rb:345:in
block in capture_haml'haml (3.1.3) lib/haml/helpers.rb:569:in
with_haml_buffer' haml (3.1.3) lib/haml/helpers.rb:341:in
capture_haml'haml (3.1.3) lib/haml/helpers/xss_mods.rb:61:in
capture_haml_with_haml_xss' haml (3.1.3) lib/haml/helpers/action_view_mods.rb:93:in
capture_with_haml'attrtastic (0.4.2) lib/attrtastic/semantic_attributes_helper.rb:51:in `semantic_attributes_for'
The text was updated successfully, but these errors were encountered: