Other Pages

Expand All

osx_railsinstaller.step

important "If you wrote down **Core Duo** as your processor type in the previous step, **DO NOT** continue with these steps.  Please flag down a volunteer for additional help."

message "These instructions should work on Snow Leopard, Lion, Mountain Lion, and Mavericks."

step "Run RailsInstaller" do

  message <<-MARKDOWN
RailsInstaller includes Rails, Ruby, Git, and SQLite.

Go to <http://railsinstaller.org/>, scroll to the 'Downloads' section, and download the RailsInstaller for your OS.

Click on the downloaded file to run the install wizard.  Click Next at each step to accept the defaults. Enter your full name and email when prompted.
  MARKDOWN
end

step "Open Terminal" do
  message "Look for **Terminal.app** inside Applications -> Utilities."

  message "Add it to your dock; you'll be using it a lot. (To add it to the dock, click and hold the dock icon once Terminal is open. Select options -> keep in dock.)"

  tip "Arrange your windows so that Terminal and your web browser are next to each other. You will want to *read* from your browser and *type into* your terminal *at the same time*."
end

step "Install Sublime Text 2" do
  insert "install_sublime_text_2_for_mac"
end

step "Update Rails" do
  message "Currently, RailsInstaller installs Rails 3.2.x, but we want 4.x. Upgrading Rails is pretty easy:"

  console "gem install rails"

  message "...and you're done. New Rails! Woo."
end

step "Update Rails" do
  message "Currently, RailsInstaller installs Rails 3.2.x, but we want 4.x. Upgrading Rails is pretty easy:"

  console "gem install rails"

  message "...and you're done. New Rails! Woo."
end

verify "successful installation" do
  console "which git"
  result "/usr/bin/git"

  console "which ruby"
  fuzzy_result "/usr/local/rvm/rubies/ruby-1.9.3{FUZZY}-p194{/FUZZY}/bin/ruby"

  console "which rails"
  fuzzy_result "/usr/local/rvm/gems/ruby-1.9.3{FUZZY}-p194{/FUZZY}/bin/rails"

  console "ruby -v"
  fuzzy_result "ruby 1.9.3{FUZZY}p194{/FUZZY}"

  console "rails -v"
  fuzzy_result "Rails 4.0{FUZZY}.x{/FUZZY}"
end

next_step "configure_git"