Closed fastsyrup closed 10 years ago
Well, maybe you did something wrong ? Paste your Gemfile content, we'll take a look ... bootflat-rails gem works fine for me.
Hello, here it is:
source "http://rubygems.org"
gem "rails", "4.0.0"
gem "mongoid" , git: 'https://github.com/mongoid/mongoid.git'
gem "coffee-rails", "~> 4.0.0"
gem "jquery-rails"
gem "turbolinks"
gem "jbuilder", "~> 1.2"
gem 'nested_form'
gem 'rubber', github: "johnnyshields/rubber"
gem 'newrelic_rpm'
gem 'unf'
gem 'jquery-turbolinks'
group :assets do
gem "sass-rails" , '~> 4.0.0'
gem "bootstrap-sass"
gem 'bootflat-rails'
gem "uglifier", ">= 1.3.0"
gem "therubyracer", platforms: :ruby
gem 'execjs'
end
group :development do
gem "guard-rspec"
gem "pry"
gem "quiet_assets"
gem "thin"
end
group :development, :test do
#gem "rspec-rails"
gem "factory_girl_rails"
end
group :test do
gem "mongoid-rspec"
gem "ffaker"
gem "simplecov", require: false
gem "database_cleaner"
gem "rb-inotify", "~> 0.9"
end
#gem "font-awesome-sass-rails"
gem "simple_form", github: "plataformatec/simple_form"
gem "devise", "~> 3.0.0"
gem "cancan"
gem "omniauth"
gem "omniauth-facebook"
gem "omniauth-twitter"
gem "hashugar", github: "alex-klepa/hashugar"
gem 'open4'
And here's application.js:
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery.turbolinks
//= require jquery_ujs
//= require jquery_nested_form
//= require turbolinks
//= require bootstrap
//= require icheck.min
//= require_tree .
And here's application.css.scss:
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require bootflat
*= require_self
*= require_tree .
*/
Try to replace gem 'sass-rails' ....
by gem 'sass-rails', :git => 'https://github.com/zakelfassi/sass-rails'
ok, tried that, then I get after running bunder install & update in the console:
[rake --tasks] rake aborted!
LoadError: cannot load such file -- bootflat-rails/sass_functions
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bootflat-rails-0.1.0/lib/bootflat-rails.rb:4:in `require'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bootflat-rails-0.1.0/lib/bootflat-rails.rb:4:in `load!'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bootflat-rails-0.1.0/lib/bootflat-rails.rb:59:in `<top (required)>'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
C:/src/bott.ly/config/application.rb:11:in `<top (required)>'
C:/src/bott.ly/Rakefile:4:in `require'
C:/src/bott.ly/Rakefile:4:in `<top (required)>'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/rake_module.rb:28:in `load'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/rake_module.rb:28:in `load_rakefile'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/application.rb:677:in `raw_load_rakefile'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/application.rb:94:in `block in load_rakefile'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/application.rb:176:in `standard_exception_handling'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/application.rb:93:in `load_rakefile'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/application.rb:77:in `block in run'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/application.rb:176:in `standard_exception_handling'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/application.rb:75:in `run'
C:/src/bott.ly/bin/rake:4:in `<main>'
The webapp shows:
Sprockets::FileNotFound in Home#index
Showing C:/src/bott.ly/app/views/layouts/application.html.erb where line #7 raised:
couldn't find file 'bootflat'
(in C:/src/bott.ly/app/assets/stylesheets/application.css.scss:11)
Extracted source (around line #7):
4
5
6
7
8
9
10
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><%= content_for?(:title) ? yield(:title) : "Bott.ly" %></title>
<meta name="description" content="<%= content_for?(:description) ? yield(:description) : "Bootstrap App" %>">
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
<%= csrf_meta_tags %>
<%= yield(:head) %>
Try to move gem 'bootflat-rails'
outside of assets block, then run bundle update bootflat-rails
(you're running 0.1.0 ; and the curent version is 0.1.8).
strange, I did a bundle update, that should have updatet it all, right?
Nevertheless, still getting this error in the console:
[rake --tasks] rake aborted!
LoadError: cannot load such file -- bootflat-rails/sass_functions
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bootflat-rails-0.1.0/lib/bootflat-rails.rb:4:in `require'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bootflat-rails-0.1.0/lib/bootflat-rails.rb:4:in `load!'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bootflat-rails-0.1.0/lib/bootflat-rails.rb:59:in `<top (required)>'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
C:/src/bott.ly/config/application.rb:11:in `<top (required)>'
C:/src/bott.ly/Rakefile:4:in `require'
C:/src/bott.ly/Rakefile:4:in `<top (required)>'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/rake_module.rb:28:in `load'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/rake_module.rb:28:in `load_rakefile'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/application.rb:677:in `raw_load_rakefile'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/application.rb:94:in `block in load_rakefile'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/application.rb:176:in `standard_exception_handling'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/application.rb:93:in `load_rakefile'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/application.rb:77:in `block in run'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/application.rb:176:in `standard_exception_handling'
C:/Rails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.2.2/lib/rake/application.rb:75:in `run'
C:/src/bott.ly/bin/rake:4:in `<main>'
which leads to the same error as before "Sprockets::FileNotFound in Home#index"...couldn't find file 'bootflat'
You're still using 0.1.0
... Try to force the use of 0.1.8 by 'gem bootflat-rails', '~> 0.1.8'
Hi, generated a totally fresh rails app, inserted your gem -> didn't work, same problem... I think somehow a sass dependency forces it down to 0.10.0 and there's other problems... Trying to add the bootflat css by hand now without gem...
Thanks for your time!!!
Cheers
Actually, I didn't notice having gem "sass-rails" , '~> 4.0.0'
& gem "bootstrap-sass"
in your Gemfile. You should instead be using gem "sass-rails", github: 'zakelfassi/sass-rails'
and remove gem "bootstrap-sass"
.
sorry was a bit fast, tried it with a completely new rails app, works fine...
Removed the gem "boostrap-sass" but still doesn't work...
ok finally fixed it, uninstalled all unneeded bootstrap and sass related gems. Only kept sass-rails und bootflat..
Now it works :)
Thx for the help anyways!
Hi,
Installed your gem as required. Now getting the following error. Any ideas?
Thx and Cheers - Mike