Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Blue theme fails with spree 1.2.2 #10

Open
rubyfreak opened this issue Dec 3, 2012 · 6 comments
Open

Blue theme fails with spree 1.2.2 #10

rubyfreak opened this issue Dec 3, 2012 · 6 comments

Comments

@rubyfreak
Copy link

Ubuntu 12.04
ruby 1.9.3. 327
rails 3.2.9

Steps to reproduce
add to gem file (at bottom)
gem 'spree_blue_theme', :git => 'git://github.com/spree/spree_blue_theme.git'
run bundle
rails s
go to localhost:3000
F5

get this (I have done this about 5 times, same result):

ActionView::MissingTemplate in Spree/home#index

Showing /home/tw/.rvm/gems/ruby-1.9.3-p327/gems/spree_core-1.2.2/app/views/spree/shared/_header.html.erb where line #3 raised:

Missing partial spree/shared/store_menu with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee, :rabl]}. Searched in:

  • "/home/tw/Ruby_Rails/Rails_3_projects/spree_store3/app/views"
  • "/home/tw/.rvm/gems/ruby-1.9.3-p327/bundler/gems/spree_auth_devise-c7e4705f0f4d/app/views"
  • "/home/tw/.rvm/gems/ruby-1.9.3-p327/gems/devise-2.0.4/app/views"
  • "/home/tw/.rvm/gems/ruby-1.9.3-p327/gems/spree_skrill-1.0.2/app/views"
  • "/home/tw/.rvm/gems/ruby-1.9.3-p327/gems/spree_promo-1.2.2/app/views"
  • "/home/tw/.rvm/gems/ruby-1.9.3-p327/gems/spree_dash-1.2.2/app/views"
  • "/home/tw/.rvm/gems/ruby-1.9.3-p327/gems/spree_api-1.2.2/app/views"
  • "/home/tw/.rvm/gems/ruby-1.9.3-p327/gems/spree_core-1.2.2/app/views"
  • "/home/tw/.rvm/gems/ruby-1.9.3-p327/gems/kaminari-0.13.0/app/views"
    Extracted source (around line sass-rails not load in heroku #3):

1:


2: <%= logo %>
3: <%= render :partial => 'spree/shared/nav_bar' %>
4: <%= render :partial => 'spree/shared/main_nav_bar' if store_menu? %>
5:
Trace of template inclusion: /home/tw/.rvm/gems/ruby-1.9.3-p327/gems/spree_core-1.2.2/app/views/spree/layouts/spree_application.html.erb

Rails.root: /home/tw/Ruby_Rails/Rails_3_projects/spree_store3

Application Trace | Framework Trace | Full Trace

@Showtimes
Copy link

Yea I got a similar issue. I tried putting: *= require store/screen in the store/all.css manifest and that didnt work. I tried to precompile the assets and that didnt work. Any ideas?

@rubyfreak
Copy link
Author

Yeah, Spend about a week rewriting all the CSS for Spree.
Spree is beautiful out of the box, but ANY customization is really difficult.
I would think there would be an admin area that has some editable properties like:
Background color, background image, theme, etc.

@TylerRick
Copy link

I ran into this problem as well when I upgraded to Spree 1.x.

It looks like this override in spree_blue_theme:

app/overrides/add_store_menu_to_top_header.rb
Deface::Override.new(:virtual_path => 'spree/shared/_nav_bar',
                     :name => 'add_store_menu_to_top_header',
                     :insert_after => 'li#search-bar',
                     :partial => 'spree/shared/store_menu')

Is breaking due to that partial being removed from core in this commit:

Author: Kurtis Rainbolt-Greene <[email protected]>
Date:   Fri Apr 6 11:22:23 2012 -0500

    Refactor layout templates

    Merges #1361
---
 core/app/views/spree/shared/_store_menu.html.erb |    2 --
 1 file changed, 2 deletions(-)

diff --git core/app/views/spree/shared/_store_menu.html.erb core/app/views/spree/shared/_store_menu.html.erb
deleted file mode 100644
index 2150de7..0000000
--- core/app/views/spree/shared/_store_menu.html.erb
+++ /dev/null
@@ -1,2 +0,0 @@
-<li id="home-link" data-hook><%= link_to t(:home), root_path %></li>
-<li id="link-to-cart" data-hook><%= link_to_cart %></li>

I wish the people who maintained core would also maintain spree_blue_theme/spree_blue_sass_theme to keep them working together...

@TylerRick
Copy link

Duplicate of #7

@silversurfer888
Copy link

So now that Spree is at 2.1.5 -- how do I get this blue theme working? I just can't it seems

@JDutil
Copy link
Member

JDutil commented Mar 2, 2014

This theme is no longer maintained I would not recommend using it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants