I'm trying to create a new开发者_JAVA技巧 model like this:
rails generate model Tags name:string
When I run this, I get the following error:
base.rb:266:in `const_defined?': wrong constant name tags (NameError)
Any thoughts? I tried changing Tags to ReportTags and it still gave me the same error.
Model names are singular - try
rails generate model Tag name:string
精彩评论