Showing an example of edit/new DRY code

chovy: how do you check for /jobs/edit/:id and load the job if its an edit?