spree-contrib / spree_rdr_theme

WIP - everything might change.
BSD 3-Clause "New" or "Revised" License
51 stars 33 forks source link

Theme stylesheets not loading #8

Closed wemerson closed 12 years ago

wemerson commented 12 years ago

When I create a new project with sample data and

add the spree_rdr_theme to the gemfile, run bundle install, run rails g spree_rdr_theme:install, start the server, the css files from the theme are not loaded and the pages are not formatted.

The css files in spree_rdr_theme/assets/stylesheets/store are not compiled when first page is loaded.

In spree_rdr_theme/lib/generators/spree_rdr_theme/install/install_generator.rb, there is a js section but no css section.

Adding the following fixed the problem:

def add_stylesheets
        inject_into_file "app/assets/stylesheets/store/all.css", " *= require store/rdr\n", :before => /\*\//, :verbose => true
end

Then you need to run rake assets:clean then restart the server and on first page load, the css files will be loaded.

I'll add a pull request. This fixes the formatting. There are still problems with taxonomies.