$red not found when precompiling assets #988

Closed
rudf0rd opened this Issue Feb 19, 2012 · 7 comments

2 participants

@rudf0rd

In this edit on line 14, red was changed to $red. When precompiling assets, $red is not defined.

@rudf0rd rudf0rd closed this Feb 19, 2012
@rudf0rd

In config/application.rb, I changed...

config.assets.precompile += %w( rails_admin/rails_admin.css rails_admin/rails_admin.js rails_admin/*/)

to

config.assets.precompile += %w( rails_admin/rails_admin.css rails_admin/rails_admin.js)

and everything went back to working.

@bbenezech
Collaborator

Sounds like a very bad idea, though...

@rudf0rd

Are those variables supposed to be specified by the bootstrap-sass? Not sure why they aren't available when precompiling.

@bbenezech
Collaborator

$red is specified by bootstrap.

My guess is that you're using an evilish require_tree . statement in your application.css.

Can you paste it here?

The pipeline tries to compile non-stand-alone files.

@rudf0rd

application.css:

/*
 * This is a manifest file that'll automatically include all the stylesheets available in this directory
 * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
 * the top of the compiled file, but it's generally better to create a new file per style scope.
 *= require_self
 *= require "style"
 *= require_directory . 
*/
@rudf0rd rudf0rd reopened this Feb 20, 2012
@rudf0rd

As you suspected.. bad idea. Still broken for production.

@rudf0rd

Blah turns out the error being reported is now ckeditor having bad sass markup. Example: something{ filter;: }

Guess you're not allowed to have no parameters. So, looks like the rails_admin stuff is good so far.

@rudf0rd rudf0rd closed this Feb 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment