ruby-on-rails – 尝试加载gem’rail-api’时出错. (捆扎机:: Ge
发布时间:2020-12-17 02:56:19 所属栏目:百科 来源:网络整理
导读:我正在使用Rails 5.0.0.beta3并创建rails-api.当我跑 rails-api generate scaffold user email:string password:string auth_token:string 它显示错误 .rvm/gems/ruby-2.2.3/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels)
我正在使用Rails 5.0.0.beta3并创建rails-api.当我跑
rails-api generate scaffold user email:string password:string auth_token:string 它显示错误 .rvm/gems/ruby-2.2.3/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'rails-api'. (Bundler::GemRequireError) from /home/ahsanul/.rvm/gems/ruby-2.2.3/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require' from /home/ahsanul/.rvm/gems/ruby-2.2.3/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each' from /home/ahsanul/.rvm/gems/ruby-2.2.3/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require' from /home/ahsanul/.rvm/gems/ruby-2.2.3/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each' from /home/ahsanul/.rvm/gems/ruby-2.2.3/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require' from /home/ahsanul/.rvm/gems/ruby-2.2.3/gems/bundler-1.11.2/lib/bundler.rb:99:in `require' from /home/ahsanul/Documents/rails-api/my_blog/config/application.rb:7:in `<top (required)>' from /home/ahsanul/.rvm/gems/ruby-2.2.3/gems/spring-1.7.1/lib/spring/application.rb:82:in `require' from /home/ahsanul/.rvm/gems/ruby-2.2.3/gems/spring-1.7.1/lib/spring/application.rb:82:in `preload' from /home/ahsanul/.rvm/gems/ruby-2.2.3/gems/spring-1.7.1/lib/spring/application.rb:143:in `serve' from /home/ahsanul/.rvm/gems/ruby-2.2.3/gems/spring-1.7.1/lib/spring/application.rb:131:in `block in run' from /home/ahsanul/.rvm/gems/ruby-2.2.3/gems/spring-1.7.1/lib/spring/application.rb:125:in `loop' from /home/ahsanul/.rvm/gems/ruby-2.2.3/gems/spring-1.7.1/lib/spring/application.rb:125:in `run' from /home/ahsanul/.rvm/gems/ruby-2.2.3/gems/spring-1.7.1/lib/spring/application/boot.rb:19:in `<top (required)>' from /home/ahsanul/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' from /home/ahsanul/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' from -e:1:in `<main>' 我该如何解决这个问题? 解决方法
您不需要在Rails 5应用程序的Gemfile中包含rails-api gem.它已经合并到Rails 5中.
Reference (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- haskell – 依赖键入’ZipVector’应用程序
- 并发 – 什么是Swift相当于Objective-C的“@synchronized”
- IE下报dojo找不到,Firefox却没有
- ruby – 在markdown文件中编辑YAML Frontmatter
- ruby – 如何在所有Zookeeper连接上强制使用SASL
- database – Oracle中的按位异或
- c – gcc的-Wconversion与使用比int短的复合赋值(=等)不兼容
- SSH依赖包介绍
- ios – 崩溃日志不象征系统库armv7s
- ActionScript,Flash,Flash/Flex Builder,FlashPlayer,A