Permalink
Browse files

Generate scaffold.css to app/assets/stylesheets (next step, SCSSify i…

…t if SCSS is available)
  • Loading branch information...
1 parent 023d4f9 commit 48fb6b338061c80deda92fd935992cee86a3b368 @dhh dhh committed Apr 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/generators/rails/stylesheets/stylesheets_generator.rb
@@ -2,7 +2,7 @@ module Rails
module Generators
class StylesheetsGenerator < Base
def copy_stylesheets_file
- template "scaffold.css", "public/stylesheets/scaffold.css" if behavior == :invoke
+ template "scaffold.css", "app/assets/stylesheets/scaffold.css" if behavior == :invoke
end
end
end

7 comments on commit 48fb6b3

@dcrec1
Contributor
dcrec1 commented on 48fb6b3 Apr 13, 2011

I think this should be app/stylesheets . A lot of people is using it this way because is the default for Compass. Maybe there should be a poll.

@dhh
Member
dhh commented on 48fb6b3 Apr 13, 2011

We're bundling everything under app/assets because we also JavaScript and images to stick there.

@dhh
Member
dhh commented on 48fb6b3 Apr 13, 2011

(You're of course always free to change it to app/stylesheets if you want and configure sprockets to look there. Definitely not hard to do.)

@dcrec1
Contributor
dcrec1 commented on 48fb6b3 Apr 13, 2011

Ok, I'll look into it, because I think that most people also have CoffeScript inside app/coffescripts because of Barista.

@natebird

I think the other libraries will make the change now that Rails has settled on a reasonable folder structure. It makes sense to aggregate them under assets.

@chriseppstein
Contributor

Compass will add support for app/assets/stylesheets. I just filed this issue to make sure we don't forget.

@ooodigi

Speaking of conflicting names ... Asset should be put on the reserved words list for rails.

Please sign in to comment.