application.css文件中的scss gem错误ruby 2.1.5

时间:2014-12-17 00:09:48

标签: css ruby-on-rails ruby gem sass

我在application.css.scss文件中收到错误。

Showing C:/Users/Vipvex/Documents/UCode/ucode/app/views/layouts/lms.html.erb where line #12 raised:

wrong number of arguments (2 for 1)
  (in C:/Users/Vipvex/Documents/UCode/ucode/app/assets/stylesheets/application.css.scss)
Extracted source (around line #12):              

       <title> UCode <% if content_for? :title %> - <%= yield :title %> <% elsif content_for? :heading %> - <%= yield :heading %> <% end %> </title>

       <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
       <link type="text/css" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/cupertino/jquery-ui.css" rel="stylesheet"/>

       <%= jquery_include_tag :google %>

我认为scss gem可能存在问题。 有一点是,当我从文件中删除.scss时,它运行正常。

的Gemfile:

source 'http://rubygems.org'
ruby '2.1.5'

gem 'rails', '~> 4.1'

group :development do
  gem 'sqlite3'
end
group :production do
  gem 'pg'
  gem 'rails_12factor'
end

#gem 'compass', '~> 1.0'
gem 'sass'#  , '3.4.5'
gem 'sass-rails'#, '~> 5.0.0.beta1'
gem 'coffee-rails'

gem 'acts_as_list'
gem 'jquery-ui-rails'
gem 'slick_rails'
gem 'uglifier'
gem 'foundation-rails'
gem 'compass-rails'
gem 'jquery-rails'
gem 'jquery-rails-cdn'
gem 'turbolinks'
gem 'high_voltage'
gem 'devise'
gem 'cancan'
gem 'rolify'
gem 'liquid'
gem 'paperclip'
gem 'aws-sdk'
gem 'nokogiri', '1.6.3.1'
gem 'jbuilder'
gem 'redcarpet'
gem 'kaminari'
gem 'ruby-saml-idp'


gem 'jquery-slick-rails'
gem 'validates_email_format_of'
gem 'tzinfo-data'


# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

我将不胜感激任何帮助!

0 个答案:

没有答案