Search code examples
ruby-on-rails-3herokusasscompass-sassasset-pipeline

undefined method `args=' for [[]]:Sass::Tree::FunctionNode deploying to heroku with rails 3.1


I have an app that I am trying to deploy to Heroku Cedar stack with rails 3.1.0.rc5. Some blogs that I followed implementing the migration to cedar and asset pipeline:

After a git push to heroku, I ran the assets:precompile task:

heroku run rake -t assets:precompile --app myapp

The js files are compiled fine, however Sass bombs compiling application.css.scss with error:

rake aborted!
undefined method `args=' for [[]]:Sass::Tree::FunctionNode
  (in /app/app/assets/stylesheets/application.css.scss)

Full output and stacktrace here: https://gist.github.com/1122683

running bundle exec rake assets:precompile locally executes fine without errors.


Solution

  • It seems to be some kind of incompatibility between Sass 3.1.6 and blueprint; I added

    gem 'sass', '3.1.5'

    to my gemfile and that seems to have cleared it up