I'm trying to create a new 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With