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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:09:45+00:00 2026-05-17T00:09:45+00:00

I have recently begun the practice of using <%# Ruby on Rails comments %>

  • 0

I have recently begun the practice of using <%# Ruby on Rails comments %> in my html.erb files, as these do not display in the source code that is then viewable by a user.

Is there a way of adding comments to .css files that keeps them private from the eyes of devilish onlookers?

  • 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-17T00:09:46+00:00Added an answer on May 17, 2026 at 12:09 am

    As @Eimantas already said: it’s not a good practice to send unminified version of JS/CSS files in production (you will get bad mark in YSlow for that).

    There is a nice gem: http://github.com/thumblemonks/smurf

    And it works like a charm: all you need is to mention it in your gem file (Rails 3)

    gem "smurf"
    

    and that’s it! Well, that’s it if you use :cache => … in your stylesheet_link_tag:

    stylesheet_link_tag "foo", "bar", :cache => "public.css"
    

    It intercepts standard Rails behavior that saves concatenated files to disk and compress them just before.

    And to mention the obvious – it will compress the file only in production mode as the :cache option works only if cacheing is enabled.

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

Sidebar

Related Questions

I have recently begun the process of trying to learn Ruby/Rails and have been
I have recently begun using Scala. I've written a DSL in it which can
I have recently begun writing unit tests (using GoogleTest ) for a C++ project.
I've recently begun a fairly small 2D project using SFML and TinyXML and have
I usually script/program using python but have recently begun programming with JavaScript and have
I have recently begun learning the Win32 API using this tutorial: http://www.winprog.org/tutorial/ (though I'm
Stackoverflowers! I've recently begun dabbling in Ruby, and I have a few questions. First
I have recently begun using coderush. One thing that annoys me is that the
I have only recently begun programming in Python (with previous Ruby experience). I am
I have recently begun delving into the world that is database programming with C++

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.