To Projects

IT 231 -- Project 5

Online Survey

  1. Create a Rails project named Proj5Smith (replace Smith with your last name.)
     
  2. Generate a controller named OnlineSurvey with two views named questions and results. The question view inputs the demographic data and survey question answers. The results view repeats back the demographic data and survey results, then thanks the user for participating.
     
  3. Generate a model (not a scaffold) named SurveyRecord that contains the demographic data and survey answers.
     
  4. Here are some more detailed specifications:
     
    1. Modify the OnlineQuiz and CreditCard Examples to create an online survey. Use the Rails FormHelper methods to generate the form.
       
    2. Ask the user for at least four items of demographic data. Include at least one dropdown menu to collect demographic data.
       
    3. Include at least five survey questions with at least four possible answers each.
       
    4. Items 2 and 3 mean that you have at least nine pieces of input data, so create a model with at least nine fields.
       
    5. The survey questions should be interesting and coherent. Important:   You must implement an online survey, not a quiz.
       
    6. Include at least one image to make your views more interesting.
       
    7. Include a layout page that contains the parts common to the questions page and the results page.
       
    8. Include a CSS file that sets the styles for the pages in your project.
       
    9. All colors set by the CSS file must set with hex color codes. At a minimum set the background and text colors for the pages in your site.
       
    10. Clean up your indentation in the controller, view, and layout files. Up to 10 points will be deducted if the code in the controller is not properly indented.
       
  5. Grading Criteria: Functionality: 30%; Indentation of Ruby Code in Controller: 10%; Content (is survey coherent and interesting): 20%; Styles and Layout: 20%; Use of hex color codes in CSS file: 10%; Zipped and Submitted Correctly: 10%.