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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:25:49+00:00 2026-05-27T20:25:49+00:00

our site is written using Ruby on Rails. We are using coffeescript & SCSS.

  • 0

our site is written using Ruby on Rails. We are using coffeescript & SCSS. I’m having some problems setting up uniformjs with my site. Here’s a link to uniformjs: http://uniformjs.com/

Our site uses coffee for JS and SCSS for CSS, and I’m having issues setting it all up correctly. Here’s what I’ve done:

  • put uniform.default.css in assets/stylesheets
  • put jquery.uniform.min.js in assets/javascripts

in home.coffee.js, include the line:

$(function(){ $("select, input:checkbox, input:radio, input:file").uniform(); });

I expected that this would all work nicely, since coffee would pull the JS file into application.js, SCSS would pull the CSS file into application.css and the home.coffee.js file has the line to actually make everything uniform.

I’m getting a vague error about a word not being defined. Then I renamed jquery.uniform.min.js to jquery.uniform.min.js.coffee and the uniform.default.css to uniform.default.css.scss.

Now I get an error saying:

Invalid CSS after "...: alpha(opacity": expected comma, was ":0);"
  (in /home/user/Desktop/mysite/app/assets/stylesheets/uniform.default.css.scss)

Any help on getting this setup would be really appreciated. Cheers!

UPDATE so I put the .uniform call in application.js instead of home.js.coffee. That made the bugs go away. However, the styling is still not working correctly. I.e. my text fields still look weird, and the images for the radio buttons aren’t appearing, though I have the image file in assets/images.

Ringo

  • 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-27T20:25:50+00:00Added an answer on May 27, 2026 at 8:25 pm

    For the CSS (with included images) to work properly with the asset pipeline you should either:

    • name your file blah.css.erb and use the asset_path helper
    • name your file with a .scss extension and use image-url() in place of url() and make sure there aren’t any scss errors in the css file

    Hope that helps.

    EDIT: it looks like this is already an issue on Github with Sass throwing an error. Try changing alpha(opacity:0) to alpha(opacity=0) in your uniform.css.scss file.

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

Sidebar

Related Questions

I have written some code which checks a site for broken links using the
For our site, Im using a lot of jQuery - right now Im looking
I tried backing up our site today using the Unix 'cp' command and ended
I've written a site for my summer internship using ASP.NET MVC. The progress is
We're running IIS6 on Windows Server 2003. Our site is written in ASP.NET. We
We have a fairly high volume ASP.Net site written in c# using MS commerce
We have a site which has a number of useful functions written by our
I have written a user control for our SharePoint site that builds an HTML
I have written a HttpModule for our site which generally accepts requests and checks
Our site has multiple wizards where various data is collected over several pages, and

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.