Use code partial
Use decent_exposure
Use better_errors gem instead default error template
Clean up CodesController using decent_exposure