Hello there, I would like to map an attribute to an object ID. How would I go about doing this?
Example: A User ActiveRecord model exists with an id field A Message ActiveRecord model exists with id, from_user_id, to_user_id I would like from_user_id to map to user.id and to_user_id to map to user.id. What's the best way to accomplish this? Manish -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cda8286e-1459-48a0-8618-1b9f59d66a6e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

