undid changes to wright's file
fixed params[:id] in controller