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 1048013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:23:28+00:00 2026-05-16T16:23:28+00:00

what is the best/most efficient way of creating dynamic CSS with Rails. I am

  • 0

what is the best/most efficient way of creating dynamic CSS with Rails. I am developing an admin area on a site, where I would like a user to be able to customize the style of their profiles(Colour mostly), which will also be saved.

Would you just embed ruby script in the css file?
Would you need to change the file extension from css?

Thanks.

  • 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-05-16T16:23:29+00:00Added an answer on May 16, 2026 at 4:23 pm

    Currently there is a lot of options to generate dynamic css in rails.

    You can use less css – is an extension to CSS with extra features.

    Gem Less css for rails provides integration for Rails projects using the Less stylesheet language in the asset pipeline.

    If you are using twitter bootstrap you may check this out less rails bootstrap.

    Also you can use one more CSS extension language Sass for generating CSS. Here is a Saas rails gem.

    Check out Dynamic CSS in Rails and Render Rails assets to string blog posts and article about Asset Pipeline

    Related SO questions:

    • Best way to handle dynamic css in a rails app
    • Dynamic CSS in Rails asset pipeline, compile on fly
    • Rails: change CSS property dynamically?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What would be the best and most efficient way to sort a Java Vector
What's the best/most efficient way whether the user of my .NET web application is
I am interested to find out what is the best/fastest (most efficient) way to
Best / Most efficient way of achieving this? DOMDocument? Xpath? Mixture of both? <currencies>
What is the best/most time efficient way to insert 1000 rows into one table
What's the best and most efficient way to get some data from one entity
I am curious as to the best practices/most efficient way to structure my data.
What's the best/most efficient way to extract text set between parenthesis? Say I wanted
I am wondering what the best / most efficient / common way is to
I'm never sure what the best (most efficient) way to select an element is.

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.