project1: contains app\models\foo.rb (ActiveRecord facade for foo object)
project2: I would like to fetch all foo's in project2.
How do I reference foo from project1 over here, so that I can avoid code duplication corresponding to fetching information from the same table?
If you want to share data then ActiveResource should do the trick. I’d recommend watching the Railscast to get you started.
If it’s just the class code you’re trying to share, then I’d say just put it in a gem.