Skip to content

Instantly share code, notes, and snippets.

@petitJAM
Last active March 16, 2018 17:02
Show Gist options
  • Save petitJAM/2b97b33fc49d181b840fb6c03debdb07 to your computer and use it in GitHub Desktop.
Save petitJAM/2b97b33fc49d181b840fb6c03debdb07 to your computer and use it in GitHub Desktop.
Rails generate api controller
rails g controller api/v6/controller_name create --no-helper --skip-template-engine --skip-routes
mkdir spec/requests/api/v6/controller_name
mv spec/controllers/api/v6/controller_name.rb spec/requests/api/v6/controller_name/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment