To Lecture Notes

IT 231 -- 8/8/12


Review Questions

  1. What is the Rails FormTagHelper method used to create for each of these HTML items?
     

    Ans: The FormTagHelper methods are form_tag, text_field_tag, and submit_tag, respectively.
     
  2. Find the mistakes if the desired action is play_song:
  3. Find the mistakes in this controller statement:
  4. What is the hex color code for each of these colors:
     

    Ans: See this chart of Standard HTML Color Names and Corresponding Hex Color Codes.
     
  5. Convert the color code to hex.
  6. Convert the color code to decimal.
  7. Which is the larger hex value in each pair?
  8. Add more blue to the color in Problem 6.
     
    Ans: For example, change the blue color component ef to f4.

 

Project 6

 

FormHelper vs. FormTagHelper Methods

 

Examples of Forms Using FormHelper Methods

 

The Range Class

 

Migrations

 

Another Project with a One-to-many Relationship