我在Rails文檔中遵循Getting Started with Engines,並且我在engines目錄中設置了api引擎。根據段落6.6 Other Gem Dependencies一個應該定義engines/my_api/my_api.gemspec文件的gem依賴,這是相當多我所做的: s.add_dependency "responders", "2.0"
加入 `gem 'my_
我有一些軌道引擎 '核心',我有: # core/app/models/core/concerns/user_helper.rb
module Core
module UserHelper
extend ActiveSupport::Concern
included do
# some methods
end
end
end
# core/app