Rails 3.1 generator for stylesheets: error with namespaces #1934

dmonopoly opened this Issue Jul 2, 2011 · 1 comment


None yet
2 participants

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.


pixeltrix commented Jul 2, 2011

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

@pixeltrix pixeltrix closed this Jul 2, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment