Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Rails 8 Course - Beginner to Intermediate!
Preview
Video Player
00:00
00:00
00:00
- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Learn how to install Rails on a macOS computer.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
While I cannot show you how to
directly install it on macOS,
0:00
I can show you this great
article by Gorails.
0:03
Now on this article it has all of
the macOS variants and versions.
0:06
So you can just select your one and
then follow the steps and
0:10
then you will have Rails installed.
0:13
If that is too much trouble, you can
also just look at a YouTube tutorial,
0:15
I'm sure there are many and
I might link on the description too.
0:18
First you just need to install Homebrew,
then install Ruby,
0:21
then you're gonna be using a Ruby version
manager called MYS et cetera, et cetera.
0:24
It's not that difficult and it should only
take about 30 minutes as this guide says.
0:28
So, if you're on macOS,
install rails using this article,
0:32
set up in the description, create a new
application called Twitter Clone and
0:34
then you'll be up to scratch
with the Windows tutorial.
0:37
Okay, so now to get started and
to put our server in the browser so
0:40
we can actually view our application,
we need to go to the terminal.
0:42
So open up your terminal and
0:45
then go to the directory which
in which your Rails app is.
0:47
So, I'm in cd rails and
in rails I called it cd twitterclone.
0:49
So do cd twitterclone,
cd stands for change directory.
0:54
Once you're in that folder, you can
actually run the command called rails s,
0:57
which starts the server.
1:01
And then if we follow the link
called this one http://127.0.0.1.
1:02
If we follow that one or
if we Control left click on it,
1:07
it should open it up in the browser.
1:09
And as you can see,
that means everything is working and
1:11
that's the Rails home screen.
1:13
So Rails version 8, and
Rack version 3.1.8 and Ruby version 3.4.1.
1:14
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up