2016-08-17 141 views
0

xray-railsCtrl鍵 + + X不與軌道4X射線-導軌不與軌道4

工作的Gemfile

group :development, :test do 
    gem 'xray-rails' 
end 

development.rb

工作
config.assets.debug = true 

我捆起它

. 
. 
Using sass-rails 5.0.4 
Using turbolinks 2.5.3 
Using xray-rails 0.1.21 
Bundle complete! 17 Gemfile dependencies, 68 gems now installed. 
Use `bundle show [gemname]` to see where a bundled gem is installed. 

F12檢查在瀏覽器中的元素顯示我

<!--XRAY START 37 /home/sample/app/views/shared/_list.html.haml--> 
<ol> 
    <li> 
    <strong> 
     <a href="#">Link</a> 
    </strong> 
    </li> 
</ol> 
<!--XRAY END 37--> 

注:我使用xray-rails與軌道3.2和它的正常工作

回答

0

添加xray.jsxray.css修復了問題

的application.js

//= require jquery 
//= require xray 

application.css

/* 
*= require bootstrap.min 
*= require xray 
*/ 

然後按下Ctrl鍵++X預期一樣

xray-rails

通常,中間件自動插入它們作爲所述here