3. Create the assessment - agentbright/rails-guide GitHub Wiki
Plan out the first page of the assessment
-
List out the fields needed for the first section
-
Convert fields to column name format (no capital letters, underscores instead of spaces)
-
List out fields for the next two sections
-
Determine the field type for each field (string, text, integer, decimal, boolean, date, datetime)
-
Give the table that all these fields are going into a name
Create the model, view and controller for the assessment
- Generate a scaffold to create the model, controller, and view
rails generate scaffold Assessment field_name:type field_name:type field_name:type
- Add a link on the homepage and in the navigation bar to the assessments index
Refine the styling
- Split the form page up into sub sections