title: Ruby, how to set GEM_PATH, for Rails project on hostmonster?
body: <p>I am new to ruby and having a hard time setting up my gems. Could someone please help me understand how this path works in <strong>environment.rb</strong></p>
  
  <p>Some Background Info:</p>
  
  <p>I have my rails app installed on hostmonster and I am trying to run SASS using SHELL. I have no local copy of my app. When I run the SASS command I get <strong><em>-bash: sass: command not found</em></strong>. Which leads me to believe my gem path is wrong. The problem though is that  i don't really understand  how the path works.</p>
  
  <p><strong>I am confused about this line in particular...</strong></p>
  
  <pre><code>home = File.expand_path("/home/#{ENV['USER']}")    
  ENV['GEM_PATH'] = "#{home}/ruby/gems:/usr/lib64/ruby/gems/1.8"
  </code></pre>
  
  <p><strong>NOTE:</strong> This is the default path which was set when I installed my Rails app from the Cpanel.</p>
  
  <p><strong>Some things I don't understand...</strong></p>
  
  <ol>
  <li>What is the purpose of the semicolon? </li>
  <li>For <code>#{home}</code> , am I suppose to replace that with my
  home directory?</li>
  <li>Where would usr/lib64 come from? I don't see that directory. I am
  assuming I have to create it.</li>
  </ol>
  
  <p><strong>ALSO:</strong>
  This is what hostmonster tells me to do (which I have done already)...</p>
  
  <p>Using File Manager in your cPanel make a copy of the <strong>.bashrc file</strong> in
  your root directory, name it <strong>.bashrc.bak</strong>. Now edit the .bashrc file
  and add the following to the end of the file: </p>
  
  <ul>
  <li>export GEM_HOME=$HOME/ruby/gems</li>
  <li>export GEM_PATH=$GEM_HOME:/usr/lib/ruby/gems/1.8</li>
  <li>export GEM_CACHE=$GEM_HOME/cache</li>
  <li>export PATH=$PATH:$HOME/ruby/gems/bin</li>
  </ul>
  
  <p>When using a rails application, make sure you add the following to your ./config/environment.rb: 
  ENV['GEM_PATH']'/path/to/your/home/ruby/gems:/usr/lib/ruby/gems/1.8'</p>
  
  <p><em>I apologize if this is a "noobish" questions, I have never used Ruby so I am still learning how it all works. I have ruby, rails, and sass all installed. I can run my project in the browser. i just can't get my gems to work. Thanks in advance.</em></p>