不知道如何构建任务 'action text:install'
Don't know how to build task 'action text:install'
在我的 Rails 6 应用程序中,我尝试安装 action_text:
rails action_text:install
但我得到:
Don't know how to build task 'action_text:install'
我的 rails 6 应用是用以下方法构建的:
rails new keeper --skip-test --skip-bundle --database=postgresql --skip-turbolinks --skip-active-storage
config/application.rb
require_relative 'boot'
require_relative 'app_config'
require_relative 'spider_options'
require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "active_storage/engine"
# require "action_mailbox/engine"
# require "action_view/railtie"
require "action_cable/engine"
require "sprockets/railtie"
# require "rails/test_unit/railtie"
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
知道为什么会这样吗?
提前致谢
当我将 application.rb 中的所有 require 语句替换为:
require 'rails/all'
bin/rails action_text:install
工作正常
在我的 Rails 6 应用程序中,我尝试安装 action_text:
rails action_text:install
但我得到:
Don't know how to build task 'action_text:install'
我的 rails 6 应用是用以下方法构建的:
rails new keeper --skip-test --skip-bundle --database=postgresql --skip-turbolinks --skip-active-storage
config/application.rb
require_relative 'boot'
require_relative 'app_config'
require_relative 'spider_options'
require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "active_storage/engine"
# require "action_mailbox/engine"
# require "action_view/railtie"
require "action_cable/engine"
require "sprockets/railtie"
# require "rails/test_unit/railtie"
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
知道为什么会这样吗?
提前致谢
当我将 application.rb 中的所有 require 语句替换为:
require 'rails/all'
bin/rails action_text:install
工作正常