For the individual assignments in this class, we will be developing a web-based application that helps us keep track of people’s birthdays. Each assignment will make the appliation more complicated and useful.
For this assignment, you must create a very simple rails application. This application will ask users to input information about a birthday, and then create a dynamic webpage that prints out that birthday information.
Due: January 29, 2014 at 1pm
Store your assignment 1 application in git, in a repository named
<username>/assign1. Don’t forget to
git commit and
git push when you are done, so that the newest version is in the repository. note: you create this repository with
new_repo assign1 command.
Create a simple rails application using the rails new command.
Modify your new rails application to create an action and a view page that contains a simple form for inputting birthday information. In particular, the form should ask for:
Modify your rails application to create another controller action. (Don’t forget to add a route for it.) This action should receive the birthday form and fill in @variables with the information from the form. Also, create a second view page that displays this information in a format that is easy to read. Once you have done this, you should have a working pair of pages – one that allows you to submit birthday information, and the other displays the submitted information. Make sure that these two pages work together as expected.
Also, at the bottom of the second page (the page that displays birthday information), create a link back to the first page.
When writing code, you should always document what the code does, and why. There are two pieces to the documentation:
In addition, for this assignment I would like you to create a file in the doc/ directory that describes the workflow of your application. This file should be named workflow.txt and it should be a plain text file. Basically, it should contain:
You are not required to do any of these extras, but including one or more of them in your assignment will lead to extra credit.
At 1pm on the due date, I will collect the assignments out of the git repository
<username>/assign1. Be sure that
your assignment is in the repository, in the correct directory, and don’t forget to
git commit and
git push. Make
sure the application runs on the server as part of my grading will be to run the program and enter birthday information
Wednesday, January 29, 2014 at 1pm
(of course, fill in your username).
cloneit to get a new copy of it. You just have to give it a different directory name to put the second copy in. Try this command:
git clone email@example.com:<username>/assign1 assign1-check
This will put a new copy of your repository into the
assign1-check directory. Then you can
cd into that directory,
and verify your code is there and works correctly.