Rails I
3 credits
RoR application is generated and complete | 10 |
Application responds to /messages and /messages/index URLs without error | 30 |
Both valid URLs results in a valid HTML5 page being displayed | 15 |
HTML5 page displayed for both valid URLs contains the required text | 30 |
Test written and passing | 15 |
Total | 100 pts |
To create a simple RoR application
For this lab, like with most first labs, you will need to create a simple 'Hello, World!' application using Rails. Your application should allow for the user to visit the URLs /messages
and /messages/index
and should in response display a well formed and valid HTML5 page that shows the words "Hello, World!" as a level one header.
You will also need to create at least one test to confirm that your application performs as required. Your test(s) will need to contain assertions confirming that both of the required url's produce a successful response and that the response contains the required text as a level one header.
To submit this lab (and all future labs) start by clearing your applications log files and temp files by running the commands rails log:clear and rails tmp:clear from the command line while in your applications root directory.
Once the log files have been cleared you can zip you entire project folder and submit it for your solution.