2017-07-30 77 views
0

我在Rails 5应用程序中实现了Gentelella Admin Theme。已经有他们的自述文件中提到的示例Gentelella Rails 5应用程序,但它还没有SmartWizard。但是,原来的主题已经嵌入其中。我仍然想使用它,但我不能这样做。这是我试过了没有:在Rails应用程序中安装SmartWizard

  1. 安装的SmartWizard使用YARN NPM库。
  2. 更新我的application.js和application.scss
  3. 增加node_modules资产路径assets.rb

这是我最后不得不(裁剪图像): enter image description here

然而,我想是here

使用Rails 5.0.4

回答

0

你需要INI t向导

$(document).ready(function(){ 
    $('#YOUR_WIZARD_BLOCK_ID').smartWizard(); 
})