title: Traceback (most recent call last): ruby: No such file or directory -- script/generate (LoadError)
body: <p>I'm following code from a book called: "RailsSpace: Building a social networking site with ruby on rails" by Michael Hartl. The book is available free for download here is the link so you can follow along with me: <a href="https://pdfs.semanticscholar.org/ca98/3b5098cd5957dc1842bb4bf3175406624bca.pdf?_ga=2.121598472.1814901715.1569094472-1963651489.1569094472" rel="nofollow noreferrer">https://pdfs.semanticscholar.org/ca98/3b5098cd5957dc1842bb4bf3175406624bca.pdf?_ga=2.121598472.1814901715.1569094472-1963651489.1569094472</a>. </p>
  
  <p>The code starts on page 70 asking me to enter this in my command prompt:</p>
  
  <pre><code>ruby script/generate model User
  </code></pre>
  
  <p>When I enter that code into the command prompt I get this:</p>
  
  <pre><code>Traceback (most recent call last): ruby: No such file or directory --script/generate (LoadError).
  </code></pre>
  
  <p>The book was published around 2007 so its probably a little out of date with the commands I'm not sure. There maybe a more modern way of doing it, I'm not sure. I don't know if anything is deprecated or not. Please help. Thanks a lot.</p>