Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Current versions of Rails are designed to work (for development) without needing an AMP -style stack, by using SQLite and a small Ruby Web server, so if you will only be doing Rails development you don't need to set up a stack - you can just type "rails" and it will work.</p> <p><strong>BUT</strong> the versions of RubyGems and Rails shipped with Leopard are now outdated, though, so you'll need to upgrade these before you go too far. There's an article that I wrote on setting up a Mac for development <a href="http://www.stuartellis.eu/articles/mac-setup/" rel="nofollow noreferrer">here</a>, but the minimum commands go like this:</p> <ol> <li>sudo gem install rubygems-update</li> <li>sudo update_rubygems</li> <li>sudo update_rubygems (yep, twice)</li> <li>sudo gem update --system</li> </ol> <p>These get RubyGems up to the current release, so that you can upgrade Rails safely. To do that, type:</p> <pre><code>gem update rails </code></pre> <p>The last command doesn't have sudo, because if you omit it, current versions of RubyGems will install a clean copy of the gems into your home directory, leaving the system versions untouched.</p> <p>Finally, amend the .profile file in your home directory, so that the line with PATH in it says:</p> <pre><code>export PATH=$HOME/.gem/ruby/1.8/bin:$PATH </code></pre> <p>Close up any terminal windows for this to take effect. The utilities provided by the gem packages in your home directory will now have precedence over the system versions.</p> <p>This means that you can type "rails" and the latest version will run, but you haven't messed with any of the software provided by Apple (apart from the system copy of RubyGems).</p> <p>To upgrade your private copy of Rails whenever a new version comes along in future it's just this again:</p> <pre><code>gem update rails </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload