Reputation: 35
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
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