zakelfassi / bootflat-rails Goto Github PK
View Code? Open in Web Editor NEWBootflat on Rails
Bootflat on Rails
the vendor/images/check_flat/default.png
isn't pushed to assets pipeline on production.
Hi,
I'm setting up a new project and it seems that Bootflat Rails isn't compatible here. Seems bootstrap-rails is dependent on jquery-rails ~3.1, which depends on railties < 5.0 (which won't work for rails 5.
When running bundle install
, I'm getting the following error:
Bundler could not find compatible versions for gem "railties":
In Gemfile:
jquery-rails (~> 3.1) was resolved to 3.1.0, which depends on
railties (< 5.0, >= 3.0)
rails (~> 5.0.1) was resolved to 5.0.1, which depends on
railties (= 5.0.1)
My Gemfile is as follows:
gem 'rails', '~> 5.0.1'
gem 'puma', '~> 3.0'
gem 'sass-rails', '~> 5.0'
gem 'bootstrap-sass', '3.3.6'
gem 'bootflat-rails', '0.1.8'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.2'
gem 'jquery-rails', '~>3.1'
gem 'turbolinks', '~> 5'
gem 'jbuilder', '~> 2.5'
Googling hasn't found anyone that resolved it...anyone managed to work around it?
Thanks,
Dan
Probably needs the checkbox images included in /images
Hi,
Installed your gem as required. Now getting the following error. Any ideas?
Thx and Cheers - Mike
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) %>
Instead of using compiled boostrap.min files.
I am suffering from some error with missing requirements on rails 4.1.6 and ruby 2.1.3.
Error:
vendor/bundle/gems/bootflat-rails-0.1.0/lib/bootflat-rails.rb:4:in `require': cannot load such file -- bootflat-rails/sass_functions (LoadError)
from /Users/christophseydel/Development/projekte/lituro/vendor/bundle/gems/bootflat-rails-0.1.0/lib/bootflat-rails.rb:4:in `load!'
from /Users/christophseydel/Development/projekte/lituro/vendor/bundle/gems/bootflat-rails-0.1.0/lib/bootflat-rails.rb:59:in `<top (required)>'
from /Users/christophseydel/.rvm/gems/ruby-2.1.3@global/gems/bundler-1.7.4/lib/bundler/runtime.rb:76:in `require'
from /Users/christophseydel/.rvm/gems/ruby-2.1.3@global/gems/bundler-1.7.4/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /Users/christophseydel/.rvm/gems/ruby-2.1.3@global/gems/bundler-1.7.4/lib/bundler/runtime.rb:72:in `each'
from /Users/christophseydel/.rvm/gems/ruby-2.1.3@global/gems/bundler-1.7.4/lib/bundler/runtime.rb:72:in `block in require'
from /Users/christophseydel/.rvm/gems/ruby-2.1.3@global/gems/bundler-1.7.4/lib/bundler/runtime.rb:61:in `each'
from /Users/christophseydel/.rvm/gems/ruby-2.1.3@global/gems/bundler-1.7.4/lib/bundler/runtime.rb:61:in `require'
from /Users/christophseydel/.rvm/gems/ruby-2.1.3@global/gems/bundler-1.7.4/lib/bundler.rb:133:in `require'
from /Users/christophseydel/Development/projekte/lituro/config/application.rb:7:in `<top (required)>'
from /Users/christophseydel/Development/projekte/lituro/vendor/bundle/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:79:in `require'
from /Users/christophseydel/Development/projekte/lituro/vendor/bundle/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:79:in `block in server'
from /Users/christophseydel/Development/projekte/lituro/vendor/bundle/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /Users/christophseydel/Development/projekte/lituro/vendor/bundle/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:76:in `server'
from /Users/christophseydel/Development/projekte/lituro/vendor/bundle/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /Users/christophseydel/Development/projekte/lituro/vendor/bundle/gems/railties-4.1.6/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:8:in `require'
from bin/rails:8:in `<main>'
Gemfile.lock
GIT
remote: https://github.com/zakelfassi/sass-rails
revision: 0d4013878dd18440c98da4ffa62208e7700f2477
specs:
sass-rails (4.0.2)
railties (>= 4.0.0, < 5.0)
sass (~> 3.3.4)
sprockets (~> 2.8, <= 2.11.0)
sprockets-rails (~> 2.0.0)
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.1.6)
actionpack (= 4.1.6)
actionview (= 4.1.6)
mail (~> 2.5, >= 2.5.4)
actionpack (4.1.6)
actionview (= 4.1.6)
activesupport (= 4.1.6)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
actionview (4.1.6)
activesupport (= 4.1.6)
builder (~> 3.1)
erubis (~> 2.7.0)
activemodel (4.1.6)
activesupport (= 4.1.6)
builder (~> 3.1)
activerecord (4.1.6)
activemodel (= 4.1.6)
activesupport (= 4.1.6)
arel (~> 5.0.0)
activesupport (4.1.6)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
arel (5.0.1.20140414130214)
autoprefixer-rails (3.1.2.20141016)
execjs
bootflat-rails (0.1.0)
sass (~> 3.2)
bootstrap-sass (3.2.0.2)
sass (~> 3.2)
builder (3.2.2)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.3.0)
coffee-script-source
execjs
coffee-script-source (1.8.0)
erubis (2.7.0)
execjs (2.2.2)
hike (1.2.3)
i18n (0.6.11)
jbuilder (2.2.3)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jquery-rails (3.1.2)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.1)
libv8 (3.16.14.7)
mail (2.6.1)
mime-types (>= 1.16, < 3)
mime-types (2.4.3)
minitest (5.4.2)
multi_json (1.10.1)
pg (0.17.1)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.1.6)
actionmailer (= 4.1.6)
actionpack (= 4.1.6)
actionview (= 4.1.6)
activemodel (= 4.1.6)
activerecord (= 4.1.6)
activesupport (= 4.1.6)
bundler (>= 1.3.0, < 2.0)
railties (= 4.1.6)
sprockets-rails (~> 2.0)
railties (4.1.6)
actionpack (= 4.1.6)
activesupport (= 4.1.6)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.3.2)
ref (1.0.5)
sass (3.3.14)
sprockets (2.11.0)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.0.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
therubyracer (0.12.1)
libv8 (~> 3.16.14.0)
ref
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
turbolinks (2.4.0)
coffee-rails
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.5.3)
execjs (>= 0.3.0)
json (>= 1.8.0)
PLATFORMS
ruby
DEPENDENCIES
autoprefixer-rails
bootflat-rails
bootstrap-sass
coffee-rails (~> 4.0.0)
jbuilder (~> 2.0)
jquery-rails
pg
rails (= 4.1.6)
sass-rails!
therubyracer
turbolinks
uglifier (>= 1.3.0)
I would be glad if you can advice some help.
Best,
Christoph
Failed to load resource: the server responded with a status of 404 (Not Found) http://bootflat-rails.herokuapp.com/fonts/glyphicons-halflings-regular.woff
Failed to load resource: the server responded with a status of 404 (Not Found) http://bootflat-rails.herokuapp.com/fonts/glyphicons-halflings-regular.ttf
Failed to load resource: the server responded with a status of 404 (Not Found) http://bootflat-rails.herokuapp.com/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular
iCheck images doesn't go through rake assets:precompile
Invalid CSS after "... true ": expected selector or at-rule, was "!global;"
(in /Users/eddifisher/sites/anjlab/simbi/app/assets/stylesheets/application.css.sass:8)
gem 'rails', '4.1.1'
gem 'pg'
gem 'sass-rails', '~> 4.0.3'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
Fix Glyphicons.
Or use existing gems
I solved it by copying bootflat_icheck.js
and icheck.min.js
to vendor/assets/javascript
directory. Not so sure if its the best practice.
I have installed the gem as instructed in the documentation but when I ran my application the glyphicons assets would not load.
I ended up solving the issue by including the gem 'bootstrap-sass'
in my application.
Then adding the following to app/assets/stylesheets/application.css.scss
:
@import "bootstrap-sprockets";
@import "bootflat";
For reference I'm using Rails 4.0.2
Correct Gemfile:
# Use Bootstrap to display Glyphicons correctly
gem 'bootstrap-sass'
# Use SCSS for stylesheets
gem 'sass-rails', github: 'zakelfassi/sass-rails'
# Use BootFlat for Front-end Flat UI based on Bootstrap
gem 'bootflat-rails', github: 'zakelfassi/Bootflat-Rails'
Hi,
Just tried to install your gem. Getting the following error. Kinda new to rails (first project..)...
C:\Rails\Ruby1.9.3\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/src/bott.ly/bin/bundle install
Updating https://github.com/zakelfassi/sass-rails
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "sass":
In Gemfile:
sass-rails (>= 0) x86-mingw32 depends on
sass (~> 3.3.4) x86-mingw32
sass (3.2.14)
Here's my gemfile:
source "http://rubygems.org"
gem "rails", "4.0.0"
gem "mongoid"
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 "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 "sass-rails", :git => 'https://github.com/zakelfassi/sass-rails'
gem "bootstrap-sass"
gem 'bootflat-rails'
#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'
Thanks for any help!
Cheers
Additional verification needed if there is no regression after c0c379b
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.