if `edit` is given as path it should redirect to edit_path
Merge pull request #2 from Crunch09/rails4

if `edit` is given as path it should redirect to edit_path