3. Create the assessment - agentbright/rails-guide GitHub Wiki

Plan out the first page of the assessment

  1. List out the fields needed for the first section

  2. Convert fields to column name format (no capital letters, underscores instead of spaces)

  3. List out fields for the next two sections

  4. Determine the field type for each field (string, text, integer, decimal, boolean, date, datetime)

  5. Give the table that all these fields are going into a name

Create the model, view and controller for the assessment

  1. Generate a scaffold to create the model, controller, and view
  • rails generate scaffold Assessment field_name:type field_name:type field_name:type
  1. Add a link on the homepage and in the navigation bar to the assessments index

Refine the styling

  1. Split the form page up into sub sections