Home How to retrieve and output the last record by foreign id?
Reply: 0

How to retrieve and output the last record by foreign id?

user297
1#
user297 Published in August 14, 2018, 8:26 am

I have 2 Models in my application. Project & Note. A project has_many notes. This all works great but on the projects index page.html.erb I would like to show the last note for a project.

My question is how do I retrieve this and then display it, on the index screen?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.496041 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO