how to structure a url ruby on rails code example Example: get and to rails @patient = Patient.find(params[:id])