Forum: Ruby on Rails legacy and MVC faq

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E4e17e45f2e8cc967a8695131910f365?d=identicon&s=25 Thufir (Guest)
on 2007-06-09 23:44
(Received via mailing list)
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
This topic is locked and can not be replied to.