Modular Rails: The complete Guide to Modular Rails Applications 笔记

时间:2025-01-25 23:06:56

fix

SamuraiCRM/engines/core/test/dummy/config/routes 修改如下

Rails.application.routes.draw do
mount Samurai::Core::Engine => "/core"
end

SamuraiCRM/engines/core/test/dummy/config/application.rb 修改如下

 require “samurai/core”

SamuraiCRM/engines/core/samurai_core.gemspec 添加

s.add_dependency 'jquery-rails'

SamuraiCRM/engines/core/lib/samurai/core.rb 添加

 require 'jquery-rails'