Rails show latest entry

Posted by Danny McClelland on Stack Overflow See other posts from Stack Overflow or by Danny McClelland
Published on 2010-05-03T20:24:08Z Indexed on 2010/05/03 20:28 UTC
Read the original article Hit count: 351

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about database