LoginSignup
0

More than 5 years have passed since last update.

Railsでジェネレート時に不要なファイルを生成しない

Last updated at Posted at 2019-02-12

config/initializers/generators.rb

Rails.application.config.generators do |g|
  # ヘルパーを生成しない
  g.helper false
  # CSS, JavaScriptファイルを生成しない
  g.assets false
  # config/routes.rbを変更しない
  g.skip_routes true
  # テストスクリプトを生成しない
  g.test_framework false
end

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0