Generate a new controller file in an existing Sails app.
sails generate controller user
To report a bug, click here.
This is a built-in generator exposed by the
sails
command-line interface. It is installed automatically when you runnpm install -g sails
. For customization options, see Extending Sails > Generators.
Please observe the guidelines and conventions laid out in the Sails project contribution guide when opening issues or submitting pull requests.
The Sails framework is free and open-source under the MIT License.