Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Ruby Programming Language

Project reference question


So we decided to give Ruby a shot at the company I work at. I have a
question regarding project structures. Maybe I'm going about this all
wrong because I'm used to the way we do things in Java, but what I would
like to do is have our "enterprise" ruby project that has source for all
things enterprise related. We also have a Rails app, and I want to be
able to reference the enterprise project classes in rails. When
developing locally, do we need to create a Gem for the "enterprise"
project and install that in our repo, and just have rails access that?
And after we make changes, we run rake to update the gem? We are using
Eclipse with RDT. It doesn't appear that there is such a thing as a
"Project Reference", otherwise I would just have the rails app refer to
the "enterprise" ruby application. I hope this is clear enough, but I'm
just looking to see what common practice is or to see what ideas the
community may have. Thanks.
On 5/29/07, Allen Riddle <arid@sunbridgecapital.com> wrote:

> When developing locally, do we need to create a Gem for the "enterprise"
> project and install that in our repo, and just have rails access that?

That should work. If you're using Subversion as your SCM system, you
might also consider the use of the svn:externals feature to embed the
"enterprise" code library into your Rails application(s) code. (Other
SCM tools may have similar features.)
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc