title: how to combine a rails app (server code) and a ruby gem (client code) in to a common package?
body: <p>I have two packages: a rails 3.2 app (server code) and a ruby gem (client code). They each have standard directory structures for rails app and ruby gems respectively. Since there are common codes which can and should be shared between them,  I'd like to combine them into a single package.</p>
  
  <p>What should the final directory structure look like? I'd love to look at any public projects with such directory layouts.</p>
  
  <p>My codes are in Subversion repositories, so solutions using SCM tricks (like svn:external definitions) to link code from different repos are also acceptable.</p>