[Rails] When installing into a new rails project, set the http paths correctly for stylesheets and javascripts.

This commit is contained in:
Chris Eppstein 2009-07-07 11:18:58 -07:00
parent b7a9772efb
commit 94e9696b30

View File

@ -9,6 +9,8 @@ module Compass
:css_dir => (css_dir || prompt_css_dir),
:images_dir => default_images_dir,
:javascripts_dir => default_javascripts_dir,
:http_stylesheets_path => default_http_stylesheets_path,
:http_javascripts_path => default_http_javascripts_path,
:http_images_path => default_http_images_path
}
end
@ -55,6 +57,14 @@ NEXTSTEPS
"/images"
end
def default_http_javascripts_path
"/javascripts"
end
def default_http_stylesheets_path
"/stylesheets"
end
def prompt_sass_dir
recommended_location = separate('app/stylesheets')
default_location = separate('public/stylesheets/sass')