Rails saves your Model instance and adds the resulting id to its
attributes. And you still “have” the object so there is no need to
refind it.
HTH,
Kevin S.
Thanks, I should have figured that out myself!
Chris.
Rails saves your Model instance and adds the resulting id to its
attributes. And you still “have” the object so there is no need to
refind it.
HTH,
Kevin S.
Thanks, I should have figured that out myself!
Chris.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs