[Rails] Re: Singular form of model
Soichi Ishida wrote in post #1075000:
> I have a model called, "Give". I understand that it may not be a good
> choice for a model, but couldn't be helped.
You are right that "Give" is a really bad choice for a model name.
Models should be nouns not verbs (i.e. One gives a gift). The model
would be thing given not the act of giving.
That is a really odd inflection bug though. It must be triggering the
wrong inflection rule somehow.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home