HW 3: Getting started with Rails (Hartl, Chapter 1)
This assignment should take you between two and three hours.
Warning! This assignment relies on Cloud 9. Cloud 9 is in transition. Please use the traditional Cloud 9, if possible, since that does not require you to enter a credit card. But know that you will encounter a very different UI in getting your virtual machine set up. See the notes below for more information.
Your primary task
Do all of the steps and exercises in Chapter 1 of Hartl.
What to submit
Send me answers to the following questions in a message entitled “CSC 321.01 2018S, HW 3: Getting started with Rails (Hartl, Chapter 1) (Name)”. Please replace Name with your name.
gitcommands, if any, did you learn?
You modified a variety of files in this chapter. List the files you changed, describe each change, and explain why Hartl asked you to make the change.
Rails uses the “Model-View-Controller” pattern. Explain that pattern and why we use it.
Some notes on using the “traditional”
You’ll use a different set of steps to log in and create the workspace. When you create the VM, make sure to select the “Rails Tutorial” template. See the screenshots below for details.
a. Start by clicking on “Login for existing c9.io users”.
b. Next, click on the big plus sign to create a new workspace.
c. Make your workspace public and select “Rails Tutorial”.
d. And you’re ready to go.
Your code will be in
In Section 1.3.2, you should use the following commands to start the server.
$ cd ~/workspace/hello_app/ $ rails server -b $IP -p $PORT
In Section 1.5.1, you should find that the Heroku command-line interface is already installed.