顯示具有 rubyonrails 標籤的文章。 顯示所有文章
顯示具有 rubyonrails 標籤的文章。 顯示所有文章

2009年2月10日 星期二

model cannot use type as attribute name

Cannot use "type" as attributed name in model.

it will issue an error when you use find, e.g., Operation.find :all
>> Operation.find 1
SyntaxError: compile error
/home/tk/eclipse/flex/ihp-report/branches/march/IHP/vendor/rails/activerecord/lib/active_record/base.rb:1748: syntax error, unexpected tINTEGER
Object::0

shit