Fixed: Cannot redirect to nil refs #189
refactor refs #189
Merge pull request #189 from codefirst/id/189

ActionController::ActionControllerError: Cannot redirect to nil! refs #189