Use dotenv to manage environment variables. Create .env file, using .env.sample as a guide.
Rails Quiet Assets gem, to clean up logging in dev
whitespace
When deleting a vehicle, destroy any registrations
Use a partial for the new/edit form to keep it DRY.
Use a before filter to find the vehicle
You need to whitelist parameters
Use instance variables. And handle errors when updating.
Flash on edit error
schema.rb (not sure if this is a posgres specific version that added this change).
Remove database.yml from git
git ignore database.yml
update database.yml.sample
Simplify migrations, use a scaffold for registrations
Registration is nested under vehicle. We can create/edit/destroy