错误的URI - CkEditor和Ruby on Rails

时间:2017-01-02 21:10:04

标签: ruby-on-rails ckeditor

我回到了一个旧项目,想要启动服务器并查看它的外观。我开始收到这些错误:

bad URI(is not URI?): file-digest:///.../app/assets/config/ckeditor

我还要将每个图像链接从资产更改为CDN的链接,所以我做了。但随后出现了相同的错误:

<%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload', debug: false %>

可能发生了什么?

我安装了gem CKEditor所以我可以在我的网站上发布博客文章,但是大概一个月前我将网站上传到heroku服务器时没有问题,一切都运行正常。什么可能导致错误的URI错误?

以下与CKEditor相关的任何代码:

应用/配置/ application.rb中

module App
  class Application < Rails::Application
    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration should go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded.
    config.middleware.use Rack::Deflater
    config.i18n.available_locales = [:pl, :en]
    config.i18n.default_locale = :pl

    config.assets.precompile += Ckeditor.assets
    config.assets.precompile += %w( ckeditor/* )
    config.autoload_paths += %W(#{config.root}/app/models/ckeditor)
  end
end

应用/配置/初始化/ ckeditor.rb

# Use this hook to configure ckeditor
Ckeditor.setup do |config|

  require "ckeditor/orm/active_record"

end

0 个答案:

没有答案