Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8635367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:57:28+00:00 2026-06-12T09:57:28+00:00

Each time I do a rails generate scaffold Name , the app/assets/stylesheets/scaffolds.css.scss file is

  • 0

Each time I do a rails generate scaffold Name, the app/assets/stylesheets/scaffolds.css.scss file is overwritten (well I get prompted to overwrite it). I don’t want this, so of course I could just type n when prompted to overwrite, but I want to know the proper way to handle styling of scaffolds.

I could just write the css in a css file loaded later to override the necessary css in the scaffolds.css.scss file. But not only is that ugly (have unnecessary/unused css being generated and loaded every request), but I don’t know how to not change the foreground and background colors upon hovering over links (from scaffolds.css.scss):

a {
  &:hover {
    color: #fff;
    background-color: #000;
  }
}

What’s the proper way to remove something like the above from scaffolds.css.scss?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:57:29+00:00Added an answer on June 12, 2026 at 9:57 am

    Look at this StackOverflow answer

    rails g scaffold MyModel --no-stylesheets

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Do the initializers in a Rails app run each time someone visits the site?
In Rails, I'm coding a series of controllers to generate XML. Each time I'm
My Rails application makes use of Time.zone so that each user can set their
Each time I make changes to XML file and press run button, It generates
I have one windows form file that each time I open it in Visual
ok here's some code: prompt>rails my_app prompt>cd my_app prompt>script/generate scaffold service_type title:string time_allotment:integer prompt>rake
When using Ruby on Rails or other framework, a lot of time we generate
I have a rails 3 form that has 100+ questions. Each time a radio
Each time I start my Rails 2.3.8 webapp under RubyMine, it's using a different
To generate offline reports, my Rails app needs to download charts from the Google

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.