我正在尝试使用 rails-composer开始一个项目。在composer安装gems之后,我收到一个错误并且脚本停止。这是错误:
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
composer Running 'after bundler' callbacks.
The template [https://raw.github.com/RailsApps/rails-composer/master/composer.rb] could not be loaded. Error: You have already activated builder 3.0.0, but your Gemfile requires builder 3.0.2. Using bundle exec may solve this.
我不知道如何使用bundle exec 来解决这个问题。
最佳答案
在命令行中执行此操作
gem install builder --version '3.0.2'
然后尝试使用rails-composer
关于ruby-on-rails - 使用rails-composer,根据构建器版本获取错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12323232/