2014-09-25 75 views
0

我已經購買了wrapbootstrap模板,現在我有問題將它應用到我的項目在Ruby on Rails。所有的JS和CSS文件,我插入/供應商/資產和/app/assets/stylesheets/appplication.css我已經插入該行Rails wrapbootstrap模板少解析錯誤

*= require_tree ../../../vendor/assets/stylesheets/. 

同我在/ app /資產/ JavaScript的做/application.js

*= require_tree ../../../vendor/assets/javascripts/. 

我的Gemfile是

gem 'rails', '4.1.0' 
gem 'mysql2' 
gem 'table_print' 
gem 'devise' 

gem 'sass-rails', '~> 4.0.3' 

gem 'uglifier', '>= 1.3.0' 

gem 'coffee-rails', '~> 4.0.0' 

gem 'jquery-rails' 

gem 'turbolinks' 

gem 'jbuilder', '~> 2.0' 
gem 'sdoc', '~> 0.4.0',   group: :doc 

gem 'therubyracer' 
gem 'less-rails' 
gem 'twitter-bootstrap-rails' 

gem 'jquery-ui-rails' 
gem 'less-rails-bootstrap', '~> 3.2.0' 

gem 'tzinfo-data', platforms: [:mingw, :mswin] 

最後我的家#指標得到一個 少:: ParseError

可變@使-導航欄-下拉菜單未定義 (在/home/james/Desktop/SP2/frontend_v2/vendor/assets/stylesheets/less/ace-nav.less)

http://i.imgur.com/8q8oh25.png

感謝您的幫助

回答

0

這是我的工作application.css

*= require ace/bootstrap/bootstrap 
*= require ace/ace 
*= require_self 

*請注意,我刪除require tree .