ruby-on-rails - 如何修复窗户上的红宝石?
问题描述
一切工作正常,然后我安装了 devise gem 来进行登录和电子邮件确认功能,之后我生成了一个带有“索引”操作的控制器,它工作正常。然后我尝试访问http://localhost:3000/welcome/index然后我得到了这个错误:
Started GET "/welcome/index" for 127.0.0.1 at 2020-06-01 16:56:34 +0200
Processing by WelcomeController#index as HTML
Rendering welcome/index.html.erb within layouts/application
Rendered welcome/index.html.erb within layouts/application (Duration: 0.3ms | Allocations: 84)
Process finished with exit code -1073740940 (0xC0000374)
创建新项目时,我也会遇到同样的错误。我试图从系统中删除 ruby 并重新安装它也没有帮助
我正在使用 ruby 版本:ruby 2.6.6p146(2020-03-31 修订版 67876)[x64-mingw32] rails 版本:Rails 6.0.3.1 和 rubyMine
有谁知道出了什么问题?任何帮助,将不胜感激
宝石文件:
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.6.6'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.3'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.4'
# Use Puma as the app server
gem 'puma', '~> 4.1'
# Use SCSS for stylesheets
gem 'sass-rails', '>= 6'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker', '~> 4.0'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.7'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Active Storage variant
# gem 'image_processing', '~> 1.2'
# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.2', require: false
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end
group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 3.3.0'
end
group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 2.15'
gem 'selenium-webdriver'
# Easy installation and use of web drivers to run system tests with browsers
gem 'webdrivers'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
解决方案
推荐阅读
- python - 计算可以包含在由全局和单行尺度上的字符串列表组成的 DataFrame 列中的集合单词的出现次数
- python - 通过python从旋转的PDF中提取文本
- python - 无法在 tkinter python 中使用循环和字典创建检查按钮?
- azure-devops - 将 Cypress 测试集成到 Azure Devops 拉取请求中
- python - 创建一个引用其值的 Pandas 列
- java - reactx 中的 NoSuchElementException 异常处理
- r - 如何将 R 中的 Sys.Date 从 UTC 转换为 GMT
- c++ - 为什么我从 4 中减去 19 得到的返回值为 1
- python - 在python中共享一个文件夹?
- c# - c# 使用不正确的时区格式解析日期