Skip to content

Instantly share code, notes, and snippets.

@eclectic-coding
Forked from AshikNesin/rails-skip.md
Created November 19, 2019 14:16
Show Gist options
  • Save eclectic-coding/9af5fe5ca18b17b3bd5c72372828a1d8 to your computer and use it in GitHub Desktop.
Save eclectic-coding/9af5fe5ca18b17b3bd5c72372828a1d8 to your computer and use it in GitHub Desktop.
Rails generator controller without tests, assets & helpers

Configuring application.rb

To turn off without having to add options:

# application.rb
config.generators.assets = false
config.generators.helper = false

While Generating Controller

Try using --no- followed by optionname:

rails generate controller home index --no-helper --no-assets --no-controller-specs --no-view-specs

via StackOverflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment