Legacy and MVC faq

What’s meant by a “model Client”? Is this an object?

One shot modifications are the kind of modification that you do model
per model or private key per private key.

For example, let’s suppose that your legacy database use a table named
FooBar, and that you’d like to map the model Client onto this table.
By using the set_table_name class method you can define this:

2 class Client < ActiveRecord::Base
3 set_table_name “FooBar”
4 end

from the tutorial at <http://sl33p3r.free.fr/tutorials/rails/legacy/



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs