Skip to content
This repository

Rails 3.1 generator for stylesheets: error with namespaces #1934

Closed
dmonopoly opened this Issue July 01, 2011 · 1 comment

2 participants

David Zhang Andrew White
David Zhang

I ran a generator to create the superadmin/organizations_controller.

Naturally, stylesheet generation occurred, and I was pleased to see the assets/stylesheets/superadmin/organizations.css.scss. However, the next time I ran "rails server" I found that there was an error in my css and all my styling on the page vanished.

The generator created the following, which is invalid:

// Place all the styles related to the superadmin/organizations controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

body.superadmin/organizations {
  // Place scoped styles here
}

I just changed the / (slash) to a _ (underscore) to resolve the problem. I thought I should let someone here know.

Andrew White
Owner

This is generated by sass-rails - can you open a ticket there, thanks!

Andrew White pixeltrix closed this July 01, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.