我试图为我的Rails应用程序运行Cucumber,并不断得到以下错误:
> superclass mismatch for class Point (TypeError)
这个错误有一个巨大的堆栈跟踪,但是除了缺少的需求之外,它没有指向任何特定的东西。这是痕迹:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I "/Users/rob/.gem/ruby/1.8/gems/cucumber-0.3.102/lib:lib“"/Users/rob/.gem/ruby/1.8/ge
我想做Bootstrap V4.0和更多的组件,实际结果是Bootstraps 3.3.7的组件。当我尝试Gem Update时,我得到的是:
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
server did not return a valid file (http://gems.rubyforge.org/specs.4.8.gz)
我安装了Bootstrap,但我开始使用Bootstrap 3.3.7并更新到4.0。从那以后我就有问题了。这是代码文件中的Gemfile:
source '
试图运行“rails g rspec:install”并继续运行错误:
Could not find xpath-2.0.0 in any of the sources
Run `bundle install` to install missing gems.
我正在运行ruby 2.2.0p0 rails 4.2.0
我试着四处寻找答案,但由于我对红宝石和rails还比较陌生,所以我找不到答案。我尝试了其他线程的一些建议,但都没有结果:
有时我们无法从获得响应,因此它将再次显示错误,请尝试Gemfile.lock安装最新版本(10.0.4)的rake,下一个包更新rake以更新Gemfil
我正在尝试将rails 4.2应用程序升级到5.2.3。
我的系统是MacOS 10.14.6 Mojave。Bundler版本2.0.2
这是我做bundle update后的错误
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
rails (~> 5.2.3) was resolved to 5.2.4.rc1, which depends on
actionpack (= 5.2.4.rc1)
simple_form was r
我刚刚将ActionMailer配置为使用SendGrid,这样我就可以在设计电子邮件时使用它。电子邮件部分工作得很好,但现在我无法完成迁移。我得到的错误是'TypeError: Mail不是一个模块‘,并显示在下面的代码块中。
$ rake db:migrate
rake aborted!
TypeError: Mail is not a module
.../ruby-2.3.4/gems/mail-2.7.0/lib/mail.rb:3:in `<top (required)>'
.../ruby-2.3.4/gems/activesupport-5.0.6/
我只是根据中的说明安装了与rspec一起使用的电子邮件规范。现在,当我尝试运行一个测试时(即使在我的规范中没有使用email-spec的方法),我得到了以下错误:
$ rspec spec
Neither Pony nor ActionMailer appear to be loaded so email-spec is requiring ActionMailer.
WARN: Unresolved specs during Gem::Specification.reset:
launchy (~> 2.1)
builder (~> 3.1)
WARN:
执行第一次RSpec测试并在运行时获得一个错误:
rspec spec/features/list_movies_spec.rb
错误信息:
命令中的/Users/waymond/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.5.1/lib/bundler/runtime.rb:34:in block in setup': You have already activated rspec-core 2.14.7, but your Gemfile requires rspec-core 2.13.1. Prepending包可以解决这个问题。(宝
我一直为activemodel找到不兼容的问题。当前的误差是;
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
mongoid (~> 4.0.0) was resolved to 4.0.0, which depends on
activemodel (~> 4.0)
rails (~> 5.0.0) was resolved to 5.0.0, which depends on
activemodel (
因此,我试图安装回形针,图像魔术和模仿。
我成功地安装了图像。
在安装回形针时,它会将错误循环到ff:
Bundler could not find compatible versions for gem "mimemagic":
In snapshot (Gemfile.lock):
mimemagic (= 0.3.3)
In Gemfile:
rails (~> 5.2.4) was resolved to 5.2.4, which depends on
activestorage (= 5.2.4) was resolved
我刚刚运行了git push origin master,在尝试运行rails s后得到了这个错误
Your Gemfile.lock contains merge conflicts.
Run `git checkout HEAD -- Gemfile.lock` first to get a clean lock.
git checkout HEAD --Gemfile.lock bundle、bundle install和bundle更新都无助于解决这个问题。有人知道该怎么做才能解决这个问题吗?
Gemfile:
source 'https://rubygems.org'
在heroku中运行控制台(heroku run console...)时,我遇到了以下错误。应用程序正在运行,没有问题,但我似乎无法运行控制台,因此在开发过程中,我不会遇到这个问题。
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- test/unit/testcase (LoadError)
from /app/vendor/bundle/ruby/1.9.1/gems
从Rails 4.2.8升级到Rails 5.0.2会导致下面的错误消息。我不确定如何解决依赖关系。ruby版本是2.5.1。我已经能够在Rails 4.2.8上运行这个应用程序和测试套件了,虽然我看到一些低版本carrierwave的过度打印,所以我希望能够升级它,但它需要Rails5。 错误消息 Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
actionpack-action_caching was resolved to 1.2.0, which de
我正在尝试启动一个Rails项目,并试图最初启动服务器,以查看它是否有效。但是,每当我通过在终端中输入rails启动它时,在localhost的浏览器上就会弹出以下错误:3000
Puma caught this error: Error loading the 'postgresql' Active Record adapter. Missing a gem it depends on? can't activate pg (~> 1.1), already activated pg-0.21.0. Make sure all dependencies are
老实说,我不是红宝石开发商。我正在一个红宝石网站上做一些修复工作。它托管在Heroku服务器上。
我所做的更改不涉及添加或删除任何创业板,而只涉及功能更改。
由于下列问题,我无法推动我的改变:
remote: ! A security vulnerability has been detected in your application.
remote: ! To protect your application you must take action. Your application
remote: ! is currently exposing its c
我尝试在Rails 4.0.8中运行新创建的项目,但收到错误消息:
rails s
=> Booting WEBrick
=> Rails 4.0.8 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
/usr/local/lib/ruby/gems/2.4.0/gems/activesupport-4.0.8/lib/active_sup
因此,我正在尝试将一个小项目部署到Heroku,但是当我部署它并尝试运行heroku run rake db:migrate时,它返回给我以下错误:
rake aborted!
Gem::LoadError: Specified 'postgresql' for database adapter, but the gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/app/ve
在将Rails 3.2项目部署到WebLogic10.3时遇到了这个问题,并且正在寻找一个简单的答案。
org.jruby.exceptions.RaiseException: (NameError) ActiveRecord is not missing constant Base!
at RUBY.load_missing_constant(<app_deploy_dir>/<app_name>/mfey8c/war/WEB-INF/gems/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:49
我在Devise + active storage上工作,需要一个方法,它目前只在Rails6版本中可用,所以将Rails5.2升级到了rails 6.0.0.alpha。升级后,我得到了这个。我尝试了许多解决方案,但都不起作用。
Started GET "/admins/sign_in" for 127.0.0.1 at 2018-06-05 08:23:21 +0530
(1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" O
我正在尝试设置一个开发环境来构建一个Shopify应用程序。我正在使用Ruby on Rails,Heroku,Postgre,git来使这一切变得简单。当我将gem shipify_app添加到gem文件中时,我得到了一个activesupport错误。
Bundler could not find compatible versions for gem "activesupport":
在Gemfile中: shopify_app (= 7.2.6)解析到7.2.6,这取决于shopify_api (>= 4.2.2)解析到4.2.2,这取决于活动源解析到2.0.1,
我正在一个新的应用程序上运行我的第一个测试,我得到了这个错误:
/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/
runtime.rb:33:in `block in setup': You have already activated rspec-core
2.14.4, but your Gemfile requires rspec-core 2.13.1. Using bundle exec
may solve this. (Gem::LoadError)
我不知道“激活的rspec 2.14.4”