Rails& bootstrap模板Less Parse Error

时间:2014-06-19 20:13:20

标签: javascript ruby-on-rails twitter-bootstrap ruby-on-rails-4 less

向rails app添加无引导程序模板时遇到问题。 在 app / assets / stylesheets中删除较少的文件夹后,获取Less :: ParseError .transition未定义知道如何解决此问题?

Rails 4.1

的Gemfile

source 'https://rubygems.org'

    gem 'rails', '4.1.0'
    gem 'bootstrap-sass'
    gem 'less-rails'
    gem 'therubyracer'
    gem 'bootstrap'

    group :development, :test do
      gem 'sqlite3', '1.3.8'
      gem 'rspec-rails', '2.13.1'
      gem "minitest"
      gem 'guard-rspec', '2.5.0'
      gem 'spork-rails', '4.0.0'
      gem 'guard-spork', '1.5.0'
      gem 'childprocess', '0.3.6'
    end

    group :test do
      gem 'selenium-webdriver', '2.35.1'
      gem 'capybara', '2.1.0'
      gem 'growl', '1.0.3'
    end

    gem 'sass-rails'
    gem 'uglifier', '2.1.1'
    gem 'coffee-rails', '4.0.1'
    gem 'jquery-rails', '3.0.4'
    gem 'turbolinks', '1.1.1'
    gem 'jbuilder', '1.0.2'

    group :doc do
      gem 'sdoc', '0.3.20', require: false
    end

    group :production do
      gem 'pg', '0.15.1'
      gem 'rails_12factor', '0.0.2'
    end

的application.js

//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .
//= require jquery
//= require jquery_ujs
//= require bootstrap

application.css.scss

 /*
 *= require_tree .
 *= require_self
 *= require bootstrap
 *= require the-story.less
 *= require config.less
 *= require buttons.less
 *= require bootstrap.less
 */

0 个答案:

没有答案