To Examples

LoadGradeData Directions

 

  1. Create a new rails project named LoadGradeData.
     
  2. Navigate to the LoadGradeData folder.
     
  3. Generate a scaffold named GradeRecord with these fields:
     
    Field Datatype
    stud_id integer
    last_name string
    first_name string
    course_number string
    course_name string
    prof_name string
    credit_hours integer
    grade string

     
  4. Enter this rake statement to create the database:
  5. Append this Seed Code to the file db/seed.rb.
     
  6. Run the seed code by entering this rake command in the Command Prompt Window:
  7. View the grade record data in the index view in a browser at this URL: