Rails show latest entry
- by Danny McClelland
Hi Everyone,
I have a working Rails application on version 2.3.5 - I am using many to many model relations and have got almost everything working.
What I would like to do is on my new kase page show the most recent kase job ref at the top.
So for example, if I created a new kase with a job ref of "001", if I then went to create a new kase it would show at the top "Your previous kases reference was 001".
I have the field of jobref in the new kase form, so I am trying to workout what I need to do to output only the last jobref.
If that makes sense!
Thanks,
Danny