无法在任何来源中找到carrierwave-1.0.0
运行
bundle install
以安装缺少的宝石。
但宝石似乎已安装......
In the Gemfile of my rails project :
ruby '2.3.1'
source 'https://rubygems.org'
...
gem 'carrierwave', '~> 1.0'
...
> gem install carrierwave
Successfully installed carrierwave-1.0.0
1 gem installed
> bundle install
...
Using carrierwave 1.0.0
...
Bundle complete! 22 Gemfile dependencies, 78 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
> bundle show carrierwave
/usr/local/opt/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/carrierwave-1.0.0
> rails g uploader Photo
Could not find carrierwave-1.0.0 in any of the sources
Run `bundle install` to install missing gems.
> bundle update
...
Using carrierwave 1.0.0
...
Bundle updated!
> rails g uploader Photo
Could not find carrierwave-1.0.0 in any of the sources
Run `bundle install` to install missing gems.
答案 0 :(得分:0)
在包
的上下文中执行rails g
命令
bundle exec rails g uploader Photo