Legacy and MVC faq


#1

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:

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

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

thanks,

Thufir