Architectural changes: placed 'capital' class and logic under
PersonController for a simpler structure.
Renamed actions and routes accordingly.
Created new branch 'development#v0.0.2' for changes.
Will tag as such
Reorganised structure of PersonController
Order is now thus:
- Class Definition
- Class Methods (aka controller actions)
added view for first_screen action
routed accordingly
removed unnecessary autogenerated lines from config/routes.rb
Still trying to get root to route to person#first_screen
Rails complained of 'nil class' variable
person#new no longer exists as action, only view
Can't figure this out.
pointless commit - removed emacs autosave files
added gitignore rule for emacs tmp files
created person#welcome controller with view and route set to root
removed lines trying to initialise variable in Class Definition.
The problem seems to be that person#first_screen assigns session data
from param data, the latter not being present on /GET request.
worked round uninitialised params values by checking 'request.method' value
first. If method is GET, render form directly, otherwise, process POST values.
Program works without needing Person Class Definition. Apparently the object is implicitly created by the view. Commented out for now, will remove later.
removed redundant class definitions for Person and Capital,
adjusted routes accordingly
Tidied up code, comments, indentation and structure.
changed first_screen form to tabular design
added more descriptive labels to first_screen form controls
changed benefit_awarded data type to check box
date calculations can be added later
stylesheet for tables added to assets directory.
placed all css under application.css
modified rules until satisfactory layout found
added sidebar and other css rules
added person#results action with root
redirected person#captial_assessment to #results
added link styling to application.css
changed links to green in css