minor refactors

- took @path assignment out of view and added to preview action
- replaced find_by( hashed:  params[:code] ) with find_by_hashed
   -  find_by_field is common rails method
- removed weird initialize method from model