[Rails] Improved the next steps to perform after installing compass so that it mentions registering the compass gem.
This commit is contained in:
parent
e796511658
commit
732fc8f042
@ -38,11 +38,22 @@ module Compass
|
|||||||
if options[:create]
|
if options[:create]
|
||||||
puts <<-NEXTSTEPS
|
puts <<-NEXTSTEPS
|
||||||
|
|
||||||
Congratulations! Your rails project has been configured to use Compass.
|
Congratulations! Your rails project has been configured to use Compass.
|
||||||
Sass will automatically compile your stylesheets during the next
|
Just one more thing left to do: Register the compass gem.
|
||||||
page request and keep them up to date when they change.
|
|
||||||
Make sure you restart your server!
|
In Rails 2.2 & 2.3, add the following to your evironment.rb:
|
||||||
NEXTSTEPS
|
|
||||||
|
config.gem "compass", :version => ">= #{Compass::VERSION}"
|
||||||
|
|
||||||
|
In Rails 3, add the following to your Gemfile:
|
||||||
|
|
||||||
|
gem "compass", ">= #{Compass::VERSION}"
|
||||||
|
|
||||||
|
Then, make sure you restart your server.
|
||||||
|
|
||||||
|
Sass will automatically compile your stylesheets during the next
|
||||||
|
page request and keep them up to date when they change.
|
||||||
|
NEXTSTEPS
|
||||||
end
|
end
|
||||||
if manifest.has_stylesheet?
|
if manifest.has_stylesheet?
|
||||||
puts "\nNext add these lines to the head of your layouts:\n\n"
|
puts "\nNext add these lines to the head of your layouts:\n\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user