Lesha Pipiev
Lesha Pipiev

Reputation: 35

Rails 3 Model Name Convention

Can anyone explain me about a model name convention in Rails 3?

For example:
I have a table named "materialtitles" in my database.
What name does a model file, a model class have to satisfy convention of names in Rails???

Thanks for help.

Upvotes: 1

Views: 794

Answers (1)

nheinrich
nheinrich

Reputation: 1841

The filename would be materialtitle.rb and would reside in app/models.

The class name of your model would be would be Materialtitle.

Upvotes: 2

Related Questions