rails route get with params code example Example: get and to rails @patient = Patient.find(params[:id])