What are the parameters and what is the significance of them?
A:
Here's a link to the usage.
Returns a consistent, platform-independent identifier for label. Identifiers are positive integers less than 2^32.
# File activerecord/lib/active_record/fixtures.rb, line 531
def self.identify(label)
Zlib.crc32(label.to_s) % MAX_ID
end
Also, you might want to check out Machinist, some people say it's easier but I've never used it.
Robert Greiner
2010-08-27 19:11:30
Yeah, I couldn't quite figure it out at first. How does it identify the fixture? I guess it checks the fixture and matches it up to the database?
Cody Frazer
2010-08-27 19:14:16
Thanks for the help/patience! I think I've got it now.
Cody Frazer
2010-08-27 19:17:19
great! let me know if you still have trouble.
Robert Greiner
2010-08-27 19:58:26