Not sure if this is really a defect or just something to be aware of, but activerecord's "quote" method apparently excludes the possibility of using "quote" as a column name.
For example, if I have a table named qods, for quote of the day, and I have "quote' as one of my fields, I receive the following error when I call update_attributes:
ArgumentError (wrong number of arguments (2 for 0)):
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1641:in `quote'
Line 1641 is
quoted[name] = quote(value, column) unless !include_primary_key && column.primary
and of course it's calling the method
def quote(value, column = nil)
self.class.connection.quote(value, column)
end
So activerecord gets confused.
Obviously the simple fix, on the developer's part, is to change the column name to something else, but it seems like "quote" would be a fairly frequently used column name. For example, a sales app may use a field called quote to indicate the quoted price told to a client.