Modular Rails: The complete Guide to Modular Rails Applications 筆記

c3tc3tc3t發表於2018-01-04

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 修改如下

1 require “samurai/core”

SamuraiCRM/engines/core/samurai_core.gemspec 新增

  s.add_dependency 'jquery-rails' 

SamuraiCRM/engines/core/lib/samurai/core.rb 新增

1 require 'jquery-rails'

 

相關文章