【问题标题】:undefined method `args=' for [[]]:Sass::Tree::FunctionNode deploying to heroku with rails 3.1[[]]:Sass::Tree::FunctionNode 的未定义方法 `args=' 使用 rails 3.1 部署到 heroku
【发布时间】:2011-10-19 05:58:24
【问题描述】:

我有一个应用程序,我正在尝试使用 rails 3.1.0.rc5 部署到 Heroku Cedar 堆栈。 我关注的一些博客实现了向 cedar 和资产管道的迁移:

在 git push 到 heroku 之后,我运行 assets:precompile 任务:

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

js 文件编译正常,但是 Sass 编译 application.css.scss 时出错:

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

此处的完整输出和堆栈跟踪:https://gist.github.com/1122683

在本地运行 bundle exec rake assets:precompile 可以正常执行而不会出错。

【问题讨论】:

    标签: ruby-on-rails-3 heroku sass compass-sass asset-pipeline


    【解决方案1】:

    这似乎是 Sass 3.1.6 和蓝图之间的某种不兼容;我加了

    gem 'sass', '3.1.5'

    到我的 gemfile,这似乎已经清除了它

    【讨论】:

    • @DucDIgital 如果您使用 bundler,则无需卸载以前版本的 sass。
    猜你喜欢
    • 2011-12-07
    • 2011-09-07
    • 1970-01-01
    • 1970-01-01
    • 2013-08-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多