serpentem/theoricus — pull request #27 by marcelinhov2 (2013-05-24 19:56:37+00:00)
Title: Error generating View

# Help Screen
According the help screen view's folders should have the same name as controllers, it is, it must to be specified in the plural.

````bash
• Generating models, views and controllers
the -g model
the -g view /
the -g controller
the -g mvc
* Models and views names are singular, controllers are plural
````

# Generating mvc
So when I ran this code:

````bash
the -n mvc users
````

I got the following output.

````
marcelo:test marcelo$ the -g mvc users
Created /Users/marcelo/Desktop/temp/test/src/app/models/user.coffee
Created /Users/marcelo/Desktop/temp/test/src/app/views/user/index.coffee
Created /Users/marcelo/Desktop/temp/test/src/templates/user/index.jade
Created /Users/marcelo/Desktop/temp/test/src/styles/user/index.styl
Created /Users/marcelo/Desktop/temp/test/src/app/controllers/users.coffee
````

# Generating view

Fine, but when I try to generate a single view for this previously scaffolded section using this line:

````
the -n view users/success
````

I got:

````
marcelo:test marcelo$ the -g view users/success
Created /Users/marcelo/Desktop/temp/test/src/app/views/users/success.coffee
Created /Users/marcelo/Desktop/temp/test/src/templates/users/index.jade
Created /Users/marcelo/Desktop/temp/test/src/styles/users/index.styl
````

# Conclusion

This way, I see that the generators has some inconsistency dealing with inflections (pluralization and singularization) depending on what you generate.