捆绑安装是绿色的,但是当我运行“rake”时,我得到以下信息:
rake aborted! undefined method `static_root=' for
#<Sprockets::Environment:0x16b6b78> ... Tasks: TOP => default => spec
=> db:test:prepare => db:abort_if_pending_migrations => environment
(See full trace by running task with --trace)
如果我将“gem 'sprockets', '2.0.0.beta.15'” 添加到 Gemfile 并重新捆绑和重新耙。一切正常。