Ruby on Rails Error compute_type
For rails folks: In Ruby on Rails, don't name a column in any of your models "type." If you do, , it will be a source of great sadness and gnashing of teeth. For example, don't even think about creating a field named Account.type -- it will conflict with the "type" method. A safer but perhaps slightly more redundant choice would be Account.account_type. A rails warning would be handy here... I'm ashamed to admit I've done it twice, and was baffled.
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/base.rb:1361:in `compute_type'
0 comments