Hi all,
A friend and I want to generate a model based on a table named 'modules', I know that "Module" is a class in Ruby, and so, I would like to know how to generate this model.
Thanks,
Best Regards,
Stephane
Hi all,
A friend and I want to generate a model based on a table named 'modules', I know that "Module" is a class in Ruby, and so, I would like to know how to generate this model.
Thanks,
Best Regards,
Stephane
You'll have to pick another name for the class, then override the table name so somthing like
class ModuleModel < ActiveRecord::Base
set_table_name "modules"
end