简体   繁体   中英

How to install and use a gem inside an rails engine

I use refinery-cms to create a webshop in ruby-on-rails and refinery is largely based on engines. I have therefore made a "webshop" engine with all my models, and i want to install the gem "activeadmin" inside this engine, so when i run "rails g active_admin:install" it will create the model and config files inside my engine dir. I can only get it to install in the root app

Hope you can help me

/Johan

解决此问题的方法只是将CD插入引擎文件夹,然后从那里运行generator命令。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM