0

I'm using Rails 4

And refered these solutions by not works for me

ref

Run scaffold by

rails g scaffold Tool::Mvaas::P2pQuery   --no-stylesheets user_id:integer interval:integer

But still generated scaffolds.css.scss for me

   conflict    app/assets/stylesheets/scaffolds.css.scss
  Overwrite /Users/hsu-wei-cheng/workspace/Rails/dqa_dev_server/app/assets/stylesheets/scaffolds.css.scss?
Community
  • 1
  • 1
user3675188
  • 7,271
  • 11
  • 40
  • 76

2 Answers2

3

Update

You can disable scaffold stylesheet placing this code on the file config/initializers/assets.rb: Rails.application.config.generators do |g| g.scaffold_stylesheet false end

1

read this guides chapter "3.3 Configuring Generators".

Place into config/application.rb this code

config.generators do |g|
  g.stylesheets false
end
gotva
  • 5,919
  • 2
  • 25
  • 35