Displaying 1 result from an estimated 1 matches for "big_id".
Did you mean:
sig_id
2006 May 06
0
Issues using GUID plugin: IDs and acts_as_versioned
...of integers. In
particular, it didn''t seem to work when I had a model doing "acts_as_list"
with a scope:
Example:
Class Big < ActiveRecord::Base
usesguid
has_many :littles
end
Class Little < ActiveRecord::Base
usesguid
belongs_to :big
acts_as_list :scope => big_id
end
It seems like the generated SQL queries wouldn''t put the ID with string
quotations. I get an error like:
Mysql::Error: Unknown column ''ayMi4o3iyr2OYfabBlKsEs'' in ''where clause'':
SELECT * FROM littles WHERE (big_id = ayMi4o3iyr2OYfabBlKsEs) ORDER B...