In order to generate only models, views and controllers using the scaffold generator in Rails add following configurations in your application.rb file

  # Disable assets, helper and specs generation during scaffold
  config.generators do |g|
    g.assets false
    g.helper false
    g.jbuilder false
    g.stylesheets false
    g.test_framework nil
  end