spree/spree_rdr_theme — Issue #8: Theme stylesheets not loading
Author: wemerson
Created: 2012-02-29 01:59:23+00:00
State: open

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:

```ruby
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.