user3675188
user3675188

Reputation: 7409

Stop scaffold generates scafolds.css.scss

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?

Upvotes: 0

Views: 790

Answers (2)

T. Tadashi S. Neves
T. Tadashi S. Neves

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

gotva
gotva

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

Related Questions