Reputation: 7409
I'm using Rails 4
And refered these solutions by not works for me
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?
Upvotes: 0
Views: 790
Reputation: 31
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
Upvotes: 3
Reputation: 5998
read this guides chapter "3.3 Configuring Generators".
Place into config/application.rb
this code
config.generators do |g|
g.stylesheets false
end
Upvotes: 1