Hi,
Does anyone know how to find the current/latest record in the table and
display it out in view? Cos I need to then update that latest record
from there.
Thanks,
user splash
Hi,
Does anyone know how to find the current/latest record in the table and
display it out in view? Cos I need to then update that latest record
from there.
Thanks,
user splash
user splash wrote:
Hi,
Does anyone know how to find the current/latest record in the table and
display it out in view? Cos I need to then update that latest record
from there.Thanks,
user splash
Model.find(:first, :order => “updated_at DESC”)
i think
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