Giter Site home page Giter Site logo

spree_bootstrap's Introduction

SpreeBootstrap

NOTICE: This repo was built for Bootstrap 2 & Spree 2.x, and will not be updated for Bootstrap 3 & Spree 3. There is a newer more promising alternative being developed for the latest versions of Spree and Bootstrap 3 located at https://github.com/200Creative/spree_bootstrap_frontend please check it out if your looking for a newer version!

This project aims to replace the spree_frontend's use of the skeleton css framework in favor of Twitter Bootstrap.

Build Status Code Climate Coverage Status Dependency Status

Installation

Add spree_bootstrap to your Gemfile:

gem 'spree_bootstrap', github: 'jdutil/spree_bootstrap'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_bootstrap:install

Testing

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

bundle
bundle exec rake test_app
bundle exec rspec spec

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'spree_bootstrap/factories'

Copyright (c) 2013 Jeff Dutil, released under the New BSD License

spree_bootstrap's People

Contributors

jdutil avatar jfields avatar peterberkenbosch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spree_bootstrap's Issues

cannot run bundle

i have a issue when i try to run bundle command to install spree_bootstrap gem, it throws:

$ bundle
Fetching git://github.com/jdutil/spree_bootstrap.git
remote: Counting objects: 321, done.
remote: Compressing objects: 100% (216/216), done.
remote: Total 321 (delta 93), reused 277 (delta 63)
Receiving objects: 100% (321/321), 76.39 KiB, done.
Resolving deltas: 100% (93/93), done.
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "spree_core":
In Gemfile:
spree_bootstrap (>= 0) ruby depends on
spree_core (~> 2.0.0) ruby

spree_auth_devise (>= 0) ruby depends on
  spree_core (2.1.0.beta)

Gemfile

source 'https://rubygems.org'

gem 'rails', '4.0.0'

group :development, :test do
gem 'sqlite3'
end

group :production do
gem 'pg'
end

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

gem 'uglifier', '>= 1.3.0'

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

gem 'jquery-rails'

gem 'turbolinks'

gem 'jbuilder', '~> 1.2'

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

gem 'spree', github: 'spree/spree'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise'
gem 'spree_bootstrap', github: 'jdutil/spree_bootstrap'

ArgumentError in Spree/home#index

Hi guys!
After I installed the spree_bootstrap in my app, I runned the server and when a access local host, this error happens. Someone knows why this error happens?

ArgumentError in Spree/home#index

Showing /Users/kaique/.rvm/gems/ruby-2.0.0-p0/bundler/gems/spree_bootstrap-009c4d3b571d/app/views/spree/shared/_head.html.erb where line #9 raised:

wrong number of arguments (3 for 1)
(in /Users/kaique/sites/zoom-spree/app/assets/javascripts/store/all.js:13)
Extracted source (around line #9):

6: <%= favicon_link_tag image_path('favicon.ico') %>
7: <%= stylesheet_link_tag 'store/all', :media => 'screen' %>
8: <%= csrf_meta_tags %>
9: <%= javascript_include_tag 'store/all' %>
10:

What need I to do to resolve it?
Thanks.

undefined method 'image'

Hello,
Just installed a fresh spree 2.1 on rails 4 and tried adding spree_bootstrap

getting this error:

Showing /home/slava/.rvm/gems/ruby-2.0.0-p247/bundler/gems/spree_bootstrap-0feefbb4296d/app/views/spree/products/_image.html.erb where line #1 raised:

undefined local variable or method `image' for #<#Class:0x00000006db9df8:0x00000006b64760>

Extracted source (around line #1):

<% if image %>

cant run with edge spree

Bundler could not find compatible versions for gem "spree_core":
In Gemfile:
spree_bootstrap (>= 0) ruby depends on
spree_core (~> 2.0.0) ruby

spree (>= 0) ruby depends on
  spree_core (2.1.0.beta)

undefined local variable or method canonical_tag

I just installed the gem and received this error when visiting the home page.

undefined local variable or method `canonical_tag' for #<#<Class:0x007faca16c3220>:0x007faca1780370>

spree_bootstrap

Using the following:

gem 'rails', '3.2.14'
ruby '2.0.0'
gem 'spree', '2.0.3'
gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git', :branch => '2-0-stable'
gem 'spree_auth_devise', :git => 'https://github.com/spree/spree_auth_devise.git', :branch => '2-0-stable'
gem 'spree_bootstrap', github: 'jdutil/spree_bootstrap'
gem 'jquery-rails', '~> 2.0'

log

NameError - undefined local variable or method `canonical_tag' for #<#<Class:0x007faca16c3220>:0x007faca381b3c8>:
  spree_core (2.0.3) app/helpers/spree/base_helper.rb:154:in `method_missing'
   () Users/aj/.rvm/gems/ruby-2.0.0-p247@colorblind/bundler/gems/spree_bootstrap-920b86673af1/app/views/spree/shared/_head.html.erb:6:in `_eb86a31399f21cb25053f2297c31c13c'

Consider using bootstrap-sass-rails

Between bootstrap-sass, which I see is being used currently, and bootstrap-sass-rails, I prefer the latter, as it's targeted at rails compatibility rather than just sass conversion. I believe it's already Rails 4 compatible, whereas people using bootstrap-sass always seem to have upgrade issues, and it makes doing stuff like using font-awesome instead of the bootstrap icons really easy. Just my $0.02!

Css files isnt precompiled - production

Hi.

Im trying to run my Spree app in production mode.

Running on ruby 1.9.3-p448 - rails 3.2.14

source 'https://rubygems.org'

gem 'rails', '3.2.14'

gem 'jquery-rails'
gem 'spree', github: 'spree/spree', branch: '2-0-stable'
gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git'
gem 'spree_auth_devise', :git => 'https://github.com/spree/spree_auth_devise.git', :branch => '2-0-stable'
gem 'spree_i18n', github: 'spree/spree_i18n'
#gem 'spree_editor', :github => 'spree/spree_editor'
gem 'spree_bootstrap', github: 'jdutil/spree_bootstrap'
gem 'spree_contact_us'

gem 'capistrano'
gem 'thin'
gem 'therubyracer'
gem 'activemerchant'

group :production do
  gem 'mysql2'
end

group :development do
  gem 'sqlite3'
end

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails'
  gem 'coffee-rails'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'
end
ActionView::Template::Error (bootstrap.min.css isn't precompiled):                                                                                                                                                                  
    2: <html lang="en-US">                                                                                                                                                                                                          
    3: <head>                                                                                                                                                                                                                       
    4: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">                                                                                                                                                          
    5: <%= stylesheet_link_tag 'bootstrap.min.css' %><%= stylesheet_link_tag 'styles.css' %><meta charset="UTF-8">                                                                                                                  
    6: <title>Absolut-VVS</title>                                                                                                                                                                                                   
    7: </head>                                                                                                                                                                                                                      
    8: <body>                                                                                                                                                                                                                       
  app/views/spree/layouts/spree_application.html.erb:5:in `_f34bfd5decfe6799286fbb54baf96fc4'  

Override the spree layout with a custom, just plain HTML for now.

All though the site is fully functional in development mode.

So, when I try to do "rake assets:precompile", it takes huge amount of time, and then fails with:

action@znow-2270:~/workspace/projects/absolutvvs$ rake assets:precompile                                                                                                                                                            
/home/action/.rvm/rubies/ruby-1.9.3-p448/bin/ruby /home/action/.rvm/gems/ruby-1.9.3-p448@global/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets                                                             
rake aborted!                                                                                                                                                                                                                       
Command failed with status (): [/home/action/.rvm/rubies/ruby-1.9.3-p448/b...]                                                                                                                                                      
/home/action/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.14/lib/sprockets/assets.rake:12:in `ruby_rake_task'                                                                                                                      
/home/action/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.14/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'                                                                                                          
/home/action/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.14/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'                                                                                                
/home/action/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `eval'                                                                                                                                                         
/home/action/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `<main>'                                                                                                                                                       
Tasks: TOP => assets:precompile                                                                                                                                                                                                     
(See full trace by running task with --trace)

In production.rb -

If I change:

config.assets.compile = false to true

Then the assets will load, and the page seems to be showing fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.