Archive for March, 2009

i recently needed to use Enum.GetValues on a .netcf project. but unfortunately it is not there in .netcf. googling gives a lot of solutions that we can use in .netcf. but i couldn’t find one that worked exactly as Enum.GetValue did.
Retrieves an array of the values of the constants in a specified enumeration.
is the method [...]

noob alert!: I am pretty new to RoR. so i might not be solving the problem with the best possible solution.
Scenario 1: many-to-many + one-to-many
Task: I have two models. Contact and ContactSource. a Contact belongs to a ContactSource. and a Contact can be synced with one or more ContactSource(s). i need to get the ContactSource(s) [...]