I recently wanted to start styling a repo on my PC and wanted to use SASS.
WORD OF CAUTION: I am using Windows 7 and actual results may vary.
Little did I know what I was in for when trying to deal with Ruby on a PC.
Warning: You need to have Ruby and Sass installed and in your PATH for this task to work.
Seemed straight forward enough and my favorite search engine was indicating there were quite a few other people that were running into the problem – needing to add to the PATH.
Some explanations seem to overly complicate matters, and very simply you need to:
1) Open your System Settings so you can edit your “Environment Variables”
– if you don’t know what that means, click on your start button and enter “environment variables” in the search bar that says ‘Search programs and files’. There is a very high possibility that even before you finish typing “environment” a result will appear that says ‘Edit the system environment variables’
2) After opening the Environment Variables window select the “PATH” variable and click Edit.
3) Include the path to where your Gems are stored (semicolon separated).
For me, the path was C:\Ruby200-x64\lib\ruby\gems\2.0.0\gems so the path above would then be:
And with that, you are now ready to start utilizing all the Ruby Gems you can possibly imagine!